# hakemalshazly-cmd/portfolio-website architecture

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

- Interactive diagram: https://gitdiagram.com/hakemalshazly-cmd/portfolio-website
- Repository: https://github.com/hakemalshazly-cmd/portfolio-website

## Overview

This repository is a bilingual portfolio site for freelance video editor Abdul Hakim. A visitor enters through the routed portfolio page, explores the profile, featured work, skills, tools and editing process, then reaches contact options. Site preferences provide shared English/Arabic and light/dark state. The excerpts show the page composition and selected-work embed integration; other section internals are represented from their indexed references and names, so their internal behavior is not inferred.

Main entry points: [`src/pages/PortfolioPage.tsx`](https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/pages/PortfolioPage.tsx) (Portfolio Page), [`src/app/preferences/PreferencesContext.tsx`](https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/app/preferences/PreferencesContext.tsx) (Preference State), [`src/components/SectionFrame.tsx`](https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/components/SectionFrame.tsx) (Section Frame), [`src/sections/ContactSection.tsx`](https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/sections/ContactSection.tsx) (Contact)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Site Runtime"]
  node_entry["React Entry<br/>[main.tsx]"]
  node_router["App Router<br/>[App.tsx]"]
end

subgraph group_preferences["Site Preferences"]
  node_preferences_context["Preference State"]
end

subgraph group_portfolio["Portfolio Content"]
  node_portfolio_page["Portfolio Page<br/>[PortfolioPage.tsx]"]
  node_site_preferences["Site Navigation"]
  node_section_frame["Section Frame<br/>[SectionFrame.tsx]"]
  node_home["Home Hero<br/>[HomeSection.tsx]"]
  node_about["About<br/>[AboutSection.tsx]"]
  node_selected_work["Selected Work"]
  node_skills["Skills<br/>[SkillsSection.tsx]"]
  node_tools["Tools<br/>[ToolsSection.tsx]"]
  node_process["Editing Process<br/>[ProcessSection.tsx]"]
  node_contact["Contact<br/>[ContactSection.tsx]"]
  node_footer["Footer<br/>[FooterSection.tsx]"]
end

subgraph group_integrations["External Services"]
  node_videas["Videas Embed"]
end

node_visitor(("Visitor"))
node_browser(("Browser"))
node_local_storage[("Local Storage")]
node_contact_services["Email and WhatsApp"]

node_visitor -->|"opens site"| node_browser
node_browser -->|"loads app"| node_entry
node_entry -->|"provides state"| node_preferences_context
node_entry -->|"renders"| node_router
node_router -->|"routes to"| node_portfolio_page
node_portfolio_page -->|"renders"| node_site_preferences
node_portfolio_page -->|"renders"| node_home
node_portfolio_page -->|"renders"| node_about
node_portfolio_page -->|"renders"| node_selected_work
node_portfolio_page -->|"renders"| node_skills
node_portfolio_page -->|"renders"| node_tools
node_portfolio_page -->|"renders"| node_process
node_portfolio_page -->|"renders"| node_contact
node_portfolio_page -->|"renders"| node_footer
node_site_preferences -->|"reads and updates"| node_preferences_context
node_preferences_context -->|"reads and writes"| node_local_storage
node_home -->|"reads locale"| node_preferences_context
node_about -->|"reads locale"| node_preferences_context
node_selected_work -->|"reads locale"| node_preferences_context
node_skills -->|"reads locale"| node_preferences_context
node_tools -->|"reads locale"| node_preferences_context
node_process -->|"reads locale"| node_preferences_context
node_contact -->|"reads locale"| node_preferences_context
node_footer -->|"reads locale"| node_preferences_context
node_about -->|"renders within"| node_section_frame
node_selected_work -->|"renders within"| node_section_frame
node_skills -->|"renders within"| node_section_frame
node_process -->|"renders within"| node_section_frame
node_contact -->|"renders within"| node_section_frame
node_footer -->|"renders within"| node_section_frame
node_selected_work -.->|"loads embed"| node_videas
node_visitor -->|"selects contact option"| node_contact
node_contact -->|"opens email or WhatsApp"| node_contact_services

