How areebasaleem95/bakeryshop works
Sweet Crust is a bakery storefront: visitors browse the home page and menu, inspect products, add items to a persistent cart, then fill an order form and receive a local confirmation. The app also presents bakery story and contact information. The order flow is a client-side demo—its page explicitly says no real payment is collected, and no backend order service appears in the evidence. Edges reflect only shown imports, calls, and navigation; unsampled contact behavior is not inferred.
Main entry points: menu/page.tsx Menu browsing · cart-store.tsx Cart state · app/page.tsx Home page · product-card.tsx Product cards and details
Components 13
Storefront
- Home page
src/app/page.tsx - Shared site shell
src/components/site-shell.tsx - Header, drawer, footer
src/components/site-chrome.tsx
Product catalog
- Menu browsing
src/app/menu/page.tsx - Product data
src/lib/products.ts - Product cards and details
src/components/product-card.tsx
Cart and ordering
- Cart state
src/components/cart-store.tsx - Order form and confirmation
src/app/order/page.tsx - Price formatting
src/lib/utils.ts - Browser local storage
Bakery information
- Bakery story
src/app/about/page.tsx - Contact page
src/app/contact/page.tsx
Other components
- Shopper
Connections 24
- Shopper → Home page: visits
src/app/page.tsx - Home page → Product cards and details: renders
src/app/page.tsx - Home page → Menu browsing: links to
src/app/page.tsx - Menu browsing → Product data: filters
src/app/menu/page.tsx - Menu browsing → Product cards and details: renders
src/app/menu/page.tsx - Product cards and details → Cart state: updates
src/components/product-card.tsx - Product cards and details → Product data: uses types
src/components/product-card.tsx - Shared site shell → Cart state: provides
src/components/site-shell.tsx - Shared site shell → Header, drawer, footer: renders
src/components/site-shell.tsx - Header, drawer, footer → Cart state: reads and updates
src/components/site-chrome.tsx - Header, drawer, footer → Order form and confirmation: links to
src/components/site-chrome.tsx - Order form and confirmation → Cart state: reads and clears
src/app/order/page.tsx - Order form and confirmation → Price formatting: formats prices
src/app/order/page.tsx - Cart state → Product data: looks up products
src/components/cart-store.tsx - Cart state → Browser local storage: loads and saves
src/components/cart-store.tsx - Shopper → Menu browsing: browses
src/app/menu/page.tsx - Shopper → Order form and confirmation: submits details
src/app/order/page.tsx - Shopper → Bakery story: visits
src/app/about/page.tsx - Shopper → Contact page: visits
- Home page → Bakery story: links to
src/app/page.tsx - Home page → Contact page: links to
src/app/page.tsx - Bakery story → Menu browsing: links to
src/app/about/page.tsx - Bakery story → Contact page: links to
src/app/about/page.tsx - Menu browsing → Contact page: links to
src/app/menu/page.tsx