# muhammadumar55/punjab-electric-bus-routes architecture

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

- Interactive diagram: https://gitdiagram.com/muhammadumar55/punjab-electric-bus-routes
- Repository: https://github.com/muhammadumar55/punjab-electric-bus-routes

## Overview

#### Purpose and Runtime
A static React/Vite landing site promoting a Punjab electric-bus-routes Android application. It is a client-only marketing/download experience; the APK is bundled as a public asset. Development runs through Vite (`vite.config.ts`), with no backend, database, or external service evident.

#### Application Entry and Composition
`src/main.tsx` mounts the React application into `index.html`. `src/app/App.tsx` is the page-level composition root, assembling the landing-page sections in a single scrolling experience.

#### Landing-Page Flow
The primary user journey proceeds through content sections:
- Navigation and page anchors: `src/app/components/Header.tsx`
- Product introduction and primary call to action: `src/app/components/Hero.tsx`
- Value proposition and usage explanation: `src/app/components/Features.tsx`, `src/app/components/HowItWorks.tsx`
- Social/proof and visual product material: `src/app/components/Stats.tsx`, `src/app/components/Screenshots.tsx`
- App acquisition and site closure: `src/app/components/DownloadSection.tsx`, `src/app/components/Footer.tsx`

Control flow is predominantly presentational: section CTAs and navigation guide users to in-page content or the download asset rather than invoking application APIs.

#### Download Boundary
The distributable mobile application is served directly from Vite’s public directory at `public/assets/punjab_electric_bus_routes.apk`. `src/app/components/DownloadSection.tsx` is the architectural boundary between the web landing experience and installation of the separate Android app.

#### UI System
The project uses a local reusable component library under `src/app/components/ui`, including foundational controls such as `button.tsx`, `card.tsx`, and `accordion.tsx`. Page sections consume these primitives rather than implementing all interaction and styling independently. `src/app/components/figma/ImageWithFallback.tsx` provides resilient image rendering for design-exported imagery.

#### Styling and Assets
Global visual behavior is layered through `src/styles/index.css`, `src/styles/tailwind.css`, and `src/styles/theme.css`, with font declarations in `src/styles/fonts.css`. `default_shadcn_theme.css` indicates a shadcn-oriented design-token baseline. Static deliverables and other browser-served assets belong under `public/`.

#### Material Boundaries
The browser hosts all rendered content and client interactions. Vite provides local development/build integration; React and the local UI layer provide rendering. There are no visible server endpoints, authentication flows, persistence layers, analytics integrations, or remote data dependencies in the repository structure.

