# bongs20/ultahyee architecture

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

- Interactive diagram: https://gitdiagram.com/bongs20/ultahyee
- Repository: https://github.com/bongs20/ultahyee

## Overview

ultahyee is a static interactive birthday greeting. The intended experience is a countdown to the next birthday, followed by a sequence of story slides and a final greeting; visitors can also control music and restart the story. The sampled script confirms countdown-triggered confetti and the opening slide transitions, plus click-based music playback. Later slide transitions, audio wiring, and the HTML/CSS structure were not inspected, so those relationships are not inferred.

Main entry points: [`script.js`](https://github.com/bongs20/ultahyee/blob/main/script.js) (Countdown timer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_countdown["Birthday countdown"]
  node_countdown_timer["Countdown timer<br/>[script.js]"]
  node_confetti["Confetti effect<br/>[script.js]"]
end

subgraph group_story["Greeting story"]
  node_story_start["Opening slide<br/>[script.js]"]
  node_story_second["Second slide<br/>[script.js]"]
  node_story_later["Later slides<br/>[script.js]"]
  node_final_greeting["Final greeting<br/>[script.js]"]
end

subgraph group_controls["Visitor controls"]
  node_music_control["Music control<br/>[script.js]"]
  node_restart_control["Restart control<br/>[script.js]"]
end

node_visitor(("Visitor"))

node_countdown_timer -->|"triggers at expiry"| node_confetti
node_countdown_timer -->|"starts at expiry"| node_story_start
node_story_start -->|"advances on click"| node_story_second
node_story_second -->|"advances onward"| node_story_later
node_visitor -->|"clicks to play"| node_music_control

click node_countdown_timer "https://github.com/bongs20/ultahyee/blob/main/script.js"
click node_confetti "https://github.com/bongs20/ultahyee/blob/main/script.js"
click node_story_start "https://github.com/bongs20/ultahyee/blob/main/script.js"
click node_story_second "https://github.com/bongs20/ultahyee/blob/main/script.js"
click node_story_later "https://github.com/bongs20/ultahyee/blob/main/script.js"
click node_final_greeting "https://github.com/bongs20/ultahyee/blob/main/script.js"
click node_music_control "https://github.com/bongs20/ultahyee/blob/main/script.js"
click node_restart_control "https://github.com/bongs20/ultahyee/blob/main/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_countdown_timer,node_confetti toneBlue
class node_story_start,node_story_second,node_story_later,node_final_greeting toneAmber
class node_music_control,node_restart_control toneMint
class node_visitor toneIndigo
```

## Components

### Birthday countdown

- [Countdown timer](https://github.com/bongs20/ultahyee/blob/main/script.js): `script.js`
- [Confetti effect](https://github.com/bongs20/ultahyee/blob/main/script.js): `script.js`

### Greeting story

- [Opening slide](https://github.com/bongs20/ultahyee/blob/main/script.js): `script.js`
- [Second slide](https://github.com/bongs20/ultahyee/blob/main/script.js): `script.js`
- [Later slides](https://github.com/bongs20/ultahyee/blob/main/script.js): `script.js`
- [Final greeting](https://github.com/bongs20/ultahyee/blob/main/script.js): `script.js`

### Visitor controls

- [Music control](https://github.com/bongs20/ultahyee/blob/main/script.js): `script.js`
- [Restart control](https://github.com/bongs20/ultahyee/blob/main/script.js): `script.js`

### Other components

- **Visitor**

## Connections

- Countdown timer → Confetti effect: triggers at expiry (evidence: `script.js`)
- Countdown timer → Opening slide: starts at expiry (evidence: `script.js`)
- Opening slide → Second slide: advances on click (evidence: `script.js`)
- Second slide → Later slides: advances onward (evidence: `script.js`)
- Visitor → Music control: clicks to play (evidence: `script.js`)
