# vatsal70/atulya_solutions architecture

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

- Interactive diagram: https://gitdiagram.com/vatsal70/atulya_solutions
- Repository: https://github.com/vatsal70/atulya_solutions

## Overview

1. **Project shape**
   - This is a **front-end-only Vite + React + TypeScript SPA**. The entry points are `index.html`, `src/main.tsx`, and `src/App.tsx`.
   - There is no server code, database layer, or backend service in the repo; the app runs entirely in the browser.

2. **Primary purpose**
   - The app appears to be a **business/agency website** with marketing content, service pages, case studies, contact, legal pages, and a special **Proposal Generator** experience.
   - The README confirms a local setup that depends on a **`GEMINI_API_KEY`**, so one part of the app talks to Google Gemini from the client side.

3. **Application shell and navigation**
   - `src/components/Layout.tsx`, `Navbar.tsx`, `Footer.tsx`, and `ScrollToTop.tsx` define the persistent shell around page content.
   - `src/App.tsx` is likely where route composition happens, with shared layout applied around each page and scroll reset on navigation.

4. **Page-level routing structure**
   - `src/pages/` contains the main route targets: `Home`, `About`, `Services`, `Projects`, `CaseStudies`, `Contact`, `FAQ`, `PrivacyPolicy`, `TermsOfUse`, and `ProposalGenerator`.
   - `src/pages/services/` contains service-specific subpages such as `WebDev`, `MobileAppDev`, `CloudComputing`, `ECommerceDev`, `EnterpriseAppDev`, and `DigitalMarketing`, suggesting a nested route or sectioned content model.

5. **AI feature boundary**
   - `src/pages/ProposalGenerator.tsx` is the clearest AI-enabled boundary in the app.
   - Its data flow is likely: user input in the browser → client-side request to Gemini → generated proposal output rendered back into the page.
   - The only external runtime dependency called out by the repo is Gemini, configured via `.env.local`.

6. **Shared UI layer**
   - `src/components/` holds reusable presentation pieces such as `Logo`, `Marquee`, `Navbar`, `Footer`, and `ScrollToTop`.
   - `components/ui/` contains low-level reusable primitives like `button.tsx`, `marquee.tsx`, and `draggable-marquee.tsx`, which are used to keep page components consistent and avoid duplicating UI behavior.

7. **Styling and design system**
   - `src/index.css` is the global stylesheet entry.
   - `components.json` and the `components/ui` structure suggest a **component-driven design system** approach, likely with utility-first styling and shared primitives rather than page-specific CSS.

8. **Utility and shared logic**
   - `lib/utils.ts` centralizes helper functions used across components, most likely for class merging or small presentation utilities.
   - This keeps shared non-visual logic out of page components and UI primitives.

9. **Content and marketing flow**
   - The main information architecture is content-first: home/overview → service detail pages → projects/case studies → contact and trust/legal pages.
   - `Projects`, `ProjectDetail`, and `CaseStudies` imply a portfolio/storytelling flow where summaries lead into detailed entries.

10. **External integration and configuration**
   - `.env.example` documents required environment setup, especially the Gemini API key.
   - `vite.config.ts`, `package.json`, and `tsconfig.json` define the build/runtime environment for local development and deployment.

11. **What to draw in an architecture diagram**
   - Show one browser-based SPA shell, a routing layer, shared layout/navigation, reusable UI primitives, and a set of page modules.
   - Highlight `ProposalGenerator` as the only feature that crosses the boundary to an external AI API.
   - Everything else is internal, static, and presentation-oriented.

12. **Overall boundary summary**
   - The repo is organized as a **static marketing site plus one AI-assisted tool**.
   - The key architectural separation is between:
     - **shared shell/UI components**
     - **route-level pages and content**
     - **Gemini-backed proposal generation**
     - **static legal/support pages**

