How crimama/react-wedding-card works
This is a React mobile wedding-invitation template. Visitors view the invitation’s cover, invitation text, event date, gallery, venue details, account information, guestbook, and guest-photo upload; administrators use the ?admin view to edit settings and manage uploaded gallery images. Shared settings combine defaults with Firestore data, while guestbook and gallery features access Firestore directly. The README also documents sharing and rich-text editing. Some section implementations were not sampled, so their inclusion and routing follow the README and source index; uncertain integrations are marked dashed.
Main entry points: App.js Invitation app · SiteSettingsContext.js Settings context · ImgGallery.js Photo gallery · Footer.js Sharing footer
Components 20
Invitation sections
- Invitation app
src/App.js - Cover
src/pages/Cover.js - Invitation text
src/pages/Invitation.js - Event calendar
src/pages/Calendar.js - Photo gallery
src/pages/ImgGallery.js - Venue directions
src/pages/Location.js - Gift accounts
src/pages/Account.js - Sharing footer
src/components/Footer.js - Quiz section
src/pages/Quiz.js - Submit section
src/pages/Submit.js
Settings and admin
- Settings context
src/SiteSettingsContext.js - Default settings
src/defaultSiteConfig.js - Admin editor
src/pages/Admin.js
Guest features
- Guestbook
src/pages/Comment.js - Guest photo upload
src/pages/PhotoUpload.js
Data and integrations
- Firebase connection
src/firebase-config.js - Firestore
- Google Apps Script
- Kakao sharing
Other components
- Visitor
Connections 22
- Visitor → Invitation app: opens
src/App.js - Invitation app → Cover: renders
src/App.js - Invitation app → Invitation text: renders
src/App.js - Invitation app → Event calendar: renders
src/App.js - Invitation app → Photo gallery: renders
src/App.js - Invitation app → Venue directions: renders
src/App.js - Invitation app → Gift accounts: renders
src/App.js - Invitation app → Guestbook: renders
src/App.js - Invitation app → Guest photo upload: renders
src/App.js - Invitation app → Sharing footer: renders
src/App.js - Invitation app → Admin editor: routes
src/App.js - Invitation app → Settings context: provides settings
src/App.js - Settings context → Default settings: merges defaults
src/SiteSettingsContext.js - Settings context → Firestore: reads settings
src/SiteSettingsContext.js - Firebase connection → Firestore: initializes
src/firebase-config.js - Admin editor → Firestore: reads and writes
src/pages/Admin.js - Photo gallery → Firestore: reads uploads
src/pages/ImgGallery.js - Guestbook → Firestore: reads and writes
src/pages/Comment.js - Guest photo upload → Google Apps Script: posts photos
src/pages/PhotoUpload.js - Sharing footer → Kakao sharing: shares invitation
README.md - Invitation app → Quiz section: includes section
src/App.js - Invitation app → Submit section: includes section
src/App.js