How manvendra8511/fronend works
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: App.jsx Application router · data.js Product catalog · Home.jsx Home landing · ProductDetails.jsx Product details
Components 16
Storefront shell
- Application router
src/App.jsx - Navigation header
src/components/Header.jsx - Store footer
src/components/Footer.jsx
Product discovery
- Home landing
src/pages/Home.jsx - Category filters
src/components/CategoryTabs.jsx - Collection listing
src/pages/Collection.jsx - Product grid
src/components/ProductGrid.jsx - Product card
src/components/ProductCard.jsx - Product details
src/pages/ProductDetails.jsx - Product catalog
src/data.js - Product search
src/App.jsx
Cart experience
- Cart state
src/App.jsx - Cart drawer
src/components/CartDrawer.jsx
Brand and membership
- About page
src/pages/About.jsx - Membership page
src/pages/Membership.jsx
Other components
- Shopper
Connections 24
- Shopper → Application router: opens storefront
- Application router → Navigation header: renders
src/App.jsx - Application router → Store footer: renders
src/App.jsx - Application router → Home landing: routes to
src/App.jsx - Application router → Collection listing: routes to
src/App.jsx - Application router → Product details: routes to
src/App.jsx - Application router → About page: routes to
src/App.jsx - Application router → Membership page: routes to
src/App.jsx - Navigation header → Product catalog: reads navigation
src/components/Header.jsx - Navigation header → Application router: opens cart or search
src/App.jsx - Application router → Product search: renders search
src/App.jsx - Product search → Product catalog: matches products
src/App.jsx - Home landing → Product catalog: filters products
src/pages/Home.jsx - Home landing → Category filters: renders filters
src/pages/Home.jsx - Home landing → Product grid: renders results
src/pages/Home.jsx - Collection listing → Product catalog: filters products
src/pages/Collection.jsx - Collection listing → Product grid: renders results
src/pages/Collection.jsx - Product grid → Product card: renders cards
src/components/ProductGrid.jsx - Product details → Product catalog: looks up product
src/pages/ProductDetails.jsx - Product card → Cart state: adds product
- Product details → Cart state: adds product
src/App.jsx - Cart state → Cart drawer: supplies cart
src/App.jsx - Cart drawer → Cart state: changes quantity
src/App.jsx - Membership page → Product details: links membership item
src/pages/Membership.jsx