# uzankhan/tricon architecture

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

- Interactive diagram: https://gitdiagram.com/uzankhan/tricon
- Repository: https://github.com/uzankhan/tricon

## Overview

Tricon Portacabin Showcase is a product-marketing website for portable cabins, container offices, and related spaces. Visitors discover offerings and Pakistan-focused project information, browse products or gallery content, then prepare an enquiry and continue to WhatsApp or contact Tricon directly. The map preserves the documented location pages, FAQ, trust content, and shared site shell. Several route and component implementations are unsampled; links between them are included only where the excerpts, source index, or README support them.

Main entry points: [`src/routes/index.tsx`](https://github.com/uzankhan/tricon/blob/main/src/routes/index.tsx) (Home page), [`src/routeTree.gen.ts`](https://github.com/uzankhan/tricon/blob/main/src/routeTree.gen.ts) (Route registry), [`src/lib/brand.ts`](https://github.com/uzankhan/tricon/blob/main/src/lib/brand.ts) (Brand configuration), [`src/routes/contact.tsx`](https://github.com/uzankhan/tricon/blob/main/src/routes/contact.tsx) (Contact page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["Routing and shell"]
  node_router["Router setup<br/>[router.tsx]"]
  node_route_tree["Route registry<br/>[routeTree.gen.ts]"]
  node_root["Root layout<br/>[__root.tsx]"]
  node_site_shell["Site shell<br/>[site.tsx]"]
end

subgraph group_discovery["Product discovery"]
  node_home["Home page<br/>[index.tsx]"]
  node_products_page["Products page<br/>[products.tsx]"]
  node_product_collection["Product collection"]
  node_product_data["Product catalog data<br/>[products.ts]"]
  node_gallery["Gallery page<br/>[gallery.tsx]"]
  node_workflow["Pakistan workflow"]
  node_trust["Trust sections<br/>[trust-sections.tsx]"]
end

subgraph group_content["Brand and information"]
  node_about["About page<br/>[about.tsx]"]
  node_contact["Contact page<br/>[contact.tsx]"]
  node_seo_content["SEO content<br/>[seo-content.tsx]"]
  node_city_pages["City landing pages"]
  node_brand_data["Brand configuration<br/>[brand.ts]"]
  node_motion["Motion effects<br/>[motion.tsx]"]
end

subgraph group_runtime["Runtime services"]
  node_analytics["Google Analytics<br/>[__root.tsx]"]
  node_server["Server handling<br/>[server.ts]"]
  node_error_capture["Error capture<br/>[error-capture.ts]"]
  node_error_page["Error page<br/>[error-page.ts]"]
  node_start["Start integration<br/>[start.ts]"]
end

node_visitor(("Visitor"))
node_analytics_service["Google Analytics service"]
node_whatsapp["WhatsApp"]

node_visitor -->|"opens site"| node_router
node_router -->|"loads routes"| node_route_tree
node_route_tree -->|"registers route"| node_home
node_route_tree -->|"registers route"| node_products_page
node_route_tree -->|"registers route"| node_gallery
node_route_tree -->|"registers route"| node_about
node_route_tree -->|"registers route"| node_contact
node_root -->|"renders shell"| node_site_shell
node_root -->|"renders tracking"| node_analytics
node_analytics -->|"sends pageviews"| node_analytics_service
node_root -->|"renders route content"| node_visitor
node_home -->|"renders collection"| node_product_collection
node_home -->|"renders workflow"| node_workflow
node_home -->|"renders trust content"| node_trust
node_home -->|"uses effects"| node_motion
node_products_page -->|"renders collection"| node_product_collection
node_product_collection -->|"reads catalog"| node_product_data
node_gallery -->|"reads catalog"| node_product_data
node_contact -->|"renders FAQs"| node_seo_content
node_home -->|"uses contact link"| node_brand_data
node_workflow -->|"builds enquiry link"| node_brand_data
node_site_shell -->|"builds contact links"| node_brand_data
node_contact -->|"reads business details"| node_brand_data
node_home -->|"presents products"| node_visitor
node_site_shell -->|"opens chat"| node_whatsapp
node_contact -->|"prepares enquiry"| node_whatsapp
node_workflow -->|"links to chat"| node_whatsapp
node_about -->|"uses brand details"| node_brand_data
node_city_pages -->|"uses page content"| node_seo_content
node_server -->|"uses capture"| node_error_capture
node_server -->|"uses error page"| node_error_page
node_start -->|"uses error page"| node_error_page

click node_router "https://github.com/uzankhan/tricon/blob/main/src/router.tsx"
click node_route_tree "https://github.com/uzankhan/tricon/blob/main/src/routeTree.gen.ts"
click node_root "https://github.com/uzankhan/tricon/blob/main/src/routes/__root.tsx"
click node_site_shell "https://github.com/uzankhan/tricon/blob/main/src/components/site.tsx"
click node_home "https://github.com/uzankhan/tricon/blob/main/src/routes/index.tsx"
click node_products_page "https://github.com/uzankhan/tricon/blob/main/src/routes/products.tsx"
click node_product_collection "https://github.com/uzankhan/tricon/blob/main/src/components/product-collection.tsx"
click node_product_data "https://github.com/uzankhan/tricon/blob/main/src/lib/products.ts"
click node_gallery "https://github.com/uzankhan/tricon/blob/main/src/routes/gallery.tsx"
click node_workflow "https://github.com/uzankhan/tricon/blob/main/src/components/pakistan-workflow.tsx"
click node_trust "https://github.com/uzankhan/tricon/blob/main/src/components/trust-sections.tsx"
click node_about "https://github.com/uzankhan/tricon/blob/main/src/routes/about.tsx"
click node_contact "https://github.com/uzankhan/tricon/blob/main/src/routes/contact.tsx"
click node_seo_content "https://github.com/uzankhan/tricon/blob/main/src/components/seo-content.tsx"
click node_city_pages "https://github.com/uzankhan/tricon/tree/main/src/routes"
click node_brand_data "https://github.com/uzankhan/tricon/blob/main/src/lib/brand.ts"
click node_motion "https://github.com/uzankhan/tricon/blob/main/src/components/motion.tsx"
click node_analytics "https://github.com/uzankhan/tricon/blob/main/src/routes/__root.tsx"
click node_server "https://github.com/uzankhan/tricon/blob/main/src/server.ts"
click node_error_capture "https://github.com/uzankhan/tricon/blob/main/src/lib/error-capture.ts"
click node_error_page "https://github.com/uzankhan/tricon/blob/main/src/lib/error-page.ts"
click node_start "https://github.com/uzankhan/tricon/blob/main/src/start.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_router,node_route_tree,node_root,node_site_shell toneBlue
class node_home,node_products_page,node_product_collection,node_product_data,node_gallery,node_workflow,node_trust toneAmber
class node_about,node_contact,node_seo_content,node_city_pages,node_brand_data,node_motion toneMint
class node_analytics,node_server,node_error_capture,node_error_page,node_start toneRose
class node_visitor,node_analytics_service,node_whatsapp toneIndigo
```

## Components

### Routing and shell

- [Router setup](https://github.com/uzankhan/tricon/blob/main/src/router.tsx): `src/router.tsx`
- [Route registry](https://github.com/uzankhan/tricon/blob/main/src/routeTree.gen.ts): `src/routeTree.gen.ts`
- [Root layout](https://github.com/uzankhan/tricon/blob/main/src/routes/__root.tsx): `src/routes/__root.tsx`
- [Site shell](https://github.com/uzankhan/tricon/blob/main/src/components/site.tsx): `src/components/site.tsx`

### Product discovery

- [Home page](https://github.com/uzankhan/tricon/blob/main/src/routes/index.tsx): `src/routes/index.tsx`
- [Products page](https://github.com/uzankhan/tricon/blob/main/src/routes/products.tsx): `src/routes/products.tsx`
- [Product collection](https://github.com/uzankhan/tricon/blob/main/src/components/product-collection.tsx): `src/components/product-collection.tsx`
- [Product catalog data](https://github.com/uzankhan/tricon/blob/main/src/lib/products.ts): `src/lib/products.ts`
- [Gallery page](https://github.com/uzankhan/tricon/blob/main/src/routes/gallery.tsx): `src/routes/gallery.tsx`
- [Pakistan workflow](https://github.com/uzankhan/tricon/blob/main/src/components/pakistan-workflow.tsx): `src/components/pakistan-workflow.tsx`
- [Trust sections](https://github.com/uzankhan/tricon/blob/main/src/components/trust-sections.tsx): `src/components/trust-sections.tsx`

### Brand and information

- [About page](https://github.com/uzankhan/tricon/blob/main/src/routes/about.tsx): `src/routes/about.tsx`
- [Contact page](https://github.com/uzankhan/tricon/blob/main/src/routes/contact.tsx): `src/routes/contact.tsx`
- [SEO content](https://github.com/uzankhan/tricon/blob/main/src/components/seo-content.tsx): `src/components/seo-content.tsx`
- [City landing pages](https://github.com/uzankhan/tricon/tree/main/src/routes): `src/routes`
- [Brand configuration](https://github.com/uzankhan/tricon/blob/main/src/lib/brand.ts): `src/lib/brand.ts`
- [Motion effects](https://github.com/uzankhan/tricon/blob/main/src/components/motion.tsx): `src/components/motion.tsx`

### Runtime services

- [Google Analytics](https://github.com/uzankhan/tricon/blob/main/src/routes/__root.tsx): `src/routes/__root.tsx`
- [Server handling](https://github.com/uzankhan/tricon/blob/main/src/server.ts): `src/server.ts`
- [Error capture](https://github.com/uzankhan/tricon/blob/main/src/lib/error-capture.ts): `src/lib/error-capture.ts`
- [Error page](https://github.com/uzankhan/tricon/blob/main/src/lib/error-page.ts): `src/lib/error-page.ts`
- [Start integration](https://github.com/uzankhan/tricon/blob/main/src/start.ts): `src/start.ts`

### Other components

- **Visitor**
- **Google Analytics service**
- **WhatsApp**

## Connections

- Visitor → Router setup: opens site (evidence: `src/router.tsx`)
- Router setup → Route registry: loads routes (evidence: `src/router.tsx`)
- Route registry → Home page: registers route (evidence: `src/routeTree.gen.ts`)
- Route registry → Products page: registers route (evidence: `src/routeTree.gen.ts`)
- Route registry → Gallery page: registers route (evidence: `src/routeTree.gen.ts`)
- Route registry → About page: registers route (evidence: `src/routeTree.gen.ts`)
- Route registry → Contact page: registers route (evidence: `src/routeTree.gen.ts`)
- Root layout → Site shell: renders shell (evidence: `src/routes/__root.tsx`)
- Root layout → Google Analytics: renders tracking (evidence: `src/routes/__root.tsx`)
- Google Analytics → Google Analytics service: sends pageviews (evidence: `src/routes/__root.tsx`)
- Root layout → Visitor: renders route content (evidence: `src/routes/__root.tsx`)
- Home page → Product collection: renders collection (evidence: `src/routes/index.tsx`)
- Home page → Pakistan workflow: renders workflow (evidence: `src/routes/index.tsx`)
- Home page → Trust sections: renders trust content (evidence: `src/routes/index.tsx`)
- Home page → Motion effects: uses effects (evidence: `src/routes/index.tsx`)
- Products page → Product collection: renders collection (evidence: `src/routes/products.tsx`)
- Product collection → Product catalog data: reads catalog (evidence: `src/components/product-collection.tsx`)
- Gallery page → Product catalog data: reads catalog (evidence: `src/routes/gallery.tsx`)
- Contact page → SEO content: renders FAQs (evidence: `src/routes/contact.tsx`)
- Home page → Brand configuration: uses contact link (evidence: `src/routes/index.tsx`)
- Pakistan workflow → Brand configuration: builds enquiry link (evidence: `src/components/pakistan-workflow.tsx`)
- Site shell → Brand configuration: builds contact links (evidence: `src/components/site.tsx`)
- Contact page → Brand configuration: reads business details (evidence: `src/routes/contact.tsx`)
- Home page → Visitor: presents products (evidence: `src/routes/index.tsx`)
- Site shell → WhatsApp: opens chat (evidence: `src/components/site.tsx`)
- Contact page → WhatsApp: prepares enquiry (evidence: `src/routes/contact.tsx`)
- Pakistan workflow → WhatsApp: links to chat (evidence: `src/components/pakistan-workflow.tsx`)
- About page → Brand configuration: uses brand details (evidence: `src/routes/about.tsx`)
- City landing pages → SEO content: uses page content (evidence: `src/routes/container-office-lahore.tsx`)
- Server handling → Error capture: uses capture (evidence: `src/server.ts`)
- Server handling → Error page: uses error page (evidence: `src/server.ts`)
- Start integration → Error page: uses error page (evidence: `src/start.ts`)
