How dhetchaiyakrith24/dive-records works
Dive Records is a bilingual dive-shop storefront for scuba gear, dive trips, and educational content. Shoppers enter through the localized homepage, browse or filter gear, inspect product details, then order through the configurable cart/checkout or LINE chat flow. Other branches cover product comparison, trip inquiries, policies, and video-supported learning. The graph reflects source-index references and excerpts; several pages and integrations were not sampled, so uncertain runtime links are omitted.
Main entry points: catalog.ts Product catalog · page.tsx Product detail · CheckoutView.tsx Checkout form · ProductCard.tsx Product cards
Components 29
Storefront
- Homepage
src/app/[locale]/page.tsx - Gear listing
src/app/[locale]/gear/page.tsx - Gear finder
src/app/[locale]/gear/finder/page.tsx - Product detail
src/app/[locale]/gear/[slug]/page.tsx - Gear comparison
src/app/[locale]/gear/compare/[category]/page.tsx
Gear commerce
- Product catalog
src/lib/catalog.ts - Product cards
src/components/ProductCard.tsx - Comparison rules
src/lib/compare.ts - Cart page
src/app/[locale]/cart/page.tsx - Cart view
src/components/CartView.tsx - Cart state
src/lib/cart-store.ts - Checkout page
src/app/[locale]/checkout/page.tsx - Checkout form
src/components/CheckoutView.tsx - Checkout rules
src/lib/checkout.ts - Shop settings
src/lib/shop.ts - LINE ordering
src/components/LineOrder.tsx - LINE chat links
src/lib/line.ts
Dive and learning
- Dive trips
src/app/[locale]/dive/page.tsx - Trip inquiry
src/components/DiveAsk.tsx - Learning hub
src/app/[locale]/learn/page.tsx - Learning article
src/app/[locale]/learn/[slug]/page.tsx - Article content
src/lib/articles.ts - Video catalog
src/lib/videos.ts - Video player
src/components/YouTubeLite.tsx - Shop policies
src/app/[locale]/policies/[slug]/page.tsx - Policy content
src/lib/policies.ts
Shared services
- Locale routing
src/i18n/routing.ts - Localized navigation
src/i18n/navigation.ts
Other components
- Shopper
Connections 39
- Shopper → Homepage: opens
- Shopper → Gear listing: browses
- Shopper → Dive trips: explores
- Shopper → Learning hub: reads
- Homepage → Product catalog: loads picks
src/app/[locale]/page.tsx - Homepage → Product cards: renders
src/app/[locale]/page.tsx - Gear listing → Product catalog: loads gear
src/app/[locale]/gear/page.tsx - Gear listing → Product cards: renders
src/app/[locale]/gear/page.tsx - Gear finder → Product catalog: loads gear
src/app/[locale]/gear/finder/page.tsx - Gear finder → Product cards: renders
src/app/[locale]/gear/finder/page.tsx - Product cards → Product catalog: reads product data
src/components/ProductCard.tsx - Product detail → Product catalog: loads product
src/app/[locale]/gear/[slug]/page.tsx - Product detail → Comparison rules: checks category
src/app/[locale]/gear/[slug]/page.tsx - Product detail → Video catalog: looks up review
src/app/[locale]/gear/[slug]/page.tsx - Product detail → Product cards: renders related gear
src/app/[locale]/gear/[slug]/page.tsx - Gear comparison → Product catalog: loads gear
src/app/[locale]/gear/compare/[category]/page.tsx - Gear comparison → Comparison rules: uses categories
src/app/[locale]/gear/compare/[category]/page.tsx - Cart page → Cart view: renders
src/app/[locale]/cart/page.tsx - Cart page → Product catalog: loads cart catalog
src/app/[locale]/cart/page.tsx - Cart page → Shop settings: loads settings
src/app/[locale]/cart/page.tsx - Cart view → Cart state: reads cart
src/components/CartView.tsx - Cart view → Checkout rules: calculates totals
src/components/CartView.tsx - Checkout page → Checkout form: renders
src/app/[locale]/checkout/page.tsx - Checkout page → Product catalog: loads cart catalog
src/app/[locale]/checkout/page.tsx - Checkout page → Shop settings: loads settings
src/app/[locale]/checkout/page.tsx - Checkout form → Cart state: reads cart
src/components/CheckoutView.tsx - Checkout form → Checkout rules: quotes and validates
src/components/CheckoutView.tsx - Checkout form → Cart view: renders summary
src/components/CheckoutView.tsx - Checkout form → Shop settings: receives settings
src/components/CheckoutView.tsx - Dive trips → Trip inquiry: offers inquiries
src/app/[locale]/dive/page.tsx - Dive trips → Product catalog: formats prices
src/app/[locale]/dive/page.tsx - Learning hub → Article content: loads articles
src/app/[locale]/learn/page.tsx - Learning hub → Video catalog: loads videos
src/app/[locale]/learn/page.tsx - Learning article → Article content: loads article
src/app/[locale]/learn/[slug]/page.tsx - Learning article → Video catalog: loads videos
src/app/[locale]/learn/[slug]/page.tsx - Product detail → Video player: embeds review
src/app/[locale]/gear/[slug]/page.tsx - Shop policies → Policy content: loads policy
src/app/[locale]/policies/[slug]/page.tsx - LINE ordering → LINE chat links: builds order link
src/components/LineOrder.tsx - Locale routing → Localized navigation: configures
src/i18n/navigation.ts