# mattyp1309/matt-pearson-website architecture

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

- Interactive diagram: https://gitdiagram.com/mattyp1309/matt-pearson-website
- Repository: https://github.com/mattyp1309/matt-pearson-website

## Overview

This repository contains several generations of Matt Pearson’s website. The root README identifies v2 as the new plain HTML/CSS/JS site, while the sampled source describes a richer v3 React site with portfolio pages, booking and contact forms, editable content, and an admin panel. The graph focuses on that documented v3 runtime and its evidenced connections; v2 implementation details were not sampled.

Main entry points: [`v3/src/App.tsx`](https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/App.tsx) (App and routing), [`v3/src/components/ui.tsx`](https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/components/ui.tsx) (Shared page UI), [`v3/src/components/Home.tsx`](https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/components/Home.tsx) (Home page), [`v3/src/components/Contact.tsx`](https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/components/Contact.tsx) (Contact and FAQ)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Website runtime"]
  node_app["App and routing<br/>[App.tsx]"]
  node_nav["Navigation<br/>[Nav.tsx]"]
  node_loader["Boot loader<br/>[Loader.tsx]"]
  node_background["Animated background<br/>[Background.tsx]"]
  node_ui["Shared page UI<br/>[ui.tsx]"]
end

subgraph group_pages["Visitor pages"]
  node_home["Home page<br/>[Home.tsx]"]
  node_hero["Hero section<br/>[Hero.tsx]"]
  node_store["Store section<br/>[Store.tsx]"]
  node_contact["Contact and FAQ<br/>[Contact.tsx]"]
  node_visuals["Visuals gallery<br/>[Visuals.tsx]"]
  node_about["About section<br/>[About.tsx]"]
  node_booking["Booking page<br/>[Book.tsx]"]
end

subgraph group_content["Content and admin"]
  node_contentdata["Site content<br/>[content.ts]"]
  node_defaults["Default content<br/>[content.json]"]
  node_admin["Admin panel<br/>[index.php]"]
  node_adminlib["Admin services<br/>[lib.php]"]
  node_contentapi["Content endpoint<br/>[content.php]"]
  node_contentdb[("Content database")]
end

subgraph group_services["Form services"]
  node_contactapi["Contact endpoint<br/>[contact.php]"]
end

node_visitor(("Visitor"))
node_mail(("Email inbox"))
node_instagram(("Instagram"))

node_visitor -->|"visits"| node_app
node_app -->|"renders"| node_nav
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_visuals
node_app -->|"routes to"| node_booking
node_app -->|"renders"| node_loader
node_app -->|"uses"| node_background
node_app -->|"loads content"| node_contentdata
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_store
node_home -->|"renders"| node_contact
node_visuals -->|"renders"| node_about
node_home -->|"uses"| node_ui
node_hero -->|"uses"| node_ui
node_store -->|"uses"| node_ui
node_contact -->|"uses"| node_ui
node_visuals -->|"uses"| node_ui
node_booking -->|"uses"| node_ui
node_contentdata -->|"imports defaults"| node_defaults
node_contentdata -->|"fetches edits"| node_contentapi
node_admin -->|"includes"| node_adminlib
node_admin -.->|"edits content"| node_contentdb
node_adminlib -.->|"reads and writes"| node_contentdb
node_contentapi -.->|"serves edits"| node_contentdb
node_contact -->|"posts form"| node_contactapi
node_contactapi -.->|"delivers message"| node_mail
node_nav -->|"links to"| node_instagram

