# gurubsc/aaha_solutions architecture

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

- Interactive diagram: https://gitdiagram.com/gurubsc/aaha_solutions
- Repository: https://github.com/gurubsc/aaha_solutions

## Overview

#### Purpose and Runtime
This is a TypeScript Next.js public marketing website using the Pages Router. It renders informational Home, About, Services, and Contact pages, with a default starter API endpoint. It runs in Node.js through Next.js and is suitable for deployment on Vercel.

Entry and framework boundaries:
- `src/pages/_app.tsx`
- `src/pages/_document.tsx`
- `next.config.ts`

#### Route Layer
Filesystem routes are the application’s primary entry points:
- `/` → `src/pages/index.tsx`
- `/about` → `src/pages/about.tsx`
- `/our-services` → `src/pages/our-services.tsx`
- `/contact-us` → `src/pages/contact-us.tsx`

`src/pages/hello.tsx` is an additional standalone page. Server API routes are segregated from UI routes under `src/pages/api`; `src/pages/api/hello.ts` maps to `/api/hello`.

#### Shared Application Shell
The reusable layout establishes site-wide navigation and footer composition around page content:
- `src/components/layout/layout.tsx`
- `src/components/layout/header.tsx`
- `src/components/layout/footer.tsx`

Pages should flow through this shell so navigation, branding, and footer behavior remain consistent. `_app.tsx` is the global React integration point, while `_document.tsx` controls document-level markup.

#### Public Website Feature Composition
Marketing content is decomposed into route-oriented React sections rather than a CMS or backend domain model. The Home page assembles hero, services, company information, testimonials/feedback, blog-side content, and contact calls to action:
- `src/components/publicWebsite/Home/banner.tsx`
- `src/components/publicWebsite/Home/service.tsx`
- `src/components/publicWebsite/Home/contactUs.tsx`

About and Services have dedicated presentation modules:
- `src/components/publicWebsite/About/topSection.tsx`
- `src/components/publicWebsite/Services/mainServices.tsx`

#### Reusable Marketing Sections
Cross-page promotional and informational blocks are centralized under `Common`, enabling reuse across public routes:
- `src/components/publicWebsite/Common/pageTitle.tsx`
- `src/components/publicWebsite/Common/ctaSection.tsx`
- `src/components/publicWebsite/Common/partners.tsx`

This is the main boundary for shared page-section content; route files should orchestrate these components rather than duplicate their structure.

#### Contact and External-Facing Boundaries
Contact UI is client-side presentation at the repository level; no dedicated form submission API is present beyond the starter endpoint. Contact page content is split between the form and map display:
- `src/components/publicWebsite/Contact/contactForm.tsx`
- `src/components/publicWebsite/Contact/mapSection.tsx`
- `src/pages/contact-us.tsx`

The map may depend on an embedded external map provider, but no explicit service integration is represented in the tree. Any real lead capture, email delivery, or CRM integration would need a new API route or external backend boundary.

#### Assets and Styling
Static visual assets are served from Next.js’s public directory:
- `public/images`
- `public/images/clients`

Global and component/page styles use CSS and CSS Modules, including bundled template/vendor-style assets:
- `src/styles/globals.css`
- `src/styles/Home.module.css`
- `src/styles/css/templatemo-574-mexant.css`

