# snehasish-tech/love-proposal-web architecture

> Architecture diagram of the GitHub repository snehasish-tech/love-proposal-web, 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/snehasish-tech/love-proposal-web
- Repository: https://github.com/snehasish-tech/love-proposal-web

## Overview

This is a static, client-side romantic proposal experience. Visitors explore a gallery and interactive activities, open a love letter, and can answer the proposal; accepting triggers a celebration. The README also describes responsive styling and floating hearts. The sampled JavaScript confirms the gallery, letter, puzzle, matching game, and celebration behavior. HTML and CSS are present in the tree but were not sampled, so their specific wiring and presentation details are not mapped.

Main entry points: [`script.js`](https://github.com/snehasish-tech/love-proposal-web/blob/main/script.js) (Experience controller), [`index.html`](https://github.com/snehasish-tech/love-proposal-web/blob/main/index.html) (Proposal pages), [`styles.css`](https://github.com/snehasish-tech/love-proposal-web/blob/main/styles.css) (Responsive styling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Proposal experience"]
  node_page["Proposal pages<br/>[index.html]"]
  node_app["Experience controller<br/>[script.js]"]
  node_styles["Responsive styling<br/>[styles.css]"]
  node_gallery["Memories gallery<br/>[script.js]"]
  node_letter["Love letter<br/>[script.js]"]
  node_proposal["Proposal response<br/>[script.js]"]
end

subgraph group_activities["Interactive moments"]
  node_matching["Memory matching<br/>[script.js]"]
  node_puzzle["Sliding puzzle<br/>[script.js]"]
  node_love_result["Love result<br/>[script.js]"]
end

subgraph group_effects["Visual effects"]
  node_hearts["Floating hearts<br/>[script.js]"]
  node_particles["Particle effects<br/>[script.js]"]
  node_celebration["Celebration effects<br/>[script.js]"]
end

node_visitor(("Visitor"))

node_visitor -.->|"opens"| node_page
node_page -.->|"loads"| node_app
node_visitor -.->|"interacts"| node_app
node_app -->|"creates"| node_hearts
node_app -->|"creates"| node_particles
node_app -->|"updates"| node_gallery
node_app -->|"opens"| node_letter
node_app -->|"initializes"| node_matching
node_app -->|"initializes"| node_puzzle
node_app -->|"creates"| node_celebration
node_app -.->|"handles"| node_proposal
node_app -->|"shows"| node_love_result
node_app -.->|"adds animations"| node_styles

click node_page "https://github.com/snehasish-tech/love-proposal-web/blob/main/index.html"
click node_app "https://github.com/snehasish-tech/love-proposal-web/blob/main/script.js"
click node_styles "https://github.com/snehasish-tech/love-proposal-web/blob/main/styles.css"
click node_gallery "https://github.com/snehasish-tech/love-proposal-web/blob/main/script.js"
click node_letter "https://github.com/snehasish-tech/love-proposal-web/blob/main/script.js"
click node_proposal "https://github.com/snehasish-tech/love-proposal-web/blob/main/script.js"
click node_matching "https://github.com/snehasish-tech/love-proposal-web/blob/main/script.js"
click node_puzzle "https://github.com/snehasish-tech/love-proposal-web/blob/main/script.js"
click node_love_result "https://github.com/snehasish-tech/love-proposal-web/blob/main/script.js"
click node_hearts "https://github.com/snehasish-tech/love-proposal-web/blob/main/script.js"
click node_particles "https://github.com/snehasish-tech/love-proposal-web/blob/main/script.js"
click node_celebration "https://github.com/snehasish-tech/love-proposal-web/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_page,node_app,node_styles,node_gallery,node_letter,node_proposal toneBlue
class node_matching,node_puzzle,node_love_result toneAmber
class node_hearts,node_particles,node_celebration toneMint
class node_visitor toneIndigo
```

## Components

### Proposal experience

- [Proposal pages](https://github.com/snehasish-tech/love-proposal-web/blob/main/index.html): `index.html`
- [Experience controller](https://github.com/snehasish-tech/love-proposal-web/blob/main/script.js): `script.js`
- [Responsive styling](https://github.com/snehasish-tech/love-proposal-web/blob/main/styles.css): `styles.css`
- [Memories gallery](https://github.com/snehasish-tech/love-proposal-web/blob/main/script.js): `script.js`
- [Love letter](https://github.com/snehasish-tech/love-proposal-web/blob/main/script.js): `script.js`
- [Proposal response](https://github.com/snehasish-tech/love-proposal-web/blob/main/script.js): `script.js`

### Interactive moments

- [Memory matching](https://github.com/snehasish-tech/love-proposal-web/blob/main/script.js): `script.js`
- [Sliding puzzle](https://github.com/snehasish-tech/love-proposal-web/blob/main/script.js): `script.js`
- [Love result](https://github.com/snehasish-tech/love-proposal-web/blob/main/script.js): `script.js`

### Visual effects

- [Floating hearts](https://github.com/snehasish-tech/love-proposal-web/blob/main/script.js): `script.js`
- [Particle effects](https://github.com/snehasish-tech/love-proposal-web/blob/main/script.js): `script.js`
- [Celebration effects](https://github.com/snehasish-tech/love-proposal-web/blob/main/script.js): `script.js`

### Other components

- **Visitor**

## Connections

- Visitor → Proposal pages: opens
- Proposal pages → Experience controller: loads
- Visitor → Experience controller: interacts
- Experience controller → Floating hearts: creates (evidence: `script.js`)
- Experience controller → Particle effects: creates (evidence: `script.js`)
- Experience controller → Memories gallery: updates (evidence: `script.js`)
- Experience controller → Love letter: opens (evidence: `script.js`)
- Experience controller → Memory matching: initializes (evidence: `script.js`)
- Experience controller → Sliding puzzle: initializes (evidence: `script.js`)
- Experience controller → Celebration effects: creates (evidence: `script.js`)
- Experience controller → Proposal response: handles (evidence: `script.js`)
- Experience controller → Love result: shows (evidence: `script.js`)
- Experience controller → Responsive styling: adds animations