Main entry points: [`src/App.tsx`](https://github.com/vatsal70/atulya_solutions/blob/master/src/App.tsx) (App), [`src/components/Layout.tsx`](https://github.com/vatsal70/atulya_solutions/blob/master/src/components/Layout.tsx) (Layout), [`src/pages/Home.tsx`](https://github.com/vatsal70/atulya_solutions/blob/master/src/pages/Home.tsx) (Home), [`src/pages/ProposalGenerator.tsx`](https://github.com/vatsal70/atulya_solutions/blob/master/src/pages/ProposalGenerator.tsx) (Proposal Generator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_g1["Shell"]
  node_n1["index.html<br/>html entry<br/>[index.html]"]
  node_n2["main<br/>react bootstrap<br/>[main.tsx]"]
  node_n3["App<br/>router shell<br/>[App.tsx]"]
  node_n4["Layout<br/>page shell<br/>[Layout.tsx]"]
end

subgraph group_g2["Pages"]
  node_n12["Home<br/>landing page<br/>[Home.tsx]"]
  node_n13["About<br/>company page<br/>[About.tsx]"]
  node_n14["Services<br/>[Services.tsx]"]
  node_n15["Projects<br/>portfolio index<br/>[Projects.tsx]"]
  node_n16["Case Studies<br/>case study index<br/>[CaseStudies.tsx]"]
  node_n17["Contact<br/>[Contact.tsx]"]
  node_n18["FAQ<br/>support page<br/>[FAQ.tsx]"]
  node_n19["Legal<br/>policy pages"]
  node_n23["Project Detail<br/>detail page<br/>[ProjectDetail.tsx]"]
end

subgraph group_g3["Services"]
  node_n22["Service details<br/>service pages"]
end

subgraph group_g4["UI"]
  node_n5["Navbar<br/>navigation<br/>[Navbar.tsx]"]
  node_n6["Footer<br/>[Footer.tsx]"]
  node_n7["ScrollToTop<br/>nav helper<br/>[ScrollToTop.tsx]"]
  node_n8["Logo<br/>brand mark<br/>[Logo.tsx]"]
  node_n9["Marquee<br/>motion ui<br/>[Marquee.tsx]"]
  node_n10["UI primitives<br/>design system"]
end

subgraph group_g5["Config"]
  node_n11["Global CSS<br/>styles<br/>[index.css]"]
  node_n24["Build config<br/>tooling<br/>[vite.config.ts]"]
end

subgraph group_g6["AI"]
  node_n20["Proposal Generator<br/>ai tool"]
  node_n21{{"Gemini API<br/>external ai api"}}
end

node_n1 -->|"loads"| node_n2
node_n2 -->|"mounts"| node_n3
node_n3 -->|"wraps"| node_n4
node_n4 -->|"contains"| node_n5
node_n4 -->|"contains"| node_n6
node_n4 -->|"uses"| node_n7
node_n4 -->|"shares"| node_n8
node_n3 -->|"routes to"| node_n12
node_n3 -->|"routes to"| node_n13
node_n3 -->|"routes to"| node_n14
node_n3 -->|"routes to"| node_n15
node_n3 -->|"routes to"| node_n16
node_n3 -->|"routes to"| node_n17
node_n3 -->|"routes to"| node_n18
node_n3 -->|"routes to"| node_n19
node_n3 -->|"routes to"| node_n20
node_n14 -->|"expands to"| node_n22
node_n15 -->|"drills into"| node_n23
node_n20 -->|"calls"| node_n21
node_n12 -->|"uses"| node_n9
node_n12 -->|"uses"| node_n10
node_n20 -->|"uses"| node_n10
node_n11 -->|"styles"| node_n4
node_n11 -->|"styles"| node_n10
node_n24 -.->|"builds"| node_n2

click node_n1 "https://github.com/vatsal70/atulya_solutions/blob/master/index.html"
click node_n2 "https://github.com/vatsal70/atulya_solutions/blob/master/src/main.tsx"
click node_n3 "https://github.com/vatsal70/atulya_solutions/blob/master/src/App.tsx"
click node_n4 "https://github.com/vatsal70/atulya_solutions/blob/master/src/components/Layout.tsx"
click node_n5 "https://github.com/vatsal70/atulya_solutions/blob/master/src/components/Navbar.tsx"
click node_n6 "https://github.com/vatsal70/atulya_solutions/blob/master/src/components/Footer.tsx"
click node_n7 "https://github.com/vatsal70/atulya_solutions/blob/master/src/components/ScrollToTop.tsx"
click node_n8 "https://github.com/vatsal70/atulya_solutions/blob/master/src/components/Logo.tsx"
click node_n9 "https://github.com/vatsal70/atulya_solutions/blob/master/src/components/Marquee.tsx"
click node_n10 "https://github.com/vatsal70/atulya_solutions/tree/master/components/ui"
click node_n11 "https://github.com/vatsal70/atulya_solutions/blob/master/src/index.css"
click node_n12 "https://github.com/vatsal70/atulya_solutions/blob/master/src/pages/Home.tsx"
click node_n13 "https://github.com/vatsal70/atulya_solutions/blob/master/src/pages/About.tsx"
click node_n14 "https://github.com/vatsal70/atulya_solutions/blob/master/src/pages/Services.tsx"
click node_n15 "https://github.com/vatsal70/atulya_solutions/blob/master/src/pages/Projects.tsx"
click node_n16 "https://github.com/vatsal70/atulya_solutions/blob/master/src/pages/CaseStudies.tsx"
click node_n17 "https://github.com/vatsal70/atulya_solutions/blob/master/src/pages/Contact.tsx"
click node_n18 "https://github.com/vatsal70/atulya_solutions/blob/master/src/pages/FAQ.tsx"
click node_n20 "https://github.com/vatsal70/atulya_solutions/blob/master/src/pages/ProposalGenerator.tsx"
click node_n22 "https://github.com/vatsal70/atulya_solutions/tree/master/src/pages/services"
click node_n23 "https://github.com/vatsal70/atulya_solutions/blob/master/src/pages/ProjectDetail.tsx"
click node_n24 "https://github.com/vatsal70/atulya_solutions/blob/master/vite.config.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_n1,node_n2,node_n3,node_n4 toneBlue
class node_n12,node_n13,node_n14,node_n15,node_n16,node_n17,node_n18,node_n19,node_n23 toneAmber
class node_n22 toneMint
class node_n5,node_n6,node_n7,node_n8,node_n9,node_n10 toneRose
class node_n11,node_n24 toneIndigo
class node_n20,node_n21 toneTeal
```

## Components

### Shell

Browser entry and app-wide layout/navigation.

- [index.html](https://github.com/vatsal70/atulya_solutions/blob/master/index.html): html entry · Browser mount point for the SPA. · `index.html`
- [main](https://github.com/vatsal70/atulya_solutions/blob/master/src/main.tsx): react bootstrap · Starts the client app and mounts React. · `src/main.tsx`
- [App](https://github.com/vatsal70/atulya_solutions/blob/master/src/App.tsx): router shell · Top-level route composition and page wiring. · `src/App.tsx`
- [Layout](https://github.com/vatsal70/atulya_solutions/blob/master/src/components/Layout.tsx): page shell · Shared wrapper around routed content. · `src/components/Layout.tsx`

### Pages

Route-level marketing and support pages.

- [Home](https://github.com/vatsal70/atulya_solutions/blob/master/src/pages/Home.tsx): landing page · Top-level marketing entry page. · `src/pages/Home.tsx`
- [About](https://github.com/vatsal70/atulya_solutions/blob/master/src/pages/About.tsx): company page · Background and positioning content. · `src/pages/About.tsx`
- [Services](https://github.com/vatsal70/atulya_solutions/blob/master/src/pages/Services.tsx): services index · Overview of offered service lines. · `src/pages/Services.tsx`
- [Projects](https://github.com/vatsal70/atulya_solutions/blob/master/src/pages/Projects.tsx): portfolio index · Project summary listing. · `src/pages/Projects.tsx`
- [Case Studies](https://github.com/vatsal70/atulya_solutions/blob/master/src/pages/CaseStudies.tsx): case study index · Narrative portfolio and proof content. · `src/pages/CaseStudies.tsx`
- [Contact](https://github.com/vatsal70/atulya_solutions/blob/master/src/pages/Contact.tsx): contact page · Lead capture and inquiry entry point. · `src/pages/Contact.tsx`
- [FAQ](https://github.com/vatsal70/atulya_solutions/blob/master/src/pages/FAQ.tsx): support page · Frequently asked questions. · `src/pages/FAQ.tsx`
- **Legal**: policy pages · Privacy policy and terms of use.
- [Project Detail](https://github.com/vatsal70/atulya_solutions/blob/master/src/pages/ProjectDetail.tsx): detail page · Deeper project storytelling route. · `src/pages/ProjectDetail.tsx`

### Services

Nested service detail pages.

- [Service details](https://github.com/vatsal70/atulya_solutions/tree/master/src/pages/services): service pages · Nested service-specific detail routes. · `src/pages/services`

### UI

Shared reusable components and primitives.

- [Navbar](https://github.com/vatsal70/atulya_solutions/blob/master/src/components/Navbar.tsx): navigation · Primary site navigation. · `src/components/Navbar.tsx`
- [Footer](https://github.com/vatsal70/atulya_solutions/blob/master/src/components/Footer.tsx): site footer · Persistent bottom-of-page content. · `src/components/Footer.tsx`
- [ScrollToTop](https://github.com/vatsal70/atulya_solutions/blob/master/src/components/ScrollToTop.tsx): nav helper · Resets scroll position on route changes. · `src/components/ScrollToTop.tsx`
- [Logo](https://github.com/vatsal70/atulya_solutions/blob/master/src/components/Logo.tsx): brand mark · Shared brand identity component. · `src/components/Logo.tsx`
- [Marquee](https://github.com/vatsal70/atulya_solutions/blob/master/src/components/Marquee.tsx): motion ui · Reusable animated content strip. · `src/components/Marquee.tsx`
- [UI primitives](https://github.com/vatsal70/atulya_solutions/tree/master/components/ui): design system · Low-level shared controls and motion helpers. · `components/ui`

### Config

Build and runtime configuration.

- [Global CSS](https://github.com/vatsal70/atulya_solutions/blob/master/src/index.css): styles · Application-wide styling entry. · `src/index.css`
- [Build config](https://github.com/vatsal70/atulya_solutions/blob/master/vite.config.ts): tooling · Vite and TypeScript project setup. · `vite.config.ts`

### AI

Client-side proposal generation boundary.

- [Proposal Generator](https://github.com/vatsal70/atulya_solutions/blob/master/src/pages/ProposalGenerator.tsx): ai tool · Client-side proposal drafting experience. · `src/pages/ProposalGenerator.tsx`
- **Gemini API**: external ai api · External model service used for proposal generation.

## Connections

- index.html → main: loads · Browser document loads the React entry.
- main → App: mounts · Bootstraps the application router.
- App → Layout: wraps · Applies the shared site shell.
- Layout → Navbar: contains · Renders primary navigation.
- Layout → Footer: contains · Renders the footer.
- Layout → ScrollToTop: uses · Keeps navigation scrolling predictable.
- Layout → Logo: shares · Brand mark used in the shell.
- App → Home: routes to · Landing page route.
- App → About: routes to · About route.
- App → Services: routes to · Services overview route.
- App → Projects: routes to · Projects route.
- App → Case Studies: routes to · Case studies route.
- App → Contact: routes to · Contact route.
- App → FAQ: routes to · FAQ route.
- App → Legal: routes to · Legal route group.
- App → Proposal Generator: routes to · AI proposal generator route.
- Services → Service details: expands to · Services page branches into detail pages.
- Projects → Project Detail: drills into · Portfolio summaries lead to details.
- Proposal Generator → Gemini API: calls · Client-side generation requests the Gemini API.
- Home → Marquee: uses · Homepage uses marquee-style presentation.
- Home → UI primitives: uses · Homepage and content blocks share primitives.
- Proposal Generator → UI primitives: uses · Tooling UI is built from shared primitives.
- Global CSS → Layout: styles · Global stylesheet supports the shell.
- Global CSS → UI primitives: styles · Global styles complement the primitive set.
- Build config → main: builds · Project config supports the runtime entry.