click node_app "https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/App.tsx"
click node_nav "https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/components/Nav.tsx"
click node_loader "https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/components/Loader.tsx"
click node_background "https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/components/Background.tsx"
click node_ui "https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/components/ui.tsx"
click node_home "https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/components/Home.tsx"
click node_hero "https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/components/Hero.tsx"
click node_store "https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/components/Store.tsx"
click node_contact "https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/components/Contact.tsx"
click node_visuals "https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/components/Visuals.tsx"
click node_about "https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/components/About.tsx"
click node_booking "https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/components/Book.tsx"
click node_contentdata "https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/content.ts"
click node_defaults "https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/public/content.json"
click node_admin "https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/public/admin/index.php"
click node_adminlib "https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/public/admin/lib.php"
click node_contentapi "https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/public/content.php"
click node_contactapi "https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/public/contact.php"

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_nav,node_loader,node_background,node_ui toneBlue
class node_home,node_hero,node_store,node_contact,node_visuals,node_about,node_booking toneAmber
class node_contentdata,node_defaults,node_admin,node_adminlib,node_contentapi,node_contentdb toneMint
class node_contactapi toneRose
class node_visitor,node_mail,node_instagram toneIndigo
```

## Components

### Website runtime

- [App and routing](https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/App.tsx): `v3/src/App.tsx`
- [Navigation](https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/components/Nav.tsx): `v3/src/components/Nav.tsx`
- [Boot loader](https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/components/Loader.tsx): `v3/src/components/Loader.tsx`
- [Animated background](https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/components/Background.tsx): `v3/src/components/Background.tsx`
- [Shared page UI](https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/components/ui.tsx): `v3/src/components/ui.tsx`

### Visitor pages

- [Home page](https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/components/Home.tsx): `v3/src/components/Home.tsx`
- [Hero section](https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/components/Hero.tsx): `v3/src/components/Hero.tsx`
- [Store section](https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/components/Store.tsx): `v3/src/components/Store.tsx`
- [Contact and FAQ](https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/components/Contact.tsx): `v3/src/components/Contact.tsx`
- [Visuals gallery](https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/components/Visuals.tsx): `v3/src/components/Visuals.tsx`
- [About section](https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/components/About.tsx): `v3/src/components/About.tsx`
- [Booking page](https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/components/Book.tsx): `v3/src/components/Book.tsx`

### Content and admin

- [Site content](https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/src/content.ts): `v3/src/content.ts`
- [Default content](https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/public/content.json): `v3/public/content.json`
- [Admin panel](https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/public/admin/index.php): `v3/public/admin/index.php`
- [Admin services](https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/public/admin/lib.php): `v3/public/admin/lib.php`
- [Content endpoint](https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/public/content.php): `v3/public/content.php`
- **Content database**

### Form services

- [Contact endpoint](https://github.com/mattyp1309/matt-pearson-website/blob/claude/gifted-rubin-cv7q0m/v3/public/contact.php): `v3/public/contact.php`

### Other components

- **Visitor**
- **Email inbox**
- **Instagram**

## Connections

- Visitor → App and routing: visits (evidence: `README.md`)
- App and routing → Navigation: renders (evidence: `v3/src/App.tsx`)
- App and routing → Home page: routes to (evidence: `v3/src/App.tsx`)
- App and routing → Visuals gallery: routes to (evidence: `v3/src/App.tsx`)
- App and routing → Booking page: routes to (evidence: `v3/src/App.tsx`)
- App and routing → Boot loader: renders (evidence: `v3/src/App.tsx`)
- App and routing → Animated background: uses (evidence: `v3/src/App.tsx`)
- App and routing → Site content: loads content (evidence: `v3/src/App.tsx`)
- Home page → Hero section: renders (evidence: `v3/src/components/Home.tsx`)
- Home page → Store section: renders (evidence: `v3/src/components/Home.tsx`)
- Home page → Contact and FAQ: renders (evidence: `v3/src/components/Home.tsx`)
- Visuals gallery → About section: renders (evidence: `v3/src/components/Visuals.tsx`)
- Home page → Shared page UI: uses (evidence: `v3/src/components/Home.tsx`)
- Hero section → Shared page UI: uses (evidence: `v3/src/components/Hero.tsx`)
- Store section → Shared page UI: uses (evidence: `v3/src/components/Store.tsx`)
- Contact and FAQ → Shared page UI: uses (evidence: `v3/src/components/Contact.tsx`)
- Visuals gallery → Shared page UI: uses (evidence: `v3/src/components/Visuals.tsx`)
- Booking page → Shared page UI: uses (evidence: `v3/src/components/Book.tsx`)
- Site content → Default content: imports defaults (evidence: `v3/src/content.ts`)
- Site content → Content endpoint: fetches edits (evidence: `v3/src/content.ts`)
- Admin panel → Admin services: includes (evidence: `v3/public/admin/index.php`)
- Admin panel → Content database: edits content
- Admin services → Content database: reads and writes
- Content endpoint → Content database: serves edits
- Contact and FAQ → Contact endpoint: posts form (evidence: `v3/src/components/Contact.tsx`)
- Contact endpoint → Email inbox: delivers message
- Navigation → Instagram: links to (evidence: `v3/src/components/Nav.tsx`)
