# saadbarghouth2-blip/-0 architecture

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

- Interactive diagram: https://gitdiagram.com/saadbarghouth2-blip/-0
- Repository: https://github.com/saadbarghouth2-blip/-0

## Overview

This repository is a bilingual (Arabic/English) agency website for presenting company information, services, portfolio work, editorial content, and contact routes. The visitor workflow enters through the routed application and shared site layout, browses localized pages and service details, then can proceed to contact. Separate branches support projects, blog, testimonials, and company content; page metadata and analytics provide an internal cross-cutting layer. Edges reflect only cited routing, imports, and calls visible in the provided excerpts or SOURCE INDEX; unsampled page implementations and runtime integrations are not inferred.

Main entry points: [`src/pages/ServiceDetailEnhancedPage.tsx`](https://github.com/saadbarghouth2-blip/-0/blob/main/src/pages/ServiceDetailEnhancedPage.tsx) (Enhanced service detail), [`src/App.tsx`](https://github.com/saadbarghouth2-blip/-0/blob/main/src/App.tsx) (Route dispatch), [`src/components/SiteLayout.tsx`](https://github.com/saadbarghouth2-blip/-0/blob/main/src/components/SiteLayout.tsx) (Shared site layout), [`src/pages/SubServicesPage.tsx`](https://github.com/saadbarghouth2-blip/-0/blob/main/src/pages/SubServicesPage.tsx) (Sub-services portal)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_routes["Route dispatch<br/>[App.tsx]"]
  node_layout["Shared site layout<br/>[SiteLayout.tsx]"]
  node_loaders["Page loaders<br/>[pageLoaders.ts]"]
end

subgraph group_services["Service discovery"]
  node_service_list["Service catalog<br/>[ServicesPage.tsx]"]
  node_service_detail["Enhanced service detail"]
  node_detail_renderer["Detail page renderer"]
  node_service_copy["Enhanced service content"]
  node_service_library["Service library<br/>[serviceLibrary.ts]"]
  node_sub_services["Sub-services portal"]
  node_sub_service_data["Sub-service content<br/>[subServicesData.ts]"]
  node_sub_service_detail["Sub-service detail view"]
end

subgraph group_content["Company and editorial"]
  node_company_content["Company content<br/>[company.ts]"]
  node_portfolio["Portfolio projects<br/>[portfolio.ts]"]
  node_blog["Blog content<br/>[blog.ts]"]
end

subgraph group_crosscut["Localization and metadata"]
  node_language["Language and paths<br/>[useLanguage.ts]"]
  node_path_localization["Localized path utilities<br/>[localizedPath.ts]"]
  node_page_seo["Page SEO state<br/>[pageSeo.ts]"]
  node_seo["SEO utilities<br/>[seo.ts]"]
  node_metadata["Metadata and page views<br/>[usePageMetadata.ts]"]
  node_analytics["Analytics tracking<br/>[analytics.ts]"]
  node_repair_text["Localized text repair<br/>[repairText.ts]"]
end

subgraph group_engagement["Visitor engagement"]
  node_contact["Contact routes<br/>[ContactPage.tsx]"]
end

node_visitor(("Site visitor"))
node_contact_actor(("Prospective client"))

node_visitor -->|"opens site"| node_routes
node_routes -->|"wraps routes"| node_layout
node_routes -->|"loads pages"| node_loaders
node_loaders -->|"loads page"| node_service_list
node_loaders -->|"loads page"| node_service_detail
node_routes -.->|"routes to"| node_sub_services
node_routes -->|"routes to"| node_contact
node_service_list -->|"imports catalog"| node_service_library
node_service_list -->|"links details"| node_service_detail
node_service_detail -->|"renders"| node_detail_renderer
node_service_detail -->|"reads content"| node_service_copy
node_service_copy -->|"imports"| node_service_library
node_sub_services -->|"reads catalog"| node_sub_service_data
node_sub_services -->|"renders detail"| node_sub_service_detail
node_sub_service_detail -->|"uses service type"| node_sub_service_data
node_layout -->|"reads content"| node_company_content
node_layout -->|"reads content"| node_portfolio
node_layout -->|"reads catalog"| node_service_library
node_layout -->|"tracks activity"| node_analytics
node_contact_actor -.->|"opens contact"| node_contact
node_service_list -->|"uses language"| node_language
node_service_detail -->|"uses language"| node_language
node_sub_services -->|"uses language"| node_language
node_sub_service_detail -->|"uses language"| node_language
node_language -->|"localizes paths"| node_path_localization
node_service_detail -.->|"sets metadata"| node_metadata
node_sub_services -->|"sets metadata"| node_metadata
node_metadata -->|"builds SEO state"| node_page_seo
node_metadata -->|"tracks page view"| node_analytics
node_page_seo -->|"uses SEO helpers"| node_seo
node_page_seo -->|"reads content"| node_company_content
node_page_seo -->|"reads content"| node_portfolio
node_page_seo -->|"reads content"| node_blog
node_sub_service_detail -->|"repairs copy"| node_repair_text
node_service_detail -.->|"repairs copy"| node_repair_text

click node_routes "https://github.com/saadbarghouth2-blip/-0/blob/main/src/App.tsx"
click node_layout "https://github.com/saadbarghouth2-blip/-0/blob/main/src/components/SiteLayout.tsx"
click node_loaders "https://github.com/saadbarghouth2-blip/-0/blob/main/src/lib/pageLoaders.ts"
click node_service_list "https://github.com/saadbarghouth2-blip/-0/blob/main/src/pages/ServicesPage.tsx"
click node_service_detail "https://github.com/saadbarghouth2-blip/-0/blob/main/src/pages/ServiceDetailEnhancedPage.tsx"
click node_detail_renderer "https://github.com/saadbarghouth2-blip/-0/blob/main/src/components/DetailPageEnhanced.tsx"
click node_service_copy "https://github.com/saadbarghouth2-blip/-0/blob/main/src/data/enhancedServices.ts"
click node_service_library "https://github.com/saadbarghouth2-blip/-0/blob/main/src/data/serviceLibrary.ts"
click node_sub_services "https://github.com/saadbarghouth2-blip/-0/blob/main/src/pages/SubServicesPage.tsx"
click node_sub_service_data "https://github.com/saadbarghouth2-blip/-0/blob/main/src/data/subServicesData.ts"
click node_sub_service_detail "https://github.com/saadbarghouth2-blip/-0/blob/main/src/components/SubServiceDetailPage.tsx"
click node_company_content "https://github.com/saadbarghouth2-blip/-0/blob/main/src/data/company.ts"
click node_portfolio "https://github.com/saadbarghouth2-blip/-0/blob/main/src/data/portfolio.ts"
click node_blog "https://github.com/saadbarghouth2-blip/-0/blob/main/src/data/blog.ts"
click node_language "https://github.com/saadbarghouth2-blip/-0/blob/main/src/hooks/useLanguage.ts"
click node_path_localization "https://github.com/saadbarghouth2-blip/-0/blob/main/src/lib/localizedPath.ts"
click node_page_seo "https://github.com/saadbarghouth2-blip/-0/blob/main/src/lib/pageSeo.ts"
click node_seo "https://github.com/saadbarghouth2-blip/-0/blob/main/src/lib/seo.ts"
click node_metadata "https://github.com/saadbarghouth2-blip/-0/blob/main/src/hooks/usePageMetadata.ts"
click node_analytics "https://github.com/saadbarghouth2-blip/-0/blob/main/src/lib/analytics.ts"
click node_repair_text "https://github.com/saadbarghouth2-blip/-0/blob/main/src/lib/repairText.ts"
click node_contact "https://github.com/saadbarghouth2-blip/-0/blob/main/src/pages/ContactPage.tsx"

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_routes,node_layout,node_loaders,node_contact_actor toneBlue
class node_service_list,node_service_detail,node_detail_renderer,node_service_copy,node_service_library,node_sub_services,node_sub_service_data,node_sub_service_detail toneAmber
class node_company_content,node_portfolio,node_blog toneMint
class node_language,node_path_localization,node_page_seo,node_seo,node_metadata,node_analytics,node_repair_text toneRose
class node_contact,node_visitor toneIndigo
```

## Components

### Application shell

- [Route dispatch](https://github.com/saadbarghouth2-blip/-0/blob/main/src/App.tsx): `src/App.tsx`
- [Shared site layout](https://github.com/saadbarghouth2-blip/-0/blob/main/src/components/SiteLayout.tsx): `src/components/SiteLayout.tsx`
- [Page loaders](https://github.com/saadbarghouth2-blip/-0/blob/main/src/lib/pageLoaders.ts): `src/lib/pageLoaders.ts`

### Service discovery

- [Service catalog](https://github.com/saadbarghouth2-blip/-0/blob/main/src/pages/ServicesPage.tsx): `src/pages/ServicesPage.tsx`
- [Enhanced service detail](https://github.com/saadbarghouth2-blip/-0/blob/main/src/pages/ServiceDetailEnhancedPage.tsx): `src/pages/ServiceDetailEnhancedPage.tsx`
- [Detail page renderer](https://github.com/saadbarghouth2-blip/-0/blob/main/src/components/DetailPageEnhanced.tsx): `src/components/DetailPageEnhanced.tsx`
- [Enhanced service content](https://github.com/saadbarghouth2-blip/-0/blob/main/src/data/enhancedServices.ts): `src/data/enhancedServices.ts`
- [Service library](https://github.com/saadbarghouth2-blip/-0/blob/main/src/data/serviceLibrary.ts): `src/data/serviceLibrary.ts`
- [Sub-services portal](https://github.com/saadbarghouth2-blip/-0/blob/main/src/pages/SubServicesPage.tsx): `src/pages/SubServicesPage.tsx`
- [Sub-service content](https://github.com/saadbarghouth2-blip/-0/blob/main/src/data/subServicesData.ts): `src/data/subServicesData.ts`
- [Sub-service detail view](https://github.com/saadbarghouth2-blip/-0/blob/main/src/components/SubServiceDetailPage.tsx): `src/components/SubServiceDetailPage.tsx`

### Company and editorial

- [Company content](https://github.com/saadbarghouth2-blip/-0/blob/main/src/data/company.ts): `src/data/company.ts`
- [Portfolio projects](https://github.com/saadbarghouth2-blip/-0/blob/main/src/data/portfolio.ts): `src/data/portfolio.ts`
- [Blog content](https://github.com/saadbarghouth2-blip/-0/blob/main/src/data/blog.ts): `src/data/blog.ts`

### Localization and metadata

- [Language and paths](https://github.com/saadbarghouth2-blip/-0/blob/main/src/hooks/useLanguage.ts): `src/hooks/useLanguage.ts`
- [Localized path utilities](https://github.com/saadbarghouth2-blip/-0/blob/main/src/lib/localizedPath.ts): `src/lib/localizedPath.ts`
- [Page SEO state](https://github.com/saadbarghouth2-blip/-0/blob/main/src/lib/pageSeo.ts): `src/lib/pageSeo.ts`
- [SEO utilities](https://github.com/saadbarghouth2-blip/-0/blob/main/src/lib/seo.ts): `src/lib/seo.ts`
- [Metadata and page views](https://github.com/saadbarghouth2-blip/-0/blob/main/src/hooks/usePageMetadata.ts): `src/hooks/usePageMetadata.ts`
- [Analytics tracking](https://github.com/saadbarghouth2-blip/-0/blob/main/src/lib/analytics.ts): `src/lib/analytics.ts`
- [Localized text repair](https://github.com/saadbarghouth2-blip/-0/blob/main/src/lib/repairText.ts): `src/lib/repairText.ts`

### Visitor engagement

- [Contact routes](https://github.com/saadbarghouth2-blip/-0/blob/main/src/pages/ContactPage.tsx): `src/pages/ContactPage.tsx`

### Other components

- **Site visitor**
- **Prospective client**

## Connections

- Site visitor → Route dispatch: opens site (evidence: `src/App.tsx`)
- Route dispatch → Shared site layout: wraps routes (evidence: `src/App.tsx`)
- Route dispatch → Page loaders: loads pages (evidence: `src/App.tsx`)
- Page loaders → Service catalog: loads page (evidence: `src/lib/pageLoaders.ts`)
- Page loaders → Enhanced service detail: loads page (evidence: `src/lib/pageLoaders.ts`)
- Route dispatch → Sub-services portal: routes to
- Route dispatch → Contact routes: routes to (evidence: `src/App.tsx`)
- Service catalog → Service library: imports catalog (evidence: `src/pages/ServicesPage.tsx`)
- Service catalog → Enhanced service detail: links details (evidence: `src/pages/ServicesPage.tsx`)
- Enhanced service detail → Detail page renderer: renders (evidence: `src/pages/ServiceDetailEnhancedPage.tsx`)
- Enhanced service detail → Enhanced service content: reads content (evidence: `src/pages/ServiceDetailEnhancedPage.tsx`)
- Enhanced service content → Service library: imports (evidence: `src/data/enhancedServices.ts`)
- Sub-services portal → Sub-service content: reads catalog (evidence: `src/pages/SubServicesPage.tsx`)
- Sub-services portal → Sub-service detail view: renders detail (evidence: `src/pages/SubServicesPage.tsx`)
- Sub-service detail view → Sub-service content: uses service type (evidence: `src/components/SubServiceDetailPage.tsx`)
- Shared site layout → Company content: reads content (evidence: `src/components/SiteLayout.tsx`)
- Shared site layout → Portfolio projects: reads content (evidence: `src/components/SiteLayout.tsx`)
- Shared site layout → Service library: reads catalog (evidence: `src/components/SiteLayout.tsx`)
- Shared site layout → Analytics tracking: tracks activity (evidence: `src/components/SiteLayout.tsx`)
- Prospective client → Contact routes: opens contact
- Service catalog → Language and paths: uses language (evidence: `src/pages/ServicesPage.tsx`)
- Enhanced service detail → Language and paths: uses language (evidence: `src/pages/ServiceDetailEnhancedPage.tsx`)
- Sub-services portal → Language and paths: uses language (evidence: `src/pages/SubServicesPage.tsx`)
- Sub-service detail view → Language and paths: uses language (evidence: `src/components/SubServiceDetailPage.tsx`)
- Language and paths → Localized path utilities: localizes paths (evidence: `src/hooks/useLanguage.ts`)
- Enhanced service detail → Metadata and page views: sets metadata (evidence: `src/pages/ServiceDetailEnhancedPage.tsx`)
- Sub-services portal → Metadata and page views: sets metadata (evidence: `src/pages/SubServicesPage.tsx`)
- Metadata and page views → Page SEO state: builds SEO state (evidence: `src/hooks/usePageMetadata.ts`)
- Metadata and page views → Analytics tracking: tracks page view (evidence: `src/hooks/usePageMetadata.ts`)
- Page SEO state → SEO utilities: uses SEO helpers (evidence: `src/lib/pageSeo.ts`)
- Page SEO state → Company content: reads content (evidence: `src/lib/pageSeo.ts`)
- Page SEO state → Portfolio projects: reads content (evidence: `src/lib/pageSeo.ts`)
- Page SEO state → Blog content: reads content (evidence: `src/lib/pageSeo.ts`)
- Sub-service detail view → Localized text repair: repairs copy (evidence: `src/components/SubServiceDetailPage.tsx`)
- Enhanced service detail → Localized text repair: repairs copy (evidence: `src/pages/ServiceDetailEnhancedPage.tsx`)
