# andrewd-young/andrew-young-site architecture

> Architecture diagram of the GitHub repository andrewd-young/andrew-young-site, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/andrewd-young/andrew-young-site
- Repository: https://github.com/andrewd-young/andrew-young-site

## Overview

This is Andrew Young’s single-page personal portfolio. A visitor enters the React page, reads the introduction and expandable work history, and can adjust the San Francisco sky’s displayed time; the page also presents contact/resume links and a solar-event footer. The main internal layers are page composition, experience content and interaction, and time/sky presentation. The graph follows the shown imports and calls; it does not infer connections for unsampled styling or assets.

Main entry points: [`src/App.tsx`](https://github.com/andrewd-young/andrew-young-site/blob/main/src/App.tsx) (Page composition), [`src/components/Footer.tsx`](https://github.com/andrewd-young/andrew-young-site/blob/main/src/components/Footer.tsx) (Solar event footer), [`src/components/Experience.tsx`](https://github.com/andrewd-young/andrew-young-site/blob/main/src/components/Experience.tsx) (Work history), [`src/components/SkyControl.tsx`](https://github.com/andrewd-young/andrew-young-site/blob/main/src/components/SkyControl.tsx) (Sky time control)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_page["Page composition"]
  node_entry["React entry<br/>[main.tsx]"]
  node_app["Page composition<br/>[App.tsx]"]
  node_hero["Introduction<br/>[Hero.tsx]"]
  node_footer["Solar event footer<br/>[Footer.tsx]"]
end

subgraph group_experience["Experience section"]
  node_experience["Work history<br/>[Experience.tsx]"]
  node_jobs["Job content<br/>[jobs.ts]"]
  node_anchor["Scroll anchoring<br/>[useScrollAnchor.ts]"]
end

subgraph group_sky["Sky and time"]
  node_sky["Sky renderer<br/>[sky.tsx]"]
  node_control["Sky time control<br/>[SkyControl.tsx]"]
  node_clock["Sky time state<br/>[useSkyTime.ts]"]
  node_time["Time utilities<br/>[time.ts]"]
  node_solar["Solar calculations<br/>[sun.ts]"]
  node_icons["Sky illustrations<br/>[icons.tsx]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens site"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"renders"| node_sky
node_app -->|"renders"| node_control
node_app -->|"renders"| node_hero
node_app -->|"renders"| node_experience
node_app -->|"renders"| node_footer
node_app -->|"reads state"| node_clock
node_experience -->|"reads content"| node_jobs
node_experience -->|"uses"| node_anchor
node_clock -->|"uses"| node_time
node_clock -->|"uses"| node_solar
node_control -->|"formats time"| node_time
node_control -->|"renders icon"| node_icons
node_footer -->|"gets next event"| node_solar
node_footer -->|"formats duration"| node_time
node_footer -->|"renders illustration"| node_icons

click node_entry "https://github.com/andrewd-young/andrew-young-site/blob/main/src/main.tsx"
click node_app "https://github.com/andrewd-young/andrew-young-site/blob/main/src/App.tsx"
click node_hero "https://github.com/andrewd-young/andrew-young-site/blob/main/src/components/Hero.tsx"
click node_experience "https://github.com/andrewd-young/andrew-young-site/blob/main/src/components/Experience.tsx"
click node_jobs "https://github.com/andrewd-young/andrew-young-site/blob/main/src/data/jobs.ts"
click node_anchor "https://github.com/andrewd-young/andrew-young-site/blob/main/src/useScrollAnchor.ts"
click node_sky "https://github.com/andrewd-young/andrew-young-site/blob/main/src/sky.tsx"
click node_control "https://github.com/andrewd-young/andrew-young-site/blob/main/src/components/SkyControl.tsx"
click node_clock "https://github.com/andrewd-young/andrew-young-site/blob/main/src/hooks/useSkyTime.ts"
click node_time "https://github.com/andrewd-young/andrew-young-site/blob/main/src/time.ts"
click node_solar "https://github.com/andrewd-young/andrew-young-site/blob/main/src/sun.ts"
click node_icons "https://github.com/andrewd-young/andrew-young-site/blob/main/src/icons.tsx"
click node_footer "https://github.com/andrewd-young/andrew-young-site/blob/main/src/components/Footer.tsx"

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_hero,node_footer toneBlue
class node_experience,node_jobs,node_anchor toneAmber
class node_sky,node_control,node_clock,node_time,node_solar,node_icons toneMint
class node_visitor toneIndigo
```

## Components

### Page composition

- [React entry](https://github.com/andrewd-young/andrew-young-site/blob/main/src/main.tsx): `src/main.tsx`
- [Page composition](https://github.com/andrewd-young/andrew-young-site/blob/main/src/App.tsx): `src/App.tsx`
- [Introduction](https://github.com/andrewd-young/andrew-young-site/blob/main/src/components/Hero.tsx): `src/components/Hero.tsx`
- [Solar event footer](https://github.com/andrewd-young/andrew-young-site/blob/main/src/components/Footer.tsx): `src/components/Footer.tsx`

### Experience section

- [Work history](https://github.com/andrewd-young/andrew-young-site/blob/main/src/components/Experience.tsx): `src/components/Experience.tsx`
- [Job content](https://github.com/andrewd-young/andrew-young-site/blob/main/src/data/jobs.ts): `src/data/jobs.ts`
- [Scroll anchoring](https://github.com/andrewd-young/andrew-young-site/blob/main/src/useScrollAnchor.ts): `src/useScrollAnchor.ts`

### Sky and time

- [Sky renderer](https://github.com/andrewd-young/andrew-young-site/blob/main/src/sky.tsx): `src/sky.tsx`
- [Sky time control](https://github.com/andrewd-young/andrew-young-site/blob/main/src/components/SkyControl.tsx): `src/components/SkyControl.tsx`
- [Sky time state](https://github.com/andrewd-young/andrew-young-site/blob/main/src/hooks/useSkyTime.ts): `src/hooks/useSkyTime.ts`
- [Time utilities](https://github.com/andrewd-young/andrew-young-site/blob/main/src/time.ts): `src/time.ts`
- [Solar calculations](https://github.com/andrewd-young/andrew-young-site/blob/main/src/sun.ts): `src/sun.ts`
- [Sky illustrations](https://github.com/andrewd-young/andrew-young-site/blob/main/src/icons.tsx): `src/icons.tsx`

### Other components

- **Visitor**

## Connections

- Visitor → React entry: opens site (evidence: `README.md`)
- React entry → Page composition: renders (evidence: `src/main.tsx`)
- Page composition → Sky renderer: renders (evidence: `src/App.tsx`)
- Page composition → Sky time control: renders (evidence: `src/App.tsx`)
- Page composition → Introduction: renders (evidence: `src/App.tsx`)
- Page composition → Work history: renders (evidence: `src/App.tsx`)
- Page composition → Solar event footer: renders (evidence: `src/App.tsx`)
- Page composition → Sky time state: reads state (evidence: `src/App.tsx`)
- Work history → Job content: reads content (evidence: `src/components/Experience.tsx`)
- Work history → Scroll anchoring: uses (evidence: `src/components/Experience.tsx`)
- Sky time state → Time utilities: uses (evidence: `src/hooks/useSkyTime.ts`)
- Sky time state → Solar calculations: uses (evidence: `src/hooks/useSkyTime.ts`)
- Sky time control → Time utilities: formats time (evidence: `src/components/SkyControl.tsx`)
- Sky time control → Sky illustrations: renders icon (evidence: `src/components/SkyControl.tsx`)
- Solar event footer → Solar calculations: gets next event (evidence: `src/components/Footer.tsx`)
- Solar event footer → Time utilities: formats duration (evidence: `src/components/Footer.tsx`)
- Solar event footer → Sky illustrations: renders illustration (evidence: `src/components/Footer.tsx`)
