# abii19/ddc-website architecture

> Architecture diagram of the GitHub repository abii19/ddc-website, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/abii19/ddc-website
- Repository: https://github.com/abii19/ddc-website

## Overview

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: [`src/app/products/[slug]/page.tsx`](https://github.com/abii19/ddc-website/blob/main/src/app/products/%5Bslug%5D/page.tsx) (Product details), [`src/app/find-us/page.tsx`](https://github.com/abii19/ddc-website/blob/main/src/app/find-us/page.tsx) (Find-us page), [`src/components/products/ProductCard.tsx`](https://github.com/abii19/ddc-website/blob/main/src/components/products/ProductCard.tsx) (Product card), [`src/app/page.tsx`](https://github.com/abii19/ddc-website/blob/main/src/app/page.tsx) (Homepage route)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Homepage &amp; discovery"]
  node_home_route["Homepage route<br/>[page.tsx]"]
  node_home_sections["Homepage sections"]
  node_find_route["Find-us page<br/>[page.tsx]"]
  node_outlet_loader["Outlet map loader"]
  node_outlet_map["Outlet map<br/>[OutletMap.tsx]"]
  node_outlet_data["Outlet directory<br/>[outlets.ts]"]
end

subgraph group_catalog["Product catalog"]
  node_product_list["Product listing<br/>[page.tsx]"]
  node_product_grid["Product grid<br/>[ProductGrid.tsx]"]
  node_product_card["Product card<br/>[ProductCard.tsx]"]
  node_product_detail["Product details<br/>[page.tsx]"]
  node_product_data["Product catalog data<br/>[products.ts]"]
  node_collection_route["Collection page<br/>[page.tsx]"]
end

subgraph group_organization["Organization information"]
  node_about_route["About page<br/>[page.tsx]"]
  node_story_route["Our story page<br/>[page.tsx]"]
  node_production_route["Production page<br/>[page.tsx]"]
  node_contact_route["Contact page<br/>[page.tsx]"]
end

subgraph group_public["Public information"]
  node_news_route["News page<br/>[page.tsx]"]
  node_updates_tabs["Updates browser<br/>[UpdatesTabs.tsx]"]
  node_updates_data["Notices, tenders &amp; downloads<br/>[updates.ts]"]
  node_branch_list["Branch directory<br/>[page.tsx]"]
  node_branch_detail["Branch detail<br/>[page.tsx]"]
end

subgraph group_shared["Shared interface"]
  node_i18n_provider["Language provider"]
  node_i18n_dictionary["Translation dictionary<br/>[i18n.ts]"]
  node_shared_ui["Shared UI components"]
end

node_visitor(("Website visitor"))

node_home_route -->|"renders"| node_home_sections
node_home_route -.->|"links to"| node_product_list
node_home_route -.->|"links to"| node_find_route
node_product_list -->|"renders"| node_product_grid
node_product_list -->|"reads"| node_product_data
node_product_grid -->|"reads"| node_product_data
node_product_grid -->|"renders"| node_product_card
node_product_card -->|"links to"| node_product_detail
node_product_detail -->|"reads"| node_product_data
node_product_detail -->|"renders"| node_product_card
node_product_detail -->|"links to"| node_find_route
node_find_route -->|"reads"| node_outlet_data
node_find_route -->|"renders"| node_outlet_loader
node_outlet_loader -->|"loads"| node_outlet_map
node_outlet_map -->|"reads"| node_outlet_data
node_news_route -->|"renders"| node_updates_tabs
node_updates_tabs -->|"reads"| node_updates_data
node_branch_list -->|"reads"| node_updates_data
node_branch_detail -->|"reads"| node_updates_data
node_i18n_provider -->|"reads"| node_i18n_dictionary
node_home_sections -->|"uses language"| node_i18n_provider
node_home_sections -->|"uses controls"| node_shared_ui
node_product_card -->|"uses badge"| node_shared_ui

click node_home_route "https://github.com/abii19/ddc-website/blob/main/src/app/page.tsx"
click node_home_sections "https://github.com/abii19/ddc-website/tree/main/src/components/home"
click node_product_list "https://github.com/abii19/ddc-website/blob/main/src/app/products/page.tsx"
click node_product_grid "https://github.com/abii19/ddc-website/blob/main/src/components/products/ProductGrid.tsx"
click node_product_card "https://github.com/abii19/ddc-website/blob/main/src/components/products/ProductCard.tsx"
click node_product_detail "https://github.com/abii19/ddc-website/blob/main/src/app/products/%5Bslug%5D/page.tsx"
click node_product_data "https://github.com/abii19/ddc-website/blob/main/src/lib/products.ts"
click node_collection_route "https://github.com/abii19/ddc-website/blob/main/src/app/collection/page.tsx"
click node_about_route "https://github.com/abii19/ddc-website/blob/main/src/app/about/page.tsx"
click node_story_route "https://github.com/abii19/ddc-website/blob/main/src/app/our-story/page.tsx"
click node_production_route "https://github.com/abii19/ddc-website/blob/main/src/app/production/page.tsx"
click node_contact_route "https://github.com/abii19/ddc-website/blob/main/src/app/contact/page.tsx"
click node_find_route "https://github.com/abii19/ddc-website/blob/main/src/app/find-us/page.tsx"
click node_outlet_loader "https://github.com/abii19/ddc-website/blob/main/src/components/find/OutletMapLoader.tsx"
click node_outlet_map "https://github.com/abii19/ddc-website/blob/main/src/components/find/OutletMap.tsx"
click node_outlet_data "https://github.com/abii19/ddc-website/blob/main/src/lib/outlets.ts"
click node_news_route "https://github.com/abii19/ddc-website/blob/main/src/app/news/page.tsx"
click node_updates_tabs "https://github.com/abii19/ddc-website/blob/main/src/components/news/UpdatesTabs.tsx"
click node_updates_data "https://github.com/abii19/ddc-website/blob/main/src/lib/updates.ts"
click node_branch_list "https://github.com/abii19/ddc-website/blob/main/src/app/branches/page.tsx"
click node_branch_detail "https://github.com/abii19/ddc-website/blob/main/src/app/branches/%5Bslug%5D/page.tsx"
click node_i18n_provider "https://github.com/abii19/ddc-website/blob/main/src/components/i18n/LanguageProvider.tsx"
click node_i18n_dictionary "https://github.com/abii19/ddc-website/blob/main/src/lib/i18n.ts"
click node_shared_ui "https://github.com/abii19/ddc-website/tree/main/src/components/shared"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_home_route,node_home_sections,node_find_route,node_outlet_loader,node_outlet_map,node_outlet_data toneBlue
class node_product_list,node_product_grid,node_product_card,node_product_detail,node_product_data,node_collection_route toneAmber
class node_about_route,node_story_route,node_production_route,node_contact_route toneMint
class node_news_route,node_updates_tabs,node_updates_data,node_branch_list,node_branch_detail toneRose
class node_i18n_provider,node_i18n_dictionary,node_shared_ui,node_visitor toneIndigo
```

## Components

### Homepage & discovery

- [Homepage route](https://github.com/abii19/ddc-website/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Homepage sections](https://github.com/abii19/ddc-website/tree/main/src/components/home): `src/components/home`
- [Find-us page](https://github.com/abii19/ddc-website/blob/main/src/app/find-us/page.tsx): `src/app/find-us/page.tsx`
- [Outlet map loader](https://github.com/abii19/ddc-website/blob/main/src/components/find/OutletMapLoader.tsx): `src/components/find/OutletMapLoader.tsx`
- [Outlet map](https://github.com/abii19/ddc-website/blob/main/src/components/find/OutletMap.tsx): `src/components/find/OutletMap.tsx`
- [Outlet directory](https://github.com/abii19/ddc-website/blob/main/src/lib/outlets.ts): `src/lib/outlets.ts`

### Product catalog

- [Product listing](https://github.com/abii19/ddc-website/blob/main/src/app/products/page.tsx): `src/app/products/page.tsx`
- [Product grid](https://github.com/abii19/ddc-website/blob/main/src/components/products/ProductGrid.tsx): `src/components/products/ProductGrid.tsx`
- [Product card](https://github.com/abii19/ddc-website/blob/main/src/components/products/ProductCard.tsx): `src/components/products/ProductCard.tsx`
- [Product details](https://github.com/abii19/ddc-website/blob/main/src/app/products/%5Bslug%5D/page.tsx): `src/app/products/[slug]/page.tsx`
- [Product catalog data](https://github.com/abii19/ddc-website/blob/main/src/lib/products.ts): `src/lib/products.ts`
- [Collection page](https://github.com/abii19/ddc-website/blob/main/src/app/collection/page.tsx): `src/app/collection/page.tsx`

### Organization information

- [About page](https://github.com/abii19/ddc-website/blob/main/src/app/about/page.tsx): `src/app/about/page.tsx`
- [Our story page](https://github.com/abii19/ddc-website/blob/main/src/app/our-story/page.tsx): `src/app/our-story/page.tsx`
- [Production page](https://github.com/abii19/ddc-website/blob/main/src/app/production/page.tsx): `src/app/production/page.tsx`
- [Contact page](https://github.com/abii19/ddc-website/blob/main/src/app/contact/page.tsx): `src/app/contact/page.tsx`

### Public information

- [News page](https://github.com/abii19/ddc-website/blob/main/src/app/news/page.tsx): `src/app/news/page.tsx`
- [Updates browser](https://github.com/abii19/ddc-website/blob/main/src/components/news/UpdatesTabs.tsx): `src/components/news/UpdatesTabs.tsx`
- [Notices, tenders & downloads](https://github.com/abii19/ddc-website/blob/main/src/lib/updates.ts): `src/lib/updates.ts`
- [Branch directory](https://github.com/abii19/ddc-website/blob/main/src/app/branches/page.tsx): `src/app/branches/page.tsx`
- [Branch detail](https://github.com/abii19/ddc-website/blob/main/src/app/branches/%5Bslug%5D/page.tsx): `src/app/branches/[slug]/page.tsx`

### Shared interface

- [Language provider](https://github.com/abii19/ddc-website/blob/main/src/components/i18n/LanguageProvider.tsx): `src/components/i18n/LanguageProvider.tsx`
- [Translation dictionary](https://github.com/abii19/ddc-website/blob/main/src/lib/i18n.ts): `src/lib/i18n.ts`
- [Shared UI components](https://github.com/abii19/ddc-website/tree/main/src/components/shared): `src/components/shared`

### Other components

- **Website visitor**

## Connections

- Homepage route → Homepage sections: renders (evidence: `src/app/page.tsx`)
- Homepage route → Product listing: links to
- Homepage route → Find-us page: links to
- Product listing → Product grid: renders (evidence: `src/app/products/page.tsx`)
- Product listing → Product catalog data: reads (evidence: `src/app/products/page.tsx`)
- Product grid → Product catalog data: reads (evidence: `src/components/products/ProductGrid.tsx`)
- Product grid → Product card: renders (evidence: `src/components/products/ProductGrid.tsx`)
- Product card → Product details: links to (evidence: `src/components/products/ProductCard.tsx`)
- Product details → Product catalog data: reads (evidence: `src/app/products/[slug]/page.tsx`)
- Product details → Product card: renders (evidence: `src/app/products/[slug]/page.tsx`)
- Product details → Find-us page: links to (evidence: `src/app/products/[slug]/page.tsx`)
- Find-us page → Outlet directory: reads (evidence: `src/app/find-us/page.tsx`)
- Find-us page → Outlet map loader: renders (evidence: `src/app/find-us/page.tsx`)
- Outlet map loader → Outlet map: loads (evidence: `src/components/find/OutletMapLoader.tsx`)
- Outlet map → Outlet directory: reads (evidence: `src/components/find/OutletMap.tsx`)
- News page → Updates browser: renders (evidence: `src/app/news/page.tsx`)
- Updates browser → Notices, tenders & downloads: reads (evidence: `src/components/news/UpdatesTabs.tsx`)
- Branch directory → Notices, tenders & downloads: reads (evidence: `src/app/branches/page.tsx`)
- Branch detail → Notices, tenders & downloads: reads (evidence: `src/app/branches/[slug]/page.tsx`)
- Language provider → Translation dictionary: reads (evidence: `src/components/i18n/LanguageProvider.tsx`)
- Homepage sections → Language provider: uses language (evidence: `src/components/home/HeroSection.tsx`)
- Homepage sections → Shared UI components: uses controls (evidence: `src/components/home/HeroSection.tsx`)
- Product card → Shared UI components: uses badge (evidence: `src/components/products/ProductCard.tsx`)
