# a7med199/love architecture

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

- Interactive diagram: https://gitdiagram.com/a7med199/love
- Repository: https://github.com/a7med199/love

## Overview

This is a mobile-first romantic scrapbook, not a server-backed application. A visitor opens the story from the envelope or letter prompt; that action starts the song and scrolls to the letter. The page also presents a relationship timeline and live date counter, a music player, a photo gallery with visit-only uploads, and interactive messages and heart effects. The README documents page content and upload behavior, while the sampled script shows the counter, player controls, gallery display, and interactions. Upload handling and detailed page markup were not sampled, so those links rely on README evidence.

Main entry points: [`index.html`](https://github.com/a7med199/love/blob/main/index.html) (Memory gallery), [`script.js`](https://github.com/a7med199/love/blob/main/script.js) (Story entry), [`music/our-song.mp3`](https://github.com/a7med199/love/blob/main/music/our-song.mp3) (Our song audio), [`photos`](https://github.com/a7med199/love/tree/main/photos) (Memory photo files)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_story["Story page"]
  node_scrapbook["Scrapbook page<br/>[index.html]"]
  node_story_entry["Story entry<br/>[script.js]"]
  node_letter_timeline["Letter and timeline<br/>[index.html]"]
  node_date_counter["Live date counter<br/>[script.js]"]
end

subgraph group_media["Music and photos"]
  node_music_player["Music player<br/>[script.js]"]
  node_song_audio["Our song audio<br/>[our-song.mp3]"]
  node_music_frame["Music frame art"]
  node_memory_gallery["Memory gallery<br/>[index.html]"]
  node_photo_upload["Photo preview upload<br/>[index.html]"]
  node_memory_photos["Memory photo files"]
  node_photo_modal["Photo viewer<br/>[script.js]"]
end

subgraph group_interactions["Visitor interactions"]
  node_responses["Message responses<br/>[script.js]"]
  node_heart_effects["Heart effects<br/>[script.js]"]
  node_reveal_effects["Scroll reveals<br/>[script.js]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_scrapbook
node_visitor -->|"opens story"| node_story_entry
node_story_entry -->|"starts song"| node_music_player
node_story_entry -->|"scrolls to"| node_letter_timeline
node_date_counter -->|"updates counter"| node_letter_timeline
node_music_player -->|"plays and seeks"| node_song_audio
node_music_player -->|"uses frame"| node_music_frame
node_visitor -->|"views memories"| node_memory_gallery
node_visitor -->|"selects photos"| node_photo_upload
node_photo_upload -->|"previews for visit"| node_memory_gallery
node_memory_gallery -->|"loads configured photos"| node_memory_photos
node_memory_gallery -->|"opens selected photo"| node_photo_modal
node_visitor -->|"chooses response"| node_responses
node_responses -->|"triggers"| node_heart_effects
node_visitor -->|"sends heart"| node_heart_effects
node_scrapbook -->|"reveals sections"| node_reveal_effects

click node_scrapbook "https://github.com/a7med199/love/blob/main/index.html"
click node_story_entry "https://github.com/a7med199/love/blob/main/script.js"
click node_letter_timeline "https://github.com/a7med199/love/blob/main/index.html"
click node_date_counter "https://github.com/a7med199/love/blob/main/script.js"
click node_music_player "https://github.com/a7med199/love/blob/main/script.js"
click node_song_audio "https://github.com/a7med199/love/blob/main/music/our-song.mp3"
click node_memory_gallery "https://github.com/a7med199/love/blob/main/index.html"
click node_photo_upload "https://github.com/a7med199/love/blob/main/index.html"
click node_memory_photos "https://github.com/a7med199/love/tree/main/photos"
click node_photo_modal "https://github.com/a7med199/love/blob/main/script.js"
click node_responses "https://github.com/a7med199/love/blob/main/script.js"
click node_heart_effects "https://github.com/a7med199/love/blob/main/script.js"
click node_reveal_effects "https://github.com/a7med199/love/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_scrapbook,node_story_entry,node_letter_timeline,node_date_counter toneBlue
class node_music_player,node_song_audio,node_music_frame,node_memory_gallery,node_photo_upload,node_memory_photos,node_photo_modal toneAmber
class node_responses,node_heart_effects,node_reveal_effects toneMint
class node_visitor toneIndigo
```

## Components

### Story page

- [Scrapbook page](https://github.com/a7med199/love/blob/main/index.html): `index.html`
- [Story entry](https://github.com/a7med199/love/blob/main/script.js): `script.js`
- [Letter and timeline](https://github.com/a7med199/love/blob/main/index.html): `index.html`
- [Live date counter](https://github.com/a7med199/love/blob/main/script.js): `script.js`

### Music and photos

- [Music player](https://github.com/a7med199/love/blob/main/script.js): `script.js`
- [Our song audio](https://github.com/a7med199/love/blob/main/music/our-song.mp3): `music/our-song.mp3`
- **Music frame art**
- [Memory gallery](https://github.com/a7med199/love/blob/main/index.html): `index.html`
- [Photo preview upload](https://github.com/a7med199/love/blob/main/index.html): `index.html`
- [Memory photo files](https://github.com/a7med199/love/tree/main/photos): `photos`
- [Photo viewer](https://github.com/a7med199/love/blob/main/script.js): `script.js`

### Visitor interactions

- [Message responses](https://github.com/a7med199/love/blob/main/script.js): `script.js`
- [Heart effects](https://github.com/a7med199/love/blob/main/script.js): `script.js`
- [Scroll reveals](https://github.com/a7med199/love/blob/main/script.js): `script.js`

### Other components

- **Visitor**

## Connections

- Visitor → Scrapbook page: opens (evidence: `README.md`)
- Visitor → Story entry: opens story (evidence: `README.md`)
- Story entry → Music player: starts song (evidence: `script.js`)
- Story entry → Letter and timeline: scrolls to (evidence: `script.js`)
- Live date counter → Letter and timeline: updates counter (evidence: `script.js`)
- Music player → Our song audio: plays and seeks (evidence: `README.md`)
- Music player → Music frame art: uses frame (evidence: `README.md`)
- Visitor → Memory gallery: views memories (evidence: `README.md`)
- Visitor → Photo preview upload: selects photos (evidence: `README.md`)
- Photo preview upload → Memory gallery: previews for visit (evidence: `README.md`)
- Memory gallery → Memory photo files: loads configured photos
- Memory gallery → Photo viewer: opens selected photo (evidence: `script.js`)
- Visitor → Message responses: chooses response (evidence: `script.js`)
- Message responses → Heart effects: triggers (evidence: `script.js`)
- Visitor → Heart effects: sends heart (evidence: `script.js`)
- Scrapbook page → Scroll reveals: reveals sections (evidence: `script.js`)
