# megalestaridwis/asas_project_mega architecture

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

- Interactive diagram: https://gitdiagram.com/megalestaridwis/asas_project_mega
- Repository: https://github.com/megalestaridwis/asas_project_mega

## Overview

This is a small static wedding-invitation site. Guests can open a personalized invitation, control its music, submit an RSVP, and copy a bank-account number; the RSVP handler sends submissions to Supabase. The tree also includes an admin page, guest CSV, images, and styling, but no README or excerpts describe their behavior or connections. The graph therefore shows only relationships visible in the JavaScript and leaves those other capabilities unconnected rather than inferring their implementation.

Main entry points: [`script.js`](https://github.com/megalestaridwis/asas_project_mega/blob/main/script.js) (RSVP handler), [`index.html`](https://github.com/megalestaridwis/asas_project_mega/blob/main/index.html) (RSVP form), [`musik.mp3`](https://github.com/megalestaridwis/asas_project_mega/blob/main/musik.mp3) (Invitation music)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_guest["Guest invitation"]
  node_invitation["Invitation page<br/>[index.html]"]
  node_guest_controls["Invitation controls<br/>[script.js]"]
  node_account_copy["Account-number copy<br/>[script.js]"]
end

subgraph group_submission["RSVP submission"]
  node_rsvp_form["RSVP form<br/>[index.html]"]
  node_rsvp_handler["RSVP handler<br/>[script.js]"]
  node_supabase[("Supabase RSVP store")]
end

subgraph group_resources["Site resources"]
  node_music_file["Invitation music<br/>[musik.mp3]"]
  node_admin_page["Admin page<br/>[admin.html]"]
  node_guest_csv["Guest data<br/>[data-tamu.csv]"]
  node_images["Images"]
  node_styles["Stylesheet<br/>[style.css]"]
end

node_visitor(("Guest"))

node_visitor -.->|"opens"| node_invitation
node_rsvp_form -->|"submits to"| node_rsvp_handler
node_rsvp_handler -->|"inserts RSVP"| node_supabase
node_guest_controls -.->|"plays or pauses"| node_music_file

click node_invitation "https://github.com/megalestaridwis/asas_project_mega/blob/main/index.html"
click node_guest_controls "https://github.com/megalestaridwis/asas_project_mega/blob/main/script.js"
click node_music_file "https://github.com/megalestaridwis/asas_project_mega/blob/main/musik.mp3"
click node_rsvp_form "https://github.com/megalestaridwis/asas_project_mega/blob/main/index.html"
click node_rsvp_handler "https://github.com/megalestaridwis/asas_project_mega/blob/main/script.js"
click node_account_copy "https://github.com/megalestaridwis/asas_project_mega/blob/main/script.js"
click node_admin_page "https://github.com/megalestaridwis/asas_project_mega/blob/main/admin.html"
click node_guest_csv "https://github.com/megalestaridwis/asas_project_mega/blob/main/data-tamu.csv"
click node_images "https://github.com/megalestaridwis/asas_project_mega/tree/main/Images"
click node_styles "https://github.com/megalestaridwis/asas_project_mega/blob/main/style.css"

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_invitation,node_guest_controls,node_account_copy toneBlue
class node_rsvp_form,node_rsvp_handler,node_supabase toneAmber
class node_music_file,node_admin_page,node_guest_csv,node_images,node_styles toneMint
class node_visitor toneIndigo
```

## Components

### Guest invitation

- [Invitation page](https://github.com/megalestaridwis/asas_project_mega/blob/main/index.html): `index.html`
- [Invitation controls](https://github.com/megalestaridwis/asas_project_mega/blob/main/script.js): `script.js`
- [Account-number copy](https://github.com/megalestaridwis/asas_project_mega/blob/main/script.js): `script.js`

### RSVP submission

- [RSVP form](https://github.com/megalestaridwis/asas_project_mega/blob/main/index.html): `index.html`
- [RSVP handler](https://github.com/megalestaridwis/asas_project_mega/blob/main/script.js): `script.js`
- **Supabase RSVP store**

### Site resources

- [Invitation music](https://github.com/megalestaridwis/asas_project_mega/blob/main/musik.mp3): `musik.mp3`
- [Admin page](https://github.com/megalestaridwis/asas_project_mega/blob/main/admin.html): `admin.html`
- [Guest data](https://github.com/megalestaridwis/asas_project_mega/blob/main/data-tamu.csv): `data-tamu.csv`
- [Images](https://github.com/megalestaridwis/asas_project_mega/tree/main/Images): `Images`
- [Stylesheet](https://github.com/megalestaridwis/asas_project_mega/blob/main/style.css): `style.css`

### Other components

- **Guest**

## Connections

- Guest → Invitation page: opens
- RSVP form → RSVP handler: submits to (evidence: `script.js`)
- RSVP handler → Supabase RSVP store: inserts RSVP (evidence: `script.js`)
- Invitation controls → Invitation music: plays or pauses
