# iggy14/tankq architecture

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

- Interactive diagram: https://gitdiagram.com/iggy14/tankq
- Repository: https://github.com/iggy14/tankq

## Overview

TankQ is a bilingual, static marketing and product-catalogue site for an FRP and PE tank manufacturer. Visitors browse product categories and product details, explore projects and company information, learn about quality and after-sales services, and reach the contact page. Product detail pages combine catalogue records with optional structured sections; all content is repository-held rather than served from a database or API. The README documents the broader capabilities; connections for unsampled page features are included only where documented or visible in indexed references.

Main entry points: [`src/app/[locale]/products/[slug]/page.tsx`](https://github.com/iggy14/tankq/blob/main/src/app/%5Blocale%5D/products/%5Bslug%5D/page.tsx) (Product detail), [`src/app/[locale]/page.tsx`](https://github.com/iggy14/tankq/blob/main/src/app/%5Blocale%5D/page.tsx) (Home page), [`src/app/[locale]/products/page.tsx`](https://github.com/iggy14/tankq/blob/main/src/app/%5Blocale%5D/products/page.tsx) (Product listing), [`src/app/[locale]/about/page.tsx`](https://github.com/iggy14/tankq/blob/main/src/app/%5Blocale%5D/about/page.tsx) (About page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routes["Pages and routing"]
  node_home["Home page<br/>[page.tsx]"]
  node_product_list["Product listing<br/>[page.tsx]"]
  node_product_detail["Product detail<br/>[page.tsx]"]
  node_projects_page["Projects page<br/>[page.tsx]"]
  node_service_page["Service page<br/>[page.tsx]"]
  node_about_page["About page<br/>[page.tsx]"]
  node_quality_page["Quality page<br/>[page.tsx]"]
  node_contact_page["Contact page<br/>[page.tsx]"]
end

subgraph group_catalogue["Product catalogue"]
  node_catalogue_view["Catalogue view<br/>[index.tsx]"]
  node_product_records["Product records<br/>[products.ts]"]
  node_section_data["Detail section data"]
  node_section_renderer["Section renderer<br/>[index.tsx]"]
  node_section_types["Section models"]
end

subgraph group_company["Company content"]
  node_project_showcase["Project showcase"]
  node_service_sections["Service sections"]
  node_service_records["Service records<br/>[services.ts]"]
end

subgraph group_shared["Shared presentation"]
  node_home_hero["Home hero<br/>[index.tsx]"]
  node_featured_products["Featured products"]
  node_breadcrumbs["Breadcrumbs and JSON-LD<br/>[breadcrumbs.tsx]"]
end

subgraph group_localization["Localization and SEO"]
  node_locale_routing["Locale routing<br/>[routing.ts]"]
  node_locale_proxy["Locale detection<br/>[proxy.ts]"]
  node_site_metadata["Metadata and canonicals<br/>[site.ts]"]
end

node_visitor(("Site visitor"))

node_visitor -->|"browses"| node_home
node_visitor -->|"browses"| node_product_list
node_visitor -->|"opens product"| node_product_detail
node_visitor -->|"browses"| node_projects_page
node_visitor -->|"browses"| node_service_page
node_visitor -->|"browses"| node_about_page
node_visitor -->|"browses"| node_quality_page
node_visitor -->|"contacts"| node_contact_page
node_home -->|"renders"| node_home_hero
node_home -->|"renders"| node_featured_products
node_product_list -->|"renders"| node_catalogue_view
node_product_list -->|"reads"| node_product_records
node_catalogue_view -.->|"displays"| node_product_records
node_product_detail -->|"looks up"| node_product_records
node_product_detail -->|"loads sections"| node_section_data
node_product_detail -->|"renders"| node_section_renderer
node_section_renderer -->|"uses models"| node_section_types
node_projects_page -->|"renders"| node_project_showcase
node_service_page -->|"renders"| node_service_sections
node_service_sections -->|"reads"| node_service_records
node_about_page -->|"renders"| node_featured_products
node_about_page -->|"builds metadata"| node_site_metadata
node_product_detail -.->|"builds metadata"| node_site_metadata
node_locale_proxy -->|"uses routes"| node_locale_routing
node_home -.->|"sets locale"| node_locale_routing
node_product_list -->|"renders"| node_breadcrumbs
node_product_detail -->|"renders"| node_breadcrumbs

click node_home "https://github.com/iggy14/tankq/blob/main/src/app/%5Blocale%5D/page.tsx"
click node_product_list "https://github.com/iggy14/tankq/blob/main/src/app/%5Blocale%5D/products/page.tsx"
click node_product_detail "https://github.com/iggy14/tankq/blob/main/src/app/%5Blocale%5D/products/%5Bslug%5D/page.tsx"
click node_projects_page "https://github.com/iggy14/tankq/blob/main/src/app/%5Blocale%5D/projects/page.tsx"
click node_service_page "https://github.com/iggy14/tankq/blob/main/src/app/%5Blocale%5D/service/page.tsx"
click node_about_page "https://github.com/iggy14/tankq/blob/main/src/app/%5Blocale%5D/about/page.tsx"
click node_quality_page "https://github.com/iggy14/tankq/blob/main/src/app/%5Blocale%5D/quality/page.tsx"
click node_contact_page "https://github.com/iggy14/tankq/blob/main/src/app/%5Blocale%5D/contact/page.tsx"
click node_catalogue_view "https://github.com/iggy14/tankq/blob/main/src/components/product-catalogue/index.tsx"
click node_product_records "https://github.com/iggy14/tankq/blob/main/src/lib/products.ts"
click node_section_data "https://github.com/iggy14/tankq/blob/main/src/lib/product-section-data.ts"
click node_section_renderer "https://github.com/iggy14/tankq/blob/main/src/components/product-sections/index.tsx"
click node_section_types "https://github.com/iggy14/tankq/blob/main/src/lib/product-sections.ts"
click node_project_showcase "https://github.com/iggy14/tankq/blob/main/src/components/project-case-studies.tsx"
click node_service_sections "https://github.com/iggy14/tankq/blob/main/src/components/service-sections/service-section.tsx"
click node_service_records "https://github.com/iggy14/tankq/blob/main/src/lib/services.ts"
click node_home_hero "https://github.com/iggy14/tankq/blob/main/src/components/hero/index.tsx"
click node_featured_products "https://github.com/iggy14/tankq/blob/main/src/components/featured-products.tsx"
click node_breadcrumbs "https://github.com/iggy14/tankq/blob/main/src/components/breadcrumbs.tsx"
click node_locale_routing "https://github.com/iggy14/tankq/blob/main/src/i18n/routing.ts"
click node_locale_proxy "https://github.com/iggy14/tankq/blob/main/src/proxy.ts"
click node_site_metadata "https://github.com/iggy14/tankq/blob/main/src/lib/site.ts"

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,node_product_list,node_product_detail,node_projects_page,node_service_page,node_about_page,node_quality_page,node_contact_page toneBlue
class node_catalogue_view,node_product_records,node_section_data,node_section_renderer,node_section_types toneAmber
class node_project_showcase,node_service_sections,node_service_records toneMint
class node_home_hero,node_featured_products,node_breadcrumbs toneRose
class node_locale_routing,node_locale_proxy,node_site_metadata,node_visitor toneIndigo
```

## Components

### Pages and routing

- [Home page](https://github.com/iggy14/tankq/blob/main/src/app/%5Blocale%5D/page.tsx): `src/app/[locale]/page.tsx`
- [Product listing](https://github.com/iggy14/tankq/blob/main/src/app/%5Blocale%5D/products/page.tsx): `src/app/[locale]/products/page.tsx`
- [Product detail](https://github.com/iggy14/tankq/blob/main/src/app/%5Blocale%5D/products/%5Bslug%5D/page.tsx): `src/app/[locale]/products/[slug]/page.tsx`
- [Projects page](https://github.com/iggy14/tankq/blob/main/src/app/%5Blocale%5D/projects/page.tsx): `src/app/[locale]/projects/page.tsx`
- [Service page](https://github.com/iggy14/tankq/blob/main/src/app/%5Blocale%5D/service/page.tsx): `src/app/[locale]/service/page.tsx`
- [About page](https://github.com/iggy14/tankq/blob/main/src/app/%5Blocale%5D/about/page.tsx): `src/app/[locale]/about/page.tsx`
- [Quality page](https://github.com/iggy14/tankq/blob/main/src/app/%5Blocale%5D/quality/page.tsx): `src/app/[locale]/quality/page.tsx`
- [Contact page](https://github.com/iggy14/tankq/blob/main/src/app/%5Blocale%5D/contact/page.tsx): `src/app/[locale]/contact/page.tsx`

### Product catalogue

- [Catalogue view](https://github.com/iggy14/tankq/blob/main/src/components/product-catalogue/index.tsx): `src/components/product-catalogue/index.tsx`
- [Product records](https://github.com/iggy14/tankq/blob/main/src/lib/products.ts): `src/lib/products.ts`
- [Detail section data](https://github.com/iggy14/tankq/blob/main/src/lib/product-section-data.ts): `src/lib/product-section-data.ts`
- [Section renderer](https://github.com/iggy14/tankq/blob/main/src/components/product-sections/index.tsx): `src/components/product-sections/index.tsx`
- [Section models](https://github.com/iggy14/tankq/blob/main/src/lib/product-sections.ts): `src/lib/product-sections.ts`

### Company content

- [Project showcase](https://github.com/iggy14/tankq/blob/main/src/components/project-case-studies.tsx): `src/components/project-case-studies.tsx`
- [Service sections](https://github.com/iggy14/tankq/blob/main/src/components/service-sections/service-section.tsx): `src/components/service-sections/service-section.tsx`
- [Service records](https://github.com/iggy14/tankq/blob/main/src/lib/services.ts): `src/lib/services.ts`

### Shared presentation

- [Home hero](https://github.com/iggy14/tankq/blob/main/src/components/hero/index.tsx): `src/components/hero/index.tsx`
- [Featured products](https://github.com/iggy14/tankq/blob/main/src/components/featured-products.tsx): `src/components/featured-products.tsx`
- [Breadcrumbs and JSON-LD](https://github.com/iggy14/tankq/blob/main/src/components/breadcrumbs.tsx): `src/components/breadcrumbs.tsx`

### Localization and SEO

- [Locale routing](https://github.com/iggy14/tankq/blob/main/src/i18n/routing.ts): `src/i18n/routing.ts`
- [Locale detection](https://github.com/iggy14/tankq/blob/main/src/proxy.ts): `src/proxy.ts`
- [Metadata and canonicals](https://github.com/iggy14/tankq/blob/main/src/lib/site.ts): `src/lib/site.ts`

### Other components

- **Site visitor**

## Connections

- Site visitor → Home page: browses (evidence: `README.md`)
- Site visitor → Product listing: browses (evidence: `README.md`)
- Site visitor → Product detail: opens product (evidence: `README.md`)
- Site visitor → Projects page: browses (evidence: `README.md`)
- Site visitor → Service page: browses (evidence: `README.md`)
- Site visitor → About page: browses (evidence: `README.md`)
- Site visitor → Quality page: browses (evidence: `README.md`)
- Site visitor → Contact page: contacts (evidence: `README.md`)
- Home page → Home hero: renders (evidence: `src/app/[locale]/page.tsx`)
- Home page → Featured products: renders (evidence: `src/app/[locale]/page.tsx`)
- Product listing → Catalogue view: renders (evidence: `src/app/[locale]/products/page.tsx`)
- Product listing → Product records: reads (evidence: `src/app/[locale]/products/page.tsx`)
- Catalogue view → Product records: displays
- Product detail → Product records: looks up (evidence: `src/app/[locale]/products/[slug]/page.tsx`)
- Product detail → Detail section data: loads sections (evidence: `src/app/[locale]/products/[slug]/page.tsx`)
- Product detail → Section renderer: renders (evidence: `src/app/[locale]/products/[slug]/page.tsx`)
- Section renderer → Section models: uses models (evidence: `src/components/product-sections/index.tsx`)
- Projects page → Project showcase: renders (evidence: `src/app/[locale]/projects/page.tsx`)
- Service page → Service sections: renders (evidence: `src/app/[locale]/service/page.tsx`)
- Service sections → Service records: reads (evidence: `src/components/service-sections/service-section.tsx`)
- About page → Featured products: renders (evidence: `src/app/[locale]/about/page.tsx`)
- About page → Metadata and canonicals: builds metadata (evidence: `src/app/[locale]/about/page.tsx`)
- Product detail → Metadata and canonicals: builds metadata (evidence: `src/app/[locale]/products/[slug]/page.tsx`)
- Locale detection → Locale routing: uses routes (evidence: `src/proxy.ts`)
- Home page → Locale routing: sets locale
- Product listing → Breadcrumbs and JSON-LD: renders (evidence: `src/app/[locale]/products/page.tsx`)
- Product detail → Breadcrumbs and JSON-LD: renders (evidence: `src/app/[locale]/products/[slug]/page.tsx`)
