# tercodemagang/frontend-faqih architecture

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

- Interactive diagram: https://gitdiagram.com/tercodemagang/frontend-faqih
- Repository: https://github.com/tercodemagang/frontend-faqih

## Overview

Invito is a wedding-invitation design application. The main user journey is to choose a theme, customize invitation content and styling in an editor with a live phone preview, then view the invitation demo; the app also exposes landing, feature, pricing, and checkout pages. The graph reflects the sampled component relationships and documented imports; no README was provided, and unsampled page behavior and persistence details are uncertain.

Main entry points: [`src/app/editor/InvitationEditorPage.tsx`](https://github.com/tercodemagang/frontend-faqih/blob/main/src/app/editor/InvitationEditorPage.tsx) (Invitation editor), [`src/app/App.tsx`](https://github.com/tercodemagang/frontend-faqih/blob/main/src/app/App.tsx) (App shell and routing), [`src/data/themes.ts`](https://github.com/tercodemagang/frontend-faqih/blob/main/src/data/themes.ts) (Theme catalog), [`src/app/pages/TemplateSelectionPage.tsx`](https://github.com/tercodemagang/frontend-faqih/blob/main/src/app/pages/TemplateSelectionPage.tsx) (Theme selection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_journey["Invitation workflow"]
  node_theme_data["Theme catalog<br/>[themes.ts]"]
  node_theme_picker["Theme selection"]
  node_editor["Invitation editor"]
  node_editor_controls["Editor controls<br/>[EditorSidebar.tsx]"]
  node_phone_preview["Live phone preview"]
  node_demo["Invitation demo<br/>[DemoPage.tsx]"]
end

subgraph group_product["App navigation and pages"]
  node_app["App shell and routing<br/>[App.tsx]"]
end

subgraph group_shared["Shared UI layer"]
  node_ui_components["UI components"]
  node_ui_utils["Class utilities<br/>[utils.ts]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_app
node_app -->|"renders"| node_theme_picker
node_app -->|"renders"| node_editor
node_app -->|"renders"| node_demo
node_app -->|"uses themes"| node_theme_data
node_theme_picker -->|"reads themes"| node_theme_data
node_editor -->|"reads themes"| node_theme_data
node_editor -->|"renders"| node_editor_controls
node_editor -->|"renders"| node_phone_preview
node_editor_controls -->|"updates data"| node_editor
node_phone_preview -->|"renders data"| node_editor
node_demo -->|"reads themes"| node_theme_data
node_ui_components -->|"uses classes"| node_ui_utils

click node_app "https://github.com/tercodemagang/frontend-faqih/blob/main/src/app/App.tsx"
click node_theme_data "https://github.com/tercodemagang/frontend-faqih/blob/main/src/data/themes.ts"
click node_theme_picker "https://github.com/tercodemagang/frontend-faqih/blob/main/src/app/pages/TemplateSelectionPage.tsx"
click node_editor "https://github.com/tercodemagang/frontend-faqih/blob/main/src/app/editor/InvitationEditorPage.tsx"
click node_editor_controls "https://github.com/tercodemagang/frontend-faqih/blob/main/src/app/editor/EditorSidebar.tsx"
click node_phone_preview "https://github.com/tercodemagang/frontend-faqih/blob/main/src/app/editor/LivePhonePreview.tsx"
click node_demo "https://github.com/tercodemagang/frontend-faqih/blob/main/src/app/pages/DemoPage.tsx"
click node_ui_components "https://github.com/tercodemagang/frontend-faqih/tree/main/src/app/components/ui"
click node_ui_utils "https://github.com/tercodemagang/frontend-faqih/blob/main/src/app/components/ui/utils.ts"

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_theme_data,node_theme_picker,node_editor,node_editor_controls,node_phone_preview,node_demo toneBlue
class node_app toneAmber
class node_ui_components,node_ui_utils toneMint
class node_visitor toneIndigo
```

## Components

### Invitation workflow

- [Theme catalog](https://github.com/tercodemagang/frontend-faqih/blob/main/src/data/themes.ts): `src/data/themes.ts`
- [Theme selection](https://github.com/tercodemagang/frontend-faqih/blob/main/src/app/pages/TemplateSelectionPage.tsx): `src/app/pages/TemplateSelectionPage.tsx`
- [Invitation editor](https://github.com/tercodemagang/frontend-faqih/blob/main/src/app/editor/InvitationEditorPage.tsx): `src/app/editor/InvitationEditorPage.tsx`
- [Editor controls](https://github.com/tercodemagang/frontend-faqih/blob/main/src/app/editor/EditorSidebar.tsx): `src/app/editor/EditorSidebar.tsx`
- [Live phone preview](https://github.com/tercodemagang/frontend-faqih/blob/main/src/app/editor/LivePhonePreview.tsx): `src/app/editor/LivePhonePreview.tsx`
- [Invitation demo](https://github.com/tercodemagang/frontend-faqih/blob/main/src/app/pages/DemoPage.tsx): `src/app/pages/DemoPage.tsx`

### App navigation and pages

- [App shell and routing](https://github.com/tercodemagang/frontend-faqih/blob/main/src/app/App.tsx): `src/app/App.tsx`

### Shared UI layer

- [UI components](https://github.com/tercodemagang/frontend-faqih/tree/main/src/app/components/ui): `src/app/components/ui`
- [Class utilities](https://github.com/tercodemagang/frontend-faqih/blob/main/src/app/components/ui/utils.ts): `src/app/components/ui/utils.ts`

### Other components

- **Visitor**

## Connections

- Visitor → App shell and routing: opens
- App shell and routing → Theme selection: renders (evidence: `src/app/App.tsx`)
- App shell and routing → Invitation editor: renders (evidence: `src/app/App.tsx`)
- App shell and routing → Invitation demo: renders (evidence: `src/app/App.tsx`)
- App shell and routing → Theme catalog: uses themes (evidence: `src/app/App.tsx`)
- Theme selection → Theme catalog: reads themes (evidence: `src/app/pages/TemplateSelectionPage.tsx`)
- Invitation editor → Theme catalog: reads themes (evidence: `src/app/editor/InvitationEditorPage.tsx`)
- Invitation editor → Editor controls: renders (evidence: `src/app/editor/InvitationEditorPage.tsx`)
- Invitation editor → Live phone preview: renders (evidence: `src/app/editor/InvitationEditorPage.tsx`)
- Editor controls → Invitation editor: updates data (evidence: `src/app/editor/InvitationEditorPage.tsx`)
- Live phone preview → Invitation editor: renders data (evidence: `src/app/editor/InvitationEditorPage.tsx`)
- Invitation demo → Theme catalog: reads themes (evidence: `src/app/pages/DemoPage.tsx`)
- UI components → Class utilities: uses classes (evidence: `src/app/components/ui/sidebar.tsx`)
