How yokeshinfra/wedding-page works
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 Invitation page · admin.html RSVP dashboard · login.html Admin login · README.md Realtime Database weddingRSVP
Components 14
Public invitation
- Invitation page
index.html - Guest RSVP form · May be embedded in the invitation or absent from this checkout.
- Shared invitation styles
assets/css/css.css - Wedding media assets
- Invitation behavior
assets/js/script.js - Legacy plugin bundle
assets/js/jquery-plugin-collection.js
Admin console
- Admin login · Contains Firebase configuration and configured-email validation.
login.html - RSVP dashboard · Displays RSVP responses in real time.
admin.html - Admin page styles
assets/css/auth-pages.css - Configured email check · Browser-side gate before dashboard navigation.
login.html
Firebase backend
- Firebase Authentication · Email/password sign-in for administrators.
- Realtime Database weddingRSVP · Stores guest attendance and wishes.
README.md - Firebase security rules · Material authorization boundary for authentication and RSVP data.
Other components
- Netlify static hosting · Serves the repository root without a build or server runtime.
Connections 16
- 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