# athi0077/proposal architecture

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

- Interactive diagram: https://gitdiagram.com/athi0077/proposal
- Repository: https://github.com/athi0077/proposal

## Overview

#### Purpose and Runtime
This is a React single-page experience built with Vite. Its domain-specific structure suggests a romantic proposal flow: a landing screen, login gate, question sequence, and proposal destination. The browser bundle is bootstrapped from `index.html`, `src/main.jsx`, and `src/App.jsx`.

#### Application Shell and Navigation
`src/App.jsx` is the likely composition and route-selection boundary for the page-level experience. User-facing states are separated into page components:
- `src/pages/LandingPage.jsx`
- `src/pages/LoginPage.jsx`
- `src/pages/QuestionsPage.jsx`
- `src/pages/ProposalPage.jsx`
- `src/pages/NotFoundPage.jsx`

Navigation behavior is client-side; no server route handlers or backend application code are present in the repository tree.

#### Experience Stages
The core product flow is represented by the page layer:
1. Entry or introductory content in `src/pages/LandingPage.jsx`.
2. A credential or access step in `src/pages/LoginPage.jsx`.
3. Interactive prompts in `src/pages/QuestionsPage.jsx`.
4. The final proposal presentation in `src/pages/ProposalPage.jsx`.
5. A fallback state in `src/pages/NotFoundPage.jsx`.

`src/App.jsx` is the key control-flow coordinator between these states, while page components should own stage-specific UI and local interaction state.

#### Shared Presentation Components
Reusable visual primitives are isolated from page logic:
- `src/components/GlassCard.jsx` provides a shared card/container treatment.
- `src/components/FloatingHearts.jsx` provides decorative or animated romantic visual effects.

These components form a presentation boundary: pages orchestrate content and progression, while shared components encapsulate repeated visual behavior.

#### Styling and Static Assets
Global styling is split between application-wide and shell-level CSS:
- `src/index.css`
- `src/App.css`

Static media can be served from `public/`, while bundled application assets belong under `src/assets/`. This separation supports direct static delivery for public files and importable assets for React components.

#### Firebase Boundary
`src/firebase.js` is the repository’s explicit external-service integration boundary. Given the presence of a login page, it likely centralizes Firebase initialization and any authentication or persistence client exports used by UI code. No Firebase server-side implementation is present; browser code communicates directly with the configured Firebase service.

#### Build and Deployment Surface
Vite supplies local development, hot-module replacement, and production bundling through `vite.config.js` and `package.json`. The deployable artifact is a static frontend rooted at `index.html`; infrastructure requirements are therefore a static host plus Firebase configuration/service availability where used.

