# analiarojas2929/vicmar architecture

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

- Interactive diagram: https://gitdiagram.com/analiarojas2929/vicmar
- Repository: https://github.com/analiarojas2929/vicmar

## Overview

VICMAR is a commercial website prototype, not a production service: its main user journey is browsing proposed services, entering a guided quote, reviewing a demo estimate, and printing a summary. The quote stays in component memory; submission only simulates success, with no backend or persistent storage. The prototype also includes contact and company-information pages, address suggestions, territory validation, and a pickup-point map. Relationships below follow the README and shown imports/calls; unsampled internals are not inferred.

Main entry points: [`src/pages/Quote.tsx`](https://github.com/analiarojas2929/vicmar/blob/main/src/pages/Quote.tsx) (Quote form), [`src/main.tsx`](https://github.com/analiarojas2929/vicmar/blob/main/src/main.tsx) (Route application), [`src/components/PickupMap.tsx`](https://github.com/analiarojas2929/vicmar/blob/main/src/components/PickupMap.tsx) (Pickup map), [`src/components/AddressSuggestions.tsx`](https://github.com/analiarojas2929/vicmar/blob/main/src/components/AddressSuggestions.tsx) (Address suggestions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Web experience"]
  node_router["Route application<br/>[main.tsx]"]
  node_layout["Site layout<br/>[Layout.tsx]"]
  node_home["Home page<br/>[Home.tsx]"]
  node_content["Content pages<br/>[ContentPages.tsx]"]
  node_contact["Contact page<br/>[Contact.tsx]"]
  node_ui["Shared UI<br/>[UI.tsx]"]
  node_company["Company content<br/>[content.ts]"]
end

subgraph group_quoting["Quote workflow"]
  node_quote["Quote form<br/>[Quote.tsx]"]
  node_calculation["Quote calculation<br/>[quote.ts]"]
  node_rates["Demo rates<br/>[demoRates.ts]"]
end

subgraph group_location["Location tools"]
  node_addressui["Address suggestions"]
  node_addressparse["Address matching<br/>[addressSearch.ts]"]
  node_territory["Territory catalog<br/>[territory.ts]"]
  node_map["Pickup map<br/>[PickupMap.tsx]"]
  node_googlemap["Google pickup map"]
  node_mapfallback["Map fallback"]
end

subgraph group_reference["Address providers"]
  node_google{{"Google Maps / Places"}}
  node_photon{{"Photon geocoder"}}
  node_maptiles{{"OpenFreeMap tiles"}}
end

node_visitor(("Site visitor"))

node_visitor -->|"opens routes"| node_router
node_router -->|"renders routes"| node_layout
node_router -->|"routes to"| node_home
node_router -->|"routes to"| node_content
node_router -->|"routes to"| node_contact
node_router -->|"routes to"| node_quote
node_home -->|"uses components"| node_ui
node_content -->|"uses components"| node_ui
node_ui -->|"reads services"| node_company
node_contact -->|"reads contact data"| node_company
node_quote -->|"validates and calculates"| node_calculation
node_calculation -->|"uses rates"| node_rates
node_quote -->|"resolves territory"| node_territory
node_quote -->|"parses address"| node_addressparse
node_quote -->|"renders suggestions"| node_addressui
node_addressui -->|"requests suggestions"| node_google
node_google -->|"returns suggestions"| node_addressui
node_quote -->|"selects pickup point"| node_map
node_quote -->|"uses map option"| node_googlemap
node_quote -->|"uses fallback"| node_mapfallback
node_googlemap -->|"delegates map"| node_map
node_mapfallback -->|"renders map"| node_map
node_map -->|"loads tiles"| node_maptiles
node_visitor -->|"chooses point"| node_map
node_addressui -.->|"optional lookup"| node_photon

click node_router "https://github.com/analiarojas2929/vicmar/blob/main/src/main.tsx"
click node_layout "https://github.com/analiarojas2929/vicmar/blob/main/src/components/Layout.tsx"
click node_home "https://github.com/analiarojas2929/vicmar/blob/main/src/pages/Home.tsx"
click node_content "https://github.com/analiarojas2929/vicmar/blob/main/src/pages/ContentPages.tsx"
click node_contact "https://github.com/analiarojas2929/vicmar/blob/main/src/pages/Contact.tsx"
click node_ui "https://github.com/analiarojas2929/vicmar/blob/main/src/components/UI.tsx"
click node_company "https://github.com/analiarojas2929/vicmar/blob/main/src/config/content.ts"
click node_quote "https://github.com/analiarojas2929/vicmar/blob/main/src/pages/Quote.tsx"
click node_calculation "https://github.com/analiarojas2929/vicmar/blob/main/src/lib/quote.ts"
click node_rates "https://github.com/analiarojas2929/vicmar/blob/main/src/config/demoRates.ts"
click node_addressui "https://github.com/analiarojas2929/vicmar/blob/main/src/components/AddressSuggestions.tsx"
click node_addressparse "https://github.com/analiarojas2929/vicmar/blob/main/src/lib/addressSearch.ts"
click node_territory "https://github.com/analiarojas2929/vicmar/blob/main/src/lib/territory.ts"
click node_map "https://github.com/analiarojas2929/vicmar/blob/main/src/components/PickupMap.tsx"
click node_googlemap "https://github.com/analiarojas2929/vicmar/blob/main/src/components/GooglePickupMap.tsx"
click node_mapfallback "https://github.com/analiarojas2929/vicmar/blob/main/src/components/PickupMapFallback.tsx"

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_router,node_layout,node_home,node_content,node_contact,node_ui,node_company toneBlue
class node_quote,node_calculation,node_rates toneAmber
class node_addressui,node_addressparse,node_territory,node_map,node_googlemap,node_mapfallback toneMint
class node_google,node_photon,node_maptiles toneRose
class node_visitor toneIndigo
```

## Components

### Web experience

- [Route application](https://github.com/analiarojas2929/vicmar/blob/main/src/main.tsx): `src/main.tsx`
- [Site layout](https://github.com/analiarojas2929/vicmar/blob/main/src/components/Layout.tsx): `src/components/Layout.tsx`
- [Home page](https://github.com/analiarojas2929/vicmar/blob/main/src/pages/Home.tsx): `src/pages/Home.tsx`
- [Content pages](https://github.com/analiarojas2929/vicmar/blob/main/src/pages/ContentPages.tsx): `src/pages/ContentPages.tsx`
- [Contact page](https://github.com/analiarojas2929/vicmar/blob/main/src/pages/Contact.tsx): `src/pages/Contact.tsx`
- [Shared UI](https://github.com/analiarojas2929/vicmar/blob/main/src/components/UI.tsx): `src/components/UI.tsx`
- [Company content](https://github.com/analiarojas2929/vicmar/blob/main/src/config/content.ts): `src/config/content.ts`

### Quote workflow

- [Quote form](https://github.com/analiarojas2929/vicmar/blob/main/src/pages/Quote.tsx): `src/pages/Quote.tsx`
- [Quote calculation](https://github.com/analiarojas2929/vicmar/blob/main/src/lib/quote.ts): `src/lib/quote.ts`
- [Demo rates](https://github.com/analiarojas2929/vicmar/blob/main/src/config/demoRates.ts): `src/config/demoRates.ts`

### Location tools

- [Address suggestions](https://github.com/analiarojas2929/vicmar/blob/main/src/components/AddressSuggestions.tsx): `src/components/AddressSuggestions.tsx`
- [Address matching](https://github.com/analiarojas2929/vicmar/blob/main/src/lib/addressSearch.ts): `src/lib/addressSearch.ts`
- [Territory catalog](https://github.com/analiarojas2929/vicmar/blob/main/src/lib/territory.ts): `src/lib/territory.ts`
- [Pickup map](https://github.com/analiarojas2929/vicmar/blob/main/src/components/PickupMap.tsx): `src/components/PickupMap.tsx`
- [Google pickup map](https://github.com/analiarojas2929/vicmar/blob/main/src/components/GooglePickupMap.tsx): `src/components/GooglePickupMap.tsx`
- [Map fallback](https://github.com/analiarojas2929/vicmar/blob/main/src/components/PickupMapFallback.tsx): `src/components/PickupMapFallback.tsx`

### Address providers

- **Google Maps / Places**
- **Photon geocoder**
- **OpenFreeMap tiles**

### Other components

- **Site visitor**

## Connections

- Site visitor → Route application: opens routes (evidence: `README.md`)
- Route application → Site layout: renders routes (evidence: `src/main.tsx`)
- Route application → Home page: routes to (evidence: `src/main.tsx`)
- Route application → Content pages: routes to (evidence: `src/main.tsx`)
- Route application → Contact page: routes to (evidence: `src/main.tsx`)
- Route application → Quote form: routes to (evidence: `src/main.tsx`)
- Home page → Shared UI: uses components (evidence: `src/pages/Home.tsx`)
- Content pages → Shared UI: uses components (evidence: `src/pages/ContentPages.tsx`)
- Shared UI → Company content: reads services (evidence: `src/components/UI.tsx`)
- Contact page → Company content: reads contact data (evidence: `src/pages/Contact.tsx`)
- Quote form → Quote calculation: validates and calculates (evidence: `src/pages/Quote.tsx`)
- Quote calculation → Demo rates: uses rates (evidence: `src/lib/quote.ts`)
- Quote form → Territory catalog: resolves territory (evidence: `src/pages/Quote.tsx`)
- Quote form → Address matching: parses address (evidence: `src/pages/Quote.tsx`)
- Quote form → Address suggestions: renders suggestions (evidence: `src/pages/Quote.tsx`)
- Address suggestions → Google Maps / Places: requests suggestions (evidence: `src/components/AddressSuggestions.tsx`)
- Google Maps / Places → Address suggestions: returns suggestions (evidence: `src/components/AddressSuggestions.tsx`)
- Quote form → Pickup map: selects pickup point (evidence: `src/pages/Quote.tsx`)
- Quote form → Google pickup map: uses map option (evidence: `src/pages/Quote.tsx`)
- Quote form → Map fallback: uses fallback (evidence: `src/pages/Quote.tsx`)
- Google pickup map → Pickup map: delegates map (evidence: `src/components/GooglePickupMap.tsx`)
- Map fallback → Pickup map: renders map (evidence: `src/components/PickupMapFallback.tsx`)
- Pickup map → OpenFreeMap tiles: loads tiles (evidence: `src/components/PickupMap.tsx`)
- Site visitor → Pickup map: chooses point (evidence: `src/components/PickupMap.tsx`)
- Address suggestions → Photon geocoder: optional lookup
