# fotatoe24/my_portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/fotatoe24/my_portfolio
- Repository: https://github.com/fotatoe24/my_portfolio

## Overview

This repository is a React portfolio site presenting the creator’s projects, services, background, and contact options. Visitors enter through the shared app shell, view the home-page sections, browse project cards, and open a project detail route with media, metadata, gallery/lightbox, and previous/next navigation. The graph includes the documented portfolio capabilities; its feature-level wiring is supported by the README and sampled route/component imports. Media files are optional content, not a separate service.

Main entry points: [`src/App.jsx`](https://github.com/fotatoe24/my_portfolio/blob/main/src/App.jsx) (App shell), [`src/pages/Home.jsx`](https://github.com/fotatoe24/my_portfolio/blob/main/src/pages/Home.jsx) (Home page), [`src/data/site.js`](https://github.com/fotatoe24/my_portfolio/blob/main/src/data/site.js) (Site content), [`src/pages/Project.jsx`](https://github.com/fotatoe24/my_portfolio/blob/main/src/pages/Project.jsx) (Project detail)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["Site routing"]
  node_app["App shell<br/>[App.jsx]"]
  node_home["Home page<br/>[Home.jsx]"]
  node_project["Project detail<br/>[Project.jsx]"]
  node_notfound["Not found<br/>[NotFound.jsx]"]
  node_scroll["Scroll manager<br/>[ScrollManager.jsx]"]
end

subgraph group_portfolio["Portfolio content"]
  node_hero["Hero<br/>[Hero.jsx]"]
  node_intro["Intro<br/>[Intro.jsx]"]
  node_work["Project grid<br/>[Work.jsx]"]
  node_services["Services<br/>[Services.jsx]"]
  node_about["About stats<br/>[About.jsx]"]
  node_contact["Contact<br/>[Contact.jsx]"]
end

subgraph group_presentation["Presentation components"]
  node_nav["Navigation<br/>[Nav.jsx]"]
  node_footer["Footer<br/>[Footer.jsx]"]
  node_card["Project card<br/>[ProjectCard.jsx]"]
  node_media["Project media<br/>[ProjectMedia.jsx]"]
  node_lightbox["Gallery lightbox<br/>[Lightbox.jsx]"]
  node_reveal["Scroll reveals<br/>[Reveal.jsx]"]
  node_counter["Animated counter<br/>[Counter.jsx]"]
  node_pixel["Pixel mark<br/>[PixelMark.jsx]"]
  node_sectionhead["Section heading<br/>[SectionHead.jsx]"]
  node_observer["View observer<br/>[useInView.js]"]
end

subgraph group_data["Site content"]
  node_projectsdata["Project catalogue<br/>[projects.js]"]
  node_sitedata["Site content<br/>[site.js]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_project
node_app -->|"routes to"| node_notfound
node_app -->|"renders"| node_nav
node_app -->|"renders"| node_footer
node_app -->|"renders"| node_scroll
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_intro
node_home -->|"renders"| node_work
node_home -->|"renders"| node_services
node_home -->|"renders"| node_about
node_home -->|"renders"| node_contact
node_work -->|"renders"| node_card
node_card -->|"renders"| node_media
node_work -->|"reads projects"| node_projectsdata
node_project -->|"reads project"| node_projectsdata
node_project -->|"renders"| node_media
node_project -->|"opens gallery"| node_lightbox
node_project -->|"renders on missing"| node_notfound
node_project -->|"reads site name"| node_sitedata
node_hero -->|"reads content"| node_sitedata
node_intro -->|"reads content"| node_sitedata
node_services -->|"reads services"| node_sitedata
node_about -->|"reads biography"| node_sitedata
node_about -->|"counts projects"| node_projectsdata
node_contact -->|"reads contact"| node_sitedata
node_nav -->|"reads identity"| node_sitedata
node_nav -->|"renders mark"| node_pixel
node_footer -->|"reads identity"| node_sitedata
node_reveal -->|"observes visibility"| node_observer
node_about -->|"renders stats"| node_counter
node_counter -->|"observes visibility"| node_observer
node_about -->|"renders mark"| node_pixel
node_services -->|"renders heading"| node_sectionhead
node_work -->|"renders heading"| node_sectionhead

click node_app "https://github.com/fotatoe24/my_portfolio/blob/main/src/App.jsx"
click node_home "https://github.com/fotatoe24/my_portfolio/blob/main/src/pages/Home.jsx"
click node_project "https://github.com/fotatoe24/my_portfolio/blob/main/src/pages/Project.jsx"
click node_notfound "https://github.com/fotatoe24/my_portfolio/blob/main/src/pages/NotFound.jsx"
click node_scroll "https://github.com/fotatoe24/my_portfolio/blob/main/src/components/ScrollManager.jsx"
click node_hero "https://github.com/fotatoe24/my_portfolio/blob/main/src/sections/Hero.jsx"
click node_intro "https://github.com/fotatoe24/my_portfolio/blob/main/src/sections/Intro.jsx"
click node_work "https://github.com/fotatoe24/my_portfolio/blob/main/src/sections/Work.jsx"
click node_services "https://github.com/fotatoe24/my_portfolio/blob/main/src/sections/Services.jsx"
click node_about "https://github.com/fotatoe24/my_portfolio/blob/main/src/sections/About.jsx"
click node_contact "https://github.com/fotatoe24/my_portfolio/blob/main/src/sections/Contact.jsx"
click node_nav "https://github.com/fotatoe24/my_portfolio/blob/main/src/components/Nav.jsx"
click node_footer "https://github.com/fotatoe24/my_portfolio/blob/main/src/components/Footer.jsx"
click node_card "https://github.com/fotatoe24/my_portfolio/blob/main/src/components/ProjectCard.jsx"
click node_media "https://github.com/fotatoe24/my_portfolio/blob/main/src/components/ProjectMedia.jsx"
click node_lightbox "https://github.com/fotatoe24/my_portfolio/blob/main/src/components/Lightbox.jsx"
click node_reveal "https://github.com/fotatoe24/my_portfolio/blob/main/src/components/Reveal.jsx"
click node_counter "https://github.com/fotatoe24/my_portfolio/blob/main/src/components/Counter.jsx"
click node_pixel "https://github.com/fotatoe24/my_portfolio/blob/main/src/components/PixelMark.jsx"
click node_sectionhead "https://github.com/fotatoe24/my_portfolio/blob/main/src/sections/SectionHead.jsx"
click node_observer "https://github.com/fotatoe24/my_portfolio/blob/main/src/hooks/useInView.js"
click node_projectsdata "https://github.com/fotatoe24/my_portfolio/blob/main/src/data/projects.js"
click node_sitedata "https://github.com/fotatoe24/my_portfolio/blob/main/src/data/site.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,node_home,node_project,node_notfound,node_scroll toneBlue
class node_hero,node_intro,node_work,node_services,node_about,node_contact toneAmber
class node_nav,node_footer,node_card,node_media,node_lightbox,node_reveal,node_counter,node_pixel,node_sectionhead,node_observer toneMint
class node_projectsdata,node_sitedata toneRose
class node_visitor toneIndigo
```

## Components

### Site routing

- [App shell](https://github.com/fotatoe24/my_portfolio/blob/main/src/App.jsx): `src/App.jsx`
- [Home page](https://github.com/fotatoe24/my_portfolio/blob/main/src/pages/Home.jsx): `src/pages/Home.jsx`
- [Project detail](https://github.com/fotatoe24/my_portfolio/blob/main/src/pages/Project.jsx): `src/pages/Project.jsx`
- [Not found](https://github.com/fotatoe24/my_portfolio/blob/main/src/pages/NotFound.jsx): `src/pages/NotFound.jsx`
- [Scroll manager](https://github.com/fotatoe24/my_portfolio/blob/main/src/components/ScrollManager.jsx): `src/components/ScrollManager.jsx`

### Portfolio content

- [Hero](https://github.com/fotatoe24/my_portfolio/blob/main/src/sections/Hero.jsx): `src/sections/Hero.jsx`
- [Intro](https://github.com/fotatoe24/my_portfolio/blob/main/src/sections/Intro.jsx): `src/sections/Intro.jsx`
- [Project grid](https://github.com/fotatoe24/my_portfolio/blob/main/src/sections/Work.jsx): `src/sections/Work.jsx`
- [Services](https://github.com/fotatoe24/my_portfolio/blob/main/src/sections/Services.jsx): `src/sections/Services.jsx`
- [About stats](https://github.com/fotatoe24/my_portfolio/blob/main/src/sections/About.jsx): `src/sections/About.jsx`
- [Contact](https://github.com/fotatoe24/my_portfolio/blob/main/src/sections/Contact.jsx): `src/sections/Contact.jsx`

### Presentation components

- [Navigation](https://github.com/fotatoe24/my_portfolio/blob/main/src/components/Nav.jsx): `src/components/Nav.jsx`
- [Footer](https://github.com/fotatoe24/my_portfolio/blob/main/src/components/Footer.jsx): `src/components/Footer.jsx`
- [Project card](https://github.com/fotatoe24/my_portfolio/blob/main/src/components/ProjectCard.jsx): `src/components/ProjectCard.jsx`
- [Project media](https://github.com/fotatoe24/my_portfolio/blob/main/src/components/ProjectMedia.jsx): `src/components/ProjectMedia.jsx`
- [Gallery lightbox](https://github.com/fotatoe24/my_portfolio/blob/main/src/components/Lightbox.jsx): `src/components/Lightbox.jsx`
- [Scroll reveals](https://github.com/fotatoe24/my_portfolio/blob/main/src/components/Reveal.jsx): `src/components/Reveal.jsx`
- [Animated counter](https://github.com/fotatoe24/my_portfolio/blob/main/src/components/Counter.jsx): `src/components/Counter.jsx`
- [Pixel mark](https://github.com/fotatoe24/my_portfolio/blob/main/src/components/PixelMark.jsx): `src/components/PixelMark.jsx`
- [Section heading](https://github.com/fotatoe24/my_portfolio/blob/main/src/sections/SectionHead.jsx): `src/sections/SectionHead.jsx`
- [View observer](https://github.com/fotatoe24/my_portfolio/blob/main/src/hooks/useInView.js): `src/hooks/useInView.js`

### Site content

- [Project catalogue](https://github.com/fotatoe24/my_portfolio/blob/main/src/data/projects.js): `src/data/projects.js`
- [Site content](https://github.com/fotatoe24/my_portfolio/blob/main/src/data/site.js): `src/data/site.js`

### Other components

- **Visitor**

## Connections

- Visitor → App shell: opens (evidence: `README.md`)
- App shell → Home page: routes to (evidence: `src/App.jsx`)
- App shell → Project detail: routes to (evidence: `src/App.jsx`)
- App shell → Not found: routes to (evidence: `src/App.jsx`)
- App shell → Navigation: renders (evidence: `src/App.jsx`)
- App shell → Footer: renders (evidence: `src/App.jsx`)
- App shell → Scroll manager: renders (evidence: `src/App.jsx`)
- Home page → Hero: renders (evidence: `src/pages/Home.jsx`)
- Home page → Intro: renders (evidence: `src/pages/Home.jsx`)
- Home page → Project grid: renders (evidence: `src/pages/Home.jsx`)
- Home page → Services: renders (evidence: `src/pages/Home.jsx`)
- Home page → About stats: renders (evidence: `src/pages/Home.jsx`)
- Home page → Contact: renders (evidence: `src/pages/Home.jsx`)
- Project grid → Project card: renders (evidence: `src/sections/Work.jsx`)
- Project card → Project media: renders (evidence: `src/components/ProjectCard.jsx`)
- Project grid → Project catalogue: reads projects (evidence: `src/sections/Work.jsx`)
- Project detail → Project catalogue: reads project (evidence: `src/pages/Project.jsx`)
- Project detail → Project media: renders (evidence: `src/pages/Project.jsx`)
- Project detail → Gallery lightbox: opens gallery (evidence: `src/pages/Project.jsx`)
- Project detail → Not found: renders on missing (evidence: `src/pages/Project.jsx`)
- Project detail → Site content: reads site name (evidence: `src/pages/Project.jsx`)
- Hero → Site content: reads content (evidence: `src/sections/Hero.jsx`)
- Intro → Site content: reads content (evidence: `src/sections/Intro.jsx`)
- Services → Site content: reads services (evidence: `src/sections/Services.jsx`)
- About stats → Site content: reads biography (evidence: `src/sections/About.jsx`)
- About stats → Project catalogue: counts projects (evidence: `src/sections/About.jsx`)
- Contact → Site content: reads contact (evidence: `src/sections/Contact.jsx`)
- Navigation → Site content: reads identity (evidence: `src/components/Nav.jsx`)
- Navigation → Pixel mark: renders mark (evidence: `src/components/Nav.jsx`)
- Footer → Site content: reads identity (evidence: `src/components/Footer.jsx`)
- Scroll reveals → View observer: observes visibility (evidence: `src/components/Reveal.jsx`)
- About stats → Animated counter: renders stats (evidence: `src/sections/About.jsx`)
- Animated counter → View observer: observes visibility (evidence: `src/components/Counter.jsx`)
- About stats → Pixel mark: renders mark (evidence: `src/sections/About.jsx`)
- Services → Section heading: renders heading (evidence: `src/sections/Services.jsx`)
- Project grid → Section heading: renders heading (evidence: `src/sections/Work.jsx`)
