# milireji/mili architecture

> Architecture diagram of the GitHub repository milireji/mili, 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/milireji/mili
- Repository: https://github.com/milireji/mili

## Overview

This is a small React birthday-surprise page. A visitor opens the gift, which starts looping birthday music and reveals the celebration: a greeting, photo gallery, interactive letter, and secret section. The React entry point mounts the app; the app controls the start state and renders the content. The photo files and Secret implementation were not shown, so their behavior is represented only where the excerpts support it.

Main entry points: [`src/App.jsx`](https://github.com/milireji/mili/blob/main/src/App.jsx) (Gift app), [`src/main.jsx`](https://github.com/milireji/mili/blob/main/src/main.jsx) (React mount), [`src/components/Hero.jsx`](https://github.com/milireji/mili/blob/main/src/components/Hero.jsx) (Birthday greeting), [`src/components/Gallery.jsx`](https://github.com/milireji/mili/blob/main/src/components/Gallery.jsx) (Photo gallery)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Page entry"]
  node_mount["React mount<br/>[main.jsx]"]
  node_app["Gift app<br/>[App.jsx]"]
  node_confetti["Confetti<br/>[App.jsx]"]
end

subgraph group_celebration["Birthday content"]
  node_hero["Birthday greeting<br/>[Hero.jsx]"]
  node_gallery["Photo gallery<br/>[Gallery.jsx]"]
  node_message["Birthday letter<br/>[Message.jsx]"]
  node_secret["Secret section<br/>[Secret.jsx]"]
end

subgraph group_media["Media"]
  node_track["Birthday music<br/>[birthday.mp3]"]
end

node_visitor(("Visitor"))

node_mount -->|"mounts"| node_app
node_visitor -->|"starts gift"| node_app
node_app -->|"renders"| node_confetti
node_app -->|"renders"| node_hero
node_app -->|"renders"| node_gallery
node_app -->|"renders"| node_message
node_app -->|"renders"| node_secret
node_app -->|"plays"| node_track

click node_mount "https://github.com/milireji/mili/blob/main/src/main.jsx"
click node_app "https://github.com/milireji/mili/blob/main/src/App.jsx"
click node_confetti "https://github.com/milireji/mili/blob/main/src/App.jsx"
click node_hero "https://github.com/milireji/mili/blob/main/src/components/Hero.jsx"
click node_gallery "https://github.com/milireji/mili/blob/main/src/components/Gallery.jsx"
click node_message "https://github.com/milireji/mili/blob/main/src/components/Message.jsx"
click node_secret "https://github.com/milireji/mili/blob/main/src/components/Secret.jsx"
click node_track "https://github.com/milireji/mili/blob/main/src/music/birthday.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_mount,node_app,node_confetti toneBlue
class node_hero,node_gallery,node_message,node_secret toneAmber
class node_track toneMint
class node_visitor toneIndigo
```

## Components

### Page entry

- [React mount](https://github.com/milireji/mili/blob/main/src/main.jsx): `src/main.jsx`
- [Gift app](https://github.com/milireji/mili/blob/main/src/App.jsx): `src/App.jsx`
- [Confetti](https://github.com/milireji/mili/blob/main/src/App.jsx): `src/App.jsx`

### Birthday content

- [Birthday greeting](https://github.com/milireji/mili/blob/main/src/components/Hero.jsx): `src/components/Hero.jsx`
- [Photo gallery](https://github.com/milireji/mili/blob/main/src/components/Gallery.jsx): `src/components/Gallery.jsx`
- [Birthday letter](https://github.com/milireji/mili/blob/main/src/components/Message.jsx): `src/components/Message.jsx`
- [Secret section](https://github.com/milireji/mili/blob/main/src/components/Secret.jsx): `src/components/Secret.jsx`

### Media

- [Birthday music](https://github.com/milireji/mili/blob/main/src/music/birthday.mp3): `src/music/birthday.mp3`

### Other components

- **Visitor**

## Connections

- React mount → Gift app: mounts (evidence: `src/main.jsx`)
- Visitor → Gift app: starts gift (evidence: `src/App.jsx`)
- Gift app → Confetti: renders (evidence: `src/App.jsx`)
- Gift app → Birthday greeting: renders (evidence: `src/App.jsx`)
- Gift app → Photo gallery: renders (evidence: `src/App.jsx`)
- Gift app → Birthday letter: renders (evidence: `src/App.jsx`)
- Gift app → Secret section: renders (evidence: `src/App.jsx`)
- Gift app → Birthday music: plays (evidence: `src/App.jsx`)
