# yokeshinfra/wedding-page architecture

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

- Interactive diagram: https://gitdiagram.com/yokeshinfra/wedding-page
- Repository: https://github.com/yokeshinfra/wedding-page

## Overview

#### Purpose and delivery model
This is a static wedding invitation and RSVP system: a public invitation experience, an administrator login flow, and an RSVP-response dashboard. It is intended for static hosting on Netlify; browser-side JavaScript communicates directly with Firebase services. Primary entry points are `index.html`, `login.html`, and `admin.html`.

#### Public invitation experience
The public-facing invitation is served from `index.html`. It composes the visual wedding content from shared styles, image/media assets, and browser scripts:
- `index.html`
- `assets/css/css.css`
- `assets/js/script.js`

Visual content is asset-driven, including event imagery and optional video material under `assets/images/`, such as `assets/images/video-bg/video.mp4`, plus slider/story/couple image directories.

#### RSVP submission boundary
The README describes a guest RSVP form that confirms attendance and collects wishes, storing submissions in Firebase Realtime Database. However, the declared `rsvp.html` entry point is not present in the supplied file tree. The implementation may instead be embedded in `index.html`, omitted from this checkout, or referenced externally. The expected persistence boundary is the Firebase Realtime Database `weddingRSVP` collection/path described in `README.md`.

#### Admin authentication and authorization
`login.html` is the administrative authentication entry point. It uses Firebase Authentication with email/password credentials, then applies a client-side configured-email check before allowing dashboard access. The Firebase configuration and allowed-admin identity are expected to be embedded/configured in:
- `login.html`
- `admin.html`

This is a browser-enforced authorization layer; Firebase Authentication and Realtime Database security rules remain the material server-side access-control boundary.

#### Realtime response management
`admin.html` is the admin console. After authentication/authorization, it reads RSVP data from Firebase Realtime Database and presents guest responses in real time. The principal data flow is:

Guest RSVP form → Firebase Realtime Database → authenticated admin dashboard

Authentication control flow is:

`login.html` → Firebase Auth sign-in → configured email validation → `admin.html`

#### Frontend behavior and presentation layer
The application is vanilla HTML/CSS/JavaScript, with a shared legacy-style plugin bundle and page behavior scripts rather than a compiled application framework:
- `assets/js/jquery-plugin-collection.js`
- `assets/js/script.js`
- `assets/js/moving-animation.js`

Styling and responsive presentation are centralized in `assets/css/`, notably `assets/css/css.css`, `assets/css/auth-pages.css`, and animation/carousel/plugin styles. `assets/sass/style.css` appears to be an additional source or alternate stylesheet artifact.

#### Infrastructure and external services
Netlify hosts the repository root as a static site, with no build command or server runtime. Firebase is the application backend: Firebase Authentication provides admin sign-in, while Firebase Realtime Database stores RSVP records and streams them to the dashboard. Client-side Firebase configuration in the HTML pages is therefore a critical integration boundary.

