How anzar-g/feyd-store works
This is a client-side Indonesian storefront for Quran and book products, with a separate wakaf (donation) program. Visitors browse the landing page or product details, add books to a browser-persisted cart, then submit an order from the cart; the app also offers quick-order, customer-service, admin, and wakaf routes. The sampled code shows cart persistence and order submission, but not the order API implementation or wakaf form submission. Connections for unsampled pages are limited to imports and routes documented in the source index or App excerpt.
Main entry points: App.tsx App Router · CartPage.tsx Cart and Checkout · LandingPage.tsx Landing Page · constants.ts Product and Contact Data
Components 20
Storefront
- App Router
src/App.tsx - Landing Page
src/pages/LandingPage.tsx - Product Details
src/pages/ProductPage.tsx - Quick Quran Order
src/pages/QuickOrderQuranPage.tsx
Shopping
- Cart and Checkout
src/pages/CartPage.tsx - Cart State Hook
src/hooks/useCart.ts - Cart Storage
src/utils/cart.ts - Order API
api/order.ts
Wakaf Program
- Wakaf Program
src/pages/WakafPage.tsx - Distribution Gallery
src/pages/GaleriWakafPage.tsx
Shared UI and Data
- Product and Contact Data
src/data/constants.ts - Testimonials
src/data/testimonials.ts - Commerce Helpers
src/utils/helpers.ts - Responsive Images
src/components/ResponsiveImage.tsx - Rating Display
src/components/RatingStars.tsx - Quran Pricing Section
src/components/QuranPricingSection.tsx
Operations
- Admin Page
src/pages/AdminPage.tsx - Customer Service Chat
src/components/CustomerServiceChat.tsx - Live Order Feed
src/components/LiveOrderFeed.tsx
Other components
- Visitor
Connections 30
- Visitor → App Router: opens
- App Router → Landing Page: routes to
src/App.tsx - App Router → Product Details: routes to
src/App.tsx - App Router → Cart and Checkout: routes to
src/App.tsx - App Router → Quick Quran Order: routes to
src/App.tsx - App Router → Wakaf Program: routes to
src/App.tsx - App Router → Distribution Gallery: routes to
src/App.tsx - App Router → Admin Page: routes to
src/App.tsx - App Router → Cart State Hook: uses
src/App.tsx - App Router → Customer Service Chat: renders
src/App.tsx - App Router → Live Order Feed: renders
src/App.tsx - Landing Page → Cart State Hook: uses
src/pages/LandingPage.tsx - Landing Page → Testimonials: displays
src/pages/LandingPage.tsx - Landing Page → Quran Pricing Section: renders
src/pages/LandingPage.tsx - Product Details → Product and Contact Data: reads product data
src/pages/ProductPage.tsx - Product Details → Responsive Images: renders
src/pages/ProductPage.tsx - Cart and Checkout → Cart State Hook: uses
src/pages/CartPage.tsx - Cart and Checkout → Order API: posts order
src/pages/CartPage.tsx - Cart and Checkout → Commerce Helpers: formats checkout
src/pages/CartPage.tsx - Cart State Hook → Cart Storage: reads and writes
src/hooks/useCart.ts - Cart and Checkout → Product and Contact Data: reads prices
src/pages/CartPage.tsx - Quick Quran Order → Product and Contact Data: reads product data
src/pages/QuickOrderQuranPage.tsx - Quick Quran Order → Commerce Helpers: uses
src/pages/QuickOrderQuranPage.tsx - Wakaf Program → Rating Display: renders
src/pages/WakafPage.tsx - Distribution Gallery → Responsive Images: renders
src/pages/GaleriWakafPage.tsx - Admin Page → Product and Contact Data: reads admin data
src/pages/AdminPage.tsx - Customer Service Chat → Product and Contact Data: reads contacts
src/components/CustomerServiceChat.tsx - Customer Service Chat → Commerce Helpers: reads UTM data
src/components/CustomerServiceChat.tsx - Live Order Feed → Visitor: shows order activity
- Visitor → Landing Page: browses