Main entry points: [`src/components/layout/layout.tsx`](https://github.com/gurubsc/aaha_solutions/blob/main/src/components/layout/layout.tsx) (Site layout), [`src/pages/_app.tsx`](https://github.com/gurubsc/aaha_solutions/blob/main/src/pages/_app.tsx) (Global app wrapper), [`src/components/publicWebsite/Common/pageTitle.tsx`](https://github.com/gurubsc/aaha_solutions/blob/main/src/components/publicWebsite/Common/pageTitle.tsx) (Shared marketing sections), [`src/pages/about.tsx`](https://github.com/gurubsc/aaha_solutions/blob/main/src/pages/about.tsx) (About route)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Next.js Runtime"]
  node_next_config["Next configuration<br/>Next.js config<br/>[next.config.ts]"]
  node_app["Global app wrapper<br/>Pages Router app<br/>[_app.tsx]"]
  node_document["Document markup<br/>Pages Router document<br/>[_document.tsx]"]
end

subgraph group_routes["Pages Router"]
  node_home_route["Home route &#40;/&#41;<br/>page route<br/>[index.tsx]"]
  node_about_route["About route<br/>page route<br/>[about.tsx]"]
  node_services_route["Services route<br/>page route<br/>[our-services.tsx]"]
  node_contact_route["Contact route<br/>page route<br/>[contact-us.tsx]"]
  node_hello_page["Hello page<br/>standalone page<br/>[hello.tsx]"]
  node_hello_api{{"Hello API<br/>API route<br/>[hello.ts]"}}
end

subgraph group_ui["Public UI"]
  node_layout["Site layout<br/>shared layout<br/>[layout.tsx]"]
  node_header["Header<br/>layout component<br/>[header.tsx]"]
  node_footer["Footer<br/>layout component<br/>[footer.tsx]"]
  node_home_sections["Home sections<br/>marketing sections<br/>[banner.tsx]"]
  node_about_sections["About section<br/>marketing section<br/>[topSection.tsx]"]
  node_services_sections["Services section<br/>marketing section<br/>[mainServices.tsx]"]
  node_common_sections["Shared marketing sections<br/>reusable sections<br/>[pageTitle.tsx]"]
  node_contact_sections["Contact form and map<br/>contact presentation<br/>[contactForm.tsx]"]
end

subgraph group_assets["Assets &amp; Styles"]
  node_public_assets["Public images<br/>static assets"]
  node_styles["Global and page styles<br/>CSS and CSS Modules<br/>[globals.css]"]
end

node_next_config -->|"configures runtime"| node_app
node_document -->|"documents page output"| node_app
node_app -->|"applies shared shell"| node_layout
node_layout -->|"renders"| node_header
node_layout -->|"renders"| node_footer
node_home_route -->|"uses"| node_layout
node_about_route -->|"uses"| node_layout
node_services_route -->|"uses"| node_layout
node_contact_route -->|"uses"| node_layout
node_home_route -->|"assembles"| node_home_sections
node_about_route -->|"renders"| node_about_sections
node_services_route -->|"renders"| node_services_sections
node_contact_route -->|"renders"| node_contact_sections
node_about_route -->|"reuses"| node_common_sections
node_services_route -->|"reuses"| node_common_sections
node_contact_route -->|"reuses"| node_common_sections
node_home_sections -->|"shares promotional content"| node_common_sections
node_app -->|"loads global styling"| node_styles
node_home_sections -->|"uses imagery"| node_public_assets
node_contact_sections -->|"uses imagery"| node_public_assets

click node_next_config "https://github.com/gurubsc/aaha_solutions/blob/main/next.config.ts"
click node_app "https://github.com/gurubsc/aaha_solutions/blob/main/src/pages/_app.tsx"
click node_document "https://github.com/gurubsc/aaha_solutions/blob/main/src/pages/_document.tsx"
click node_home_route "https://github.com/gurubsc/aaha_solutions/blob/main/src/pages/index.tsx"
click node_about_route "https://github.com/gurubsc/aaha_solutions/blob/main/src/pages/about.tsx"
click node_services_route "https://github.com/gurubsc/aaha_solutions/blob/main/src/pages/our-services.tsx"
click node_contact_route "https://github.com/gurubsc/aaha_solutions/blob/main/src/pages/contact-us.tsx"
click node_hello_page "https://github.com/gurubsc/aaha_solutions/blob/main/src/pages/hello.tsx"
click node_hello_api "https://github.com/gurubsc/aaha_solutions/blob/main/src/pages/api/hello.ts"
click node_layout "https://github.com/gurubsc/aaha_solutions/blob/main/src/components/layout/layout.tsx"
click node_header "https://github.com/gurubsc/aaha_solutions/blob/main/src/components/layout/header.tsx"
click node_footer "https://github.com/gurubsc/aaha_solutions/blob/main/src/components/layout/footer.tsx"
click node_home_sections "https://github.com/gurubsc/aaha_solutions/blob/main/src/components/publicWebsite/Home/banner.tsx"
click node_about_sections "https://github.com/gurubsc/aaha_solutions/blob/main/src/components/publicWebsite/About/topSection.tsx"
click node_services_sections "https://github.com/gurubsc/aaha_solutions/blob/main/src/components/publicWebsite/Services/mainServices.tsx"
click node_common_sections "https://github.com/gurubsc/aaha_solutions/blob/main/src/components/publicWebsite/Common/pageTitle.tsx"
click node_contact_sections "https://github.com/gurubsc/aaha_solutions/blob/main/src/components/publicWebsite/Contact/contactForm.tsx"
click node_public_assets "https://github.com/gurubsc/aaha_solutions/tree/main/public/images"
click node_styles "https://github.com/gurubsc/aaha_solutions/blob/main/src/styles/globals.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_next_config,node_app,node_document toneBlue
class node_home_route,node_about_route,node_services_route,node_contact_route,node_hello_page,node_hello_api toneAmber
class node_layout,node_header,node_footer,node_home_sections,node_about_sections,node_services_sections,node_common_sections,node_contact_sections toneMint
class node_public_assets,node_styles toneRose
```

## Components

### Next.js Runtime

- [Next configuration](https://github.com/gurubsc/aaha_solutions/blob/main/next.config.ts): Next.js config · `next.config.ts`
- [Global app wrapper](https://github.com/gurubsc/aaha_solutions/blob/main/src/pages/_app.tsx): Pages Router app · Global React integration point. · `src/pages/_app.tsx`
- [Document markup](https://github.com/gurubsc/aaha_solutions/blob/main/src/pages/_document.tsx): Pages Router document · Controls document-level HTML markup. · `src/pages/_document.tsx`

### Pages Router

- [Home route (/)](https://github.com/gurubsc/aaha_solutions/blob/main/src/pages/index.tsx): page route · `src/pages/index.tsx`
- [About route](https://github.com/gurubsc/aaha_solutions/blob/main/src/pages/about.tsx): page route · `src/pages/about.tsx`
- [Services route](https://github.com/gurubsc/aaha_solutions/blob/main/src/pages/our-services.tsx): page route · `src/pages/our-services.tsx`
- [Contact route](https://github.com/gurubsc/aaha_solutions/blob/main/src/pages/contact-us.tsx): page route · `src/pages/contact-us.tsx`
- [Hello page](https://github.com/gurubsc/aaha_solutions/blob/main/src/pages/hello.tsx): standalone page · `src/pages/hello.tsx`
- [Hello API](https://github.com/gurubsc/aaha_solutions/blob/main/src/pages/api/hello.ts): API route · Starter server endpoint at /api/hello. · `src/pages/api/hello.ts`

### Public UI

- [Site layout](https://github.com/gurubsc/aaha_solutions/blob/main/src/components/layout/layout.tsx): shared layout · Composes navigation and footer around page content. · `src/components/layout/layout.tsx`
- [Header](https://github.com/gurubsc/aaha_solutions/blob/main/src/components/layout/header.tsx): layout component · `src/components/layout/header.tsx`
- [Footer](https://github.com/gurubsc/aaha_solutions/blob/main/src/components/layout/footer.tsx): layout component · `src/components/layout/footer.tsx`
- [Home sections](https://github.com/gurubsc/aaha_solutions/blob/main/src/components/publicWebsite/Home/banner.tsx): marketing sections · Hero, services, and contact call-to-action composition. · `src/components/publicWebsite/Home/banner.tsx`
- [About section](https://github.com/gurubsc/aaha_solutions/blob/main/src/components/publicWebsite/About/topSection.tsx): marketing section · `src/components/publicWebsite/About/topSection.tsx`
- [Services section](https://github.com/gurubsc/aaha_solutions/blob/main/src/components/publicWebsite/Services/mainServices.tsx): marketing section · `src/components/publicWebsite/Services/mainServices.tsx`
- [Shared marketing sections](https://github.com/gurubsc/aaha_solutions/blob/main/src/components/publicWebsite/Common/pageTitle.tsx): reusable sections · Page titles, CTAs, and partner content reused across routes. · `src/components/publicWebsite/Common/pageTitle.tsx`
- [Contact form and map](https://github.com/gurubsc/aaha_solutions/blob/main/src/components/publicWebsite/Contact/contactForm.tsx): contact presentation · Client-side contact UI; no lead-submission backend exists. · `src/components/publicWebsite/Contact/contactForm.tsx`

### Assets & Styles

- [Public images](https://github.com/gurubsc/aaha_solutions/tree/main/public/images): static assets · `public/images`
- [Global and page styles](https://github.com/gurubsc/aaha_solutions/blob/main/src/styles/globals.css): CSS and CSS Modules · `src/styles/globals.css`

## Connections

- Next configuration → Global app wrapper: configures runtime
- Document markup → Global app wrapper: documents page output
- Global app wrapper → Site layout: applies shared shell
- Site layout → Header: renders
- Site layout → Footer: renders
- Home route (/) → Site layout: uses
- About route → Site layout: uses
- Services route → Site layout: uses
- Contact route → Site layout: uses
- Home route (/) → Home sections: assembles
- About route → About section: renders
- Services route → Services section: renders
- Contact route → Contact form and map: renders
- About route → Shared marketing sections: reuses
- Services route → Shared marketing sections: reuses
- Contact route → Shared marketing sections: reuses
- Home sections → Shared marketing sections: shares promotional content
- Global app wrapper → Global and page styles: loads global styling
- Home sections → Public images: uses imagery
- Contact form and map → Public images: uses imagery
