How abii19/ddc-website works
This is a public-facing Dairy Development Corporation website, organized around product discovery, company information, outlet lookup, and public updates. Visitors can start at the homepage, explore products and their details, or find an outlet; other routes present the organization’s story, production, contact information, and notices. Product, outlet, update, and translation content is supplied by local modules rather than a sampled external backend. Some route implementations and the site layout were not sampled, so their internal connections are not asserted.
Main entry points: [slug]/page.tsx Product details · find-us/page.tsx Find-us page · ProductCard.tsx Product card · app/page.tsx Homepage route
Components 25
Homepage & discovery
- Homepage route
src/app/page.tsx - Homepage sections
src/components/home - Find-us page
src/app/find-us/page.tsx - Outlet map loader
src/components/find/OutletMapLoader.tsx - Outlet map
src/components/find/OutletMap.tsx - Outlet directory
src/lib/outlets.ts
Product catalog
- Product listing
src/app/products/page.tsx - Product grid
src/components/products/ProductGrid.tsx - Product card
src/components/products/ProductCard.tsx - Product details
src/app/products/[slug]/page.tsx - Product catalog data
src/lib/products.ts - Collection page
src/app/collection/page.tsx
Organization information
- About page
src/app/about/page.tsx - Our story page
src/app/our-story/page.tsx - Production page
src/app/production/page.tsx - Contact page
src/app/contact/page.tsx
Public information
- News page
src/app/news/page.tsx - Updates browser
src/components/news/UpdatesTabs.tsx - Notices, tenders & downloads
src/lib/updates.ts - Branch directory
src/app/branches/page.tsx - Branch detail
src/app/branches/[slug]/page.tsx
Shared interface
- Language provider
src/components/i18n/LanguageProvider.tsx - Translation dictionary
src/lib/i18n.ts - Shared UI components
src/components/shared
Other components
- Website visitor
Connections 23
- Homepage route → Homepage sections: renders
src/app/page.tsx - Homepage route → Product listing: links to
- Homepage route → Find-us page: links to
- Product listing → Product grid: renders
src/app/products/page.tsx - Product listing → Product catalog data: reads
src/app/products/page.tsx - Product grid → Product catalog data: reads
src/components/products/ProductGrid.tsx - Product grid → Product card: renders
src/components/products/ProductGrid.tsx - Product card → Product details: links to
src/components/products/ProductCard.tsx - Product details → Product catalog data: reads
src/app/products/[slug]/page.tsx - Product details → Product card: renders
src/app/products/[slug]/page.tsx - Product details → Find-us page: links to
src/app/products/[slug]/page.tsx - Find-us page → Outlet directory: reads
src/app/find-us/page.tsx - Find-us page → Outlet map loader: renders
src/app/find-us/page.tsx - Outlet map loader → Outlet map: loads
src/components/find/OutletMapLoader.tsx - Outlet map → Outlet directory: reads
src/components/find/OutletMap.tsx - News page → Updates browser: renders
src/app/news/page.tsx - Updates browser → Notices, tenders & downloads: reads
src/components/news/UpdatesTabs.tsx - Branch directory → Notices, tenders & downloads: reads
src/app/branches/page.tsx - Branch detail → Notices, tenders & downloads: reads
src/app/branches/[slug]/page.tsx - Language provider → Translation dictionary: reads
src/components/i18n/LanguageProvider.tsx - Homepage sections → Language provider: uses language
src/components/home/HeroSection.tsx - Homepage sections → Shared UI components: uses controls
src/components/home/HeroSection.tsx - Product card → Shared UI components: uses badge
src/components/products/ProductCard.tsx