How krupashetty004/shiva_fashion works
Shiva Fashion is a React storefront with customer browsing, product-detail and cart journeys, contact/order enquiries, and an admin area for managing store data and messages. App routes requests to the corresponding pages and syncs cloud data at startup. Pages use a shared storage service backed by browser local storage, with optional Firebase synchronization. The excerpts do not establish every page’s storage calls or the full admin-login flow, so those links are omitted; WhatsApp links are shown as unverified where their implementation is not excerpted.
Main entry points: App.tsx Application router · storage.ts Store data service · ProductDetails.tsx Product details · Home.tsx Home and promotions
Components 16
Storefront
- Application router
src/App.tsx - Navigation
src/components/Navbar.tsx - Footer
src/components/Footer.tsx - Home and promotions
src/pages/Home.tsx - Contact enquiries
src/pages/Contact.tsx
Shopping
- Shop and filters
src/pages/Shop.tsx - Product details
src/pages/ProductDetails.tsx - Cart and ordering
src/pages/Cart.tsx - Product card
src/components/ProductCard.tsx
Administration
- Admin login
src/pages/AdminLogin.tsx - Admin dashboard
src/pages/AdminDashboard.tsx
Data and integrations
- Store data service
src/services/storage.ts - Browser storage
- Firebase
Other components
- Customer
Connections 25
- Customer → Application router: opens storefront
- Application router → Home and promotions: routes
src/App.tsx - Application router → Shop and filters: routes
src/App.tsx - Application router → Product details: routes
src/App.tsx - Application router → Cart and ordering: routes
src/App.tsx - Application router → Contact enquiries: routes
src/App.tsx - Application router → Admin login: routes
src/App.tsx - Application router → Admin dashboard: routes
src/App.tsx - Application router → Navigation: renders
src/App.tsx - Application router → Footer: renders
src/App.tsx - Application router → Store data service: syncs at startup
src/App.tsx - Navigation → Store data service: reads cart
src/components/Navbar.tsx - Home and promotions → Store data service: reads storefront data
src/pages/Home.tsx - Shop and filters → Store data service: reads products
src/pages/Shop.tsx - Product details → Store data service: saves enquiry
src/pages/ProductDetails.tsx - Cart and ordering → Store data service: reads and updates cart
src/pages/Cart.tsx - Contact enquiries → Store data service: uses data service
src/pages/Contact.tsx - Admin dashboard → Store data service: manages store data
src/pages/AdminDashboard.tsx - Home and promotions → Product card: renders products
src/pages/Home.tsx - Shop and filters → Product card: renders products
src/pages/Shop.tsx - Product details → Product card: renders related products
src/pages/ProductDetails.tsx - Store data service → Browser storage: reads and writes
src/services/storage.ts - Store data service → Firebase: syncs data
src/services/storage.ts - Cart and ordering → WhatsApp: opens order
src/pages/Cart.tsx - Product details → WhatsApp: offers ordering