# yokaine/portfolio architecture

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

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

## Overview

This repository is a personal portfolio site with a React frontend and a Symfony backend. The visitor browses profile, skills and project content, and can use the contact section; projects load from a configured API or the bundled static JSON. The backend includes project and contact controllers plus CORS handling, but their implementation was not excerpted, so backend relationships are shown only where the frontend request is explicit, with endpoint-to-controller mapping left unverified.

Main entry points: [`frontend/src/App.jsx`](https://github.com/yokaine/portfolio/blob/main/frontend/src/App.jsx) (Page composition), [`frontend/src/data/site.js`](https://github.com/yokaine/portfolio/blob/main/frontend/src/data/site.js) (Profile content), [`frontend/src/components/Header.jsx`](https://github.com/yokaine/portfolio/blob/main/frontend/src/components/Header.jsx) (Navigation header), [`frontend/src/components/Projects.jsx`](https://github.com/yokaine/portfolio/blob/main/frontend/src/components/Projects.jsx) (Project gallery)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_presentation["Portfolio UI"]
  node_app["Page composition<br/>[App.jsx]"]
  node_header["Navigation header<br/>[Header.jsx]"]
  node_hero["Introduction<br/>[Hero.jsx]"]
  node_projects["Project gallery<br/>[Projects.jsx]"]
  node_skills["Skills section<br/>[Skills.jsx]"]
  node_about["About section<br/>[About.jsx]"]
  node_footer["Site footer<br/>[Footer.jsx]"]
  node_reveal["Reveal animation<br/>[Reveal.jsx]"]
  node_section_heading["Section headings<br/>[SectionHeading.jsx]"]
end

subgraph group_content["Portfolio Content"]
  node_site_data["Profile content<br/>[site.js]"]
  node_project_loader["Project loader<br/>[useProjects.js]"]
  node_static_projects["Static projects<br/>[projects.json]"]
end

subgraph group_backend["Symfony Backend"]
  node_project_api["Projects endpoint"]
  node_contact_api["Contact endpoint"]
  node_cors["CORS handling<br/>[CorsSubscriber.php]"]
  node_backend_projects["Backend project data<br/>[projects.json]"]
end

subgraph group_interaction["Visitor Interactions"]
  node_contact["Contact section<br/>[Contact.jsx]"]
  node_theme["Theme preference<br/>[useTheme.js]"]
  node_active_section["Active section"]
end

node_visitor(("Visitor"))

node_visitor -->|"browses"| node_app
node_app -->|"renders"| node_header
node_app -->|"renders"| node_hero
node_app -->|"renders"| node_projects
node_app -->|"renders"| node_skills
node_app -->|"renders"| node_about
node_app -->|"renders"| node_contact
node_app -->|"renders"| node_footer
node_header -->|"reads profile"| node_site_data
node_hero -->|"reads profile"| node_site_data
node_skills -->|"reads skills"| node_site_data
node_about -->|"reads biography"| node_site_data
node_contact -->|"reads contact info"| node_site_data
node_footer -->|"reads profile"| node_site_data
node_projects -->|"loads projects"| node_project_loader
node_project_loader -->|"fetches fallback"| node_static_projects
node_project_loader -.->|"requests projects"| node_project_api
node_project_api -.->|"reads data"| node_backend_projects
node_contact -.->|"submits message"| node_contact_api
node_header -->|"toggles theme"| node_theme
node_header -->|"tracks section"| node_active_section
node_projects -->|"renders cards"| node_reveal
node_projects -->|"renders heading"| node_section_heading
node_skills -->|"renders cards"| node_reveal
node_skills -->|"renders heading"| node_section_heading
node_about -->|"renders content"| node_reveal
node_about -->|"renders heading"| node_section_heading
node_contact -->|"renders panel"| node_reveal
node_cors -.->|"supports requests"| node_project_api
node_cors -.->|"supports requests"| node_contact_api

click node_app "https://github.com/yokaine/portfolio/blob/main/frontend/src/App.jsx"
click node_header "https://github.com/yokaine/portfolio/blob/main/frontend/src/components/Header.jsx"
click node_hero "https://github.com/yokaine/portfolio/blob/main/frontend/src/components/Hero.jsx"
click node_projects "https://github.com/yokaine/portfolio/blob/main/frontend/src/components/Projects.jsx"
click node_skills "https://github.com/yokaine/portfolio/blob/main/frontend/src/components/Skills.jsx"
click node_about "https://github.com/yokaine/portfolio/blob/main/frontend/src/components/About.jsx"
click node_contact "https://github.com/yokaine/portfolio/blob/main/frontend/src/components/Contact.jsx"
click node_footer "https://github.com/yokaine/portfolio/blob/main/frontend/src/components/Footer.jsx"
click node_site_data "https://github.com/yokaine/portfolio/blob/main/frontend/src/data/site.js"
click node_project_loader "https://github.com/yokaine/portfolio/blob/main/frontend/src/hooks/useProjects.js"
click node_static_projects "https://github.com/yokaine/portfolio/blob/main/frontend/public/projects.json"
click node_reveal "https://github.com/yokaine/portfolio/blob/main/frontend/src/components/Reveal.jsx"
click node_section_heading "https://github.com/yokaine/portfolio/blob/main/frontend/src/components/SectionHeading.jsx"
click node_theme "https://github.com/yokaine/portfolio/blob/main/frontend/src/hooks/useTheme.js"
click node_active_section "https://github.com/yokaine/portfolio/blob/main/frontend/src/hooks/useActiveSection.js"
click node_project_api "https://github.com/yokaine/portfolio/blob/main/backend/src/Controller/ProjectController.php"
click node_contact_api "https://github.com/yokaine/portfolio/blob/main/backend/src/Controller/ContactController.php"
click node_cors "https://github.com/yokaine/portfolio/blob/main/backend/src/EventSubscriber/CorsSubscriber.php"
click node_backend_projects "https://github.com/yokaine/portfolio/blob/main/backend/data/projects.json"

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_hero,node_projects,node_skills,node_about,node_footer,node_reveal,node_section_heading toneBlue
class node_site_data,node_project_loader,node_static_projects toneAmber
class node_project_api,node_contact_api,node_cors,node_backend_projects toneMint
class node_contact,node_theme,node_active_section toneRose
class node_visitor toneIndigo
```

## Components

### Portfolio UI

- [Page composition](https://github.com/yokaine/portfolio/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Navigation header](https://github.com/yokaine/portfolio/blob/main/frontend/src/components/Header.jsx): `frontend/src/components/Header.jsx`
- [Introduction](https://github.com/yokaine/portfolio/blob/main/frontend/src/components/Hero.jsx): `frontend/src/components/Hero.jsx`
- [Project gallery](https://github.com/yokaine/portfolio/blob/main/frontend/src/components/Projects.jsx): `frontend/src/components/Projects.jsx`
- [Skills section](https://github.com/yokaine/portfolio/blob/main/frontend/src/components/Skills.jsx): `frontend/src/components/Skills.jsx`
- [About section](https://github.com/yokaine/portfolio/blob/main/frontend/src/components/About.jsx): `frontend/src/components/About.jsx`
- [Site footer](https://github.com/yokaine/portfolio/blob/main/frontend/src/components/Footer.jsx): `frontend/src/components/Footer.jsx`
- [Reveal animation](https://github.com/yokaine/portfolio/blob/main/frontend/src/components/Reveal.jsx): `frontend/src/components/Reveal.jsx`
- [Section headings](https://github.com/yokaine/portfolio/blob/main/frontend/src/components/SectionHeading.jsx): `frontend/src/components/SectionHeading.jsx`

### Portfolio Content

- [Profile content](https://github.com/yokaine/portfolio/blob/main/frontend/src/data/site.js): `frontend/src/data/site.js`
- [Project loader](https://github.com/yokaine/portfolio/blob/main/frontend/src/hooks/useProjects.js): `frontend/src/hooks/useProjects.js`
- [Static projects](https://github.com/yokaine/portfolio/blob/main/frontend/public/projects.json): `frontend/public/projects.json`

### Symfony Backend

- [Projects endpoint](https://github.com/yokaine/portfolio/blob/main/backend/src/Controller/ProjectController.php): `backend/src/Controller/ProjectController.php`
- [Contact endpoint](https://github.com/yokaine/portfolio/blob/main/backend/src/Controller/ContactController.php): `backend/src/Controller/ContactController.php`
- [CORS handling](https://github.com/yokaine/portfolio/blob/main/backend/src/EventSubscriber/CorsSubscriber.php): `backend/src/EventSubscriber/CorsSubscriber.php`
- [Backend project data](https://github.com/yokaine/portfolio/blob/main/backend/data/projects.json): `backend/data/projects.json`

### Visitor Interactions

- [Contact section](https://github.com/yokaine/portfolio/blob/main/frontend/src/components/Contact.jsx): `frontend/src/components/Contact.jsx`
- [Theme preference](https://github.com/yokaine/portfolio/blob/main/frontend/src/hooks/useTheme.js): `frontend/src/hooks/useTheme.js`
- [Active section](https://github.com/yokaine/portfolio/blob/main/frontend/src/hooks/useActiveSection.js): `frontend/src/hooks/useActiveSection.js`

### Other components

- **Visitor**

## Connections

- Visitor → Page composition: browses (evidence: `frontend/src/App.jsx`)
- Page composition → Navigation header: renders (evidence: `frontend/src/App.jsx`)
- Page composition → Introduction: renders (evidence: `frontend/src/App.jsx`)
- Page composition → Project gallery: renders (evidence: `frontend/src/App.jsx`)
- Page composition → Skills section: renders (evidence: `frontend/src/App.jsx`)
- Page composition → About section: renders (evidence: `frontend/src/App.jsx`)
- Page composition → Contact section: renders (evidence: `frontend/src/App.jsx`)
- Page composition → Site footer: renders (evidence: `frontend/src/App.jsx`)
- Navigation header → Profile content: reads profile (evidence: `frontend/src/components/Header.jsx`)
- Introduction → Profile content: reads profile (evidence: `frontend/src/components/Hero.jsx`)
- Skills section → Profile content: reads skills (evidence: `frontend/src/components/Skills.jsx`)
- About section → Profile content: reads biography (evidence: `frontend/src/components/About.jsx`)
- Contact section → Profile content: reads contact info (evidence: `frontend/src/components/Contact.jsx`)
- Site footer → Profile content: reads profile (evidence: `frontend/src/components/Footer.jsx`)
- Project gallery → Project loader: loads projects (evidence: `frontend/src/components/Projects.jsx`)
- Project loader → Static projects: fetches fallback (evidence: `frontend/src/hooks/useProjects.js`)
- Project loader → Projects endpoint: requests projects (evidence: `frontend/src/hooks/useProjects.js`)
- Projects endpoint → Backend project data: reads data
- Contact section → Contact endpoint: submits message (evidence: `frontend/src/components/Contact.jsx`)
- Navigation header → Theme preference: toggles theme (evidence: `frontend/src/components/Header.jsx`)
- Navigation header → Active section: tracks section (evidence: `frontend/src/components/Header.jsx`)
- Project gallery → Reveal animation: renders cards (evidence: `frontend/src/components/Projects.jsx`)
- Project gallery → Section headings: renders heading (evidence: `frontend/src/components/Projects.jsx`)
- Skills section → Reveal animation: renders cards (evidence: `frontend/src/components/Skills.jsx`)
- Skills section → Section headings: renders heading (evidence: `frontend/src/components/Skills.jsx`)
- About section → Reveal animation: renders content (evidence: `frontend/src/components/About.jsx`)
- About section → Section headings: renders heading (evidence: `frontend/src/components/About.jsx`)
- Contact section → Reveal animation: renders panel (evidence: `frontend/src/components/Contact.jsx`)
- CORS handling → Projects endpoint: supports requests
- CORS handling → Contact endpoint: supports requests
