How gurubsc/aaha_solutions works
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: layout.tsx Site layout · _app.tsx Global app wrapper · pageTitle.tsx Shared marketing sections · about.tsx About route
Components 19
Next.js Runtime
- Next configuration
next.config.ts - Global app wrapper · Global React integration point.
src/pages/_app.tsx - Document markup · Controls document-level HTML markup.
src/pages/_document.tsx
Pages Router
- Home route (/)
src/pages/index.tsx - About route
src/pages/about.tsx - Services route
src/pages/our-services.tsx - Contact route
src/pages/contact-us.tsx - Hello page
src/pages/hello.tsx - Hello API · Starter server endpoint at /api/hello.
src/pages/api/hello.ts
Public UI
- Site layout · Composes navigation and footer around page content.
src/components/layout/layout.tsx - Header
src/components/layout/header.tsx - Footer
src/components/layout/footer.tsx - Home sections · Hero, services, and contact call-to-action composition.
src/components/publicWebsite/Home/banner.tsx - About section
src/components/publicWebsite/About/topSection.tsx - Services section
src/components/publicWebsite/Services/mainServices.tsx - Shared marketing sections · Page titles, CTAs, and partner content reused across routes.
src/components/publicWebsite/Common/pageTitle.tsx - Contact form and map · Client-side contact UI; no lead-submission backend exists.
src/components/publicWebsite/Contact/contactForm.tsx
Assets & Styles
- Public images
public/images - Global and page styles
src/styles/globals.css
Connections 20
- 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