# bakliounsaid/portfolio architecture

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

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

## Overview

This is a bilingual personal portfolio. Visitors browse the home-page profile sections, open project detail pages, switch language or theme, ask the profile-backed chat questions, and optionally submit a contact form to Formspree. The graph follows the documented app composition and sampled calls; PWA support is documented, but its runtime implementation was not sampled, so its connection is shown as unverified.

Main entry points: [`src/App.jsx`](https://github.com/bakliounsaid/portfolio/blob/main/src/App.jsx) (App and routes), [`src/data/profile.js`](https://github.com/bakliounsaid/portfolio/blob/main/src/data/profile.js) (Profile data), [`src/context/LanguageContext.jsx`](https://github.com/bakliounsaid/portfolio/blob/main/src/context/LanguageContext.jsx) (Language and theme), [`src/sections/Hero.jsx`](https://github.com/bakliounsaid/portfolio/blob/main/src/sections/Hero.jsx) (Hero)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and navigation"]
  node_app["App and routes<br/>[App.jsx]"]
  node_header["Header controls<br/>[Header.jsx]"]
  node_footer["Footer<br/>[Footer.jsx]"]
  node_pwa["Offline PWA"]
end

subgraph group_profile["Profile content"]
  node_profiledata["Profile data<br/>[profile.js]"]
  node_translations["Translations<br/>[translations.js]"]
end

subgraph group_experience["Portfolio sections"]
  node_hero["Hero<br/>[Hero.jsx]"]
  node_about["About<br/>[About.jsx]"]
  node_projects["Projects<br/>[Projects.jsx]"]
  node_skills["Skills<br/>[Skills.jsx]"]
  node_education["Education<br/>[Education.jsx]"]
  node_work["Experience<br/>[Experience.jsx]"]
  node_interests["Interests<br/>[Interests.jsx]"]
  node_projectdetail["Project detail"]
end

subgraph group_interaction["Interactive features"]
  node_language["Language and theme"]
  node_chat["Profile chat<br/>[ChatWidget.jsx]"]
end

subgraph group_contact["Contact flow"]
  node_contactform["Contact form<br/>[Contact.jsx]"]
  node_formspree{{"Formspree"}}
end

node_visitor(("Portfolio visitor"))

node_visitor -->|"opens"| node_app
node_app -->|"renders"| node_header
node_app -->|"renders"| node_footer
node_app -->|"routes to"| node_hero
node_app -->|"routes to"| node_about
node_app -->|"routes to"| node_projects
node_app -->|"routes to"| node_skills
node_app -->|"routes to"| node_education
node_app -->|"routes to"| node_work
node_app -->|"routes to"| node_interests
node_app -->|"routes to"| node_contactform
node_app -->|"routes to"| node_projectdetail
node_app -->|"renders"| node_chat
node_app -->|"reads"| node_profiledata
node_header -->|"updates"| node_language
node_header -->|"reads"| node_profiledata
node_language -->|"reads"| node_translations
node_hero -->|"reads"| node_profiledata
node_hero -->|"reads"| node_language
node_hero -->|"links to contact"| node_visitor
node_about -->|"reads"| node_profiledata
node_projects -->|"reads"| node_profiledata
node_projects -->|"links to"| node_projectdetail
node_skills -->|"reads"| node_profiledata
node_education -->|"reads"| node_profiledata
node_work -->|"reads"| node_profiledata
node_interests -->|"reads"| node_profiledata
node_projectdetail -->|"reads"| node_profiledata
node_projectdetail -->|"reads"| node_language
node_chat -->|"answers from"| node_profiledata
node_chat -->|"reads"| node_language
node_contactform -->|"submits to"| node_formspree
node_visitor -->|"submits message"| node_contactform
node_visitor -->|"asks questions"| node_chat
node_visitor -->|"changes preferences"| node_header
node_visitor -.->|"installs app"| node_pwa

click node_app "https://github.com/bakliounsaid/portfolio/blob/main/src/App.jsx"
click node_header "https://github.com/bakliounsaid/portfolio/blob/main/src/components/Header.jsx"
click node_footer "https://github.com/bakliounsaid/portfolio/blob/main/src/components/Footer.jsx"
click node_profiledata "https://github.com/bakliounsaid/portfolio/blob/main/src/data/profile.js"
click node_translations "https://github.com/bakliounsaid/portfolio/blob/main/src/data/translations.js"
click node_hero "https://github.com/bakliounsaid/portfolio/blob/main/src/sections/Hero.jsx"
click node_about "https://github.com/bakliounsaid/portfolio/blob/main/src/sections/About.jsx"
click node_projects "https://github.com/bakliounsaid/portfolio/blob/main/src/sections/Projects.jsx"
click node_skills "https://github.com/bakliounsaid/portfolio/blob/main/src/sections/Skills.jsx"
click node_education "https://github.com/bakliounsaid/portfolio/blob/main/src/sections/Education.jsx"
click node_work "https://github.com/bakliounsaid/portfolio/blob/main/src/sections/Experience.jsx"
click node_interests "https://github.com/bakliounsaid/portfolio/blob/main/src/sections/Interests.jsx"
click node_projectdetail "https://github.com/bakliounsaid/portfolio/blob/main/src/pages/ProjectDetailPage.jsx"
click node_language "https://github.com/bakliounsaid/portfolio/blob/main/src/context/LanguageContext.jsx"
click node_chat "https://github.com/bakliounsaid/portfolio/blob/main/src/components/ChatWidget.jsx"
click node_contactform "https://github.com/bakliounsaid/portfolio/blob/main/src/sections/Contact.jsx"
click node_pwa "https://github.com/bakliounsaid/portfolio/tree/main/src"

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_app,node_header,node_footer,node_pwa toneBlue
class node_profiledata,node_translations toneAmber
class node_hero,node_about,node_projects,node_skills,node_education,node_work,node_interests,node_projectdetail toneMint
class node_language,node_chat toneRose
class node_contactform,node_formspree,node_visitor toneIndigo
```

## Components

### App and navigation

- [App and routes](https://github.com/bakliounsaid/portfolio/blob/main/src/App.jsx): `src/App.jsx`
- [Header controls](https://github.com/bakliounsaid/portfolio/blob/main/src/components/Header.jsx): `src/components/Header.jsx`
- [Footer](https://github.com/bakliounsaid/portfolio/blob/main/src/components/Footer.jsx): `src/components/Footer.jsx`
- [Offline PWA](https://github.com/bakliounsaid/portfolio/tree/main/src): `src`

### Profile content

- [Profile data](https://github.com/bakliounsaid/portfolio/blob/main/src/data/profile.js): `src/data/profile.js`
- [Translations](https://github.com/bakliounsaid/portfolio/blob/main/src/data/translations.js): `src/data/translations.js`

### Portfolio sections

- [Hero](https://github.com/bakliounsaid/portfolio/blob/main/src/sections/Hero.jsx): `src/sections/Hero.jsx`
- [About](https://github.com/bakliounsaid/portfolio/blob/main/src/sections/About.jsx): `src/sections/About.jsx`
- [Projects](https://github.com/bakliounsaid/portfolio/blob/main/src/sections/Projects.jsx): `src/sections/Projects.jsx`
- [Skills](https://github.com/bakliounsaid/portfolio/blob/main/src/sections/Skills.jsx): `src/sections/Skills.jsx`
- [Education](https://github.com/bakliounsaid/portfolio/blob/main/src/sections/Education.jsx): `src/sections/Education.jsx`
- [Experience](https://github.com/bakliounsaid/portfolio/blob/main/src/sections/Experience.jsx): `src/sections/Experience.jsx`
- [Interests](https://github.com/bakliounsaid/portfolio/blob/main/src/sections/Interests.jsx): `src/sections/Interests.jsx`
- [Project detail](https://github.com/bakliounsaid/portfolio/blob/main/src/pages/ProjectDetailPage.jsx): `src/pages/ProjectDetailPage.jsx`

### Interactive features

- [Language and theme](https://github.com/bakliounsaid/portfolio/blob/main/src/context/LanguageContext.jsx): `src/context/LanguageContext.jsx`
- [Profile chat](https://github.com/bakliounsaid/portfolio/blob/main/src/components/ChatWidget.jsx): `src/components/ChatWidget.jsx`

### Contact flow

- [Contact form](https://github.com/bakliounsaid/portfolio/blob/main/src/sections/Contact.jsx): `src/sections/Contact.jsx`
- **Formspree**

### Other components

- **Portfolio visitor**

## Connections

- Portfolio visitor → App and routes: opens (evidence: `README.md`)
- App and routes → Header controls: renders (evidence: `src/App.jsx`)
- App and routes → Footer: renders (evidence: `src/App.jsx`)
- App and routes → Hero: routes to (evidence: `src/App.jsx`)
- App and routes → About: routes to (evidence: `src/App.jsx`)
- App and routes → Projects: routes to (evidence: `src/App.jsx`)
- App and routes → Skills: routes to (evidence: `src/App.jsx`)
- App and routes → Education: routes to (evidence: `src/App.jsx`)
- App and routes → Experience: routes to (evidence: `src/App.jsx`)
- App and routes → Interests: routes to (evidence: `src/App.jsx`)
- App and routes → Contact form: routes to (evidence: `src/App.jsx`)
- App and routes → Project detail: routes to (evidence: `src/App.jsx`)
- App and routes → Profile chat: renders (evidence: `src/App.jsx`)
- App and routes → Profile data: reads (evidence: `src/App.jsx`)
- Header controls → Language and theme: updates (evidence: `src/components/Header.jsx`)
- Header controls → Profile data: reads (evidence: `src/components/Header.jsx`)
- Language and theme → Translations: reads (evidence: `src/context/LanguageContext.jsx`)
- Hero → Profile data: reads (evidence: `src/sections/Hero.jsx`)
- Hero → Language and theme: reads (evidence: `src/sections/Hero.jsx`)
- Hero → Portfolio visitor: links to contact (evidence: `src/sections/Hero.jsx`)
- About → Profile data: reads (evidence: `src/sections/About.jsx`)
- Projects → Profile data: reads (evidence: `src/sections/Projects.jsx`)
- Projects → Project detail: links to (evidence: `src/sections/Projects.jsx`)
- Skills → Profile data: reads (evidence: `src/sections/Skills.jsx`)
- Education → Profile data: reads (evidence: `src/sections/Education.jsx`)
- Experience → Profile data: reads (evidence: `src/sections/Experience.jsx`)
- Interests → Profile data: reads (evidence: `src/sections/Interests.jsx`)
- Project detail → Profile data: reads (evidence: `src/pages/ProjectDetailPage.jsx`)
- Project detail → Language and theme: reads (evidence: `src/pages/ProjectDetailPage.jsx`)
- Profile chat → Profile data: answers from (evidence: `src/components/ChatWidget.jsx`)
- Profile chat → Language and theme: reads (evidence: `src/components/ChatWidget.jsx`)
- Contact form → Formspree: submits to (evidence: `src/sections/Contact.jsx`)
- Portfolio visitor → Contact form: submits message (evidence: `README.md`)
- Portfolio visitor → Profile chat: asks questions (evidence: `README.md`)
- Portfolio visitor → Header controls: changes preferences (evidence: `src/components/Header.jsx`)
- Portfolio visitor → Offline PWA: installs app (evidence: `README.md`)