click node_entry "https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/main.tsx"
click node_router "https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/app/App.tsx"
click node_portfolio_page "https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/pages/PortfolioPage.tsx"
click node_site_preferences "https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/components/SitePreferences.tsx"
click node_preferences_context "https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/app/preferences/PreferencesContext.tsx"
click node_section_frame "https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/components/SectionFrame.tsx"
click node_home "https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/sections/HomeSection.tsx"
click node_about "https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/sections/AboutSection.tsx"
click node_selected_work "https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/sections/SelectedWorkSection.tsx"
click node_skills "https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/sections/SkillsSection.tsx"
click node_tools "https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/sections/ToolsSection.tsx"
click node_process "https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/sections/ProcessSection.tsx"
click node_contact "https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/sections/ContactSection.tsx"
click node_footer "https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/sections/FooterSection.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_entry,node_router,node_browser toneBlue
class node_preferences_context,node_local_storage toneAmber
class node_portfolio_page,node_site_preferences,node_section_frame,node_home,node_about,node_selected_work,node_skills,node_tools,node_process,node_contact,node_footer toneMint
class node_videas toneRose
class node_visitor,node_contact_services toneIndigo
```

## Components

### Site Runtime

- [React Entry](https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/main.tsx): `src/main.tsx`
- [App Router](https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/app/App.tsx): `src/app/App.tsx`

### Site Preferences

- [Preference State](https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/app/preferences/PreferencesContext.tsx): `src/app/preferences/PreferencesContext.tsx`

### Portfolio Content

- [Portfolio Page](https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/pages/PortfolioPage.tsx): `src/pages/PortfolioPage.tsx`
- [Site Navigation](https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/components/SitePreferences.tsx): `src/components/SitePreferences.tsx`
- [Section Frame](https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/components/SectionFrame.tsx): `src/components/SectionFrame.tsx`
- [Home Hero](https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/sections/HomeSection.tsx): `src/sections/HomeSection.tsx`
- [About](https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/sections/AboutSection.tsx): `src/sections/AboutSection.tsx`
- [Selected Work](https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/sections/SelectedWorkSection.tsx): `src/sections/SelectedWorkSection.tsx`
- [Skills](https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/sections/SkillsSection.tsx): `src/sections/SkillsSection.tsx`
- [Tools](https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/sections/ToolsSection.tsx): `src/sections/ToolsSection.tsx`
- [Editing Process](https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/sections/ProcessSection.tsx): `src/sections/ProcessSection.tsx`
- [Contact](https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/sections/ContactSection.tsx): `src/sections/ContactSection.tsx`
- [Footer](https://github.com/hakemalshazly-cmd/portfolio-website/blob/main/src/sections/FooterSection.tsx): `src/sections/FooterSection.tsx`

### External Services

- **Videas Embed**

### Other components

- **Visitor**
- **Browser**
- **Local Storage**
- **Email and WhatsApp**

## Connections

- Visitor → Browser: opens site
- Browser → React Entry: loads app
- React Entry → Preference State: provides state (evidence: `src/main.tsx`)
- React Entry → App Router: renders (evidence: `src/main.tsx`)
- App Router → Portfolio Page: routes to (evidence: `src/app/App.tsx`)
- Portfolio Page → Site Navigation: renders (evidence: `src/pages/PortfolioPage.tsx`)
- Portfolio Page → Home Hero: renders (evidence: `src/pages/PortfolioPage.tsx`)
- Portfolio Page → About: renders (evidence: `src/pages/PortfolioPage.tsx`)
- Portfolio Page → Selected Work: renders (evidence: `src/pages/PortfolioPage.tsx`)
- Portfolio Page → Skills: renders (evidence: `src/pages/PortfolioPage.tsx`)
- Portfolio Page → Tools: renders (evidence: `src/pages/PortfolioPage.tsx`)
- Portfolio Page → Editing Process: renders (evidence: `src/pages/PortfolioPage.tsx`)
- Portfolio Page → Contact: renders (evidence: `src/pages/PortfolioPage.tsx`)
- Portfolio Page → Footer: renders (evidence: `src/pages/PortfolioPage.tsx`)
- Site Navigation → Preference State: reads and updates (evidence: `src/components/SitePreferences.tsx`)
- Preference State → Local Storage: reads and writes (evidence: `src/app/preferences/PreferencesContext.tsx`)
- Home Hero → Preference State: reads locale (evidence: `src/sections/HomeSection.tsx`)
- About → Preference State: reads locale (evidence: `src/sections/AboutSection.tsx`)
- Selected Work → Preference State: reads locale (evidence: `src/sections/SelectedWorkSection.tsx`)
- Skills → Preference State: reads locale (evidence: `src/sections/SkillsSection.tsx`)
- Tools → Preference State: reads locale (evidence: `src/sections/ToolsSection.tsx`)
- Editing Process → Preference State: reads locale (evidence: `src/sections/ProcessSection.tsx`)
- Contact → Preference State: reads locale (evidence: `src/sections/ContactSection.tsx`)
- Footer → Preference State: reads locale (evidence: `src/sections/FooterSection.tsx`)
- About → Section Frame: renders within (evidence: `src/sections/AboutSection.tsx`)
- Selected Work → Section Frame: renders within (evidence: `src/sections/SelectedWorkSection.tsx`)
- Skills → Section Frame: renders within (evidence: `src/sections/SkillsSection.tsx`)
- Editing Process → Section Frame: renders within (evidence: `src/sections/ProcessSection.tsx`)
- Contact → Section Frame: renders within (evidence: `src/sections/ContactSection.tsx`)
- Footer → Section Frame: renders within (evidence: `src/sections/FooterSection.tsx`)
- Selected Work → Videas Embed: loads embed (evidence: `src/sections/SelectedWorkSection.tsx`)
- Visitor → Contact: selects contact option (evidence: `src/sections/ContactSection.tsx`)
- Contact → Email and WhatsApp: opens email or WhatsApp (evidence: `src/sections/ContactSection.tsx`)
