# rldev05/7powermotors architecture

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

- Interactive diagram: https://gitdiagram.com/rldev05/7powermotors
- Repository: https://github.com/rldev05/7powermotors

## Overview

7POWER MOTORS is a premium motorcycle and CR-1 services website, with motorcycle discovery, product and pricing information, service and partner inquiries, and a small partnership-email API. The main user flow enters the routed React app, browses motorcycles or pricing/services, then reaches contact or partnership inquiry. The README documents additional brand and lifestyle sections; several page implementations were not sampled, so those links are based on the README. Server wiring is shown only where the excerpts support it.

Main entry points: [`src/app/routes.tsx`](https://github.com/rldev05/7powermotors/blob/main/src/app/routes.tsx) (Route dispatch), [`src/app/pages/ServicesPage.tsx`](https://github.com/rldev05/7powermotors/blob/main/src/app/pages/ServicesPage.tsx) (Services page), [`src/app/pages/PricingPage.tsx`](https://github.com/rldev05/7powermotors/blob/main/src/app/pages/PricingPage.tsx) (Pricing catalog), [`src/app/pages/PricingDetailPage.tsx`](https://github.com/rldev05/7powermotors/blob/main/src/app/pages/PricingDetailPage.tsx) (Pricing detail)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web entry and navigation"]
  node_app["App shell<br/>[App.tsx]"]
  node_routes["Route dispatch<br/>[routes.tsx]"]
  node_home["Home page<br/>[Home.tsx]"]
  node_navbar["Navigation bar<br/>[Navbar.tsx]"]
  node_footer["Site footer<br/>[Footer.tsx]"]
  node_logo["Brand logo<br/>[Logo.tsx]"]
  node_scrolltop["Scroll control<br/>[ScrollToTop.tsx]"]
  node_hero["Hero section<br/>[Hero.tsx]"]
  node_imagefallback["Image fallback"]
  node_privacy["Privacy policy<br/>[PrivacyPolicy.tsx]"]
  node_motion["Motion presets<br/>[motionPresets.ts]"]
end

subgraph group_motorcycles["Motorcycle discovery"]
  node_featured["Featured models<br/>[FeaturedModels.tsx]"]
  node_motorcyclelist["Motorcycle catalog"]
  node_bikedetail["Motorcycle details"]
  node_bikes["Motorcycle data<br/>[bikes.ts]"]
  node_viewer["360 bike viewer<br/>[Bike360Viewer.tsx]"]
end

subgraph group_business["Services and inquiries"]
  node_servicespage["Services page<br/>[ServicesPage.tsx]"]
  node_services["Service offerings<br/>[Services.tsx]"]
  node_application["Application process"]
  node_contact["Contact section<br/>[Contact.tsx]"]
  node_partnershipspage["Partner page<br/>[PartnersPage.tsx]"]
  node_branddata["Brand details<br/>[brand.ts]"]
end

subgraph group_pricing["Pricing experience"]
  node_pricingpage["Pricing catalog<br/>[PricingPage.tsx]"]
  node_pricingdetail["Pricing detail"]
  node_pricingdata["Pricing records<br/>[pricing.ts]"]
  node_pricinglogic["Pricing data logic<br/>[pricingData.ts]"]
  node_pricingsearch["Pricing search index"]
  node_pricingconfig["Pricing configuration<br/>[pricingConfig.ts]"]
  node_pricingi18n["Pricing language<br/>[pricing.ts]"]
end

subgraph group_api["Partnership API"]
  node_partnershipapi["Partnership endpoint<br/>[app.mjs]"]
  node_validation["Inquiry validation<br/>[validation.mjs]"]
  node_email["Email delivery<br/>[email.mjs]"]
end

node_visitor(("Website visitor"))
node_emailservice(("SMTP service"))

node_visitor -->|"opens"| node_app
node_app -->|"mounts router"| node_routes
node_routes -->|"routes to"| node_home
node_routes -->|"routes to"| node_motorcyclelist
node_routes -->|"routes to"| node_bikedetail
node_routes -->|"routes to"| node_pricingpage
node_routes -->|"routes to"| node_pricingdetail
node_routes -->|"routes to"| node_servicespage
node_routes -->|"routes to"| node_partnershipspage
node_routes -->|"routes to"| node_privacy
node_home -->|"features"| node_hero
node_home -->|"features"| node_featured
node_home -->|"features"| node_services
node_motorcyclelist -->|"reads"| node_bikes
node_bikedetail -->|"reads"| node_bikes
node_bikedetail -->|"renders"| node_viewer
node_bikedetail -->|"renders images"| node_imagefallback
node_motorcyclelist -->|"renders images"| node_imagefallback
node_servicespage -->|"renders"| node_application
node_servicespage -->|"renders"| node_services
node_servicespage -->|"renders"| node_featured
node_servicespage -->|"renders"| node_contact
node_contact -->|"reads"| node_branddata
node_pricingpage -->|"reads"| node_pricingdata
node_pricingpage -->|"uses search"| node_pricingsearch
node_pricingpage -->|"uses config"| node_pricingconfig
node_pricingpage -->|"uses translations"| node_pricingi18n
node_pricingdetail -->|"reads"| node_pricingdata
node_pricingdetail -->|"uses"| node_pricinglogic
node_pricingdetail -->|"uses config"| node_pricingconfig
node_pricingdetail -->|"uses translations"| node_pricingi18n
node_partnershipapi -->|"validates with"| node_validation
node_partnershipapi -->|"sends inquiry"| node_email
node_email -.->|"uses SMTP"| node_emailservice
node_contact -.->|"submits inquiry"| node_partnershipapi
node_navbar -->|"renders"| node_logo
node_footer -->|"renders"| node_logo

click node_app "https://github.com/rldev05/7powermotors/blob/main/src/app/App.tsx"
click node_routes "https://github.com/rldev05/7powermotors/blob/main/src/app/routes.tsx"
click node_home "https://github.com/rldev05/7powermotors/blob/main/src/app/pages/Home.tsx"
click node_navbar "https://github.com/rldev05/7powermotors/blob/main/src/app/components/Navbar.tsx"
click node_footer "https://github.com/rldev05/7powermotors/blob/main/src/app/components/Footer.tsx"
click node_logo "https://github.com/rldev05/7powermotors/blob/main/src/app/components/Logo.tsx"
click node_scrolltop "https://github.com/rldev05/7powermotors/blob/main/src/app/components/ScrollToTop.tsx"
click node_hero "https://github.com/rldev05/7powermotors/blob/main/src/app/components/Hero.tsx"
click node_featured "https://github.com/rldev05/7powermotors/blob/main/src/app/components/FeaturedModels.tsx"
click node_motorcyclelist "https://github.com/rldev05/7powermotors/blob/main/src/app/motorcycles/MotorcyclesPage.tsx"
click node_bikedetail "https://github.com/rldev05/7powermotors/blob/main/src/app/motorcycles/BikeDetailsPage.tsx"
click node_bikes "https://github.com/rldev05/7powermotors/blob/main/src/app/data/bikes.ts"
click node_viewer "https://github.com/rldev05/7powermotors/blob/main/src/app/components/Bike360Viewer.tsx"
click node_servicespage "https://github.com/rldev05/7powermotors/blob/main/src/app/pages/ServicesPage.tsx"
click node_services "https://github.com/rldev05/7powermotors/blob/main/src/app/components/Services.tsx"
click node_application "https://github.com/rldev05/7powermotors/blob/main/src/app/components/ApplicationProcess.tsx"
click node_contact "https://github.com/rldev05/7powermotors/blob/main/src/app/components/Contact.tsx"
click node_partnershipspage "https://github.com/rldev05/7powermotors/blob/main/src/app/pages/PartnersPage.tsx"
click node_branddata "https://github.com/rldev05/7powermotors/blob/main/src/app/data/brand.ts"
click node_pricingpage "https://github.com/rldev05/7powermotors/blob/main/src/app/pages/PricingPage.tsx"
click node_pricingdetail "https://github.com/rldev05/7powermotors/blob/main/src/app/pages/PricingDetailPage.tsx"
click node_pricingdata "https://github.com/rldev05/7powermotors/blob/main/src/app/data/pricing.ts"
click node_pricinglogic "https://github.com/rldev05/7powermotors/blob/main/src/app/lib/pricingData.ts"
click node_pricingsearch "https://github.com/rldev05/7powermotors/blob/main/src/app/lib/pricingSearchIndex.ts"
click node_pricingconfig "https://github.com/rldev05/7powermotors/blob/main/src/app/lib/pricingConfig.ts"
click node_pricingi18n "https://github.com/rldev05/7powermotors/blob/main/src/app/i18n/pricing.ts"
click node_partnershipapi "https://github.com/rldev05/7powermotors/blob/main/server/app.mjs"
click node_validation "https://github.com/rldev05/7powermotors/blob/main/server/validation.mjs"
click node_email "https://github.com/rldev05/7powermotors/blob/main/server/email.mjs"
click node_imagefallback "https://github.com/rldev05/7powermotors/blob/main/src/app/components/figma/ImageWithFallback.tsx"
click node_privacy "https://github.com/rldev05/7powermotors/blob/main/src/app/pages/PrivacyPolicy.tsx"
click node_motion "https://github.com/rldev05/7powermotors/blob/main/src/app/lib/motionPresets.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_app,node_routes,node_home,node_navbar,node_footer,node_logo,node_scrolltop,node_hero,node_imagefallback,node_privacy,node_motion toneBlue
class node_featured,node_motorcyclelist,node_bikedetail,node_bikes,node_viewer toneAmber
class node_servicespage,node_services,node_application,node_contact,node_partnershipspage,node_branddata toneMint
class node_pricingpage,node_pricingdetail,node_pricingdata,node_pricinglogic,node_pricingsearch,node_pricingconfig,node_pricingi18n toneRose
class node_partnershipapi,node_validation,node_email,node_visitor,node_emailservice toneIndigo
```

## Components

### Web entry and navigation

- [App shell](https://github.com/rldev05/7powermotors/blob/main/src/app/App.tsx): `src/app/App.tsx`
- [Route dispatch](https://github.com/rldev05/7powermotors/blob/main/src/app/routes.tsx): `src/app/routes.tsx`
- [Home page](https://github.com/rldev05/7powermotors/blob/main/src/app/pages/Home.tsx): `src/app/pages/Home.tsx`
- [Navigation bar](https://github.com/rldev05/7powermotors/blob/main/src/app/components/Navbar.tsx): `src/app/components/Navbar.tsx`
- [Site footer](https://github.com/rldev05/7powermotors/blob/main/src/app/components/Footer.tsx): `src/app/components/Footer.tsx`
- [Brand logo](https://github.com/rldev05/7powermotors/blob/main/src/app/components/Logo.tsx): `src/app/components/Logo.tsx`
- [Scroll control](https://github.com/rldev05/7powermotors/blob/main/src/app/components/ScrollToTop.tsx): `src/app/components/ScrollToTop.tsx`
- [Hero section](https://github.com/rldev05/7powermotors/blob/main/src/app/components/Hero.tsx): `src/app/components/Hero.tsx`
- [Image fallback](https://github.com/rldev05/7powermotors/blob/main/src/app/components/figma/ImageWithFallback.tsx): `src/app/components/figma/ImageWithFallback.tsx`
- [Privacy policy](https://github.com/rldev05/7powermotors/blob/main/src/app/pages/PrivacyPolicy.tsx): `src/app/pages/PrivacyPolicy.tsx`
- [Motion presets](https://github.com/rldev05/7powermotors/blob/main/src/app/lib/motionPresets.ts): `src/app/lib/motionPresets.ts`

### Motorcycle discovery

- [Featured models](https://github.com/rldev05/7powermotors/blob/main/src/app/components/FeaturedModels.tsx): `src/app/components/FeaturedModels.tsx`
- [Motorcycle catalog](https://github.com/rldev05/7powermotors/blob/main/src/app/motorcycles/MotorcyclesPage.tsx): `src/app/motorcycles/MotorcyclesPage.tsx`
- [Motorcycle details](https://github.com/rldev05/7powermotors/blob/main/src/app/motorcycles/BikeDetailsPage.tsx): `src/app/motorcycles/BikeDetailsPage.tsx`
- [Motorcycle data](https://github.com/rldev05/7powermotors/blob/main/src/app/data/bikes.ts): `src/app/data/bikes.ts`
- [360 bike viewer](https://github.com/rldev05/7powermotors/blob/main/src/app/components/Bike360Viewer.tsx): `src/app/components/Bike360Viewer.tsx`

### Services and inquiries

- [Services page](https://github.com/rldev05/7powermotors/blob/main/src/app/pages/ServicesPage.tsx): `src/app/pages/ServicesPage.tsx`
- [Service offerings](https://github.com/rldev05/7powermotors/blob/main/src/app/components/Services.tsx): `src/app/components/Services.tsx`
- [Application process](https://github.com/rldev05/7powermotors/blob/main/src/app/components/ApplicationProcess.tsx): `src/app/components/ApplicationProcess.tsx`
- [Contact section](https://github.com/rldev05/7powermotors/blob/main/src/app/components/Contact.tsx): `src/app/components/Contact.tsx`
- [Partner page](https://github.com/rldev05/7powermotors/blob/main/src/app/pages/PartnersPage.tsx): `src/app/pages/PartnersPage.tsx`
- [Brand details](https://github.com/rldev05/7powermotors/blob/main/src/app/data/brand.ts): `src/app/data/brand.ts`

### Pricing experience

- [Pricing catalog](https://github.com/rldev05/7powermotors/blob/main/src/app/pages/PricingPage.tsx): `src/app/pages/PricingPage.tsx`
- [Pricing detail](https://github.com/rldev05/7powermotors/blob/main/src/app/pages/PricingDetailPage.tsx): `src/app/pages/PricingDetailPage.tsx`
- [Pricing records](https://github.com/rldev05/7powermotors/blob/main/src/app/data/pricing.ts): `src/app/data/pricing.ts`
- [Pricing data logic](https://github.com/rldev05/7powermotors/blob/main/src/app/lib/pricingData.ts): `src/app/lib/pricingData.ts`
- [Pricing search index](https://github.com/rldev05/7powermotors/blob/main/src/app/lib/pricingSearchIndex.ts): `src/app/lib/pricingSearchIndex.ts`
- [Pricing configuration](https://github.com/rldev05/7powermotors/blob/main/src/app/lib/pricingConfig.ts): `src/app/lib/pricingConfig.ts`
- [Pricing language](https://github.com/rldev05/7powermotors/blob/main/src/app/i18n/pricing.ts): `src/app/i18n/pricing.ts`

### Partnership API

- [Partnership endpoint](https://github.com/rldev05/7powermotors/blob/main/server/app.mjs): `server/app.mjs`
- [Inquiry validation](https://github.com/rldev05/7powermotors/blob/main/server/validation.mjs): `server/validation.mjs`
- [Email delivery](https://github.com/rldev05/7powermotors/blob/main/server/email.mjs): `server/email.mjs`

### Other components

- **Website visitor**
- **SMTP service**

## Connections

- Website visitor → App shell: opens (evidence: `src/app/App.tsx`)
- App shell → Route dispatch: mounts router (evidence: `src/app/App.tsx`)
- Route dispatch → Home page: routes to (evidence: `src/app/routes.tsx`)
- Route dispatch → Motorcycle catalog: routes to (evidence: `src/app/routes.tsx`)
- Route dispatch → Motorcycle details: routes to (evidence: `src/app/routes.tsx`)
- Route dispatch → Pricing catalog: routes to (evidence: `src/app/routes.tsx`)
- Route dispatch → Pricing detail: routes to (evidence: `src/app/routes.tsx`)
- Route dispatch → Services page: routes to (evidence: `src/app/routes.tsx`)
- Route dispatch → Partner page: routes to (evidence: `src/app/routes.tsx`)
- Route dispatch → Privacy policy: routes to (evidence: `src/app/routes.tsx`)
- Home page → Hero section: features
- Home page → Featured models: features
- Home page → Service offerings: features
- Motorcycle catalog → Motorcycle data: reads (evidence: `src/app/motorcycles/MotorcyclesPage.tsx`)
- Motorcycle details → Motorcycle data: reads (evidence: `src/app/motorcycles/BikeDetailsPage.tsx`)
- Motorcycle details → 360 bike viewer: renders (evidence: `src/app/motorcycles/BikeDetailsPage.tsx`)
- Motorcycle details → Image fallback: renders images (evidence: `src/app/motorcycles/BikeDetailsPage.tsx`)
- Motorcycle catalog → Image fallback: renders images (evidence: `src/app/motorcycles/MotorcyclesPage.tsx`)
- Services page → Application process: renders (evidence: `src/app/pages/ServicesPage.tsx`)
- Services page → Service offerings: renders (evidence: `src/app/pages/ServicesPage.tsx`)
- Services page → Featured models: renders (evidence: `src/app/pages/ServicesPage.tsx`)
- Services page → Contact section: renders (evidence: `src/app/pages/ServicesPage.tsx`)
- Contact section → Brand details: reads (evidence: `src/app/components/Contact.tsx`)
- Pricing catalog → Pricing records: reads (evidence: `src/app/pages/PricingPage.tsx`)
- Pricing catalog → Pricing search index: uses search (evidence: `src/app/pages/PricingPage.tsx`)
- Pricing catalog → Pricing configuration: uses config (evidence: `src/app/pages/PricingPage.tsx`)
- Pricing catalog → Pricing language: uses translations (evidence: `src/app/pages/PricingPage.tsx`)
- Pricing detail → Pricing records: reads (evidence: `src/app/pages/PricingDetailPage.tsx`)
- Pricing detail → Pricing data logic: uses (evidence: `src/app/pages/PricingDetailPage.tsx`)
- Pricing detail → Pricing configuration: uses config (evidence: `src/app/pages/PricingDetailPage.tsx`)
- Pricing detail → Pricing language: uses translations (evidence: `src/app/pages/PricingDetailPage.tsx`)
- Partnership endpoint → Inquiry validation: validates with (evidence: `server/app.mjs`)
- Partnership endpoint → Email delivery: sends inquiry (evidence: `server/app.mjs`)
- Email delivery → SMTP service: uses SMTP
- Contact section → Partnership endpoint: submits inquiry
- Navigation bar → Brand logo: renders (evidence: `src/app/components/Navbar.tsx`)
- Site footer → Brand logo: renders (evidence: `src/app/components/Footer.tsx`)
