How okay-mahima/coffee_shop works
Cinder Coffee Roasters is a React coffee-shop storefront. Visitors browse featured items or filter the menu, add products to a cart, adjust quantities, and reach a simulated checkout; the cart persists in localStorage. Separate pages present the shop story and contact details/form, while shared reveal components provide scroll animations. Contact submission is local UI state, not a backend integration. The graph follows relationships visible in excerpts or documented by the README; unsampled page/component internals are not assumed.
Main entry points: App.jsx App and routing · Home.jsx Home page · Menu.jsx Filtered menu · CartContext.jsx Cart state
Components 17
Storefront experience
- App and routing
src/App.jsx - Home page
src/pages/Home.jsx - About page
src/pages/About.jsx - Contact page
src/pages/Contact.jsx - Navigation
src/components/Navbar.jsx - Footer
src/components/Footer.jsx - Home hero
src/components/Hero.jsx
Menu and products
- Filtered menu
src/pages/Menu.jsx - Product catalog
src/data/products.js - Product card
src/components/ProductCard.jsx
Cart and checkout
- Cart drawer
src/components/CartDrawer.jsx - Cart state
src/context/CartContext.jsx - Browser storage
Shared presentation
- Reveal wrapper
src/components/Reveal.jsx - Staggered grid
src/components/StaggerGrid.jsx - Visibility hook
src/hooks/useReveal.js
Other components
- Visitor
Connections 24
- Visitor → App and routing: opens site
- App and routing → Navigation: renders
src/App.jsx - App and routing → Footer: renders
src/App.jsx - App and routing → Cart drawer: renders
src/App.jsx - App and routing → Home page: routes to
src/App.jsx - App and routing → Filtered menu: routes to
src/App.jsx - App and routing → About page: routes to
src/App.jsx - App and routing → Contact page: routes to
src/App.jsx - Home page → Home hero: renders
src/pages/Home.jsx - Home page → Product catalog: reads featured items
src/pages/Home.jsx - Home page → Product card: renders
src/pages/Home.jsx - Filtered menu → Product catalog: filters items
src/pages/Menu.jsx - Filtered menu → Product card: renders
src/pages/Menu.jsx - Product card → Cart state: adds product
src/components/ProductCard.jsx - Navigation → Cart state: reads cart
src/components/Navbar.jsx - Cart drawer → Cart state: uses cart actions
src/components/CartDrawer.jsx - Cart state → Browser storage: loads and persists
src/context/CartContext.jsx - Home page → Reveal wrapper: wraps sections
src/pages/Home.jsx - Home page → Staggered grid: renders grid
src/pages/Home.jsx - Filtered menu → Staggered grid: renders grid
src/pages/Menu.jsx - Filtered menu → Reveal wrapper: uses wrapper
src/pages/Menu.jsx - Contact page → Reveal wrapper: wraps content
src/pages/Contact.jsx - Reveal wrapper → Visibility hook: observes visibility
src/components/Reveal.jsx - Staggered grid → Visibility hook: observes visibility
src/components/StaggerGrid.jsx