Main entry points: [`src/App.jsx`](https://github.com/athi0077/proposal/blob/main/src/App.jsx) (App Shell), [`src/main.jsx`](https://github.com/athi0077/proposal/blob/main/src/main.jsx) (React Bootstrap), [`vite.config.js`](https://github.com/athi0077/proposal/blob/main/vite.config.js) (Vite Build), [`src/components/GlassCard.jsx`](https://github.com/athi0077/proposal/blob/main/src/components/GlassCard.jsx) (Glass Card)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Browser Runtime"]
  node_index["HTML Entry<br/>Vite entry<br/>[index.html]"]
  node_main["React Bootstrap<br/>browser entry<br/>[main.jsx]"]
  node_app["App Shell<br/>navigation coordinator<br/>[App.jsx]"]
  node_firebase{{"Firebase Client<br/>service integration<br/>[firebase.js]"}}
end

subgraph group_pages["Experience Pages"]
  node_landing["Landing<br/>page<br/>[LandingPage.jsx]"]
  node_login["Login Gate<br/>page<br/>[LoginPage.jsx]"]
  node_questions["Question Sequence<br/>page<br/>[QuestionsPage.jsx]"]
  node_proposal["Proposal<br/>page<br/>[ProposalPage.jsx]"]
  node_notfound["Fallback<br/>page<br/>[NotFoundPage.jsx]"]
end

subgraph group_shared["Shared UI"]
  node_glasscard["Glass Card<br/>UI primitive<br/>[GlassCard.jsx]"]
  node_hearts["Floating Hearts<br/>visual effect<br/>[FloatingHearts.jsx]"]
end

subgraph group_delivery["Build &amp; Assets"]
  node_global_css["Global Styles<br/>stylesheet<br/>[index.css]"]
  node_app_css["App Styles<br/>stylesheet<br/>[App.css]"]
  node_assets["Bundled Assets<br/>application assets"]
  node_public["Public Media<br/>static assets"]
  node_vite["Vite Build<br/>build tool<br/>[vite.config.js]"]
  node_package["Package Scripts<br/>package manifest<br/>[package.json]"]
end

node_firebase_service{{"Firebase Service<br/>external service"}}
node_static_host{{"Static Host<br/>deployment target"}}

node_index -->|"loads"| node_main
node_main -->|"mounts"| node_app
node_app -->|"entry state"| node_landing
node_app -->|"access state"| node_login
node_app -->|"prompt state"| node_questions
node_app -->|"final state"| node_proposal
node_app -.->|"fallback state"| node_notfound
node_login -->|"auth access"| node_firebase
node_firebase -->|"browser API calls"| node_firebase_service
node_landing -.->|"uses"| node_glasscard
node_questions -.->|"uses"| node_glasscard
node_proposal -.->|"uses"| node_glasscard
node_app -.->|"renders decoration"| node_hearts
node_main -->|"applies"| node_global_css
node_app -->|"applies"| node_app_css
node_app -.->|"imports"| node_assets
node_vite -->|"builds from"| node_index
node_package -->|"runs"| node_vite
node_vite -->|"produces static bundle"| node_static_host
node_public -.->|"served with bundle"| node_static_host

click node_index "https://github.com/athi0077/proposal/blob/main/index.html"
click node_main "https://github.com/athi0077/proposal/blob/main/src/main.jsx"
click node_app "https://github.com/athi0077/proposal/blob/main/src/App.jsx"
click node_landing "https://github.com/athi0077/proposal/blob/main/src/pages/LandingPage.jsx"
click node_login "https://github.com/athi0077/proposal/blob/main/src/pages/LoginPage.jsx"
click node_questions "https://github.com/athi0077/proposal/blob/main/src/pages/QuestionsPage.jsx"
click node_proposal "https://github.com/athi0077/proposal/blob/main/src/pages/ProposalPage.jsx"
click node_notfound "https://github.com/athi0077/proposal/blob/main/src/pages/NotFoundPage.jsx"
click node_glasscard "https://github.com/athi0077/proposal/blob/main/src/components/GlassCard.jsx"
click node_hearts "https://github.com/athi0077/proposal/blob/main/src/components/FloatingHearts.jsx"
click node_firebase "https://github.com/athi0077/proposal/blob/main/src/firebase.js"
click node_global_css "https://github.com/athi0077/proposal/blob/main/src/index.css"
click node_app_css "https://github.com/athi0077/proposal/blob/main/src/App.css"
click node_vite "https://github.com/athi0077/proposal/blob/main/vite.config.js"
click node_package "https://github.com/athi0077/proposal/blob/main/package.json"

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_index,node_main,node_app,node_firebase toneBlue
class node_landing,node_login,node_questions,node_proposal,node_notfound toneAmber
class node_glasscard,node_hearts toneMint
class node_global_css,node_app_css,node_assets,node_public,node_vite,node_package toneRose
class node_firebase_service,node_static_host toneNeutral
```

## Components

### Browser Runtime

- [HTML Entry](https://github.com/athi0077/proposal/blob/main/index.html): Vite entry · `index.html`
- [React Bootstrap](https://github.com/athi0077/proposal/blob/main/src/main.jsx): browser entry · `src/main.jsx`
- [App Shell](https://github.com/athi0077/proposal/blob/main/src/App.jsx): navigation coordinator · Selects and composes client-side experience states. · `src/App.jsx`
- [Firebase Client](https://github.com/athi0077/proposal/blob/main/src/firebase.js): service integration · Browser-side Firebase initialization and client exports. · `src/firebase.js`

### Experience Pages

Page components implement the proposal flow.

- [Landing](https://github.com/athi0077/proposal/blob/main/src/pages/LandingPage.jsx): page · Introductory entry stage. · `src/pages/LandingPage.jsx`
- [Login Gate](https://github.com/athi0077/proposal/blob/main/src/pages/LoginPage.jsx): page · Credential or access stage. · `src/pages/LoginPage.jsx`
- [Question Sequence](https://github.com/athi0077/proposal/blob/main/src/pages/QuestionsPage.jsx): page · Interactive prompt stage. · `src/pages/QuestionsPage.jsx`
- [Proposal](https://github.com/athi0077/proposal/blob/main/src/pages/ProposalPage.jsx): page · Final proposal presentation. · `src/pages/ProposalPage.jsx`
- [Fallback](https://github.com/athi0077/proposal/blob/main/src/pages/NotFoundPage.jsx): page · Unknown-route state. · `src/pages/NotFoundPage.jsx`

### Shared UI

- [Glass Card](https://github.com/athi0077/proposal/blob/main/src/components/GlassCard.jsx): UI primitive · Reusable card treatment. · `src/components/GlassCard.jsx`
- [Floating Hearts](https://github.com/athi0077/proposal/blob/main/src/components/FloatingHearts.jsx): visual effect · Reusable decorative animation. · `src/components/FloatingHearts.jsx`

### Build & Assets

- [Global Styles](https://github.com/athi0077/proposal/blob/main/src/index.css): stylesheet · `src/index.css`
- [App Styles](https://github.com/athi0077/proposal/blob/main/src/App.css): stylesheet · `src/App.css`
- **Bundled Assets**: application assets · Importable media used by React components.
- **Public Media**: static assets · Directly served static files.
- [Vite Build](https://github.com/athi0077/proposal/blob/main/vite.config.js): build tool · Development server and production bundler. · `vite.config.js`
- [Package Scripts](https://github.com/athi0077/proposal/blob/main/package.json): package manifest · Defines frontend dependencies and build commands. · `package.json`

### Other components

- **Firebase Service**: external service
- **Static Host**: deployment target · Serves the built frontend artifact.

## Connections

- HTML Entry → React Bootstrap: loads
- React Bootstrap → App Shell: mounts
- App Shell → Landing: entry state
- App Shell → Login Gate: access state
- App Shell → Question Sequence: prompt state
- App Shell → Proposal: final state
- App Shell → Fallback: fallback state
- Login Gate → Firebase Client: auth access
- Firebase Client → Firebase Service: browser API calls
- Landing → Glass Card: uses
- Question Sequence → Glass Card: uses
- Proposal → Glass Card: uses
- App Shell → Floating Hearts: renders decoration
- React Bootstrap → Global Styles: applies
- App Shell → App Styles: applies
- App Shell → Bundled Assets: imports
- Vite Build → HTML Entry: builds from
- Package Scripts → Vite Build: runs
- Vite Build → Static Host: produces static bundle
- Public Media → Static Host: served with bundle