Main entry points: [`src/app/App.tsx`](https://github.com/muhammadumar55/punjab-electric-bus-routes/blob/main/src/app/App.tsx) (Landing page composition), [`src/app/components/Hero.tsx`](https://github.com/muhammadumar55/punjab-electric-bus-routes/blob/main/src/app/components/Hero.tsx) (Hero), [`src/app/components/DownloadSection.tsx`](https://github.com/muhammadumar55/punjab-electric-bus-routes/blob/main/src/app/components/DownloadSection.tsx) (Download Section), [`vite.config.ts`](https://github.com/muhammadumar55/punjab-electric-bus-routes/blob/main/vite.config.ts) (Vite)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Browser App"]
  node_html["HTML mount point<br/>document<br/>[index.html]"]
  node_main["React entry<br/>application entry<br/>[main.tsx]"]
  node_app["Landing page composition<br/>React page root<br/>[App.tsx]"]
end

subgraph group_sections["Landing Sections"]
  node_header["Header<br/>page section<br/>[Header.tsx]"]
  node_hero["Hero<br/>page section<br/>[Hero.tsx]"]
  node_features["Features<br/>page section<br/>[Features.tsx]"]
  node_how["How It Works<br/>page section<br/>[HowItWorks.tsx]"]
  node_proof["Stats &amp; Screenshots<br/>page sections"]
  node_download["Download Section<br/>download boundary"]
  node_footer["Footer<br/>page section<br/>[Footer.tsx]"]
end

subgraph group_ui["UI System"]
  node_ui_primitives["UI primitives<br/>component library"]
  node_image_fallback["Image fallback<br/>image component"]
  node_styles["Global styles &amp; theme<br/>styling layer<br/>[index.css]"]
end

subgraph group_assets["Static Assets"]
  node_apk["Android APK<br/>downloadable application"]
  node_public_assets["Public assets<br/>static asset directory"]
end

node_vite{{"Vite<br/>dev/build tool<br/>[vite.config.ts]"}}

node_vite -->|"serves/builds"| node_html
node_html -->|"mounts"| node_main
node_main -->|"renders"| node_app
node_app -->|"composes"| node_header
node_app -->|"composes"| node_hero
node_app -->|"composes"| node_features
node_app -->|"composes"| node_how
node_app -->|"composes"| node_proof
node_app -->|"composes"| node_download
node_app -->|"composes"| node_footer
node_header -.->|"anchors to"| node_hero
node_hero -.->|"CTA guides to"| node_download
node_download -->|"downloads"| node_apk
node_app -->|"uses"| node_ui_primitives
node_app -->|"renders imagery with"| node_image_fallback
node_app -->|"styled by"| node_styles
node_vite -->|"serves"| node_public_assets
node_public_assets -->|"contains"| node_apk

click node_vite "https://github.com/muhammadumar55/punjab-electric-bus-routes/blob/main/vite.config.ts"
click node_html "https://github.com/muhammadumar55/punjab-electric-bus-routes/blob/main/index.html"
click node_main "https://github.com/muhammadumar55/punjab-electric-bus-routes/blob/main/src/main.tsx"
click node_app "https://github.com/muhammadumar55/punjab-electric-bus-routes/blob/main/src/app/App.tsx"
click node_header "https://github.com/muhammadumar55/punjab-electric-bus-routes/blob/main/src/app/components/Header.tsx"
click node_hero "https://github.com/muhammadumar55/punjab-electric-bus-routes/blob/main/src/app/components/Hero.tsx"
click node_features "https://github.com/muhammadumar55/punjab-electric-bus-routes/blob/main/src/app/components/Features.tsx"
click node_how "https://github.com/muhammadumar55/punjab-electric-bus-routes/blob/main/src/app/components/HowItWorks.tsx"
click node_download "https://github.com/muhammadumar55/punjab-electric-bus-routes/blob/main/src/app/components/DownloadSection.tsx"
click node_footer "https://github.com/muhammadumar55/punjab-electric-bus-routes/blob/main/src/app/components/Footer.tsx"
click node_ui_primitives "https://github.com/muhammadumar55/punjab-electric-bus-routes/tree/main/src/app/components/ui"
click node_image_fallback "https://github.com/muhammadumar55/punjab-electric-bus-routes/blob/main/src/app/components/figma/ImageWithFallback.tsx"
click node_styles "https://github.com/muhammadumar55/punjab-electric-bus-routes/blob/main/src/styles/index.css"

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_html,node_main,node_app toneBlue
class node_header,node_hero,node_features,node_how,node_proof,node_download,node_footer toneAmber
class node_ui_primitives,node_image_fallback,node_styles toneMint
class node_apk,node_public_assets toneRose
class node_vite toneNeutral
```

## Components

### Browser App

Client-only landing experience.

- [HTML mount point](https://github.com/muhammadumar55/punjab-electric-bus-routes/blob/main/index.html): document · `index.html`
- [React entry](https://github.com/muhammadumar55/punjab-electric-bus-routes/blob/main/src/main.tsx): application entry · `src/main.tsx`
- [Landing page composition](https://github.com/muhammadumar55/punjab-electric-bus-routes/blob/main/src/app/App.tsx): React page root · Assembles the scrolling landing page. · `src/app/App.tsx`

### Landing Sections

Single scrolling product journey.

- [Header](https://github.com/muhammadumar55/punjab-electric-bus-routes/blob/main/src/app/components/Header.tsx): page section · Navigation and page anchors. · `src/app/components/Header.tsx`
- [Hero](https://github.com/muhammadumar55/punjab-electric-bus-routes/blob/main/src/app/components/Hero.tsx): page section · Product introduction and primary CTA. · `src/app/components/Hero.tsx`
- [Features](https://github.com/muhammadumar55/punjab-electric-bus-routes/blob/main/src/app/components/Features.tsx): page section · Value proposition. · `src/app/components/Features.tsx`
- [How It Works](https://github.com/muhammadumar55/punjab-electric-bus-routes/blob/main/src/app/components/HowItWorks.tsx): page section · Usage explanation. · `src/app/components/HowItWorks.tsx`
- **Stats & Screenshots**: page sections · Social proof and product visuals.
- [Download Section](https://github.com/muhammadumar55/punjab-electric-bus-routes/blob/main/src/app/components/DownloadSection.tsx): download boundary · Connects the website to Android app installation. · `src/app/components/DownloadSection.tsx`
- [Footer](https://github.com/muhammadumar55/punjab-electric-bus-routes/blob/main/src/app/components/Footer.tsx): page section · `src/app/components/Footer.tsx`

### UI System

Reusable local presentation primitives.

- [UI primitives](https://github.com/muhammadumar55/punjab-electric-bus-routes/tree/main/src/app/components/ui): component library · Reusable button, card, and accordion controls. · `src/app/components/ui`
- [Image fallback](https://github.com/muhammadumar55/punjab-electric-bus-routes/blob/main/src/app/components/figma/ImageWithFallback.tsx): image component · Resilient rendering for design-exported imagery. · `src/app/components/figma/ImageWithFallback.tsx`
- [Global styles & theme](https://github.com/muhammadumar55/punjab-electric-bus-routes/blob/main/src/styles/index.css): styling layer · Global CSS, Tailwind, fonts, and theme tokens. · `src/styles/index.css`

### Static Assets

Browser-served downloadable and visual assets.

- **Android APK**: downloadable application · Punjab Electric Bus Routes distributable.
- **Public assets**: static asset directory

### Other components

- [Vite](https://github.com/muhammadumar55/punjab-electric-bus-routes/blob/main/vite.config.ts): dev/build tool · Provides local development and static production build. · `vite.config.ts`

## Connections

- Vite → HTML mount point: serves/builds
- HTML mount point → React entry: mounts
- React entry → Landing page composition: renders
- Landing page composition → Header: composes
- Landing page composition → Hero: composes
- Landing page composition → Features: composes
- Landing page composition → How It Works: composes
- Landing page composition → Stats & Screenshots: composes
- Landing page composition → Download Section: composes
- Landing page composition → Footer: composes
- Header → Hero: anchors to
- Hero → Download Section: CTA guides to
- Download Section → Android APK: downloads
- Landing page composition → UI primitives: uses
- Landing page composition → Image fallback: renders imagery with
- Landing page composition → Global styles & theme: styled by
- Vite → Public assets: serves
- Public assets → Android APK: contains
