# crimama/react-wedding-card architecture

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

- Interactive diagram: https://gitdiagram.com/crimama/react-wedding-card
- Repository: https://github.com/crimama/react-wedding-card

## Overview

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: [`src/App.js`](https://github.com/crimama/react-wedding-card/blob/main/src/App.js) (Invitation app), [`src/SiteSettingsContext.js`](https://github.com/crimama/react-wedding-card/blob/main/src/SiteSettingsContext.js) (Settings context), [`src/pages/ImgGallery.js`](https://github.com/crimama/react-wedding-card/blob/main/src/pages/ImgGallery.js) (Photo gallery), [`src/components/Footer.js`](https://github.com/crimama/react-wedding-card/blob/main/src/components/Footer.js) (Sharing footer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_invitation["Invitation sections"]
  node_app["Invitation app<br/>[App.js]"]
  node_cover["Cover<br/>[Cover.js]"]
  node_invitation_text["Invitation text<br/>[Invitation.js]"]
  node_calendar["Event calendar<br/>[Calendar.js]"]
  node_gallery["Photo gallery<br/>[ImgGallery.js]"]
  node_location["Venue directions<br/>[Location.js]"]
  node_account["Gift accounts<br/>[Account.js]"]
  node_footer["Sharing footer<br/>[Footer.js]"]
  node_quiz["Quiz section<br/>[Quiz.js]"]
  node_submit["Submit section<br/>[Submit.js]"]
end

subgraph group_settings["Settings and admin"]
  node_settings_context["Settings context"]
  node_defaults["Default settings"]
  node_admin["Admin editor<br/>[Admin.js]"]
end

subgraph group_guest_features["Guest features"]
  node_guestbook["Guestbook<br/>[Comment.js]"]
  node_photo_upload["Guest photo upload<br/>[PhotoUpload.js]"]
end

subgraph group_data_integrations["Data and integrations"]
  node_firebase_config["Firebase connection<br/>[firebase-config.js]"]
  node_firestore[("Firestore")]
  node_apps_script["Google Apps Script"]
  node_kakao["Kakao sharing"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_app
node_app -->|"renders"| node_cover
node_app -->|"renders"| node_invitation_text
node_app -->|"renders"| node_calendar
node_app -->|"renders"| node_gallery
node_app -->|"renders"| node_location
node_app -->|"renders"| node_account
node_app -->|"renders"| node_guestbook
node_app -->|"renders"| node_photo_upload
node_app -->|"renders"| node_footer
node_app -->|"routes"| node_admin
node_app -->|"provides settings"| node_settings_context
node_settings_context -->|"merges defaults"| node_defaults
node_settings_context -->|"reads settings"| node_firestore
node_firebase_config -->|"initializes"| node_firestore
node_admin -->|"reads and writes"| node_firestore
node_gallery -->|"reads uploads"| node_firestore
node_guestbook -->|"reads and writes"| node_firestore
node_photo_upload -->|"posts photos"| node_apps_script
node_footer -.->|"shares invitation"| node_kakao
node_app -->|"includes section"| node_quiz
node_app -->|"includes section"| node_submit

click node_app "https://github.com/crimama/react-wedding-card/blob/main/src/App.js"
click node_cover "https://github.com/crimama/react-wedding-card/blob/main/src/pages/Cover.js"
click node_invitation_text "https://github.com/crimama/react-wedding-card/blob/main/src/pages/Invitation.js"
click node_calendar "https://github.com/crimama/react-wedding-card/blob/main/src/pages/Calendar.js"
click node_gallery "https://github.com/crimama/react-wedding-card/blob/main/src/pages/ImgGallery.js"
click node_location "https://github.com/crimama/react-wedding-card/blob/main/src/pages/Location.js"
click node_account "https://github.com/crimama/react-wedding-card/blob/main/src/pages/Account.js"
click node_footer "https://github.com/crimama/react-wedding-card/blob/main/src/components/Footer.js"
click node_quiz "https://github.com/crimama/react-wedding-card/blob/main/src/pages/Quiz.js"
click node_submit "https://github.com/crimama/react-wedding-card/blob/main/src/pages/Submit.js"
click node_settings_context "https://github.com/crimama/react-wedding-card/blob/main/src/SiteSettingsContext.js"
click node_defaults "https://github.com/crimama/react-wedding-card/blob/main/src/defaultSiteConfig.js"
click node_admin "https://github.com/crimama/react-wedding-card/blob/main/src/pages/Admin.js"
click node_guestbook "https://github.com/crimama/react-wedding-card/blob/main/src/pages/Comment.js"
click node_photo_upload "https://github.com/crimama/react-wedding-card/blob/main/src/pages/PhotoUpload.js"
click node_firebase_config "https://github.com/crimama/react-wedding-card/blob/main/src/firebase-config.js"

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_app,node_cover,node_invitation_text,node_calendar,node_gallery,node_location,node_account,node_footer,node_quiz,node_submit toneBlue
class node_settings_context,node_defaults,node_admin toneAmber
class node_guestbook,node_photo_upload toneMint
class node_firebase_config,node_firestore,node_apps_script,node_kakao toneRose
class node_visitor toneIndigo
```

## Components

### Invitation sections

- [Invitation app](https://github.com/crimama/react-wedding-card/blob/main/src/App.js): `src/App.js`
- [Cover](https://github.com/crimama/react-wedding-card/blob/main/src/pages/Cover.js): `src/pages/Cover.js`
- [Invitation text](https://github.com/crimama/react-wedding-card/blob/main/src/pages/Invitation.js): `src/pages/Invitation.js`
- [Event calendar](https://github.com/crimama/react-wedding-card/blob/main/src/pages/Calendar.js): `src/pages/Calendar.js`
- [Photo gallery](https://github.com/crimama/react-wedding-card/blob/main/src/pages/ImgGallery.js): `src/pages/ImgGallery.js`
- [Venue directions](https://github.com/crimama/react-wedding-card/blob/main/src/pages/Location.js): `src/pages/Location.js`
- [Gift accounts](https://github.com/crimama/react-wedding-card/blob/main/src/pages/Account.js): `src/pages/Account.js`
- [Sharing footer](https://github.com/crimama/react-wedding-card/blob/main/src/components/Footer.js): `src/components/Footer.js`
- [Quiz section](https://github.com/crimama/react-wedding-card/blob/main/src/pages/Quiz.js): `src/pages/Quiz.js`
- [Submit section](https://github.com/crimama/react-wedding-card/blob/main/src/pages/Submit.js): `src/pages/Submit.js`

### Settings and admin

- [Settings context](https://github.com/crimama/react-wedding-card/blob/main/src/SiteSettingsContext.js): `src/SiteSettingsContext.js`
- [Default settings](https://github.com/crimama/react-wedding-card/blob/main/src/defaultSiteConfig.js): `src/defaultSiteConfig.js`
- [Admin editor](https://github.com/crimama/react-wedding-card/blob/main/src/pages/Admin.js): `src/pages/Admin.js`

### Guest features

- [Guestbook](https://github.com/crimama/react-wedding-card/blob/main/src/pages/Comment.js): `src/pages/Comment.js`
- [Guest photo upload](https://github.com/crimama/react-wedding-card/blob/main/src/pages/PhotoUpload.js): `src/pages/PhotoUpload.js`

### Data and integrations

- [Firebase connection](https://github.com/crimama/react-wedding-card/blob/main/src/firebase-config.js): `src/firebase-config.js`
- **Firestore**
- **Google Apps Script**
- **Kakao sharing**

### Other components

- **Visitor**

## Connections

- Visitor → Invitation app: opens (evidence: `src/App.js`)
- Invitation app → Cover: renders (evidence: `src/App.js`)
- Invitation app → Invitation text: renders (evidence: `src/App.js`)
- Invitation app → Event calendar: renders (evidence: `src/App.js`)
- Invitation app → Photo gallery: renders (evidence: `src/App.js`)
- Invitation app → Venue directions: renders (evidence: `src/App.js`)
- Invitation app → Gift accounts: renders (evidence: `src/App.js`)
- Invitation app → Guestbook: renders (evidence: `src/App.js`)
- Invitation app → Guest photo upload: renders (evidence: `src/App.js`)
- Invitation app → Sharing footer: renders (evidence: `src/App.js`)
- Invitation app → Admin editor: routes (evidence: `src/App.js`)
- Invitation app → Settings context: provides settings (evidence: `src/App.js`)
- Settings context → Default settings: merges defaults (evidence: `src/SiteSettingsContext.js`)
- Settings context → Firestore: reads settings (evidence: `src/SiteSettingsContext.js`)
- Firebase connection → Firestore: initializes (evidence: `src/firebase-config.js`)
- Admin editor → Firestore: reads and writes (evidence: `src/pages/Admin.js`)
- Photo gallery → Firestore: reads uploads (evidence: `src/pages/ImgGallery.js`)
- Guestbook → Firestore: reads and writes (evidence: `src/pages/Comment.js`)
- Guest photo upload → Google Apps Script: posts photos (evidence: `src/pages/PhotoUpload.js`)
- Sharing footer → Kakao sharing: shares invitation (evidence: `README.md`)
- Invitation app → Quiz section: includes section (evidence: `src/App.js`)
- Invitation app → Submit section: includes section (evidence: `src/App.js`)
