# wonder-hash/happyanniversary architecture

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

- Interactive diagram: https://gitdiagram.com/wonder-hash/happyanniversary
- Repository: https://github.com/wonder-hash/happyanniversary

## Overview

This is a small anniversary-themed website with two interactive experiences: a flip-through love-note card sequence that leads to a final page, and a relationship quiz with scoring, progress, and result messages. The source excerpts show the card navigation and quiz behavior, but the README is empty and the HTML, stylesheets, and media files were not excerpted. Their exact page wiring and asset use therefore cannot be confirmed.

Main entry points: [`script.js`](https://github.com/wonder-hash/happyanniversary/blob/main/script.js) (Love-note cards), [`loversPage.html`](https://github.com/wonder-hash/happyanniversary/blob/main/loversPage.html) (Lovers page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pages["Site pages"]
  node_intro_page["Card page<br/>[idex.html]"]
  node_final_page["Lovers page<br/>[loversPage.html]"]
end

subgraph group_interactions["Interactive experiences"]
  node_card_sequence["Love-note cards<br/>[script.js]"]
  node_quiz["Relationship quiz<br/>[script2.js]"]
end

subgraph group_presentation["Presentation and media"]
  node_main_styles["Page styles<br/>[styles.css]"]
  node_card_styles["Card styles<br/>[style2.css]"]
  node_background["Background image<br/>[backgroundimg.avif]"]
  node_music["Audio track<br/>[her.mp3]"]
end

node_visitor(("Visitor"))

node_card_sequence -->|"navigates to"| node_final_page

click node_intro_page "https://github.com/wonder-hash/happyanniversary/blob/main/idex.html"
click node_final_page "https://github.com/wonder-hash/happyanniversary/blob/main/loversPage.html"
click node_card_sequence "https://github.com/wonder-hash/happyanniversary/blob/main/script.js"
click node_quiz "https://github.com/wonder-hash/happyanniversary/blob/main/script2.js"
click node_main_styles "https://github.com/wonder-hash/happyanniversary/blob/main/styles.css"
click node_card_styles "https://github.com/wonder-hash/happyanniversary/blob/main/style2.css"
click node_background "https://github.com/wonder-hash/happyanniversary/blob/main/backgroundimg.avif"
click node_music "https://github.com/wonder-hash/happyanniversary/blob/main/her.mp3"

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_intro_page,node_final_page toneBlue
class node_card_sequence,node_quiz toneAmber
class node_main_styles,node_card_styles,node_background,node_music toneMint
class node_visitor toneIndigo
```

## Components

### Site pages

- [Card page](https://github.com/wonder-hash/happyanniversary/blob/main/idex.html): `idex.html`
- [Lovers page](https://github.com/wonder-hash/happyanniversary/blob/main/loversPage.html): `loversPage.html`

### Interactive experiences

- [Love-note cards](https://github.com/wonder-hash/happyanniversary/blob/main/script.js): `script.js`
- [Relationship quiz](https://github.com/wonder-hash/happyanniversary/blob/main/script2.js): `script2.js`

### Presentation and media

- [Page styles](https://github.com/wonder-hash/happyanniversary/blob/main/styles.css): `styles.css`
- [Card styles](https://github.com/wonder-hash/happyanniversary/blob/main/style2.css): `style2.css`
- [Background image](https://github.com/wonder-hash/happyanniversary/blob/main/backgroundimg.avif): `backgroundimg.avif`
- [Audio track](https://github.com/wonder-hash/happyanniversary/blob/main/her.mp3): `her.mp3`

### Other components

- **Visitor**

## Connections

- Love-note cards → Lovers page: navigates to (evidence: `script.js`)
