# johnkarlmolina/lolama-website architecture

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

- Interactive diagram: https://gitdiagram.com/johnkarlmolina/lolama-website
- Repository: https://github.com/johnkarlmolina/lolama-website

## Overview

Best Lolama is a React storefront and brand-information site for doughnuts, drinks, franchise opportunities, and company achievements. Visitors enter the landing page, browse the menu or informational pages, and can navigate toward contact; the app handles page selection and browser history. Menu search and franchise details are distinct domain stages, with shared catalog and typed franchise data as an internal layer. The README describes only the Vite template, so product capabilities are inferred from the source index and excerpts; unsampled page details are represented only where their imports are documented.

Main entry points: [`src/pages/BestLolamaLandingPage.tsx`](https://github.com/johnkarlmolina/lolama-website/blob/main/src/pages/BestLolamaLandingPage.tsx) (Landing page), [`src/App.tsx`](https://github.com/johnkarlmolina/lolama-website/blob/main/src/App.tsx) (Page router), [`src/pages/AboutPage.tsx`](https://github.com/johnkarlmolina/lolama-website/blob/main/src/pages/AboutPage.tsx) (About page), [`src/pages/FranchisePage.tsx`](https://github.com/johnkarlmolina/lolama-website/blob/main/src/pages/FranchisePage.tsx) (Franchise page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Site navigation"]
  node_app["Page router<br/>[App.tsx]"]
  node_contact["Contact page<br/>[ContactPage.tsx]"]
  node_header["Site header<br/>[Header.tsx]"]
  node_footer["Site footer<br/>[Footer.tsx]"]
end

subgraph group_brand["Brand and recognition"]
  node_landing["Landing page"]
  node_about["About page<br/>[AboutPage.tsx]"]
  node_aboutsection["About highlights<br/>[AboutSection.tsx]"]
  node_vision["Vision and mission"]
  node_partners["Partner showcase"]
  node_hero["Hero section<br/>[HeroSection.tsx]"]
  node_awardssection["Awards highlights"]
  node_awardspage["Awards page"]
end

subgraph group_catalog["Menu catalog"]
  node_menuhighlights["Menu highlights"]
  node_menupage["Menu page<br/>[MenuPage.tsx]"]
  node_catalogdata["Full menu catalog"]
end

subgraph group_franchise["Franchise"]
  node_franchisepage["Franchise page<br/>[FranchisePage.tsx]"]
  node_franchisesection["Franchise tiers and steps"]
  node_requirements["Franchise requirements"]
  node_locations["Location showcase"]
  node_productdata["Brand and franchise data"]
  node_types["Domain types"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens site"| node_app
node_app -->|"selects page"| node_landing
node_app -->|"selects page"| node_about
node_app -->|"selects page"| node_contact
node_app -->|"selects page"| node_menupage
node_app -->|"selects page"| node_franchisepage
node_app -->|"selects page"| node_awardspage
node_landing -->|"renders"| node_header
node_landing -->|"renders"| node_hero
node_landing -->|"renders"| node_aboutsection
node_landing -->|"renders"| node_awardssection
node_landing -->|"renders"| node_menuhighlights
node_landing -->|"renders"| node_franchisesection
node_landing -->|"renders"| node_locations
node_landing -->|"renders"| node_partners
node_landing -->|"renders"| node_footer
node_landing -->|"reads"| node_productdata
node_about -->|"renders"| node_aboutsection
node_about -->|"renders"| node_vision
node_about -->|"renders"| node_partners
node_about -->|"reads"| node_productdata
node_about -->|"renders"| node_header
node_about -->|"renders"| node_footer
node_contact -->|"renders"| node_header
node_contact -->|"renders"| node_footer
node_menupage -->|"renders"| node_header
node_menupage -->|"searches catalog"| node_catalogdata
node_franchisepage -->|"renders"| node_header
node_franchisepage -->|"renders"| node_requirements
node_franchisepage -->|"renders"| node_franchisesection
node_franchisepage -->|"renders"| node_footer
node_franchisepage -->|"reads"| node_productdata
node_franchisesection -->|"uses types"| node_types
node_awardspage -->|"renders"| node_header
node_awardspage -->|"renders"| node_footer
node_menupage -->|"groups items"| node_catalogdata
node_catalogdata -->|"defines item shape"| node_types
node_productdata -->|"defines domain data"| node_types

click node_app "https://github.com/johnkarlmolina/lolama-website/blob/main/src/App.tsx"
click node_landing "https://github.com/johnkarlmolina/lolama-website/blob/main/src/pages/BestLolamaLandingPage.tsx"
click node_about "https://github.com/johnkarlmolina/lolama-website/blob/main/src/pages/AboutPage.tsx"
click node_contact "https://github.com/johnkarlmolina/lolama-website/blob/main/src/pages/ContactPage.tsx"
click node_header "https://github.com/johnkarlmolina/lolama-website/blob/main/src/best-lolama/Header.tsx"
click node_footer "https://github.com/johnkarlmolina/lolama-website/blob/main/src/best-lolama/Footer.tsx"
click node_aboutsection "https://github.com/johnkarlmolina/lolama-website/blob/main/src/best-lolama/AboutSection.tsx"
click node_vision "https://github.com/johnkarlmolina/lolama-website/blob/main/src/best-lolama/VisionMissionSection.tsx"
click node_partners "https://github.com/johnkarlmolina/lolama-website/blob/main/src/best-lolama/PartnerMarqueeSection.tsx"
click node_hero "https://github.com/johnkarlmolina/lolama-website/blob/main/src/best-lolama/HeroSection.tsx"
click node_awardssection "https://github.com/johnkarlmolina/lolama-website/blob/main/src/best-lolama/RecognitionAwardsSection.tsx"
click node_awardspage "https://github.com/johnkarlmolina/lolama-website/blob/main/src/pages/RecognitionAwardsPage.tsx"
click node_menuhighlights "https://github.com/johnkarlmolina/lolama-website/blob/main/src/best-lolama/MenuHighlightsSection.tsx"
click node_menupage "https://github.com/johnkarlmolina/lolama-website/blob/main/src/pages/MenuPage.tsx"
click node_catalogdata "https://github.com/johnkarlmolina/lolama-website/blob/main/src/data/best-lolama.catalog.data.ts"
click node_franchisepage "https://github.com/johnkarlmolina/lolama-website/blob/main/src/pages/FranchisePage.tsx"
click node_franchisesection "https://github.com/johnkarlmolina/lolama-website/blob/main/src/best-lolama/FranchiseSection.tsx"
click node_requirements "https://github.com/johnkarlmolina/lolama-website/blob/main/src/best-lolama/FranchiseRequirementsSection.tsx"
click node_locations "https://github.com/johnkarlmolina/lolama-website/blob/main/src/best-lolama/FranchiseLocationsMarqueeSection.tsx"
click node_productdata "https://github.com/johnkarlmolina/lolama-website/blob/main/src/data/best-lolama.data.ts"
click node_types "https://github.com/johnkarlmolina/lolama-website/blob/main/src/types/best-lolama.types.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_contact,node_header,node_footer toneBlue
class node_landing,node_about,node_aboutsection,node_vision,node_partners,node_hero,node_awardssection,node_awardspage toneAmber
class node_menuhighlights,node_menupage,node_catalogdata toneMint
class node_franchisepage,node_franchisesection,node_requirements,node_locations,node_productdata,node_types toneRose
class node_visitor toneIndigo
```

## Components

### Site navigation

- [Page router](https://github.com/johnkarlmolina/lolama-website/blob/main/src/App.tsx): `src/App.tsx`
- [Contact page](https://github.com/johnkarlmolina/lolama-website/blob/main/src/pages/ContactPage.tsx): `src/pages/ContactPage.tsx`
- [Site header](https://github.com/johnkarlmolina/lolama-website/blob/main/src/best-lolama/Header.tsx): `src/best-lolama/Header.tsx`
- [Site footer](https://github.com/johnkarlmolina/lolama-website/blob/main/src/best-lolama/Footer.tsx): `src/best-lolama/Footer.tsx`

### Brand and recognition

- [Landing page](https://github.com/johnkarlmolina/lolama-website/blob/main/src/pages/BestLolamaLandingPage.tsx): `src/pages/BestLolamaLandingPage.tsx`
- [About page](https://github.com/johnkarlmolina/lolama-website/blob/main/src/pages/AboutPage.tsx): `src/pages/AboutPage.tsx`
- [About highlights](https://github.com/johnkarlmolina/lolama-website/blob/main/src/best-lolama/AboutSection.tsx): `src/best-lolama/AboutSection.tsx`
- [Vision and mission](https://github.com/johnkarlmolina/lolama-website/blob/main/src/best-lolama/VisionMissionSection.tsx): `src/best-lolama/VisionMissionSection.tsx`
- [Partner showcase](https://github.com/johnkarlmolina/lolama-website/blob/main/src/best-lolama/PartnerMarqueeSection.tsx): `src/best-lolama/PartnerMarqueeSection.tsx`
- [Hero section](https://github.com/johnkarlmolina/lolama-website/blob/main/src/best-lolama/HeroSection.tsx): `src/best-lolama/HeroSection.tsx`
- [Awards highlights](https://github.com/johnkarlmolina/lolama-website/blob/main/src/best-lolama/RecognitionAwardsSection.tsx): `src/best-lolama/RecognitionAwardsSection.tsx`
- [Awards page](https://github.com/johnkarlmolina/lolama-website/blob/main/src/pages/RecognitionAwardsPage.tsx): `src/pages/RecognitionAwardsPage.tsx`

### Menu catalog

- [Menu highlights](https://github.com/johnkarlmolina/lolama-website/blob/main/src/best-lolama/MenuHighlightsSection.tsx): `src/best-lolama/MenuHighlightsSection.tsx`
- [Menu page](https://github.com/johnkarlmolina/lolama-website/blob/main/src/pages/MenuPage.tsx): `src/pages/MenuPage.tsx`
- [Full menu catalog](https://github.com/johnkarlmolina/lolama-website/blob/main/src/data/best-lolama.catalog.data.ts): `src/data/best-lolama.catalog.data.ts`

### Franchise

- [Franchise page](https://github.com/johnkarlmolina/lolama-website/blob/main/src/pages/FranchisePage.tsx): `src/pages/FranchisePage.tsx`
- [Franchise tiers and steps](https://github.com/johnkarlmolina/lolama-website/blob/main/src/best-lolama/FranchiseSection.tsx): `src/best-lolama/FranchiseSection.tsx`
- [Franchise requirements](https://github.com/johnkarlmolina/lolama-website/blob/main/src/best-lolama/FranchiseRequirementsSection.tsx): `src/best-lolama/FranchiseRequirementsSection.tsx`
- [Location showcase](https://github.com/johnkarlmolina/lolama-website/blob/main/src/best-lolama/FranchiseLocationsMarqueeSection.tsx): `src/best-lolama/FranchiseLocationsMarqueeSection.tsx`
- [Brand and franchise data](https://github.com/johnkarlmolina/lolama-website/blob/main/src/data/best-lolama.data.ts): `src/data/best-lolama.data.ts`
- [Domain types](https://github.com/johnkarlmolina/lolama-website/blob/main/src/types/best-lolama.types.ts): `src/types/best-lolama.types.ts`

### Other components

- **Visitor**

## Connections

- Visitor → Page router: opens site
- Page router → Landing page: selects page (evidence: `src/App.tsx`)
- Page router → About page: selects page (evidence: `src/App.tsx`)
- Page router → Contact page: selects page (evidence: `src/App.tsx`)
- Page router → Menu page: selects page (evidence: `src/App.tsx`)
- Page router → Franchise page: selects page (evidence: `src/App.tsx`)
- Page router → Awards page: selects page (evidence: `src/App.tsx`)
- Landing page → Site header: renders (evidence: `src/pages/BestLolamaLandingPage.tsx`)
- Landing page → Hero section: renders (evidence: `src/pages/BestLolamaLandingPage.tsx`)
- Landing page → About highlights: renders (evidence: `src/pages/BestLolamaLandingPage.tsx`)
- Landing page → Awards highlights: renders (evidence: `src/pages/BestLolamaLandingPage.tsx`)
- Landing page → Menu highlights: renders (evidence: `src/pages/BestLolamaLandingPage.tsx`)
- Landing page → Franchise tiers and steps: renders (evidence: `src/pages/BestLolamaLandingPage.tsx`)
- Landing page → Location showcase: renders (evidence: `src/pages/BestLolamaLandingPage.tsx`)
- Landing page → Partner showcase: renders (evidence: `src/pages/BestLolamaLandingPage.tsx`)
- Landing page → Site footer: renders (evidence: `src/pages/BestLolamaLandingPage.tsx`)
- Landing page → Brand and franchise data: reads (evidence: `src/pages/BestLolamaLandingPage.tsx`)
- About page → About highlights: renders (evidence: `src/pages/AboutPage.tsx`)
- About page → Vision and mission: renders (evidence: `src/pages/AboutPage.tsx`)
- About page → Partner showcase: renders (evidence: `src/pages/AboutPage.tsx`)
- About page → Brand and franchise data: reads (evidence: `src/pages/AboutPage.tsx`)
- About page → Site header: renders (evidence: `src/pages/AboutPage.tsx`)
- About page → Site footer: renders (evidence: `src/pages/AboutPage.tsx`)
- Contact page → Site header: renders (evidence: `src/pages/ContactPage.tsx`)
- Contact page → Site footer: renders (evidence: `src/pages/ContactPage.tsx`)
- Menu page → Site header: renders (evidence: `src/pages/MenuPage.tsx`)
- Menu page → Full menu catalog: searches catalog (evidence: `src/pages/MenuPage.tsx`)
- Franchise page → Site header: renders (evidence: `src/pages/FranchisePage.tsx`)
- Franchise page → Franchise requirements: renders (evidence: `src/pages/FranchisePage.tsx`)
- Franchise page → Franchise tiers and steps: renders (evidence: `src/pages/FranchisePage.tsx`)
- Franchise page → Site footer: renders (evidence: `src/pages/FranchisePage.tsx`)
- Franchise page → Brand and franchise data: reads (evidence: `src/pages/FranchisePage.tsx`)
- Franchise tiers and steps → Domain types: uses types (evidence: `src/best-lolama/FranchiseSection.tsx`)
- Awards page → Site header: renders (evidence: `src/pages/RecognitionAwardsPage.tsx`)
- Awards page → Site footer: renders (evidence: `src/pages/RecognitionAwardsPage.tsx`)
- Menu page → Full menu catalog: groups items (evidence: `src/pages/MenuPage.tsx`)
- Full menu catalog → Domain types: defines item shape (evidence: `src/data/best-lolama.catalog.data.ts`)
- Brand and franchise data → Domain types: defines domain data (evidence: `src/data/best-lolama.data.ts`)
