# manvendra8511/fronend architecture

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

- Interactive diagram: https://gitdiagram.com/manvendra8511/fronend
- Repository: https://github.com/manvendra8511/fronend

## Overview

Dreamr is a React storefront frontend for browsing bedding products and collections, viewing product details, and managing a client-side cart. The main path runs from the app’s routed pages through product listings or details to add-to-cart state and the cart drawer. Home also offers category filtering and membership promotion; About and Membership are separate content experiences. The graph reflects the supplied source excerpts and README; checkout, account, and several footer links have no demonstrated implementation here.

Main entry points: [`src/App.jsx`](https://github.com/manvendra8511/fronend/blob/main/src/App.jsx) (Application router), [`src/data.js`](https://github.com/manvendra8511/fronend/blob/main/src/data.js) (Product catalog), [`src/pages/Home.jsx`](https://github.com/manvendra8511/fronend/blob/main/src/pages/Home.jsx) (Home landing), [`src/pages/ProductDetails.jsx`](https://github.com/manvendra8511/fronend/blob/main/src/pages/ProductDetails.jsx) (Product details)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Storefront shell"]
  node_app["Application router<br/>[App.jsx]"]
  node_header["Navigation header<br/>[Header.jsx]"]
  node_footer["Store footer<br/>[Footer.jsx]"]
end

subgraph group_browse["Product discovery"]
  node_home["Home landing<br/>[Home.jsx]"]
  node_category_tabs["Category filters<br/>[CategoryTabs.jsx]"]
  node_collection["Collection listing<br/>[Collection.jsx]"]
  node_product_grid["Product grid<br/>[ProductGrid.jsx]"]
  node_product_card["Product card<br/>[ProductCard.jsx]"]
  node_product_details["Product details<br/>[ProductDetails.jsx]"]
  node_catalog_data["Product catalog<br/>[data.js]"]
  node_search["Product search<br/>[App.jsx]"]
end

subgraph group_commerce["Cart experience"]
  node_cart_state["Cart state<br/>[App.jsx]"]
  node_cart_drawer["Cart drawer<br/>[CartDrawer.jsx]"]
end

subgraph group_content["Brand and membership"]
  node_about["About page<br/>[About.jsx]"]
  node_membership["Membership page<br/>[Membership.jsx]"]
end

node_visitor(("Shopper"))

node_visitor -->|"opens storefront"| node_app
node_app -->|"renders"| node_header
node_app -->|"renders"| node_footer
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_collection
node_app -->|"routes to"| node_product_details
node_app -->|"routes to"| node_about
node_app -->|"routes to"| node_membership
node_header -->|"reads navigation"| node_catalog_data
node_header -->|"opens cart or search"| node_app
node_app -->|"renders search"| node_search
node_search -->|"matches products"| node_catalog_data
node_home -->|"filters products"| node_catalog_data
node_home -->|"renders filters"| node_category_tabs
node_home -->|"renders results"| node_product_grid
node_collection -->|"filters products"| node_catalog_data
node_collection -->|"renders results"| node_product_grid
node_product_grid -->|"renders cards"| node_product_card
node_product_details -->|"looks up product"| node_catalog_data
node_product_card -.->|"adds product"| node_cart_state
node_product_details -->|"adds product"| node_cart_state
node_cart_state -->|"supplies cart"| node_cart_drawer
node_cart_drawer -->|"changes quantity"| node_cart_state
node_membership -->|"links membership item"| node_product_details

click node_app "https://github.com/manvendra8511/fronend/blob/main/src/App.jsx"
click node_header "https://github.com/manvendra8511/fronend/blob/main/src/components/Header.jsx"
click node_footer "https://github.com/manvendra8511/fronend/blob/main/src/components/Footer.jsx"
click node_home "https://github.com/manvendra8511/fronend/blob/main/src/pages/Home.jsx"
click node_category_tabs "https://github.com/manvendra8511/fronend/blob/main/src/components/CategoryTabs.jsx"
click node_collection "https://github.com/manvendra8511/fronend/blob/main/src/pages/Collection.jsx"
click node_product_grid "https://github.com/manvendra8511/fronend/blob/main/src/components/ProductGrid.jsx"
click node_product_card "https://github.com/manvendra8511/fronend/blob/main/src/components/ProductCard.jsx"
click node_product_details "https://github.com/manvendra8511/fronend/blob/main/src/pages/ProductDetails.jsx"
click node_catalog_data "https://github.com/manvendra8511/fronend/blob/main/src/data.js"
click node_cart_state "https://github.com/manvendra8511/fronend/blob/main/src/App.jsx"
click node_cart_drawer "https://github.com/manvendra8511/fronend/blob/main/src/components/CartDrawer.jsx"
click node_search "https://github.com/manvendra8511/fronend/blob/main/src/App.jsx"
click node_about "https://github.com/manvendra8511/fronend/blob/main/src/pages/About.jsx"
click node_membership "https://github.com/manvendra8511/fronend/blob/main/src/pages/Membership.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_app,node_header,node_footer toneBlue
class node_home,node_category_tabs,node_collection,node_product_grid,node_product_card,node_product_details,node_catalog_data,node_search toneAmber
class node_cart_state,node_cart_drawer toneMint
class node_about,node_membership toneRose
class node_visitor toneIndigo
```

## Components

### Storefront shell

- [Application router](https://github.com/manvendra8511/fronend/blob/main/src/App.jsx): `src/App.jsx`
- [Navigation header](https://github.com/manvendra8511/fronend/blob/main/src/components/Header.jsx): `src/components/Header.jsx`
- [Store footer](https://github.com/manvendra8511/fronend/blob/main/src/components/Footer.jsx): `src/components/Footer.jsx`

### Product discovery

- [Home landing](https://github.com/manvendra8511/fronend/blob/main/src/pages/Home.jsx): `src/pages/Home.jsx`
- [Category filters](https://github.com/manvendra8511/fronend/blob/main/src/components/CategoryTabs.jsx): `src/components/CategoryTabs.jsx`
- [Collection listing](https://github.com/manvendra8511/fronend/blob/main/src/pages/Collection.jsx): `src/pages/Collection.jsx`
- [Product grid](https://github.com/manvendra8511/fronend/blob/main/src/components/ProductGrid.jsx): `src/components/ProductGrid.jsx`
- [Product card](https://github.com/manvendra8511/fronend/blob/main/src/components/ProductCard.jsx): `src/components/ProductCard.jsx`
- [Product details](https://github.com/manvendra8511/fronend/blob/main/src/pages/ProductDetails.jsx): `src/pages/ProductDetails.jsx`
- [Product catalog](https://github.com/manvendra8511/fronend/blob/main/src/data.js): `src/data.js`
- [Product search](https://github.com/manvendra8511/fronend/blob/main/src/App.jsx): `src/App.jsx`

### Cart experience

- [Cart state](https://github.com/manvendra8511/fronend/blob/main/src/App.jsx): `src/App.jsx`
- [Cart drawer](https://github.com/manvendra8511/fronend/blob/main/src/components/CartDrawer.jsx): `src/components/CartDrawer.jsx`

### Brand and membership

- [About page](https://github.com/manvendra8511/fronend/blob/main/src/pages/About.jsx): `src/pages/About.jsx`
- [Membership page](https://github.com/manvendra8511/fronend/blob/main/src/pages/Membership.jsx): `src/pages/Membership.jsx`

### Other components

- **Shopper**

## Connections

- Shopper → Application router: opens storefront
- Application router → Navigation header: renders (evidence: `src/App.jsx`)
- Application router → Store footer: renders (evidence: `src/App.jsx`)
- Application router → Home landing: routes to (evidence: `src/App.jsx`)
- Application router → Collection listing: routes to (evidence: `src/App.jsx`)
- Application router → Product details: routes to (evidence: `src/App.jsx`)
- Application router → About page: routes to (evidence: `src/App.jsx`)
- Application router → Membership page: routes to (evidence: `src/App.jsx`)
- Navigation header → Product catalog: reads navigation (evidence: `src/components/Header.jsx`)
- Navigation header → Application router: opens cart or search (evidence: `src/App.jsx`)
- Application router → Product search: renders search (evidence: `src/App.jsx`)
- Product search → Product catalog: matches products (evidence: `src/App.jsx`)
- Home landing → Product catalog: filters products (evidence: `src/pages/Home.jsx`)
- Home landing → Category filters: renders filters (evidence: `src/pages/Home.jsx`)
- Home landing → Product grid: renders results (evidence: `src/pages/Home.jsx`)
- Collection listing → Product catalog: filters products (evidence: `src/pages/Collection.jsx`)
- Collection listing → Product grid: renders results (evidence: `src/pages/Collection.jsx`)
- Product grid → Product card: renders cards (evidence: `src/components/ProductGrid.jsx`)
- Product details → Product catalog: looks up product (evidence: `src/pages/ProductDetails.jsx`)
- Product card → Cart state: adds product
- Product details → Cart state: adds product (evidence: `src/App.jsx`)
- Cart state → Cart drawer: supplies cart (evidence: `src/App.jsx`)
- Cart drawer → Cart state: changes quantity (evidence: `src/App.jsx`)
- Membership page → Product details: links membership item (evidence: `src/pages/Membership.jsx`)
