How devsayagroup/aromabiji works
Aroma Biji is a Next.js storefront and brand-content site for Indonesian coffee and single-origin chocolate. Visitors browse collections and product details, learn about origins and brewing, and can build a client-side cart; the documented FAQ also describes offline and WhatsApp ordering. Routes render page components, with product catalogs supplying collection/detail data. The shared client layout hosts navigation, cart, and analytics. Source excerpts are incomplete, so unsampled capability links are omitted rather than inferred.
Main entry points: layout-client.tsx Client layout · CartContext.tsx Cart state · ChocolateDetailPage.tsx Chocolate detail · journal Journal routes
Components 23
Storefront
- Home page
app/page.tsx - Home sections
components/section - Coffee collection
components/pages/ProductPage.tsx - Coffee detail
components/pages/ProductDetailPage.tsx - Coffee catalog
lib/products.ts - Chocolate collection
components/pages/ChocolatePage.tsx - Chocolate detail
components/pages/ChocolateDetailPage.tsx - Chocolate catalog
lib/products-chocolate.ts
Brand content
- Brand and help pages
components/pages - Brewing guide
components/pages/BrewingMethodsPage.tsx - Journal routes
app/journal - Journal rendering
lib/mdx.ts - Location pages
components/pages/LocationPage.tsx - Location data
lib/locations.ts
Cart experience
- Cart state
components/ecommerce/CartContext.tsx - Cart drawer
components/ecommerce/CartDrawer.tsx - Add to cart
components/ecommerce/AddToCartButton.tsx
Shared services
- Client layout
app/layout-client.tsx - Navigation
components/layout/Header.tsx - Footer
components/layout/Footer.tsx - Route analytics
components/analytics/RouteTracker.tsx - Analytics helpers
lib/analytics.ts
Other components
- Visitor
Connections 20
- Visitor → Home page: visits
app/page.tsx - Visitor → Coffee collection: browses
- Visitor → Chocolate collection: browses
- Home page → Home sections: renders
app/page.tsx - Coffee collection → Coffee catalog: reads
app/coffee/page.tsx - Coffee detail → Coffee catalog: reads
app/coffee/[id]/page.tsx - Chocolate collection → Chocolate catalog: reads
app/chocolate/page.tsx - Chocolate detail → Chocolate catalog: reads
app/chocolate/[id]/page.tsx - Chocolate detail → Add to cart: renders
components/pages/ChocolateDetailPage.tsx - Journal routes → Journal rendering: uses
app/journal/[slug]/page.tsx - Journal routes → Brand and help pages: renders index
app/journal/page.tsx - Location pages → Location data: reads
app/locations/[slug]/page.tsx - Client layout → Navigation: renders
app/layout-client.tsx - Client layout → Footer: renders
app/layout-client.tsx - Client layout → Cart state: provides state
app/layout-client.tsx - Client layout → Cart drawer: renders
app/layout-client.tsx - Client layout → Route analytics: renders
app/layout-client.tsx - Cart drawer → Cart state: reads state
components/ecommerce/CartDrawer.tsx - Add to cart → Cart state: updates cart
- Route analytics → Analytics helpers: uses
components/analytics/RouteTracker.tsx