# enting8696/weddingweb architecture

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

- Interactive diagram: https://gitdiagram.com/enting8696/weddingweb
- Repository: https://github.com/enting8696/weddingweb

## Overview

這是 Leo 與 Julie 的婚禮邀請及回函網站。主要流程是訪客開啟邀請頁、填寫出席與飲食等資料，頁面驗證後將回函送至 Google 表單。另有社群 App 外部瀏覽器引導，以及由 merge.py 加入頁面的分享資訊與邀請版面調整。關係依 README 與已提供的來源片段繪製；index.html 內容未提供，故不展開其頁面元件。

Main entry points: [`index.html`](https://github.com/enting8696/weddingweb/blob/main/index.html) (邀請頁), [`merge.py`](https://github.com/enting8696/weddingweb/blob/main/merge.py) (HTML 整合與調整), [`rsvp_submit.js`](https://github.com/enting8696/weddingweb/blob/main/rsvp_submit.js) (回函驗證與送出), [`open_external.js`](https://github.com/enting8696/weddingweb/blob/main/open_external.js) (外部瀏覽器引導)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_invitation["邀請與回函"]
  node_invitation_page["邀請頁<br/>[index.html]"]
  node_rsvp["回函驗證與送出<br/>[rsvp_submit.js]"]
  node_google_forms[("Google 表單")]
end

subgraph group_enhancements["頁面輔助功能"]
  node_external_browser["外部瀏覽器引導<br/>[open_external.js]"]
end

subgraph group_generation["頁面產生"]
  node_merge["HTML 整合與調整<br/>[merge.py]"]
  node_exported_html["設計稿 HTML"]
end

node_guest(("訪客"))

node_guest -->|"開啟"| node_invitation_page
node_invitation_page -->|"呈現邀請"| node_guest
node_invitation_page -->|"呼叫回函"| node_rsvp
node_rsvp -->|"POST 回函"| node_google_forms
node_invitation_page -->|"嵌入並執行"| node_external_browser
node_external_browser -->|"提示開啟"| node_guest
node_exported_html -->|"提供設計稿"| node_merge
node_merge -->|"產生或修補"| node_invitation_page
node_merge -->|"嵌入程式"| node_rsvp
node_merge -->|"嵌入程式"| node_external_browser

click node_invitation_page "https://github.com/enting8696/weddingweb/blob/main/index.html"
click node_rsvp "https://github.com/enting8696/weddingweb/blob/main/rsvp_submit.js"
click node_external_browser "https://github.com/enting8696/weddingweb/blob/main/open_external.js"
click node_merge "https://github.com/enting8696/weddingweb/blob/main/merge.py"

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_page,node_rsvp,node_google_forms toneBlue
class node_external_browser toneAmber
class node_merge,node_exported_html toneMint
class node_guest toneIndigo
```

## Components

### 邀請與回函

- [邀請頁](https://github.com/enting8696/weddingweb/blob/main/index.html): `index.html`
- [回函驗證與送出](https://github.com/enting8696/weddingweb/blob/main/rsvp_submit.js): `rsvp_submit.js`
- **Google 表單**

### 頁面輔助功能

- [外部瀏覽器引導](https://github.com/enting8696/weddingweb/blob/main/open_external.js): `open_external.js`

### 頁面產生

- [HTML 整合與調整](https://github.com/enting8696/weddingweb/blob/main/merge.py): `merge.py`
- **設計稿 HTML**

### Other components

- **訪客**

## Connections

- 訪客 → 邀請頁: 開啟 (evidence: `README.md`)
- 邀請頁 → 訪客: 呈現邀請 (evidence: `README.md`)
- 邀請頁 → 回函驗證與送出: 呼叫回函
- 回函驗證與送出 → Google 表單: POST 回函 (evidence: `rsvp_submit.js`)
- 邀請頁 → 外部瀏覽器引導: 嵌入並執行
- 外部瀏覽器引導 → 訪客: 提示開啟 (evidence: `open_external.js`)
- 設計稿 HTML → HTML 整合與調整: 提供設計稿 (evidence: `README.md`)
- HTML 整合與調整 → 邀請頁: 產生或修補 (evidence: `README.md`)
- HTML 整合與調整 → 回函驗證與送出: 嵌入程式 (evidence: `merge.py`)
- HTML 整合與調整 → 外部瀏覽器引導: 嵌入程式 (evidence: `merge.py`)
