How p0ll-png/foodherons works
Food Herons is a React frontend for campus vendor discovery and cash-on-pickup pre-orders. Its main flow is directory search/filter → vendor menu → shared cart → order review and placement → status tracking; a separate vendor dashboard presents demo order, menu, profile, and pre-order controls. The README documents these capabilities, while sampled code confirms client-side routing and mock data. No backend calls or durable order submission are shown, so those relationships are omitted.
Main entry points: App.jsx Route shell · Icon.jsx SVG icons · VendorStore.jsx Vendor store · Dashboard.jsx Vendor dashboard
Components 20
App navigation
- Route shell
src/App.jsx - Header navigation
src/components/Header.jsx - Footer links
src/components/Footer.jsx - Not found page
src/pages/NotFound.jsx
Vendor discovery
- Vendor directory
src/pages/Home.jsx - Vendor preview
src/components/VendorCard.jsx - Mock vendors and menus
src/data/vendors.js
Pre-order flow
- Vendor store
src/pages/VendorStore.jsx - Cart review
src/pages/Cart.jsx - Order tracking
src/pages/OrderStatus.jsx
Vendor tools
- Vendor dashboard
src/pages/Dashboard.jsx - Login stub
src/pages/Login.jsx - Signup stub
src/pages/Signup.jsx
Shared state
- Cart state
src/context/CartContext.jsx - Theme preference
src/context/ThemeContext.jsx - Heron mascot
src/components/HeronMascot.jsx - Decorative blobs
src/components/BlobField.jsx - SVG icons
src/components/Icon.jsx
Other components
- Student
- Vendor user
Connections 43
- Student → Route shell: opens app
README.md - Vendor user → Route shell: opens app
README.md - Route shell → Vendor directory: routes /
src/App.jsx - Route shell → Vendor store: routes vendor
src/App.jsx - Route shell → Cart review: routes cart
src/App.jsx - Route shell → Order tracking: routes order
src/App.jsx - Route shell → Vendor dashboard: routes dashboard
src/App.jsx - Route shell → Login stub: routes login
src/App.jsx - Route shell → Signup stub: routes signup
src/App.jsx - Route shell → Not found page: routes fallback
src/App.jsx - Route shell → Header navigation: renders
src/App.jsx - Route shell → Footer links: renders
src/App.jsx - Route shell → Theme preference: provides theme
src/App.jsx - Route shell → Cart state: provides cart
src/App.jsx - Header navigation → Theme preference: toggles
src/components/Header.jsx - Header navigation → Cart state: reads count
src/components/Header.jsx - Vendor directory → Mock vendors and menus: filters vendors
src/pages/Home.jsx - Vendor directory → Vendor preview: renders results
src/pages/Home.jsx - Vendor preview → Mock vendors and menus: reads category
src/components/VendorCard.jsx - Vendor store → Mock vendors and menus: loads vendor
src/pages/VendorStore.jsx - Vendor store → Cart state: adds items
src/pages/VendorStore.jsx - Vendor store → Not found page: renders missing vendor
src/pages/VendorStore.jsx - Cart review → Cart state: reads and updates
src/pages/Cart.jsx - Cart review → Mock vendors and menus: loads vendor details
src/pages/Cart.jsx - Cart review → Order tracking: places order
README.md - Vendor dashboard → Mock vendors and menus: loads demo vendor
src/pages/Dashboard.jsx - Vendor dashboard → Order tracking: updates order status
README.md - Login stub → Decorative blobs: renders
src/pages/Login.jsx - Signup stub → Decorative blobs: renders
src/pages/Signup.jsx - Header navigation → SVG icons: renders
src/components/Header.jsx - Header navigation → Heron mascot: renders
src/components/Header.jsx - Vendor preview → SVG icons: renders
src/components/VendorCard.jsx - Vendor preview → Heron mascot: renders
src/components/VendorCard.jsx - Vendor store → SVG icons: renders
src/pages/VendorStore.jsx - Vendor store → Heron mascot: renders
src/pages/VendorStore.jsx - Vendor dashboard → SVG icons: renders
src/pages/Dashboard.jsx - Vendor dashboard → Heron mascot: renders
src/pages/Dashboard.jsx - Vendor directory → Decorative blobs: renders
src/pages/Home.jsx - Vendor directory → SVG icons: renders
src/pages/Home.jsx - Cart review → SVG icons: renders
src/pages/Cart.jsx - Order tracking → SVG icons: renders
src/pages/OrderStatus.jsx - Signup stub → SVG icons: renders
src/pages/Signup.jsx - Vendor dashboard → Vendor user: supports tools
README.md