# massabtw/portfolio-irala architecture

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

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

## Overview

This is a bilingual personal-design portfolio site. A visitor browses the landing page and project grid, filters projects, opens a project modal and gallery, then can contact the designer or view a résumé. The page also presents the designer’s story, profile, and services. App.tsx composes the experience; shared language and smooth-scroll providers supply cross-cutting behavior. Project and translation data are local TypeScript modules, while project images and résumé PDFs are static public assets. Connections among unsampled components are included only where the SOURCE INDEX or excerpts establish them.

Main entry points: [`src/App.tsx`](https://github.com/massabtw/portfolio-irala/blob/main/src/App.tsx) (App composition), [`src/data/translations.ts`](https://github.com/massabtw/portfolio-irala/blob/main/src/data/translations.ts) (Translations), [`src/context/SmoothScrollContext.tsx`](https://github.com/massabtw/portfolio-irala/blob/main/src/context/SmoothScrollContext.tsx) (Smooth scroll), [`src/components/Navbar.tsx`](https://github.com/massabtw/portfolio-irala/blob/main/src/components/Navbar.tsx) (Navigation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_composition["Page composition"]
  node_entry["React entry<br/>[main.tsx]"]
  node_app["App composition<br/>[App.tsx]"]
end

subgraph group_portfolio["Portfolio experience"]
  node_navbar["Navigation<br/>[Navbar.tsx]"]
  node_hero["Hero section<br/>[Hero.tsx]"]
  node_projects["Project grid<br/>[ProjectsGrid.tsx]"]
  node_modal["Project gallery<br/>[ProjectModal.tsx]"]
  node_story["Parallax story<br/>[ParallaxStory.tsx]"]
  node_about["About section<br/>[About.tsx]"]
  node_toolkit["Services section<br/>[Toolkit.tsx]"]
  node_footer["Contact footer<br/>[Footer.tsx]"]
  node_theme["Theme toggle<br/>[ThemeToggle.tsx]"]
  node_reveal["Reveal animation<br/>[Reveal.tsx]"]
end

subgraph group_shared["Shared state"]
  node_language["Language provider"]
  node_scroll["Smooth scroll"]
end

subgraph group_content["Portfolio content"]
  node_projectsdata["Project catalog<br/>[projects.ts]"]
  node_translations["Translations<br/>[translations.ts]"]
end

node_visitor(("Visitor"))
node_lenis["Lenis scrolling"]
node_browser[("Browser storage")]

node_visitor -->|"opens site"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"renders"| node_navbar
node_app -->|"renders"| node_hero
node_app -->|"renders"| node_projects
node_app -->|"renders"| node_modal
node_app -->|"renders"| node_story
node_app -->|"renders"| node_about
node_app -->|"renders"| node_toolkit
node_app -->|"renders"| node_footer
node_navbar -->|"renders"| node_theme
node_app -->|"reads selection"| node_projectsdata
node_projects -->|"filters catalog"| node_projectsdata
node_modal -->|"reads gallery"| node_projectsdata
node_footer -->|"reads profile"| node_projectsdata
node_app -->|"provides language"| node_language
node_app -->|"provides scrolling"| node_scroll
node_app -->|"selects strings"| node_translations
node_navbar -->|"reads language"| node_language
node_hero -->|"reads language"| node_language
node_projects -->|"reads labels"| node_translations
node_modal -->|"reads details"| node_translations
node_story -->|"reads story"| node_translations
node_about -->|"reads copy"| node_translations
node_toolkit -->|"reads services"| node_translations
node_footer -->|"reads labels"| node_translations
node_navbar -->|"controls scrolling"| node_scroll
node_modal -->|"controls scrolling"| node_scroll
node_footer -->|"requests scroll"| node_scroll
node_scroll -->|"drives scrolling"| node_lenis
node_language -->|"persists language"| node_browser

click node_entry "https://github.com/massabtw/portfolio-irala/blob/main/src/main.tsx"
click node_app "https://github.com/massabtw/portfolio-irala/blob/main/src/App.tsx"
click node_navbar "https://github.com/massabtw/portfolio-irala/blob/main/src/components/Navbar.tsx"
click node_hero "https://github.com/massabtw/portfolio-irala/blob/main/src/components/Hero.tsx"
click node_projects "https://github.com/massabtw/portfolio-irala/blob/main/src/components/ProjectsGrid.tsx"
click node_modal "https://github.com/massabtw/portfolio-irala/blob/main/src/components/ProjectModal.tsx"
click node_story "https://github.com/massabtw/portfolio-irala/blob/main/src/components/ParallaxStory.tsx"
click node_about "https://github.com/massabtw/portfolio-irala/blob/main/src/components/About.tsx"
click node_toolkit "https://github.com/massabtw/portfolio-irala/blob/main/src/components/Toolkit.tsx"
click node_footer "https://github.com/massabtw/portfolio-irala/blob/main/src/components/Footer.tsx"
click node_theme "https://github.com/massabtw/portfolio-irala/blob/main/src/components/ThemeToggle.tsx"
click node_reveal "https://github.com/massabtw/portfolio-irala/blob/main/src/components/Reveal.tsx"
click node_language "https://github.com/massabtw/portfolio-irala/blob/main/src/context/LanguageContext.tsx"
click node_scroll "https://github.com/massabtw/portfolio-irala/blob/main/src/context/SmoothScrollContext.tsx"
click node_projectsdata "https://github.com/massabtw/portfolio-irala/blob/main/src/data/projects.ts"
click node_translations "https://github.com/massabtw/portfolio-irala/blob/main/src/data/translations.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_entry,node_app toneBlue
class node_navbar,node_hero,node_projects,node_modal,node_story,node_about,node_toolkit,node_footer,node_theme,node_reveal,node_browser toneAmber
class node_language,node_scroll toneMint
class node_projectsdata,node_translations toneRose
class node_visitor,node_lenis toneIndigo
```

## Components

### Page composition

- [React entry](https://github.com/massabtw/portfolio-irala/blob/main/src/main.tsx): `src/main.tsx`
- [App composition](https://github.com/massabtw/portfolio-irala/blob/main/src/App.tsx): `src/App.tsx`

### Portfolio experience

- [Navigation](https://github.com/massabtw/portfolio-irala/blob/main/src/components/Navbar.tsx): `src/components/Navbar.tsx`
- [Hero section](https://github.com/massabtw/portfolio-irala/blob/main/src/components/Hero.tsx): `src/components/Hero.tsx`
- [Project grid](https://github.com/massabtw/portfolio-irala/blob/main/src/components/ProjectsGrid.tsx): `src/components/ProjectsGrid.tsx`
- [Project gallery](https://github.com/massabtw/portfolio-irala/blob/main/src/components/ProjectModal.tsx): `src/components/ProjectModal.tsx`
- [Parallax story](https://github.com/massabtw/portfolio-irala/blob/main/src/components/ParallaxStory.tsx): `src/components/ParallaxStory.tsx`
- [About section](https://github.com/massabtw/portfolio-irala/blob/main/src/components/About.tsx): `src/components/About.tsx`
- [Services section](https://github.com/massabtw/portfolio-irala/blob/main/src/components/Toolkit.tsx): `src/components/Toolkit.tsx`
- [Contact footer](https://github.com/massabtw/portfolio-irala/blob/main/src/components/Footer.tsx): `src/components/Footer.tsx`
- [Theme toggle](https://github.com/massabtw/portfolio-irala/blob/main/src/components/ThemeToggle.tsx): `src/components/ThemeToggle.tsx`
- [Reveal animation](https://github.com/massabtw/portfolio-irala/blob/main/src/components/Reveal.tsx): `src/components/Reveal.tsx`

### Shared state

- [Language provider](https://github.com/massabtw/portfolio-irala/blob/main/src/context/LanguageContext.tsx): `src/context/LanguageContext.tsx`
- [Smooth scroll](https://github.com/massabtw/portfolio-irala/blob/main/src/context/SmoothScrollContext.tsx): `src/context/SmoothScrollContext.tsx`

### Portfolio content

- [Project catalog](https://github.com/massabtw/portfolio-irala/blob/main/src/data/projects.ts): `src/data/projects.ts`
- [Translations](https://github.com/massabtw/portfolio-irala/blob/main/src/data/translations.ts): `src/data/translations.ts`

### Other components

- **Visitor**
- **Lenis scrolling**
- **Browser storage**

## Connections

- Visitor → React entry: opens site (evidence: `src/main.tsx`)
- React entry → App composition: renders (evidence: `src/main.tsx`)
- App composition → Navigation: renders (evidence: `src/App.tsx`)
- App composition → Hero section: renders (evidence: `src/App.tsx`)
- App composition → Project grid: renders (evidence: `src/App.tsx`)
- App composition → Project gallery: renders (evidence: `src/App.tsx`)
- App composition → Parallax story: renders (evidence: `src/App.tsx`)
- App composition → About section: renders (evidence: `src/App.tsx`)
- App composition → Services section: renders (evidence: `src/App.tsx`)
- App composition → Contact footer: renders (evidence: `src/App.tsx`)
- Navigation → Theme toggle: renders (evidence: `src/components/Navbar.tsx`)
- App composition → Project catalog: reads selection (evidence: `src/App.tsx`)
- Project grid → Project catalog: filters catalog (evidence: `src/components/ProjectsGrid.tsx`)
- Project gallery → Project catalog: reads gallery (evidence: `src/components/ProjectModal.tsx`)
- Contact footer → Project catalog: reads profile (evidence: `src/components/Footer.tsx`)
- App composition → Language provider: provides language (evidence: `src/App.tsx`)
- App composition → Smooth scroll: provides scrolling (evidence: `src/App.tsx`)
- App composition → Translations: selects strings (evidence: `src/App.tsx`)
- Navigation → Language provider: reads language (evidence: `src/components/Navbar.tsx`)
- Hero section → Language provider: reads language (evidence: `src/components/Hero.tsx`)
- Project grid → Translations: reads labels (evidence: `src/components/ProjectsGrid.tsx`)
- Project gallery → Translations: reads details (evidence: `src/components/ProjectModal.tsx`)
- Parallax story → Translations: reads story (evidence: `src/components/ParallaxStory.tsx`)
- About section → Translations: reads copy (evidence: `src/components/About.tsx`)
- Services section → Translations: reads services (evidence: `src/components/Toolkit.tsx`)
- Contact footer → Translations: reads labels (evidence: `src/components/Footer.tsx`)
- Navigation → Smooth scroll: controls scrolling (evidence: `src/components/Navbar.tsx`)
- Project gallery → Smooth scroll: controls scrolling (evidence: `src/components/ProjectModal.tsx`)
- Contact footer → Smooth scroll: requests scroll (evidence: `src/components/Footer.tsx`)
- Smooth scroll → Lenis scrolling: drives scrolling (evidence: `src/context/SmoothScrollContext.tsx`)
- Language provider → Browser storage: persists language (evidence: `src/context/LanguageContext.tsx`)
