How juliolimaal/project_pw2 works
World Wines Web is a wine e-commerce storefront. Shoppers browse the home and wine-category pages, add products to a persistent cart, and proceed to an interactive payment form; the payment page records payment data in Supabase and clears the cart on success. The application also provides a newsletter signup and documented product/user database integration. The graph reflects shown imports, calls, and README statements; several API route implementations were not excerpted, so their behavior and connections are omitted.
Main entry points: CartContext.jsx Cart State · app/page.jsx Home Page · red/page.jsx Red Wines Page · layout.jsx Site Layout
Components 22
Storefront
- Home Page
src/app/page.jsx - Hero
src/app/components/Hero.jsx - Wine Carousel
src/app/components/Winecarrossel.jsx - Quality Grid
src/app/components/QualityGrid.jsx - Story Sections
src/app/components/Sections.jsx - Site Layout
src/app/layout.jsx - Navigation
src/app/components/Navbar.jsx - Footer Signup
src/app/components/Footer.jsx
Wine Catalog
- Red Wines Page
src/app/red/page.jsx - Red Header
src/app/components/RedHeader.jsx - Wine Display
src/app/components/WineSection.jsx - White Wines Page
src/app/white/page.jsx - Rosé Wines Page
src/app/rose/page.jsx
Cart
- Cart State
src/app/contexts/CartContext.jsx - Cart Sidebar
src/app/components/CartSidebar.jsx - Cart Page
src/app/cart/page.jsx - Payment Page
src/app/pagamento/page.jsx
Data and Signup
- Supabase Client
src/app/lib/supabaseClient.js - Supabase
- Email API Route
src/app/api/send-email/route.js - Browser LocalStorage
Other components
- Shopper
Connections 28
- Shopper → Home Page: browses
README.md - Home Page → Hero: renders
src/app/page.jsx - Home Page → Wine Carousel: renders
src/app/page.jsx - Home Page → Quality Grid: renders
src/app/page.jsx - Home Page → Story Sections: renders
src/app/page.jsx - Site Layout → Navigation: renders
src/app/layout.jsx - Site Layout → Footer Signup: renders
src/app/layout.jsx - Site Layout → Cart Sidebar: renders
src/app/layout.jsx - Site Layout → Cart State: provides state
src/app/layout.jsx - Shopper → Red Wines Page: browses
README.md - Red Wines Page → Red Header: renders
src/app/red/page.jsx - Red Wines Page → Wine Display: renders
src/app/red/page.jsx - Red Wines Page → Supabase Client: fetches prices
src/app/red/page.jsx - Shopper → White Wines Page: browses
README.md - Shopper → Rosé Wines Page: browses
README.md - Wine Display → Cart State: adds products
src/app/components/WineSection.jsx - Navigation → Cart State: reads cart count
src/app/components/Navbar.jsx - Cart Sidebar → Cart State: reads and updates
src/app/components/CartSidebar.jsx - Cart Sidebar → Payment Page: links to
src/app/components/CartSidebar.jsx - Cart Page → Cart State: uses cart
- Payment Page → Cart State: reads total and clears
src/app/pagamento/page.jsx - Cart State → Browser LocalStorage: persists cart
src/app/contexts/CartContext.jsx - Payment Page → Supabase Client: inserts payment
src/app/pagamento/page.jsx - Red Wines Page → Supabase: reads products
src/app/red/page.jsx - Payment Page → Supabase: stores payment
src/app/pagamento/page.jsx - Supabase Client → Supabase: connects to
README.md - Footer Signup → Supabase Client: registers email
src/app/components/Footer.jsx - Footer Signup → Email API Route: requests email
src/app/components/Footer.jsx