# nikitayadav19/happybirthdaybf architecture

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

- Interactive diagram: https://gitdiagram.com/nikitayadav19/happybirthdaybf
- Repository: https://github.com/nikitayadav19/happybirthdaybf

## Overview

This is a static, personalized birthday website: a visitor opens its themed pages and interacts with countdowns, reasons, a letter, and a cake-cutting sequence. The sampled JavaScript implements these interactions, while the HTML pages, styling, and video asset indicate the presentation and page-level experience. The source index exposes only script.js, so links between individual pages and shared assets are shown only where the README or sampled code supports them.

Main entry points: [`script.js`](https://github.com/nikitayadav19/happybirthdaybf/blob/main/script.js) (Birthday interactions), [`index.html`](https://github.com/nikitayadav19/happybirthdaybf/blob/main/index.html) (Birthday landing), [`reasons.html`](https://github.com/nikitayadav19/happybirthdaybf/blob/main/reasons.html) (Reasons page), [`letter.html`](https://github.com/nikitayadav19/happybirthdaybf/blob/main/letter.html) (Letter page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pages["Birthday pages"]
  node_home["Birthday landing<br/>[index.html]"]
  node_reasons_page["Reasons page<br/>[reasons.html]"]
  node_letter_page["Letter page<br/>[letter.html]"]
  node_cake_page["Cake page<br/>[cake.html]"]
  node_memories_page["Memories page<br/>[memories.html]"]
  node_final_page["Final page<br/>[final.html]"]
end

subgraph group_interactions["Interactive experiences"]
  node_birthday_logic["Birthday interactions<br/>[script.js]"]
  node_countdown["Birthday countdown<br/>[script.js]"]
  node_reason_cards["Reasons and notes<br/>[script.js]"]
  node_letter_typing["Typed letter<br/>[script.js]"]
  node_cake_sequence["Cake sequence<br/>[script.js]"]
  node_confetti["Confetti effect<br/>[script.js]"]
end

subgraph group_presentation["Presentation assets"]
  node_styles["Shared styling<br/>[style.css]"]
  node_birthday_video["Birthday video<br/>[birth.mp4]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_home
node_visitor -.->|"opens"| node_reasons_page
node_visitor -.->|"opens"| node_letter_page
node_visitor -.->|"opens"| node_cake_page
node_visitor -.->|"opens"| node_memories_page
node_visitor -.->|"opens"| node_final_page
node_home -.->|"supports"| node_birthday_logic
node_reasons_page -.->|"supports"| node_birthday_logic
node_letter_page -.->|"supports"| node_birthday_logic
node_cake_page -.->|"supports"| node_birthday_logic
node_birthday_logic -->|"updates"| node_countdown
node_birthday_logic -->|"builds"| node_reason_cards
node_birthday_logic -->|"types"| node_letter_typing
node_birthday_logic -->|"runs"| node_cake_sequence
node_cake_sequence -->|"triggers"| node_confetti
node_home -.->|"styled by"| node_styles
node_memories_page -.->|"may present"| node_birthday_video

click node_home "https://github.com/nikitayadav19/happybirthdaybf/blob/main/index.html"
click node_reasons_page "https://github.com/nikitayadav19/happybirthdaybf/blob/main/reasons.html"
click node_letter_page "https://github.com/nikitayadav19/happybirthdaybf/blob/main/letter.html"
click node_cake_page "https://github.com/nikitayadav19/happybirthdaybf/blob/main/cake.html"
click node_memories_page "https://github.com/nikitayadav19/happybirthdaybf/blob/main/memories.html"
click node_final_page "https://github.com/nikitayadav19/happybirthdaybf/blob/main/final.html"
click node_birthday_logic "https://github.com/nikitayadav19/happybirthdaybf/blob/main/script.js"
click node_countdown "https://github.com/nikitayadav19/happybirthdaybf/blob/main/script.js"
click node_reason_cards "https://github.com/nikitayadav19/happybirthdaybf/blob/main/script.js"
click node_letter_typing "https://github.com/nikitayadav19/happybirthdaybf/blob/main/script.js"
click node_cake_sequence "https://github.com/nikitayadav19/happybirthdaybf/blob/main/script.js"
click node_confetti "https://github.com/nikitayadav19/happybirthdaybf/blob/main/script.js"
click node_styles "https://github.com/nikitayadav19/happybirthdaybf/blob/main/style.css"
click node_birthday_video "https://github.com/nikitayadav19/happybirthdaybf/blob/main/assets/birth.mp4"

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_reasons_page,node_letter_page,node_cake_page,node_memories_page,node_final_page toneBlue
class node_birthday_logic,node_countdown,node_reason_cards,node_letter_typing,node_cake_sequence,node_confetti toneAmber
class node_styles,node_birthday_video toneMint
class node_visitor toneIndigo
```

## Components

### Birthday pages

- [Birthday landing](https://github.com/nikitayadav19/happybirthdaybf/blob/main/index.html): `index.html`
- [Reasons page](https://github.com/nikitayadav19/happybirthdaybf/blob/main/reasons.html): `reasons.html`
- [Letter page](https://github.com/nikitayadav19/happybirthdaybf/blob/main/letter.html): `letter.html`
- [Cake page](https://github.com/nikitayadav19/happybirthdaybf/blob/main/cake.html): `cake.html`
- [Memories page](https://github.com/nikitayadav19/happybirthdaybf/blob/main/memories.html): `memories.html`
- [Final page](https://github.com/nikitayadav19/happybirthdaybf/blob/main/final.html): `final.html`

### Interactive experiences

- [Birthday interactions](https://github.com/nikitayadav19/happybirthdaybf/blob/main/script.js): `script.js`
- [Birthday countdown](https://github.com/nikitayadav19/happybirthdaybf/blob/main/script.js): `script.js`
- [Reasons and notes](https://github.com/nikitayadav19/happybirthdaybf/blob/main/script.js): `script.js`
- [Typed letter](https://github.com/nikitayadav19/happybirthdaybf/blob/main/script.js): `script.js`
- [Cake sequence](https://github.com/nikitayadav19/happybirthdaybf/blob/main/script.js): `script.js`
- [Confetti effect](https://github.com/nikitayadav19/happybirthdaybf/blob/main/script.js): `script.js`

### Presentation assets

- [Shared styling](https://github.com/nikitayadav19/happybirthdaybf/blob/main/style.css): `style.css`
- [Birthday video](https://github.com/nikitayadav19/happybirthdaybf/blob/main/assets/birth.mp4): `assets/birth.mp4`

### Other components

- **Visitor**

## Connections

- Visitor → Birthday landing: opens (evidence: `README.md`)
- Visitor → Reasons page: opens
- Visitor → Letter page: opens
- Visitor → Cake page: opens
- Visitor → Memories page: opens
- Visitor → Final page: opens
- Birthday landing → Birthday interactions: supports
- Reasons page → Birthday interactions: supports
- Letter page → Birthday interactions: supports
- Cake page → Birthday interactions: supports
- Birthday interactions → Birthday countdown: updates (evidence: `script.js`)
- Birthday interactions → Reasons and notes: builds (evidence: `script.js`)
- Birthday interactions → Typed letter: types (evidence: `script.js`)
- Birthday interactions → Cake sequence: runs (evidence: `script.js`)
- Cake sequence → Confetti effect: triggers (evidence: `script.js`)
- Birthday landing → Shared styling: styled by
- Memories page → Birthday video: may present
