# nadir041/cmq architecture

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

- Interactive diagram: https://gitdiagram.com/nadir041/cmq
- Repository: https://github.com/nadir041/cmq

## Overview

CompareMedQuotes is a Medicare plan information and quote-request website. Visitors browse the landing page, review Medicare-related information, and can navigate to a quote request form; the app also serves privacy, terms, and contact-preference policy pages. The form excerpt shows local validation and a success state, but no submission destination or backend. The graph follows routing and component relationships shown in excerpts or the source index; unsampled page internals and external integrations are not inferred.

Main entry points: [`src/App.jsx`](https://github.com/nadir041/cmq/blob/main/src/App.jsx) (App router), [`src/components/Footer/Footer.jsx`](https://github.com/nadir041/cmq/blob/main/src/components/Footer/Footer.jsx) (Footer), [`src/pages/Home.jsx`](https://github.com/nadir041/cmq/blob/main/src/pages/Home.jsx) (Home page), [`src/pages/GetFreeQuotes.jsx`](https://github.com/nadir041/cmq/blob/main/src/pages/GetFreeQuotes.jsx) (Quote page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Site shell"]
  node_app["App router<br/>[App.jsx]"]
  node_header["Header<br/>[Header.jsx]"]
  node_footer["Footer<br/>[Footer.jsx]"]
end

subgraph group_landing["Medicare information"]
  node_home["Home page<br/>[Home.jsx]"]
  node_hero["Hero section<br/>[HeroSection.jsx]"]
  node_intro["Intro section<br/>[IntroSection.jsx]"]
  node_hospital["Hospital indemnity"]
  node_options["Plan options<br/>[OptionsSection.jsx]"]
  node_whyus["Why us section<br/>[WhyUsSection.jsx]"]
end

subgraph group_quotes["Quote request"]
  node_quote["Quote page<br/>[GetFreeQuotes.jsx]"]
  node_formsection["Form section<br/>[FormSection.jsx]"]
  node_form["Request form<br/>[Form.jsx]"]
end

subgraph group_policies["Policies"]
  node_terms["Terms page"]
  node_privacy["Privacy page<br/>[PrivacyPolicy.jsx]"]
  node_selloptout["Data opt-out"]
  node_dnc["Do-not-call policy<br/>[DNCPolicy.jsx]"]
  node_partners["Marketing partners"]
end

node_visitor(("Website visitor"))

node_visitor -->|"opens site"| node_app
node_app -->|"renders"| node_header
node_app -->|"renders"| node_footer
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_quote
node_app -->|"routes to"| node_terms
node_app -->|"routes to"| node_privacy
node_app -->|"routes to"| node_selloptout
node_app -->|"routes to"| node_dnc
node_app -->|"routes to"| node_partners
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_intro
node_home -->|"renders"| node_hospital
node_home -->|"renders"| node_options
node_intro -->|"links to"| node_quote
node_quote -->|"renders"| node_form
node_formsection -->|"renders"| node_form
node_footer -->|"links to"| node_privacy
node_footer -->|"links to"| node_terms
node_footer -->|"links to"| node_selloptout
node_footer -->|"links to"| node_dnc
node_footer -->|"links to"| node_partners

click node_app "https://github.com/nadir041/cmq/blob/main/src/App.jsx"
click node_header "https://github.com/nadir041/cmq/blob/main/src/components/Header/Header.jsx"
click node_footer "https://github.com/nadir041/cmq/blob/main/src/components/Footer/Footer.jsx"
click node_home "https://github.com/nadir041/cmq/blob/main/src/pages/Home.jsx"
click node_hero "https://github.com/nadir041/cmq/blob/main/src/components/sections/HeroSection.jsx"
click node_intro "https://github.com/nadir041/cmq/blob/main/src/components/sections/IntroSection.jsx"
click node_hospital "https://github.com/nadir041/cmq/blob/main/src/components/sections/HospitalIndemnity.jsx"
click node_options "https://github.com/nadir041/cmq/blob/main/src/components/sections/OptionsSection.jsx"
click node_whyus "https://github.com/nadir041/cmq/blob/main/src/components/sections/WhyUsSection.jsx"
click node_quote "https://github.com/nadir041/cmq/blob/main/src/pages/GetFreeQuotes.jsx"
click node_formsection "https://github.com/nadir041/cmq/blob/main/src/components/sections/FormSection.jsx"
click node_form "https://github.com/nadir041/cmq/blob/main/src/components/Form/Form.jsx"
click node_terms "https://github.com/nadir041/cmq/blob/main/src/pages/TermsConditions.jsx"
click node_privacy "https://github.com/nadir041/cmq/blob/main/src/pages/PrivacyPolicy.jsx"
click node_selloptout "https://github.com/nadir041/cmq/blob/main/src/pages/DoNotSellMyPersonalInformation.jsx"
click node_dnc "https://github.com/nadir041/cmq/blob/main/src/pages/DNCPolicy.jsx"
click node_partners "https://github.com/nadir041/cmq/blob/main/src/pages/MarketingPartners.jsx"

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_header,node_footer toneBlue
class node_home,node_hero,node_intro,node_hospital,node_options,node_whyus toneAmber
class node_quote,node_formsection,node_form toneMint
class node_terms,node_privacy,node_selloptout,node_dnc,node_partners toneRose
class node_visitor toneIndigo
```

## Components

### Site shell

- [App router](https://github.com/nadir041/cmq/blob/main/src/App.jsx): `src/App.jsx`
- [Header](https://github.com/nadir041/cmq/blob/main/src/components/Header/Header.jsx): `src/components/Header/Header.jsx`
- [Footer](https://github.com/nadir041/cmq/blob/main/src/components/Footer/Footer.jsx): `src/components/Footer/Footer.jsx`

### Medicare information

- [Home page](https://github.com/nadir041/cmq/blob/main/src/pages/Home.jsx): `src/pages/Home.jsx`
- [Hero section](https://github.com/nadir041/cmq/blob/main/src/components/sections/HeroSection.jsx): `src/components/sections/HeroSection.jsx`
- [Intro section](https://github.com/nadir041/cmq/blob/main/src/components/sections/IntroSection.jsx): `src/components/sections/IntroSection.jsx`
- [Hospital indemnity](https://github.com/nadir041/cmq/blob/main/src/components/sections/HospitalIndemnity.jsx): `src/components/sections/HospitalIndemnity.jsx`
- [Plan options](https://github.com/nadir041/cmq/blob/main/src/components/sections/OptionsSection.jsx): `src/components/sections/OptionsSection.jsx`
- [Why us section](https://github.com/nadir041/cmq/blob/main/src/components/sections/WhyUsSection.jsx): `src/components/sections/WhyUsSection.jsx`

### Quote request

- [Quote page](https://github.com/nadir041/cmq/blob/main/src/pages/GetFreeQuotes.jsx): `src/pages/GetFreeQuotes.jsx`
- [Form section](https://github.com/nadir041/cmq/blob/main/src/components/sections/FormSection.jsx): `src/components/sections/FormSection.jsx`
- [Request form](https://github.com/nadir041/cmq/blob/main/src/components/Form/Form.jsx): `src/components/Form/Form.jsx`

### Policies

- [Terms page](https://github.com/nadir041/cmq/blob/main/src/pages/TermsConditions.jsx): `src/pages/TermsConditions.jsx`
- [Privacy page](https://github.com/nadir041/cmq/blob/main/src/pages/PrivacyPolicy.jsx): `src/pages/PrivacyPolicy.jsx`
- [Data opt-out](https://github.com/nadir041/cmq/blob/main/src/pages/DoNotSellMyPersonalInformation.jsx): `src/pages/DoNotSellMyPersonalInformation.jsx`
- [Do-not-call policy](https://github.com/nadir041/cmq/blob/main/src/pages/DNCPolicy.jsx): `src/pages/DNCPolicy.jsx`
- [Marketing partners](https://github.com/nadir041/cmq/blob/main/src/pages/MarketingPartners.jsx): `src/pages/MarketingPartners.jsx`

### Other components

- **Website visitor**

## Connections

- Website visitor → App router: opens site
- App router → Header: renders (evidence: `src/App.jsx`)
- App router → Footer: renders (evidence: `src/App.jsx`)
- App router → Home page: routes to (evidence: `src/App.jsx`)
- App router → Quote page: routes to (evidence: `src/App.jsx`)
- App router → Terms page: routes to (evidence: `src/App.jsx`)
- App router → Privacy page: routes to (evidence: `src/App.jsx`)
- App router → Data opt-out: routes to (evidence: `src/App.jsx`)
- App router → Do-not-call policy: routes to (evidence: `src/App.jsx`)
- App router → Marketing partners: routes to (evidence: `src/App.jsx`)
- Home page → Hero section: renders (evidence: `src/pages/Home.jsx`)
- Home page → Intro section: renders (evidence: `src/pages/Home.jsx`)
- Home page → Hospital indemnity: renders (evidence: `src/pages/Home.jsx`)
- Home page → Plan options: renders (evidence: `src/pages/Home.jsx`)
- Intro section → Quote page: links to (evidence: `src/components/sections/IntroSection.jsx`)
- Quote page → Request form: renders (evidence: `src/pages/GetFreeQuotes.jsx`)
- Form section → Request form: renders (evidence: `src/components/sections/FormSection.jsx`)
- Footer → Privacy page: links to (evidence: `src/components/Footer/Footer.jsx`)
- Footer → Terms page: links to (evidence: `src/components/Footer/Footer.jsx`)
- Footer → Data opt-out: links to (evidence: `src/components/Footer/Footer.jsx`)
- Footer → Do-not-call policy: links to (evidence: `src/components/Footer/Footer.jsx`)
- Footer → Marketing partners: links to (evidence: `src/components/Footer/Footer.jsx`)
