# hadamas/portfolio architecture

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

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

## Overview

This repository is a React portfolio site. Visitors browse an introductory profile, biography and skills, project showcase, and contact information; the header and navigation support section changes, language, theme, and sound preferences. App composes the page and its context providers, while SectionStack selects the principal content sections. The graph preserves those distinct stages and the shared translation and preference layers. Several section and provider implementations were not excerpted, so their internal behavior and unshown connections are not inferred.

Main entry points: [`src/App.jsx`](https://github.com/hadamas/portfolio/blob/main/src/App.jsx) (Portfolio app), [`src/components/layout/SectionStack/SectionStack.jsx`](https://github.com/hadamas/portfolio/blob/main/src/components/layout/SectionStack/SectionStack.jsx) (Section stack), [`src/components/sections/About/About.jsx`](https://github.com/hadamas/portfolio/blob/main/src/components/sections/About/About.jsx) (About and skills), [`src/components/layout/Header/Header.jsx`](https://github.com/hadamas/portfolio/blob/main/src/components/layout/Header/Header.jsx) (Header controls)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_composition["App composition"]
  node_app["Portfolio app<br/>[App.jsx]"]
end

subgraph group_navigation["Navigation and layout"]
  node_header["Header controls<br/>[Header.jsx]"]
  node_background["Animated background"]
  node_sitebackground["Site background<br/>[SiteBackground.jsx]"]
  node_cursor["Smooth cursor<br/>[SmoothCursor.jsx]"]
  node_sectionstack["Section stack<br/>[SectionStack.jsx]"]
  node_navmenu["Navigation menu<br/>[NavMenu.jsx]"]
  node_footer["Footer<br/>[Footer.jsx]"]
end

subgraph group_portfolio["Portfolio content"]
  node_hero["Hero introduction<br/>[Hero.jsx]"]
  node_about["About and skills<br/>[About.jsx]"]
  node_stackmenu["Skills display"]
  node_projects["Project showcase<br/>[Projects.jsx]"]
  node_carousel["Project carousel<br/>[DepthCarousel.jsx]"]
  node_projectdata["Project content<br/>[projects.js]"]
  node_contact["Contact section<br/>[Contact.jsx]"]
  node_contactsdata["Contact details<br/>[contacts.js]"]
  node_resumedata["Resume files<br/>[resumeFiles.js]"]
end

subgraph group_shared["Shared preferences"]
  node_languageprovider["Language state"]
  node_languages["Language options<br/>[languages.js]"]
  node_translations["Translations<br/>[translations.js]"]
  node_navigationprovider["Navigation state"]
  node_sectionsdata["Section definitions<br/>[sections.js]"]
  node_themeprovider["Theme state<br/>[ThemeProvider.jsx]"]
  node_soundprovider["Sound state<br/>[SoundProvider.jsx]"]
end

node_visitor(("Visitor"))

node_visitor -->|"visits"| node_app
node_app -->|"renders"| node_header
node_app -->|"renders"| node_sitebackground
node_app -->|"renders"| node_cursor
node_app -->|"renders"| node_sectionstack
node_app -->|"renders"| node_navmenu
node_app -->|"renders"| node_footer
node_app -->|"wraps"| node_languageprovider
node_app -->|"wraps"| node_navigationprovider
node_app -->|"wraps"| node_themeprovider
node_app -->|"wraps"| node_soundprovider
node_sitebackground -->|"renders"| node_background
node_sectionstack -->|"renders"| node_hero
node_sectionstack -->|"renders"| node_about
node_sectionstack -->|"renders"| node_projects
node_sectionstack -->|"renders"| node_contact
node_about -->|"renders"| node_stackmenu
node_about -->|"reads"| node_resumedata
node_projects -->|"uses"| node_carousel
node_projects -.->|"reads"| node_projectdata
node_contact -.->|"reads"| node_contactsdata
node_languageprovider -->|"loads"| node_languages
node_navigationprovider -->|"loads"| node_sectionsdata
node_header -->|"reads"| node_translations
node_header -->|"opens"| node_navmenu
node_about -->|"reads"| node_translations
node_footer -->|"reads"| node_translations
node_navmenu -->|"reads"| node_sectionsdata

click node_app "https://github.com/hadamas/portfolio/blob/main/src/App.jsx"
click node_header "https://github.com/hadamas/portfolio/blob/main/src/components/layout/Header/Header.jsx"
click node_background "https://github.com/hadamas/portfolio/blob/main/src/components/layout/CausticsBackground/CausticsBackground.jsx"
click node_sitebackground "https://github.com/hadamas/portfolio/blob/main/src/components/layout/CausticsBackground/SiteBackground.jsx"
click node_cursor "https://github.com/hadamas/portfolio/blob/main/src/components/layout/SmoothCursor/SmoothCursor.jsx"
click node_sectionstack "https://github.com/hadamas/portfolio/blob/main/src/components/layout/SectionStack/SectionStack.jsx"
click node_navmenu "https://github.com/hadamas/portfolio/blob/main/src/components/layout/NavMenu/NavMenu.jsx"
click node_footer "https://github.com/hadamas/portfolio/blob/main/src/components/layout/Footer/Footer.jsx"
click node_hero "https://github.com/hadamas/portfolio/blob/main/src/components/sections/Hero/Hero.jsx"
click node_about "https://github.com/hadamas/portfolio/blob/main/src/components/sections/About/About.jsx"
click node_stackmenu "https://github.com/hadamas/portfolio/blob/main/src/components/sections/About/StackFlowingMenu/StackFlowingMenu.jsx"
click node_projects "https://github.com/hadamas/portfolio/blob/main/src/components/sections/Projects/Projects.jsx"
click node_carousel "https://github.com/hadamas/portfolio/blob/main/src/components/sections/Projects/DepthCarousel.jsx"
click node_projectdata "https://github.com/hadamas/portfolio/blob/main/src/data/projects.js"
click node_contact "https://github.com/hadamas/portfolio/blob/main/src/components/sections/Contact/Contact.jsx"
click node_contactsdata "https://github.com/hadamas/portfolio/blob/main/src/data/contacts.js"
click node_languageprovider "https://github.com/hadamas/portfolio/blob/main/src/context/LanguageProvider.jsx"
click node_languages "https://github.com/hadamas/portfolio/blob/main/src/data/languages.js"
click node_translations "https://github.com/hadamas/portfolio/blob/main/src/i18n/translations.js"
click node_navigationprovider "https://github.com/hadamas/portfolio/blob/main/src/context/NavigationProvider.jsx"
click node_sectionsdata "https://github.com/hadamas/portfolio/blob/main/src/data/sections.js"
click node_themeprovider "https://github.com/hadamas/portfolio/blob/main/src/context/ThemeProvider.jsx"
click node_soundprovider "https://github.com/hadamas/portfolio/blob/main/src/context/SoundProvider.jsx"
click node_resumedata "https://github.com/hadamas/portfolio/blob/main/src/data/resumeFiles.js"

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 toneBlue
class node_header,node_background,node_sitebackground,node_cursor,node_sectionstack,node_navmenu,node_footer toneAmber
class node_hero,node_about,node_stackmenu,node_projects,node_carousel,node_projectdata,node_contact,node_contactsdata,node_resumedata toneMint
class node_languageprovider,node_languages,node_translations,node_navigationprovider,node_sectionsdata,node_themeprovider,node_soundprovider toneRose
class node_visitor toneIndigo
```

## Components

### App composition

- [Portfolio app](https://github.com/hadamas/portfolio/blob/main/src/App.jsx): `src/App.jsx`

### Navigation and layout

- [Header controls](https://github.com/hadamas/portfolio/blob/main/src/components/layout/Header/Header.jsx): `src/components/layout/Header/Header.jsx`
- [Animated background](https://github.com/hadamas/portfolio/blob/main/src/components/layout/CausticsBackground/CausticsBackground.jsx): `src/components/layout/CausticsBackground/CausticsBackground.jsx`
- [Site background](https://github.com/hadamas/portfolio/blob/main/src/components/layout/CausticsBackground/SiteBackground.jsx): `src/components/layout/CausticsBackground/SiteBackground.jsx`
- [Smooth cursor](https://github.com/hadamas/portfolio/blob/main/src/components/layout/SmoothCursor/SmoothCursor.jsx): `src/components/layout/SmoothCursor/SmoothCursor.jsx`
- [Section stack](https://github.com/hadamas/portfolio/blob/main/src/components/layout/SectionStack/SectionStack.jsx): `src/components/layout/SectionStack/SectionStack.jsx`
- [Navigation menu](https://github.com/hadamas/portfolio/blob/main/src/components/layout/NavMenu/NavMenu.jsx): `src/components/layout/NavMenu/NavMenu.jsx`
- [Footer](https://github.com/hadamas/portfolio/blob/main/src/components/layout/Footer/Footer.jsx): `src/components/layout/Footer/Footer.jsx`

### Portfolio content

- [Hero introduction](https://github.com/hadamas/portfolio/blob/main/src/components/sections/Hero/Hero.jsx): `src/components/sections/Hero/Hero.jsx`
- [About and skills](https://github.com/hadamas/portfolio/blob/main/src/components/sections/About/About.jsx): `src/components/sections/About/About.jsx`
- [Skills display](https://github.com/hadamas/portfolio/blob/main/src/components/sections/About/StackFlowingMenu/StackFlowingMenu.jsx): `src/components/sections/About/StackFlowingMenu/StackFlowingMenu.jsx`
- [Project showcase](https://github.com/hadamas/portfolio/blob/main/src/components/sections/Projects/Projects.jsx): `src/components/sections/Projects/Projects.jsx`
- [Project carousel](https://github.com/hadamas/portfolio/blob/main/src/components/sections/Projects/DepthCarousel.jsx): `src/components/sections/Projects/DepthCarousel.jsx`
- [Project content](https://github.com/hadamas/portfolio/blob/main/src/data/projects.js): `src/data/projects.js`
- [Contact section](https://github.com/hadamas/portfolio/blob/main/src/components/sections/Contact/Contact.jsx): `src/components/sections/Contact/Contact.jsx`
- [Contact details](https://github.com/hadamas/portfolio/blob/main/src/data/contacts.js): `src/data/contacts.js`
- [Resume files](https://github.com/hadamas/portfolio/blob/main/src/data/resumeFiles.js): `src/data/resumeFiles.js`

### Shared preferences

- [Language state](https://github.com/hadamas/portfolio/blob/main/src/context/LanguageProvider.jsx): `src/context/LanguageProvider.jsx`
- [Language options](https://github.com/hadamas/portfolio/blob/main/src/data/languages.js): `src/data/languages.js`
- [Translations](https://github.com/hadamas/portfolio/blob/main/src/i18n/translations.js): `src/i18n/translations.js`
- [Navigation state](https://github.com/hadamas/portfolio/blob/main/src/context/NavigationProvider.jsx): `src/context/NavigationProvider.jsx`
- [Section definitions](https://github.com/hadamas/portfolio/blob/main/src/data/sections.js): `src/data/sections.js`
- [Theme state](https://github.com/hadamas/portfolio/blob/main/src/context/ThemeProvider.jsx): `src/context/ThemeProvider.jsx`
- [Sound state](https://github.com/hadamas/portfolio/blob/main/src/context/SoundProvider.jsx): `src/context/SoundProvider.jsx`

### Other components

- **Visitor**

## Connections

- Visitor → Portfolio app: visits
- Portfolio app → Header controls: renders (evidence: `src/App.jsx`)
- Portfolio app → Site background: renders (evidence: `src/App.jsx`)
- Portfolio app → Smooth cursor: renders (evidence: `src/App.jsx`)
- Portfolio app → Section stack: renders (evidence: `src/App.jsx`)
- Portfolio app → Navigation menu: renders (evidence: `src/App.jsx`)
- Portfolio app → Footer: renders (evidence: `src/App.jsx`)
- Portfolio app → Language state: wraps (evidence: `src/App.jsx`)
- Portfolio app → Navigation state: wraps (evidence: `src/App.jsx`)
- Portfolio app → Theme state: wraps (evidence: `src/App.jsx`)
- Portfolio app → Sound state: wraps (evidence: `src/App.jsx`)
- Site background → Animated background: renders (evidence: `src/components/layout/CausticsBackground/SiteBackground.jsx`)
- Section stack → Hero introduction: renders (evidence: `src/components/layout/SectionStack/SectionStack.jsx`)
- Section stack → About and skills: renders (evidence: `src/components/layout/SectionStack/SectionStack.jsx`)
- Section stack → Project showcase: renders (evidence: `src/components/layout/SectionStack/SectionStack.jsx`)
- Section stack → Contact section: renders (evidence: `src/components/layout/SectionStack/SectionStack.jsx`)
- About and skills → Skills display: renders (evidence: `src/components/sections/About/About.jsx`)
- About and skills → Resume files: reads (evidence: `src/components/sections/About/About.jsx`)
- Project showcase → Project carousel: uses
- Project showcase → Project content: reads
- Contact section → Contact details: reads
- Language state → Language options: loads (evidence: `src/context/LanguageProvider.jsx`)
- Navigation state → Section definitions: loads (evidence: `src/context/NavigationProvider.jsx`)
- Header controls → Translations: reads (evidence: `src/components/layout/Header/Header.jsx`)
- Header controls → Navigation menu: opens (evidence: `src/components/layout/Header/Header.jsx`)
- About and skills → Translations: reads (evidence: `src/components/sections/About/About.jsx`)
- Footer → Translations: reads (evidence: `src/components/layout/Footer/Footer.jsx`)
- Navigation menu → Section definitions: reads (evidence: `src/components/layout/NavMenu/NavMenu.jsx`)