Main entry points: [`index.html`](https://github.com/yokeshinfra/wedding-page/blob/main/index.html) (Invitation page), [`admin.html`](https://github.com/yokeshinfra/wedding-page/blob/main/admin.html) (RSVP dashboard), [`login.html`](https://github.com/yokeshinfra/wedding-page/blob/main/login.html) (Admin login), [`README.md`](https://github.com/yokeshinfra/wedding-page/blob/main/README.md) (Realtime Database weddingRSVP)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public invitation"]
  node_invitation["Invitation page<br/>HTML entry<br/>[index.html]"]
  node_rsvp_form["Guest RSVP form<br/>browser form"]
  node_shared_styles["Shared invitation styles<br/>CSS<br/>[css.css]"]
  node_media_assets["Wedding media assets<br/>images and video"]
  node_page_behavior["Invitation behavior<br/>browser JavaScript<br/>[script.js]"]
  node_plugin_bundle["Legacy plugin bundle<br/>browser JavaScript"]
end

subgraph group_admin["Admin console"]
  node_login["Admin login<br/>HTML entry<br/>[login.html]"]
  node_admin_dashboard["RSVP dashboard<br/>HTML entry<br/>[admin.html]"]
  node_auth_styles["Admin page styles<br/>CSS<br/>[auth-pages.css]"]
  node_email_check["Configured email check<br/>client authorization<br/>[login.html]"]
end

subgraph group_firebase["Firebase backend"]
  node_firebase_auth{{"Firebase Authentication<br/>identity service"}}
  node_rsvp_database[("Realtime Database weddingRSVP<br/>RSVP data store<br/>[README.md]")]
  node_firebase_rules["Firebase security rules<br/>server access control"]
end

node_netlify{{"Netlify static hosting"}}

node_netlify -->|"serves"| node_invitation
node_netlify -->|"serves"| node_login
node_netlify -->|"serves"| node_admin_dashboard
node_invitation -->|"uses"| node_shared_styles
node_invitation -->|"loads"| node_media_assets
node_invitation -->|"runs"| node_page_behavior
node_page_behavior -->|"uses"| node_plugin_bundle
node_rsvp_form -->|"writes RSVP"| node_rsvp_database
node_login -->|"uses"| node_auth_styles
node_login -->|"signs in"| node_firebase_auth
node_firebase_auth -->|"returns identity"| node_email_check
node_email_check -->|"allows access"| node_admin_dashboard
node_admin_dashboard -->|"verifies session"| node_firebase_auth
node_admin_dashboard -->|"streams responses"| node_rsvp_database
node_firebase_rules -.->|"protects access"| node_firebase_auth
node_firebase_rules -.->|"protects data"| node_rsvp_database

click node_invitation "https://github.com/yokeshinfra/wedding-page/blob/main/index.html"
click node_shared_styles "https://github.com/yokeshinfra/wedding-page/blob/main/assets/css/css.css"
click node_page_behavior "https://github.com/yokeshinfra/wedding-page/blob/main/assets/js/script.js"
click node_plugin_bundle "https://github.com/yokeshinfra/wedding-page/blob/main/assets/js/jquery-plugin-collection.js"
click node_login "https://github.com/yokeshinfra/wedding-page/blob/main/login.html"
click node_admin_dashboard "https://github.com/yokeshinfra/wedding-page/blob/main/admin.html"
click node_auth_styles "https://github.com/yokeshinfra/wedding-page/blob/main/assets/css/auth-pages.css"
click node_email_check "https://github.com/yokeshinfra/wedding-page/blob/main/login.html"
click node_rsvp_database "https://github.com/yokeshinfra/wedding-page/blob/main/README.md"

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_rsvp_form,node_shared_styles,node_media_assets,node_page_behavior,node_plugin_bundle toneBlue
class node_login,node_admin_dashboard,node_auth_styles,node_email_check toneAmber
class node_firebase_auth,node_rsvp_database,node_firebase_rules toneMint
class node_netlify toneNeutral
```

## Components

### Public invitation

- [Invitation page](https://github.com/yokeshinfra/wedding-page/blob/main/index.html): HTML entry · `index.html`
- **Guest RSVP form**: browser form · May be embedded in the invitation or absent from this checkout.
- [Shared invitation styles](https://github.com/yokeshinfra/wedding-page/blob/main/assets/css/css.css): CSS · `assets/css/css.css`
- **Wedding media assets**: images and video
- [Invitation behavior](https://github.com/yokeshinfra/wedding-page/blob/main/assets/js/script.js): browser JavaScript · `assets/js/script.js`
- [Legacy plugin bundle](https://github.com/yokeshinfra/wedding-page/blob/main/assets/js/jquery-plugin-collection.js): browser JavaScript · `assets/js/jquery-plugin-collection.js`

### Admin console

- [Admin login](https://github.com/yokeshinfra/wedding-page/blob/main/login.html): HTML entry · Contains Firebase configuration and configured-email validation. · `login.html`
- [RSVP dashboard](https://github.com/yokeshinfra/wedding-page/blob/main/admin.html): HTML entry · Displays RSVP responses in real time. · `admin.html`
- [Admin page styles](https://github.com/yokeshinfra/wedding-page/blob/main/assets/css/auth-pages.css): CSS · `assets/css/auth-pages.css`
- [Configured email check](https://github.com/yokeshinfra/wedding-page/blob/main/login.html): client authorization · Browser-side gate before dashboard navigation. · `login.html`

### Firebase backend

- **Firebase Authentication**: identity service · Email/password sign-in for administrators.
- [Realtime Database weddingRSVP](https://github.com/yokeshinfra/wedding-page/blob/main/README.md): RSVP data store · Stores guest attendance and wishes. · `README.md`
- **Firebase security rules**: server access control · Material authorization boundary for authentication and RSVP data.

### Other components

- **Netlify static hosting**: hosting · Serves the repository root without a build or server runtime.

## Connections

- Netlify static hosting → Invitation page: serves
- Netlify static hosting → Admin login: serves
- Netlify static hosting → RSVP dashboard: serves
- Invitation page → Shared invitation styles: uses
- Invitation page → Wedding media assets: loads
- Invitation page → Invitation behavior: runs
- Invitation behavior → Legacy plugin bundle: uses
- Guest RSVP form → Realtime Database weddingRSVP: writes RSVP
- Admin login → Admin page styles: uses
- Admin login → Firebase Authentication: signs in
- Firebase Authentication → Configured email check: returns identity
- Configured email check → RSVP dashboard: allows access
- RSVP dashboard → Firebase Authentication: verifies session
- RSVP dashboard → Realtime Database weddingRSVP: streams responses
- Firebase security rules → Firebase Authentication: protects access
- Firebase security rules → Realtime Database weddingRSVP: protects data
