# slpvanleeuwen/velozza architecture

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

- Interactive diagram: https://gitdiagram.com/slpvanleeuwen/velozza
- Repository: https://github.com/slpvanleeuwen/velozza

## Overview

Velozza is a static band website for presenting the band and its music, merchandise, and show information. Visitors browse the site; on the home page, browser-side JavaScript loads show data from Firestore, separates upcoming from past events, and renders event cards. The same script also handles page interactions, including the video embed and booking modal. The README establishes the site’s band-promotion purpose, while the sampled source shows the event and interaction behavior; other page details are inferred only from filenames.

Main entry points: [`site/js/script.js`](https://github.com/slpvanleeuwen/velozza/blob/main/site/js/script.js) (Page interactions), [`site/index.html`](https://github.com/slpvanleeuwen/velozza/blob/main/site/index.html) (Home page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pages["Band pages"]
  node_home["Home page<br/>[index.html]"]
  node_discography["Discography<br/>[discography.html]"]
  node_merch["Merchandise<br/>[merch.html]"]
  node_admin["Admin page<br/>[admin.html]"]
end

subgraph group_runtime["Browser interactions"]
  node_site_script["Page interactions<br/>[script.js]"]
  node_event_ui["Show listings<br/>[script.js]"]
  node_booking_ui["Booking modal<br/>[script.js]"]
  node_video_ui["Video embeds<br/>[script.js]"]
end

subgraph group_services["External services"]
  node_firestore[("Firestore events")]
  node_youtube["YouTube"]
end

node_visitor(("Visitor"))

node_visitor -->|"visits"| node_home
node_site_script -.->|"subscribes to events"| node_firestore
node_site_script -->|"renders shows"| node_event_ui
node_site_script -->|"opens and closes"| node_booking_ui
node_site_script -->|"sets embed URL"| node_video_ui
node_video_ui -->|"embeds video"| node_youtube

click node_home "https://github.com/slpvanleeuwen/velozza/blob/main/site/index.html"
click node_discography "https://github.com/slpvanleeuwen/velozza/blob/main/site/discography.html"
click node_merch "https://github.com/slpvanleeuwen/velozza/blob/main/site/merch.html"
click node_admin "https://github.com/slpvanleeuwen/velozza/blob/main/site/admin.html"
click node_site_script "https://github.com/slpvanleeuwen/velozza/blob/main/site/js/script.js"
click node_event_ui "https://github.com/slpvanleeuwen/velozza/blob/main/site/js/script.js"
click node_booking_ui "https://github.com/slpvanleeuwen/velozza/blob/main/site/js/script.js"
click node_video_ui "https://github.com/slpvanleeuwen/velozza/blob/main/site/js/script.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_home,node_discography,node_merch,node_admin toneBlue
class node_site_script,node_event_ui,node_booking_ui,node_video_ui toneAmber
class node_firestore,node_youtube toneMint
class node_visitor toneIndigo
```

## Components

### Band pages

- [Home page](https://github.com/slpvanleeuwen/velozza/blob/main/site/index.html): `site/index.html`
- [Discography](https://github.com/slpvanleeuwen/velozza/blob/main/site/discography.html): `site/discography.html`
- [Merchandise](https://github.com/slpvanleeuwen/velozza/blob/main/site/merch.html): `site/merch.html`
- [Admin page](https://github.com/slpvanleeuwen/velozza/blob/main/site/admin.html): `site/admin.html`

### Browser interactions

- [Page interactions](https://github.com/slpvanleeuwen/velozza/blob/main/site/js/script.js): `site/js/script.js`
- [Show listings](https://github.com/slpvanleeuwen/velozza/blob/main/site/js/script.js): `site/js/script.js`
- [Booking modal](https://github.com/slpvanleeuwen/velozza/blob/main/site/js/script.js): `site/js/script.js`
- [Video embeds](https://github.com/slpvanleeuwen/velozza/blob/main/site/js/script.js): `site/js/script.js`

### External services

- **Firestore events**
- **YouTube**

### Other components

- **Visitor**

## Connections

- Visitor → Home page: visits (evidence: `README.md`)
- Page interactions → Firestore events: subscribes to events (evidence: `site/js/script.js`)
- Page interactions → Show listings: renders shows (evidence: `site/js/script.js`)
- Page interactions → Booking modal: opens and closes (evidence: `site/js/script.js`)
- Page interactions → Video embeds: sets embed URL (evidence: `site/js/script.js`)
- Video embeds → YouTube: embeds video (evidence: `site/js/script.js`)
