# kelvin0012/my-website architecture

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

- Interactive diagram: https://gitdiagram.com/kelvin0012/my-website
- Repository: https://github.com/kelvin0012/my-website

## Overview

This repository is a React portfolio with two hash-routed experiences: a professional work site and a themed Play site. A visitor enters through the app shell, chooses or opens a mode, and views its content; the Work site presents profile, experience, projects, skills and contact, while Play presents a boot sequence, game-inspired lessons and an inspiration wall. Shared routing, scroll/reveal effects and interactive presentation support both. The graph follows shown imports and calls; unsampled areas are represented only where the README documents their capabilities.

Main entry points: [`src/play/PlaySite.jsx`](https://github.com/kelvin0012/my-website/blob/main/src/play/PlaySite.jsx) (Play site), [`src/pro/ProSite.jsx`](https://github.com/kelvin0012/my-website/blob/main/src/pro/ProSite.jsx) (Work site), [`src/App.jsx`](https://github.com/kelvin0012/my-website/blob/main/src/App.jsx) (App shell), [`src/play/Journey.jsx`](https://github.com/kelvin0012/my-website/blob/main/src/play/Journey.jsx) (Lessons journey)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry and routing"]
  node_app["App shell<br/>[App.jsx]"]
  node_router["Hash router<br/>[Router.jsx]"]
  node_main["React entry<br/>[main.jsx]"]
end

subgraph group_work["Work portfolio"]
  node_worksite["Work site<br/>[ProSite.jsx]"]
  node_workdata["Professional content<br/>[professional.js]"]
end

subgraph group_play["Play experience"]
  node_playsite["Play site<br/>[PlaySite.jsx]"]
  node_boot["Boot screen<br/>[Boot.jsx]"]
  node_hero["Particle hero<br/>[Particles.jsx]"]
  node_journey["Lessons journey<br/>[Journey.jsx]"]
  node_widgets["Interactive widgets<br/>[Widgets.jsx]"]
  node_glyphs["Game glyphs<br/>[Glyphs.jsx]"]
  node_playdata["Play content<br/>[hobbies.js]"]
  node_wall["Inspiration wall<br/>[KeepGoing.jsx]"]
  node_wallassets["Wall images"]
  node_altdesc["Image descriptions<br/>[inspiration.js]"]
end

subgraph group_shared["Shared presentation"]
  node_scroll["Scroll effects<br/>[useScroll.js]"]
  node_reveal["Reveal effects<br/>[useRevealAll.js]"]
  node_cursor["Custom cursor<br/>[Cursor.jsx]"]
  node_tilt["Tilt interaction<br/>[Tilt.jsx]"]
  node_icons["Icon set<br/>[Icons.jsx]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens site"| node_main
node_main -->|"mounts"| node_app
node_app -->|"uses routing"| node_router
node_app -->|"renders"| node_cursor
node_app -->|"renders work"| node_worksite
node_app -->|"loads play"| node_playsite
node_visitor -->|"selects mode"| node_router
node_worksite -->|"reads content"| node_workdata
node_worksite -->|"tracks sections"| node_scroll
node_worksite -->|"reveals content"| node_reveal
node_worksite -->|"switches mode"| node_router
node_worksite -->|"uses tilt"| node_tilt
node_worksite -->|"renders icons"| node_icons
node_playsite -->|"shows boot"| node_boot
node_playsite -->|"renders hero"| node_hero
node_playsite -->|"renders journey"| node_journey
node_playsite -->|"renders wall"| node_wall
node_playsite -->|"reads player data"| node_playdata
node_playsite -->|"tracks sections"| node_scroll
node_playsite -->|"reveals content"| node_reveal
node_playsite -->|"switches mode"| node_router
node_journey -->|"reads lessons"| node_playdata
node_journey -->|"updates progress"| node_scroll
node_journey -->|"renders widgets"| node_widgets
node_journey -->|"renders glyphs"| node_glyphs
node_wall -->|"reads quotes"| node_playdata
node_wall -->|"reads descriptions"| node_altdesc
node_wall -->|"loads images"| node_wallassets
node_wall -->|"uses tilt"| node_tilt

click node_app "https://github.com/kelvin0012/my-website/blob/main/src/App.jsx"
click node_router "https://github.com/kelvin0012/my-website/blob/main/src/shared/Router.jsx"
click node_main "https://github.com/kelvin0012/my-website/blob/main/src/main.jsx"
click node_worksite "https://github.com/kelvin0012/my-website/blob/main/src/pro/ProSite.jsx"
click node_workdata "https://github.com/kelvin0012/my-website/blob/main/src/data/professional.js"
click node_playsite "https://github.com/kelvin0012/my-website/blob/main/src/play/PlaySite.jsx"
click node_boot "https://github.com/kelvin0012/my-website/blob/main/src/play/Boot.jsx"
click node_hero "https://github.com/kelvin0012/my-website/blob/main/src/play/Particles.jsx"
click node_journey "https://github.com/kelvin0012/my-website/blob/main/src/play/Journey.jsx"
click node_widgets "https://github.com/kelvin0012/my-website/blob/main/src/play/Widgets.jsx"
click node_glyphs "https://github.com/kelvin0012/my-website/blob/main/src/play/Glyphs.jsx"
click node_playdata "https://github.com/kelvin0012/my-website/blob/main/src/data/hobbies.js"
click node_wall "https://github.com/kelvin0012/my-website/blob/main/src/play/KeepGoing.jsx"
click node_wallassets "https://github.com/kelvin0012/my-website/tree/main/src/assets/inspiration"
click node_altdesc "https://github.com/kelvin0012/my-website/blob/main/src/data/inspiration.js"
click node_scroll "https://github.com/kelvin0012/my-website/blob/main/src/hooks/useScroll.js"
click node_reveal "https://github.com/kelvin0012/my-website/blob/main/src/hooks/useRevealAll.js"
click node_cursor "https://github.com/kelvin0012/my-website/blob/main/src/shared/Cursor.jsx"
click node_tilt "https://github.com/kelvin0012/my-website/blob/main/src/shared/Tilt.jsx"
click node_icons "https://github.com/kelvin0012/my-website/blob/main/src/shared/Icons.jsx"

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_router,node_main toneBlue
class node_worksite,node_workdata toneAmber
class node_playsite,node_boot,node_hero,node_journey,node_widgets,node_glyphs,node_playdata,node_wall,node_wallassets,node_altdesc toneMint
class node_scroll,node_reveal,node_cursor,node_tilt,node_icons toneRose
class node_visitor toneIndigo
```

## Components

### App entry and routing

- [App shell](https://github.com/kelvin0012/my-website/blob/main/src/App.jsx): `src/App.jsx`
- [Hash router](https://github.com/kelvin0012/my-website/blob/main/src/shared/Router.jsx): `src/shared/Router.jsx`
- [React entry](https://github.com/kelvin0012/my-website/blob/main/src/main.jsx): `src/main.jsx`

### Work portfolio

- [Work site](https://github.com/kelvin0012/my-website/blob/main/src/pro/ProSite.jsx): `src/pro/ProSite.jsx`
- [Professional content](https://github.com/kelvin0012/my-website/blob/main/src/data/professional.js): `src/data/professional.js`

### Play experience

- [Play site](https://github.com/kelvin0012/my-website/blob/main/src/play/PlaySite.jsx): `src/play/PlaySite.jsx`
- [Boot screen](https://github.com/kelvin0012/my-website/blob/main/src/play/Boot.jsx): `src/play/Boot.jsx`
- [Particle hero](https://github.com/kelvin0012/my-website/blob/main/src/play/Particles.jsx): `src/play/Particles.jsx`
- [Lessons journey](https://github.com/kelvin0012/my-website/blob/main/src/play/Journey.jsx): `src/play/Journey.jsx`
- [Interactive widgets](https://github.com/kelvin0012/my-website/blob/main/src/play/Widgets.jsx): `src/play/Widgets.jsx`
- [Game glyphs](https://github.com/kelvin0012/my-website/blob/main/src/play/Glyphs.jsx): `src/play/Glyphs.jsx`
- [Play content](https://github.com/kelvin0012/my-website/blob/main/src/data/hobbies.js): `src/data/hobbies.js`
- [Inspiration wall](https://github.com/kelvin0012/my-website/blob/main/src/play/KeepGoing.jsx): `src/play/KeepGoing.jsx`
- [Wall images](https://github.com/kelvin0012/my-website/tree/main/src/assets/inspiration): `src/assets/inspiration`
- [Image descriptions](https://github.com/kelvin0012/my-website/blob/main/src/data/inspiration.js): `src/data/inspiration.js`

### Shared presentation

- [Scroll effects](https://github.com/kelvin0012/my-website/blob/main/src/hooks/useScroll.js): `src/hooks/useScroll.js`
- [Reveal effects](https://github.com/kelvin0012/my-website/blob/main/src/hooks/useRevealAll.js): `src/hooks/useRevealAll.js`
- [Custom cursor](https://github.com/kelvin0012/my-website/blob/main/src/shared/Cursor.jsx): `src/shared/Cursor.jsx`
- [Tilt interaction](https://github.com/kelvin0012/my-website/blob/main/src/shared/Tilt.jsx): `src/shared/Tilt.jsx`
- [Icon set](https://github.com/kelvin0012/my-website/blob/main/src/shared/Icons.jsx): `src/shared/Icons.jsx`

### Other components

- **Visitor**

## Connections

- Visitor → React entry: opens site (evidence: `README.md`)
- React entry → App shell: mounts (evidence: `src/main.jsx`)
- App shell → Hash router: uses routing (evidence: `src/App.jsx`)
- App shell → Custom cursor: renders (evidence: `src/App.jsx`)
- App shell → Work site: renders work (evidence: `src/App.jsx`)
- App shell → Play site: loads play (evidence: `src/App.jsx`)
- Visitor → Hash router: selects mode (evidence: `src/shared/Router.jsx`)
- Work site → Professional content: reads content (evidence: `src/pro/ProSite.jsx`)
- Work site → Scroll effects: tracks sections (evidence: `src/pro/ProSite.jsx`)
- Work site → Reveal effects: reveals content (evidence: `src/pro/ProSite.jsx`)
- Work site → Hash router: switches mode (evidence: `src/pro/ProSite.jsx`)
- Work site → Tilt interaction: uses tilt (evidence: `src/pro/ProSite.jsx`)
- Work site → Icon set: renders icons (evidence: `src/pro/ProSite.jsx`)
- Play site → Boot screen: shows boot (evidence: `src/play/PlaySite.jsx`)
- Play site → Particle hero: renders hero (evidence: `src/play/PlaySite.jsx`)
- Play site → Lessons journey: renders journey (evidence: `src/play/PlaySite.jsx`)
- Play site → Inspiration wall: renders wall (evidence: `src/play/PlaySite.jsx`)
- Play site → Play content: reads player data (evidence: `src/play/PlaySite.jsx`)
- Play site → Scroll effects: tracks sections (evidence: `src/play/PlaySite.jsx`)
- Play site → Reveal effects: reveals content (evidence: `src/play/PlaySite.jsx`)
- Play site → Hash router: switches mode (evidence: `src/play/PlaySite.jsx`)
- Lessons journey → Play content: reads lessons (evidence: `src/play/Journey.jsx`)
- Lessons journey → Scroll effects: updates progress (evidence: `src/play/Journey.jsx`)
- Lessons journey → Interactive widgets: renders widgets (evidence: `src/play/Journey.jsx`)
- Lessons journey → Game glyphs: renders glyphs (evidence: `src/play/Journey.jsx`)
- Inspiration wall → Play content: reads quotes (evidence: `src/play/KeepGoing.jsx`)
- Inspiration wall → Image descriptions: reads descriptions (evidence: `src/play/KeepGoing.jsx`)
- Inspiration wall → Wall images: loads images (evidence: `src/play/KeepGoing.jsx`)
- Inspiration wall → Tilt interaction: uses tilt (evidence: `src/play/KeepGoing.jsx`)
