# mohamedbr-dev/portfolio- architecture

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

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

## Overview

This repository is a React portfolio website: visitors enter through the app shell and browse project case studies, biography, skills, experience, and contact information. The main internal layer is its interaction system—animation hooks and configurable sound effects—alongside the data-driven content sections. The README describes only a React/Vite template; the feature map is based on the sampled source, so unsampled styling and section details are not expanded.

Main entry points: [`src/App.jsx`](https://github.com/mohamedbr-dev/portfolio-/blob/main/src/App.jsx) (Portfolio app), [`src/hooks/useSound.js`](https://github.com/mohamedbr-dev/portfolio-/blob/main/src/hooks/useSound.js) (Sound system), [`src/components/Sections.jsx`](https://github.com/mohamedbr-dev/portfolio-/blob/main/src/components/Sections.jsx) (Page sections), [`src/main.jsx`](https://github.com/mohamedbr-dev/portfolio-/blob/main/src/main.jsx) (React entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App shell"]
  node_entry["React entry<br/>[main.jsx]"]
  node_app["Portfolio app<br/>[App.jsx]"]
  node_styles["Global styles<br/>[global.css]"]
end

subgraph group_content["Portfolio content"]
  node_sections["Page sections<br/>[Sections.jsx]"]
  node_portfolio_data["Portfolio data<br/>[data.js]"]
end

subgraph group_interaction["Interactions"]
  node_sound_settings["Sound settings<br/>[SoundSettings.jsx]"]
  node_animations["Animation hooks<br/>[useAnimations.js]"]
  node_sound_system["Sound system<br/>[useSound.js]"]
  node_audio_files["Sound assets"]
end

node_visitor(("Visitor"))
node_local_storage[("Browser storage")]

node_visitor -->|"opens site"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"renders"| node_sections
node_app -->|"imports styles"| node_styles
node_app -->|"invokes hooks"| node_animations
node_app -->|"initializes sound"| node_sound_system
node_sections -->|"reads content"| node_portfolio_data
node_sections -->|"renders settings"| node_sound_settings
node_sound_settings -->|"previews sounds"| node_sound_system
node_sound_system -->|"fetches audio"| node_audio_files
node_sound_system -->|"reads and saves"| node_local_storage

click node_entry "https://github.com/mohamedbr-dev/portfolio-/blob/main/src/main.jsx"
click node_app "https://github.com/mohamedbr-dev/portfolio-/blob/main/src/App.jsx"
click node_styles "https://github.com/mohamedbr-dev/portfolio-/blob/main/src/styles/global.css"
click node_sections "https://github.com/mohamedbr-dev/portfolio-/blob/main/src/components/Sections.jsx"
click node_portfolio_data "https://github.com/mohamedbr-dev/portfolio-/blob/main/src/data.js"
click node_sound_settings "https://github.com/mohamedbr-dev/portfolio-/blob/main/src/components/SoundSettings.jsx"
click node_animations "https://github.com/mohamedbr-dev/portfolio-/blob/main/src/hooks/useAnimations.js"
click node_sound_system "https://github.com/mohamedbr-dev/portfolio-/blob/main/src/hooks/useSound.js"
click node_audio_files "https://github.com/mohamedbr-dev/portfolio-/tree/main/public/audio"

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,node_styles toneBlue
class node_sections,node_portfolio_data,node_local_storage toneAmber
class node_sound_settings,node_animations,node_sound_system,node_audio_files toneMint
class node_visitor toneIndigo
```

## Components

### App shell

- [React entry](https://github.com/mohamedbr-dev/portfolio-/blob/main/src/main.jsx): `src/main.jsx`
- [Portfolio app](https://github.com/mohamedbr-dev/portfolio-/blob/main/src/App.jsx): `src/App.jsx`
- [Global styles](https://github.com/mohamedbr-dev/portfolio-/blob/main/src/styles/global.css): `src/styles/global.css`

### Portfolio content

- [Page sections](https://github.com/mohamedbr-dev/portfolio-/blob/main/src/components/Sections.jsx): `src/components/Sections.jsx`
- [Portfolio data](https://github.com/mohamedbr-dev/portfolio-/blob/main/src/data.js): `src/data.js`

### Interactions

- [Sound settings](https://github.com/mohamedbr-dev/portfolio-/blob/main/src/components/SoundSettings.jsx): `src/components/SoundSettings.jsx`
- [Animation hooks](https://github.com/mohamedbr-dev/portfolio-/blob/main/src/hooks/useAnimations.js): `src/hooks/useAnimations.js`
- [Sound system](https://github.com/mohamedbr-dev/portfolio-/blob/main/src/hooks/useSound.js): `src/hooks/useSound.js`
- [Sound assets](https://github.com/mohamedbr-dev/portfolio-/tree/main/public/audio): `public/audio`

### Other components

- **Visitor**
- **Browser storage**

## Connections

- Visitor → React entry: opens site
- React entry → Portfolio app: renders (evidence: `src/main.jsx`)
- Portfolio app → Page sections: renders (evidence: `src/App.jsx`)
- Portfolio app → Global styles: imports styles (evidence: `src/App.jsx`)
- Portfolio app → Animation hooks: invokes hooks (evidence: `src/App.jsx`)
- Portfolio app → Sound system: initializes sound (evidence: `src/App.jsx`)
- Page sections → Portfolio data: reads content (evidence: `src/components/Sections.jsx`)
- Page sections → Sound settings: renders settings (evidence: `src/components/Sections.jsx`)
- Sound settings → Sound system: previews sounds (evidence: `src/components/SoundSettings.jsx`)
- Sound system → Sound assets: fetches audio (evidence: `src/hooks/useSound.js`)
- Sound system → Browser storage: reads and saves (evidence: `src/hooks/useSound.js`)
