# ahmad1bakran/portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/ahmad1bakran/portfolio
- Repository: https://github.com/ahmad1bakran/portfolio

## Overview

This is a bilingual personal portfolio built with Next.js. Visitors browse a localized home page covering the profile, skills, experience, achievements, projects, and contact details, or open the dedicated projects page; navigation supports switching between Arabic and English. The graph separates route rendering, shared interface behavior, and the portfolio content model. Source excerpts show the main page and project-page composition; unsampled route behavior and visual styling details are not expanded.

Main entry points: [`src/app/[lang]/page.tsx`](https://github.com/ahmad1bakran/portfolio/blob/main/src/app/%5Blang%5D/page.tsx) (Home sections), [`src/app/[lang]/projects/page.tsx`](https://github.com/ahmad1bakran/portfolio/blob/main/src/app/%5Blang%5D/projects/page.tsx) (Projects page), [`src/app/components/LanguageContext.tsx`](https://github.com/ahmad1bakran/portfolio/blob/main/src/app/components/LanguageContext.tsx) (Language state), [`src/app/components/Nav.tsx`](https://github.com/ahmad1bakran/portfolio/blob/main/src/app/components/Nav.tsx) (Site navigation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routes["Localized routes"]
  node_home["Home sections<br/>[page.tsx]"]
  node_projects["Projects page<br/>[page.tsx]"]
  node_lang_route["Language route<br/>[layout.tsx]"]
end

subgraph group_content["Portfolio content"]
  node_portfolio_data["Bilingual content<br/>[data.ts]"]
end

subgraph group_shared["Shared interface"]
  node_language_context["Language state"]
  node_navigation["Site navigation<br/>[Nav.tsx]"]
  node_footer["Site footer<br/>[Footer.tsx]"]
  node_skill_icons["Skill icons<br/>[SkillIcon.tsx]"]
  node_asset_urls["Asset URL helper<br/>[utils.ts]"]
end

subgraph group_shell["Application shell"]
  node_root_layout["Root layout<br/>[layout.tsx]"]
  node_navigation_progress["Navigation progress"]
end

node_visitor(("Portfolio visitor"))

node_visitor -->|"browses"| node_home
node_visitor -->|"opens projects"| node_projects
node_lang_route -->|"provides language"| node_language_context
node_home -->|"reads language"| node_language_context
node_home -->|"reads content"| node_portfolio_data
node_home -->|"renders"| node_navigation
node_home -->|"renders"| node_footer
node_home -->|"renders"| node_skill_icons
node_home -->|"gets asset URL"| node_asset_urls
node_projects -->|"reads language"| node_language_context
node_projects -->|"reads content"| node_portfolio_data
node_projects -->|"renders"| node_navigation
node_projects -->|"renders"| node_footer
node_navigation -->|"reads and toggles"| node_language_context
node_navigation -->|"reads labels"| node_portfolio_data
node_footer -->|"reads language"| node_language_context
node_footer -->|"reads name"| node_portfolio_data
node_root_layout -->|"renders"| node_navigation_progress

click node_home "https://github.com/ahmad1bakran/portfolio/blob/main/src/app/%5Blang%5D/page.tsx"
click node_projects "https://github.com/ahmad1bakran/portfolio/blob/main/src/app/%5Blang%5D/projects/page.tsx"
click node_lang_route "https://github.com/ahmad1bakran/portfolio/blob/main/src/app/%5Blang%5D/layout.tsx"
click node_portfolio_data "https://github.com/ahmad1bakran/portfolio/blob/main/src/app/lib/data.ts"
click node_language_context "https://github.com/ahmad1bakran/portfolio/blob/main/src/app/components/LanguageContext.tsx"
click node_navigation "https://github.com/ahmad1bakran/portfolio/blob/main/src/app/components/Nav.tsx"
click node_footer "https://github.com/ahmad1bakran/portfolio/blob/main/src/app/components/Footer.tsx"
click node_skill_icons "https://github.com/ahmad1bakran/portfolio/blob/main/src/app/components/SkillIcon.tsx"
click node_asset_urls "https://github.com/ahmad1bakran/portfolio/blob/main/src/app/lib/utils.ts"
click node_root_layout "https://github.com/ahmad1bakran/portfolio/blob/main/src/app/layout.tsx"
click node_navigation_progress "https://github.com/ahmad1bakran/portfolio/blob/main/src/app/components/NavigationProgress.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_home,node_projects,node_lang_route toneBlue
class node_portfolio_data toneAmber
class node_language_context,node_navigation,node_footer,node_skill_icons,node_asset_urls toneMint
class node_root_layout,node_navigation_progress toneRose
class node_visitor toneIndigo
```

## Components

### Localized routes

- [Home sections](https://github.com/ahmad1bakran/portfolio/blob/main/src/app/%5Blang%5D/page.tsx): `src/app/[lang]/page.tsx`
- [Projects page](https://github.com/ahmad1bakran/portfolio/blob/main/src/app/%5Blang%5D/projects/page.tsx): `src/app/[lang]/projects/page.tsx`
- [Language route](https://github.com/ahmad1bakran/portfolio/blob/main/src/app/%5Blang%5D/layout.tsx): `src/app/[lang]/layout.tsx`

### Portfolio content

- [Bilingual content](https://github.com/ahmad1bakran/portfolio/blob/main/src/app/lib/data.ts): `src/app/lib/data.ts`

### Shared interface

- [Language state](https://github.com/ahmad1bakran/portfolio/blob/main/src/app/components/LanguageContext.tsx): `src/app/components/LanguageContext.tsx`
- [Site navigation](https://github.com/ahmad1bakran/portfolio/blob/main/src/app/components/Nav.tsx): `src/app/components/Nav.tsx`
- [Site footer](https://github.com/ahmad1bakran/portfolio/blob/main/src/app/components/Footer.tsx): `src/app/components/Footer.tsx`
- [Skill icons](https://github.com/ahmad1bakran/portfolio/blob/main/src/app/components/SkillIcon.tsx): `src/app/components/SkillIcon.tsx`
- [Asset URL helper](https://github.com/ahmad1bakran/portfolio/blob/main/src/app/lib/utils.ts): `src/app/lib/utils.ts`

### Application shell

- [Root layout](https://github.com/ahmad1bakran/portfolio/blob/main/src/app/layout.tsx): `src/app/layout.tsx`
- [Navigation progress](https://github.com/ahmad1bakran/portfolio/blob/main/src/app/components/NavigationProgress.tsx): `src/app/components/NavigationProgress.tsx`

### Other components

- **Portfolio visitor**

## Connections

- Portfolio visitor → Home sections: browses (evidence: `README.md`)
- Portfolio visitor → Projects page: opens projects
- Language route → Language state: provides language (evidence: `src/app/[lang]/layout.tsx`)
- Home sections → Language state: reads language (evidence: `src/app/[lang]/page.tsx`)
- Home sections → Bilingual content: reads content (evidence: `src/app/[lang]/page.tsx`)
- Home sections → Site navigation: renders (evidence: `src/app/[lang]/page.tsx`)
- Home sections → Site footer: renders (evidence: `src/app/[lang]/page.tsx`)
- Home sections → Skill icons: renders (evidence: `src/app/[lang]/page.tsx`)
- Home sections → Asset URL helper: gets asset URL (evidence: `src/app/[lang]/page.tsx`)
- Projects page → Language state: reads language (evidence: `src/app/[lang]/projects/page.tsx`)
- Projects page → Bilingual content: reads content (evidence: `src/app/[lang]/projects/page.tsx`)
- Projects page → Site navigation: renders (evidence: `src/app/[lang]/projects/page.tsx`)
- Projects page → Site footer: renders (evidence: `src/app/[lang]/projects/page.tsx`)
- Site navigation → Language state: reads and toggles (evidence: `src/app/components/Nav.tsx`)
- Site navigation → Bilingual content: reads labels (evidence: `src/app/components/Nav.tsx`)
- Site footer → Language state: reads language (evidence: `src/app/components/Footer.tsx`)
- Site footer → Bilingual content: reads name (evidence: `src/app/components/Footer.tsx`)
- Root layout → Navigation progress: renders (evidence: `src/app/layout.tsx`)
