# unnikrishnansk/hubspot-clone architecture

> Architecture diagram of the GitHub repository unnikrishnansk/hubspot-clone, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/unnikrishnansk/hubspot-clone
- Repository: https://github.com/unnikrishnansk/hubspot-clone

## Overview

This is a React HubSpot website clone. Visitors enter through the landing page and navigate to product/pricing, demo, support, academy, or account flows; protected pages use Redux authentication, while pricing links toward checkout. The README also advertises registration, address management, cart, and payment. Those capabilities are represented where the tree or README supports them, but unsampled implementation details and links between commerce stages cannot be verified from the excerpts.

Main entry points: [`src/Pages/Mainroutes.jsx`](https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/Pages/Mainroutes.jsx) (Route Dispatch), [`src/components/LandingPagemain.jsx`](https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/LandingPagemain.jsx) (Landing Page), [`src/components/Pricing Page/PricingPage.jsx`](https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/Pricing%20Page/PricingPage.jsx) (Pricing Page), [`src/components/Offers.jsx`](https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/Offers.jsx) (Plan Offers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Site Entry"]
  node_routes["Route Dispatch<br/>[Mainroutes.jsx]"]
  node_landing["Landing Page"]
  node_navigation["Navigation<br/>[Navbar.jsx]"]
  node_banner["Landing Banner<br/>[Banner.jsx]"]
  node_middle["Landing Content<br/>[Middle.jsx]"]
  node_footer["Site Footer<br/>[Footer.jsx]"]
end

subgraph group_sales["Sales and Demos"]
  node_demo["Demo Page<br/>[Demopage.jsx]"]
  node_demoform["Demo Form<br/>[Demoform.jsx]"]
  node_demosuccess["Demo Confirmation"]
  node_pricing["Pricing Page<br/>[PricingPage.jsx]"]
  node_offers["Plan Offers<br/>[Offers.jsx]"]
  node_salescontact["Contact Sales<br/>[Contactsales.jsx]"]
end

subgraph group_accounts["Accounts and Learning"]
  node_authguard["Auth Guard<br/>[RequireAuth.jsx]"]
  node_login["Login<br/>[Login.jsx]"]
  node_signup["Registration<br/>[Signup.jsx]"]
  node_authactions["Auth Actions<br/>[action.js]"]
  node_academy["Academy Courses<br/>[Academy.jsx]"]
  node_coursecatalog["Course Catalog<br/>[academyhelper.js]"]
end

subgraph group_commerce["Commerce and Support"]
  node_support["Customer Service"]
  node_customerhelp["Customer Support"]
  node_cart["Cart Confirmation"]
  node_checkout["Checkout<br/>[CheckOut.jsx]"]
  node_payment["Payment<br/>[Payment.jsx]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens site"| node_routes
node_routes -->|"routes home"| node_landing
node_routes -->|"routes demo"| node_demo
node_routes -->|"routes form"| node_demoform
node_routes -->|"routes confirmation"| node_demosuccess
node_routes -->|"routes pricing"| node_pricing
node_routes -->|"routes contact"| node_salescontact
node_routes -->|"routes support"| node_support
node_routes -->|"routes courses"| node_academy
node_routes -->|"routes cart"| node_cart
node_routes -->|"routes checkout"| node_checkout
node_routes -->|"routes payment"| node_payment
node_routes -->|"guards pages"| node_authguard
node_authguard -->|"redirects unauthenticated"| node_login
node_landing -->|"renders"| node_banner
node_landing -->|"renders"| node_middle
node_landing -->|"renders"| node_navigation
node_landing -->|"renders"| node_footer
node_pricing -->|"renders plans"| node_offers
node_offers -->|"links to cart"| node_cart
node_login -->|"dispatches auth"| node_authactions
node_signup -->|"dispatches auth"| node_authactions
node_academy -->|"maps courses"| node_coursecatalog

click node_routes "https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/Pages/Mainroutes.jsx"
click node_landing "https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/LandingPagemain.jsx"
click node_navigation "https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/navbar/Navbar.jsx"
click node_banner "https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/Banner/Banner.jsx"
click node_middle "https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/middle/Middle.jsx"
click node_footer "https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/footer/Footer.jsx"
click node_demo "https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/Demopage/Demopage.jsx"
click node_demoform "https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/Demopage/Demoform/Demoform.jsx"
click node_demosuccess "https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/Demopage/Demosuccesspage/Demosuccesspage.jsx"
click node_pricing "https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/Pricing%20Page/PricingPage.jsx"
click node_offers "https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/Offers.jsx"
click node_salescontact "https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/Pages/Contactsales.jsx"
click node_authguard "https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/hoc/RequireAuth.jsx"
click node_login "https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/Pages/Login.jsx"
click node_signup "https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/Pages/Signup.jsx"
click node_authactions "https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/Redux/AuthReducer/action.js"
click node_academy "https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/Pages/academy/Academy.jsx"
click node_coursecatalog "https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/Pages/academy/academyhelper.js"
click node_support "https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/CustomerService/CustomerService.jsx"
click node_customerhelp "https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/CustomerSupport.jsx"
click node_cart "https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/Confirmation/ConfirmayionPage.jsx"
click node_checkout "https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/CheckOut.jsx"
click node_payment "https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/Paymet/Payment.jsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_routes,node_landing,node_navigation,node_banner,node_middle,node_footer toneBlue
class node_demo,node_demoform,node_demosuccess,node_pricing,node_offers,node_salescontact toneAmber
class node_authguard,node_login,node_signup,node_authactions,node_academy,node_coursecatalog toneMint
class node_support,node_customerhelp,node_cart,node_checkout,node_payment toneRose
class node_visitor toneIndigo
```

## Components

### Site Entry

- [Route Dispatch](https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/Pages/Mainroutes.jsx): `src/Pages/Mainroutes.jsx`
- [Landing Page](https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/LandingPagemain.jsx): `src/components/LandingPagemain.jsx`
- [Navigation](https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/navbar/Navbar.jsx): `src/components/navbar/Navbar.jsx`
- [Landing Banner](https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/Banner/Banner.jsx): `src/components/Banner/Banner.jsx`
- [Landing Content](https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/middle/Middle.jsx): `src/components/middle/Middle.jsx`
- [Site Footer](https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/footer/Footer.jsx): `src/components/footer/Footer.jsx`

### Sales and Demos

- [Demo Page](https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/Demopage/Demopage.jsx): `src/components/Demopage/Demopage.jsx`
- [Demo Form](https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/Demopage/Demoform/Demoform.jsx): `src/components/Demopage/Demoform/Demoform.jsx`
- [Demo Confirmation](https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/Demopage/Demosuccesspage/Demosuccesspage.jsx): `src/components/Demopage/Demosuccesspage/Demosuccesspage.jsx`
- [Pricing Page](https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/Pricing%20Page/PricingPage.jsx): `src/components/Pricing Page/PricingPage.jsx`
- [Plan Offers](https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/Offers.jsx): `src/components/Offers.jsx`
- [Contact Sales](https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/Pages/Contactsales.jsx): `src/Pages/Contactsales.jsx`

### Accounts and Learning

- [Auth Guard](https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/hoc/RequireAuth.jsx): `src/hoc/RequireAuth.jsx`
- [Login](https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/Pages/Login.jsx): `src/Pages/Login.jsx`
- [Registration](https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/Pages/Signup.jsx): `src/Pages/Signup.jsx`
- [Auth Actions](https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/Redux/AuthReducer/action.js): `src/Redux/AuthReducer/action.js`
- [Academy Courses](https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/Pages/academy/Academy.jsx): `src/Pages/academy/Academy.jsx`
- [Course Catalog](https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/Pages/academy/academyhelper.js): `src/Pages/academy/academyhelper.js`

### Commerce and Support

- [Customer Service](https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/CustomerService/CustomerService.jsx): `src/components/CustomerService/CustomerService.jsx`
- [Customer Support](https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/CustomerSupport.jsx): `src/components/CustomerSupport.jsx`
- [Cart Confirmation](https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/Confirmation/ConfirmayionPage.jsx): `src/components/Confirmation/ConfirmayionPage.jsx`
- [Checkout](https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/CheckOut.jsx): `src/components/CheckOut.jsx`
- [Payment](https://github.com/unnikrishnansk/hubspot-clone/blob/main/src/components/Paymet/Payment.jsx): `src/components/Paymet/Payment.jsx`

### Other components

- **Visitor**

## Connections

- Visitor → Route Dispatch: opens site
- Route Dispatch → Landing Page: routes home (evidence: `src/Pages/Mainroutes.jsx`)
- Route Dispatch → Demo Page: routes demo (evidence: `src/Pages/Mainroutes.jsx`)
- Route Dispatch → Demo Form: routes form (evidence: `src/Pages/Mainroutes.jsx`)
- Route Dispatch → Demo Confirmation: routes confirmation (evidence: `src/Pages/Mainroutes.jsx`)
- Route Dispatch → Pricing Page: routes pricing (evidence: `src/Pages/Mainroutes.jsx`)
- Route Dispatch → Contact Sales: routes contact (evidence: `src/Pages/Mainroutes.jsx`)
- Route Dispatch → Customer Service: routes support (evidence: `src/Pages/Mainroutes.jsx`)
- Route Dispatch → Academy Courses: routes courses (evidence: `src/Pages/Mainroutes.jsx`)
- Route Dispatch → Cart Confirmation: routes cart (evidence: `src/Pages/Mainroutes.jsx`)
- Route Dispatch → Checkout: routes checkout (evidence: `src/Pages/Mainroutes.jsx`)
- Route Dispatch → Payment: routes payment (evidence: `src/Pages/Mainroutes.jsx`)
- Route Dispatch → Auth Guard: guards pages (evidence: `src/Pages/Mainroutes.jsx`)
- Auth Guard → Login: redirects unauthenticated (evidence: `src/hoc/RequireAuth.jsx`)
- Landing Page → Landing Banner: renders (evidence: `src/components/LandingPagemain.jsx`)
- Landing Page → Landing Content: renders (evidence: `src/components/LandingPagemain.jsx`)
- Landing Page → Navigation: renders (evidence: `src/components/LandingPagemain.jsx`)
- Landing Page → Site Footer: renders (evidence: `src/components/LandingPagemain.jsx`)
- Pricing Page → Plan Offers: renders plans (evidence: `src/components/Pricing Page/PricingPage.jsx`)
- Plan Offers → Cart Confirmation: links to cart (evidence: `src/components/Offers.jsx`)
- Login → Auth Actions: dispatches auth (evidence: `src/Pages/Login.jsx`)
- Registration → Auth Actions: dispatches auth (evidence: `src/Pages/Signup.jsx`)
- Academy Courses → Course Catalog: maps courses (evidence: `src/Pages/academy/Academy.jsx`)
