# yung71nkzh3/zedf-co-uk-website architecture

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

- Interactive diagram: https://gitdiagram.com/yung71nkzh3/zedf-co-uk-website
- Repository: https://github.com/yung71nkzh3/zedf-co-uk-website

## Overview

This repository is a personal web portfolio and collection of interactive applets. The main visitor flow starts at the portfolio dashboard, which links into standalone experiences such as the arcade, Project Space, and the 3D setup showcase. In the arcade, visitors browse games and launch one through the game route; games may use shared local score and sound utilities. Other routes provide a calculator challenge and additional content pages. Relationships for unsampled pages are limited to their route-level components; no README was provided.

Main entry points: [`app/project-space/page.tsx`](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/app/project-space/page.tsx) (Space explorer), [`app/page.tsx`](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/app/page.tsx) (Portfolio dashboard), [`app/play/page.tsx`](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/app/play/page.tsx) (Game catalog), [`app/setup/page.tsx`](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/app/setup/page.tsx) (Setup showcase page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portfolio["Portfolio and pages"]
  node_dashboard["Portfolio dashboard<br/>[page.tsx]"]
  node_particle["Particle background<br/>[ParticleCanvas.tsx]"]
  node_calc67["Calc67 challenge<br/>[page.tsx]"]
  node_supabase_client["Supabase client<br/>[supabase.ts]"]
  node_quotes["Quotes page<br/>[page.tsx]"]
  node_uni["University page<br/>[page.tsx]"]
  node_wote["WOTE page<br/>[page.tsx]"]
end

subgraph group_arcade["Arcade"]
  node_arcade_catalog["Game catalog<br/>[page.tsx]"]
  node_game_route["Game route<br/>[page.tsx]"]
  node_game_container["Game selector<br/>[GameContainer.tsx]"]
  node_game_collection["Playable games"]
  node_scores[("Local scores<br/>[scores.ts]")]
  node_sound["Game sound<br/>[sound.ts]"]
end

subgraph group_space["Project Space"]
  node_project_space["Space explorer<br/>[page.tsx]"]
  node_starfield["Starfield display<br/>[Starfield.jsx]"]
  node_celestial["Celestial details<br/>[CelestialBody.jsx]"]
  node_telescope["Star search"]
  node_space_calculator["Space calculator<br/>[Calculator.jsx]"]
  node_star_data["Star catalog data<br/>[stars-data.js]"]
end

subgraph group_setup["3D setup"]
  node_setup_page["Setup showcase page<br/>[page.tsx]"]
  node_theme_context["Theme and selection state<br/>[ThemeContext.tsx]"]
  node_scene_canvas["3D scene canvas<br/>[SceneCanvas.tsx]"]
  node_camera["Camera controls<br/>[CameraManager.tsx]"]
  node_desk["Desk scene<br/>[DeskSetup.tsx]"]
  node_overlay["Showcase controls<br/>[OverlayUI.tsx]"]
  node_spec_data["Hardware and theme data<br/>[specsData.ts]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_dashboard
node_dashboard -->|"renders"| node_particle
node_dashboard -->|"links to"| node_arcade_catalog
node_dashboard -->|"links to"| node_project_space
node_dashboard -->|"links to"| node_setup_page
node_visitor -->|"browses"| node_arcade_catalog
node_arcade_catalog -->|"lists"| node_game_collection
node_arcade_catalog -->|"reads scores"| node_scores
node_arcade_catalog -->|"launches"| node_game_container
node_visitor -->|"opens"| node_game_route
node_game_route -->|"renders"| node_game_container
node_game_container -->|"selects game"| node_game_collection
node_game_collection -->|"reads and saves"| node_scores
node_game_collection -->|"plays effects"| node_sound
node_visitor -->|"opens"| node_project_space
node_project_space -->|"renders"| node_starfield
node_project_space -->|"renders results"| node_celestial
node_project_space -->|"uses search"| node_telescope
node_project_space -->|"renders"| node_space_calculator
node_project_space -->|"loads catalog"| node_star_data
node_visitor -->|"opens"| node_setup_page
node_setup_page -->|"provides state"| node_theme_context
node_setup_page -->|"loads canvas"| node_scene_canvas
node_setup_page -->|"renders controls"| node_overlay
node_theme_context -->|"reads configuration"| node_spec_data
node_camera -->|"reads active spec"| node_theme_context
node_visitor -->|"opens"| node_calc67
node_calc67 -->|"uses client"| node_supabase_client

click node_dashboard "https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/app/page.tsx"
click node_particle "https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/app/components/ParticleCanvas.tsx"
click node_calc67 "https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/app/calc67/page.tsx"
click node_supabase_client "https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/lib/supabase.ts"
click node_quotes "https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/app/quotes/page.tsx"
click node_uni "https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/app/uni/page.tsx"
click node_wote "https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/app/wote/page.tsx"
click node_arcade_catalog "https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/app/play/page.tsx"
click node_game_route "https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/app/play/%5Bgame%5D/page.tsx"
click node_game_container "https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/components/games/GameContainer.tsx"
click node_game_collection "https://github.com/yung71nkzh3/zedf-co-uk-website/tree/main/components/games"
click node_scores "https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/lib/games/scores.ts"
click node_sound "https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/lib/games/sound.ts"
click node_project_space "https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/app/project-space/page.tsx"
click node_starfield "https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/components/project-space/Starfield.jsx"
click node_celestial "https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/components/project-space/CelestialBody.jsx"
click node_telescope "https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/components/project-space/SearchTelescope.jsx"
click node_space_calculator "https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/components/project-space/Calculator.jsx"
click node_star_data "https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/lib/project-space/stars-data.js"
click node_setup_page "https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/app/setup/page.tsx"
click node_theme_context "https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/context/setup/ThemeContext.tsx"
click node_scene_canvas "https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/components/setup/canvas/SceneCanvas.tsx"
click node_camera "https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/components/setup/canvas/CameraManager.tsx"
click node_desk "https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/components/setup/canvas/DeskSetup.tsx"
click node_overlay "https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/components/setup/ui/OverlayUI.tsx"
click node_spec_data "https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/lib/setup/specsData.ts"

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_dashboard,node_particle,node_calc67,node_supabase_client,node_quotes,node_uni,node_wote toneBlue
class node_arcade_catalog,node_game_route,node_game_container,node_game_collection,node_scores,node_sound toneAmber
class node_project_space,node_starfield,node_celestial,node_telescope,node_space_calculator,node_star_data toneMint
class node_setup_page,node_theme_context,node_scene_canvas,node_camera,node_desk,node_overlay,node_spec_data toneRose
class node_visitor toneIndigo
```

## Components

### Portfolio and pages

- [Portfolio dashboard](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/app/page.tsx): `app/page.tsx`
- [Particle background](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/app/components/ParticleCanvas.tsx): `app/components/ParticleCanvas.tsx`
- [Calc67 challenge](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/app/calc67/page.tsx): `app/calc67/page.tsx`
- [Supabase client](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/lib/supabase.ts): `lib/supabase.ts`
- [Quotes page](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/app/quotes/page.tsx): `app/quotes/page.tsx`
- [University page](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/app/uni/page.tsx): `app/uni/page.tsx`
- [WOTE page](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/app/wote/page.tsx): `app/wote/page.tsx`

### Arcade

- [Game catalog](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/app/play/page.tsx): `app/play/page.tsx`
- [Game route](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/app/play/%5Bgame%5D/page.tsx): `app/play/[game]/page.tsx`
- [Game selector](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/components/games/GameContainer.tsx): `components/games/GameContainer.tsx`
- [Playable games](https://github.com/yung71nkzh3/zedf-co-uk-website/tree/main/components/games): `components/games`
- [Local scores](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/lib/games/scores.ts): `lib/games/scores.ts`
- [Game sound](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/lib/games/sound.ts): `lib/games/sound.ts`

### Project Space

- [Space explorer](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/app/project-space/page.tsx): `app/project-space/page.tsx`
- [Starfield display](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/components/project-space/Starfield.jsx): `components/project-space/Starfield.jsx`
- [Celestial details](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/components/project-space/CelestialBody.jsx): `components/project-space/CelestialBody.jsx`
- [Star search](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/components/project-space/SearchTelescope.jsx): `components/project-space/SearchTelescope.jsx`
- [Space calculator](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/components/project-space/Calculator.jsx): `components/project-space/Calculator.jsx`
- [Star catalog data](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/lib/project-space/stars-data.js): `lib/project-space/stars-data.js`

### 3D setup

- [Setup showcase page](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/app/setup/page.tsx): `app/setup/page.tsx`
- [Theme and selection state](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/context/setup/ThemeContext.tsx): `context/setup/ThemeContext.tsx`
- [3D scene canvas](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/components/setup/canvas/SceneCanvas.tsx): `components/setup/canvas/SceneCanvas.tsx`
- [Camera controls](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/components/setup/canvas/CameraManager.tsx): `components/setup/canvas/CameraManager.tsx`
- [Desk scene](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/components/setup/canvas/DeskSetup.tsx): `components/setup/canvas/DeskSetup.tsx`
- [Showcase controls](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/components/setup/ui/OverlayUI.tsx): `components/setup/ui/OverlayUI.tsx`
- [Hardware and theme data](https://github.com/yung71nkzh3/zedf-co-uk-website/blob/main/lib/setup/specsData.ts): `lib/setup/specsData.ts`

### Other components

- **Visitor**

## Connections

- Visitor → Portfolio dashboard: opens
- Portfolio dashboard → Particle background: renders (evidence: `app/page.tsx`)
- Portfolio dashboard → Game catalog: links to (evidence: `app/page.tsx`)
- Portfolio dashboard → Space explorer: links to (evidence: `app/page.tsx`)
- Portfolio dashboard → Setup showcase page: links to (evidence: `app/page.tsx`)
- Visitor → Game catalog: browses
- Game catalog → Playable games: lists (evidence: `app/play/page.tsx`)
- Game catalog → Local scores: reads scores (evidence: `app/play/page.tsx`)
- Game catalog → Game selector: launches (evidence: `components/games/GameContainer.tsx`)
- Visitor → Game route: opens
- Game route → Game selector: renders (evidence: `app/play/[game]/page.tsx`)
- Game selector → Playable games: selects game (evidence: `components/games/GameContainer.tsx`)
- Playable games → Local scores: reads and saves (evidence: `components/games/TetrisGame.tsx`)
- Playable games → Game sound: plays effects (evidence: `components/games/TetrisGame.tsx`)
- Visitor → Space explorer: opens
- Space explorer → Starfield display: renders (evidence: `app/project-space/page.tsx`)
- Space explorer → Celestial details: renders results (evidence: `app/project-space/page.tsx`)
- Space explorer → Star search: uses search (evidence: `app/project-space/page.tsx`)
- Space explorer → Space calculator: renders (evidence: `app/project-space/page.tsx`)
- Space explorer → Star catalog data: loads catalog (evidence: `app/project-space/page.tsx`)
- Visitor → Setup showcase page: opens
- Setup showcase page → Theme and selection state: provides state (evidence: `app/setup/page.tsx`)
- Setup showcase page → 3D scene canvas: loads canvas (evidence: `app/setup/page.tsx`)
- Setup showcase page → Showcase controls: renders controls (evidence: `app/setup/page.tsx`)
- Theme and selection state → Hardware and theme data: reads configuration (evidence: `context/setup/ThemeContext.tsx`)
- Camera controls → Theme and selection state: reads active spec (evidence: `components/setup/canvas/CameraManager.tsx`)
- Visitor → Calc67 challenge: opens
- Calc67 challenge → Supabase client: uses client (evidence: `app/calc67/page.tsx`)
