# mr-sari/portfolio architecture

> Architecture diagram of the GitHub repository mr-sari/portfolio, 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/mr-sari/portfolio
- Repository: https://github.com/mr-sari/portfolio

## Overview

This is a bilingual React portfolio and interactive résumé. Visitors navigate a single-page sequence of profile, career, project, skills, education, certification, and contact sections; project cases expand into a detail modal, and the contact form validates before using a configured provider or opening an email draft. The graph reflects documented composition and sampled imports; unsampled section internals are represented at component level, and optional contact providers are documented rather than source-verified here.

Main entry points: [`src/App.tsx`](https://github.com/mr-sari/portfolio/blob/main/src/App.tsx) (Page composition), [`src/components/Projects.tsx`](https://github.com/mr-sari/portfolio/blob/main/src/components/Projects.tsx) (Project explorer), [`src/i18n/LanguageProvider.tsx`](https://github.com/mr-sari/portfolio/blob/main/src/i18n/LanguageProvider.tsx) (Locale provider), [`src/components/Contact.tsx`](https://github.com/mr-sari/portfolio/blob/main/src/components/Contact.tsx) (Contact section)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Portfolio sections"]
  node_hero["Profile hero<br/>[Hero.tsx]"]
  node_about["About<br/>[About.tsx]"]
  node_experience_section["Career timeline<br/>[Experience.tsx]"]
  node_projects["Project explorer<br/>[Projects.tsx]"]
  node_project_card["Project card<br/>[ProjectCard.tsx]"]
  node_project_visual["Project visual<br/>[ProjectVisual.tsx]"]
  node_project_modal["Case study modal<br/>[ProjectModal.tsx]"]
  node_skills["Skills<br/>[Skills.tsx]"]
  node_education["Education<br/>[Education.tsx]"]
  node_certifications["Certifications<br/>[Certifications.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
end

subgraph group_interaction["Navigation and preferences"]
  node_app["Page composition<br/>[App.tsx]"]
  node_navbar["Navigation bar<br/>[Navbar.tsx]"]
  node_scroll_chrome["Scroll controls<br/>[ScrollChrome.tsx]"]
  node_language_toggle["Language toggle<br/>[LanguageToggle.tsx]"]
  node_theme_toggle["Theme toggle<br/>[ThemeToggle.tsx]"]
  node_theme_state["Theme state<br/>[useTheme.tsx]"]
end

subgraph group_content["Bilingual content"]
  node_language_provider["Locale provider"]
  node_content_data["Portfolio data<br/>[content.ts]"]
  node_content_model["Content localization<br/>[types.ts]"]
end

subgraph group_shared["Shared presentation"]
  node_ui["Shared UI and motion"]
  node_icons["Icon registry<br/>[icons.tsx]"]
end

subgraph group_contact["Contact"]
  node_contact_section["Contact section<br/>[Contact.tsx]"]
  node_contact_logic["Form validation and delivery<br/>[contact.ts]"]
end

node_visitor(("Visitor"))
node_formspree{{"Formspree"}}
node_emailjs{{"EmailJS"}}
node_mail_app(("Visitor email app"))

node_visitor -->|"opens"| node_app
node_app -->|"renders"| node_hero
node_app -->|"renders"| node_about
node_app -->|"renders"| node_experience_section
node_app -->|"renders"| node_projects
node_app -->|"renders"| node_skills
node_app -->|"renders"| node_education
node_app -->|"renders"| node_certifications
node_app -->|"renders"| node_contact_section
node_app -->|"renders"| node_footer
node_app -->|"renders"| node_navbar
node_app -->|"renders"| node_scroll_chrome
node_projects -->|"renders"| node_project_card
node_projects -->|"renders"| node_project_visual
node_projects -->|"opens"| node_project_modal
node_project_modal -->|"uses"| node_project_card
node_project_modal -->|"renders"| node_project_visual
node_navbar -->|"renders"| node_language_toggle
node_navbar -->|"renders"| node_theme_toggle
node_theme_toggle -->|"reads and updates"| node_theme_state
node_language_provider -->|"localizes"| node_content_data
node_language_provider -->|"calls"| node_content_model
node_hero -->|"reads locale data"| node_language_provider
node_experience_section -->|"reads locale data"| node_language_provider
node_projects -->|"reads locale data"| node_language_provider
node_contact_section -->|"submits form"| node_contact_logic
node_contact_logic -.->|"submits to"| node_formspree
node_contact_logic -.->|"submits to"| node_emailjs
node_contact_logic -.->|"opens draft"| node_mail_app
node_hero -->|"uses"| node_ui
node_projects -->|"uses"| node_ui
node_contact_section -->|"uses"| node_ui
node_skills -->|"renders icons"| node_icons
node_contact_section -->|"renders icons"| node_icons

click node_app "https://github.com/mr-sari/portfolio/blob/main/src/App.tsx"
click node_hero "https://github.com/mr-sari/portfolio/blob/main/src/components/Hero.tsx"
click node_about "https://github.com/mr-sari/portfolio/blob/main/src/components/About.tsx"
click node_experience_section "https://github.com/mr-sari/portfolio/blob/main/src/components/Experience.tsx"
click node_projects "https://github.com/mr-sari/portfolio/blob/main/src/components/Projects.tsx"
click node_project_card "https://github.com/mr-sari/portfolio/blob/main/src/components/ProjectCard.tsx"
click node_project_visual "https://github.com/mr-sari/portfolio/blob/main/src/components/ProjectVisual.tsx"
click node_project_modal "https://github.com/mr-sari/portfolio/blob/main/src/components/ProjectModal.tsx"
click node_skills "https://github.com/mr-sari/portfolio/blob/main/src/components/Skills.tsx"
click node_education "https://github.com/mr-sari/portfolio/blob/main/src/components/Education.tsx"
click node_certifications "https://github.com/mr-sari/portfolio/blob/main/src/components/Certifications.tsx"
click node_contact_section "https://github.com/mr-sari/portfolio/blob/main/src/components/Contact.tsx"
click node_footer "https://github.com/mr-sari/portfolio/blob/main/src/components/Footer.tsx"
click node_navbar "https://github.com/mr-sari/portfolio/blob/main/src/components/Navbar.tsx"
click node_scroll_chrome "https://github.com/mr-sari/portfolio/blob/main/src/components/ScrollChrome.tsx"
click node_language_toggle "https://github.com/mr-sari/portfolio/blob/main/src/components/LanguageToggle.tsx"
click node_theme_toggle "https://github.com/mr-sari/portfolio/blob/main/src/components/ThemeToggle.tsx"
click node_language_provider "https://github.com/mr-sari/portfolio/blob/main/src/i18n/LanguageProvider.tsx"
click node_content_data "https://github.com/mr-sari/portfolio/blob/main/src/data/content.ts"
click node_content_model "https://github.com/mr-sari/portfolio/blob/main/src/data/types.ts"
click node_ui "https://github.com/mr-sari/portfolio/tree/main/src/components/ui"
click node_icons "https://github.com/mr-sari/portfolio/blob/main/src/lib/icons.tsx"
click node_theme_state "https://github.com/mr-sari/portfolio/blob/main/src/hooks/useTheme.tsx"
click node_contact_logic "https://github.com/mr-sari/portfolio/blob/main/src/lib/contact.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_hero,node_about,node_experience_section,node_projects,node_project_card,node_project_visual,node_project_modal,node_skills,node_education,node_certifications,node_footer toneBlue
class node_app,node_navbar,node_scroll_chrome,node_language_toggle,node_theme_toggle,node_theme_state toneAmber
class node_language_provider,node_content_data,node_content_model toneMint
class node_ui,node_icons toneRose
class node_contact_section,node_contact_logic,node_visitor,node_formspree,node_emailjs,node_mail_app toneIndigo
```

## Components

### Portfolio sections

- [Profile hero](https://github.com/mr-sari/portfolio/blob/main/src/components/Hero.tsx): `src/components/Hero.tsx`
- [About](https://github.com/mr-sari/portfolio/blob/main/src/components/About.tsx): `src/components/About.tsx`
- [Career timeline](https://github.com/mr-sari/portfolio/blob/main/src/components/Experience.tsx): `src/components/Experience.tsx`
- [Project explorer](https://github.com/mr-sari/portfolio/blob/main/src/components/Projects.tsx): `src/components/Projects.tsx`
- [Project card](https://github.com/mr-sari/portfolio/blob/main/src/components/ProjectCard.tsx): `src/components/ProjectCard.tsx`
- [Project visual](https://github.com/mr-sari/portfolio/blob/main/src/components/ProjectVisual.tsx): `src/components/ProjectVisual.tsx`
- [Case study modal](https://github.com/mr-sari/portfolio/blob/main/src/components/ProjectModal.tsx): `src/components/ProjectModal.tsx`
- [Skills](https://github.com/mr-sari/portfolio/blob/main/src/components/Skills.tsx): `src/components/Skills.tsx`
- [Education](https://github.com/mr-sari/portfolio/blob/main/src/components/Education.tsx): `src/components/Education.tsx`
- [Certifications](https://github.com/mr-sari/portfolio/blob/main/src/components/Certifications.tsx): `src/components/Certifications.tsx`
- [Footer](https://github.com/mr-sari/portfolio/blob/main/src/components/Footer.tsx): `src/components/Footer.tsx`

### Navigation and preferences

- [Page composition](https://github.com/mr-sari/portfolio/blob/main/src/App.tsx): `src/App.tsx`
- [Navigation bar](https://github.com/mr-sari/portfolio/blob/main/src/components/Navbar.tsx): `src/components/Navbar.tsx`
- [Scroll controls](https://github.com/mr-sari/portfolio/blob/main/src/components/ScrollChrome.tsx): `src/components/ScrollChrome.tsx`
- [Language toggle](https://github.com/mr-sari/portfolio/blob/main/src/components/LanguageToggle.tsx): `src/components/LanguageToggle.tsx`
- [Theme toggle](https://github.com/mr-sari/portfolio/blob/main/src/components/ThemeToggle.tsx): `src/components/ThemeToggle.tsx`
- [Theme state](https://github.com/mr-sari/portfolio/blob/main/src/hooks/useTheme.tsx): `src/hooks/useTheme.tsx`

### Bilingual content

- [Locale provider](https://github.com/mr-sari/portfolio/blob/main/src/i18n/LanguageProvider.tsx): `src/i18n/LanguageProvider.tsx`
- [Portfolio data](https://github.com/mr-sari/portfolio/blob/main/src/data/content.ts): `src/data/content.ts`
- [Content localization](https://github.com/mr-sari/portfolio/blob/main/src/data/types.ts): `src/data/types.ts`

### Shared presentation

- [Shared UI and motion](https://github.com/mr-sari/portfolio/tree/main/src/components/ui): `src/components/ui`
- [Icon registry](https://github.com/mr-sari/portfolio/blob/main/src/lib/icons.tsx): `src/lib/icons.tsx`

### Contact

- [Contact section](https://github.com/mr-sari/portfolio/blob/main/src/components/Contact.tsx): `src/components/Contact.tsx`
- [Form validation and delivery](https://github.com/mr-sari/portfolio/blob/main/src/lib/contact.ts): `src/lib/contact.ts`

### Other components

- **Visitor**
- **Formspree**
- **EmailJS**
- **Visitor email app**

## Connections

- Visitor → Page composition: opens
- Page composition → Profile hero: renders (evidence: `src/App.tsx`)
- Page composition → About: renders (evidence: `src/App.tsx`)
- Page composition → Career timeline: renders (evidence: `src/App.tsx`)
- Page composition → Project explorer: renders (evidence: `src/App.tsx`)
- Page composition → Skills: renders (evidence: `src/App.tsx`)
- Page composition → Education: renders (evidence: `src/App.tsx`)
- Page composition → Certifications: renders (evidence: `src/App.tsx`)
- Page composition → Contact section: renders (evidence: `src/App.tsx`)
- Page composition → Footer: renders (evidence: `src/App.tsx`)
- Page composition → Navigation bar: renders (evidence: `src/App.tsx`)
- Page composition → Scroll controls: renders (evidence: `src/App.tsx`)
- Project explorer → Project card: renders (evidence: `src/components/Projects.tsx`)
- Project explorer → Project visual: renders (evidence: `src/components/Projects.tsx`)
- Project explorer → Case study modal: opens (evidence: `src/components/Projects.tsx`)
- Case study modal → Project card: uses (evidence: `src/components/ProjectModal.tsx`)
- Case study modal → Project visual: renders (evidence: `src/components/ProjectModal.tsx`)
- Navigation bar → Language toggle: renders (evidence: `src/components/Navbar.tsx`)
- Navigation bar → Theme toggle: renders (evidence: `src/components/Navbar.tsx`)
- Theme toggle → Theme state: reads and updates (evidence: `src/components/ThemeToggle.tsx`)
- Locale provider → Portfolio data: localizes (evidence: `src/i18n/LanguageProvider.tsx`)
- Locale provider → Content localization: calls (evidence: `src/i18n/LanguageProvider.tsx`)
- Profile hero → Locale provider: reads locale data (evidence: `src/components/Hero.tsx`)
- Career timeline → Locale provider: reads locale data (evidence: `src/components/Experience.tsx`)
- Project explorer → Locale provider: reads locale data (evidence: `src/components/Projects.tsx`)
- Contact section → Form validation and delivery: submits form (evidence: `src/components/Contact.tsx`)
- Form validation and delivery → Formspree: submits to
- Form validation and delivery → EmailJS: submits to
- Form validation and delivery → Visitor email app: opens draft
- Profile hero → Shared UI and motion: uses (evidence: `src/components/Hero.tsx`)
- Project explorer → Shared UI and motion: uses (evidence: `src/components/Projects.tsx`)
- Contact section → Shared UI and motion: uses (evidence: `src/components/Contact.tsx`)
- Skills → Icon registry: renders icons (evidence: `src/components/Skills.tsx`)
- Contact section → Icon registry: renders icons (evidence: `src/components/Contact.tsx`)
