How vatsal70/atulya_solutions works
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: App.tsx App · Layout.tsx Layout · Home.tsx Home · ProposalGenerator.tsx Proposal Generator
Components 24
Shell
Browser entry and app-wide layout/navigation.
- index.html · Browser mount point for the SPA.
index.html - main · Starts the client app and mounts React.
src/main.tsx - App · Top-level route composition and page wiring.
src/App.tsx - Layout · Shared wrapper around routed content.
src/components/Layout.tsx
Pages
Route-level marketing and support pages.
- Home · Top-level marketing entry page.
src/pages/Home.tsx - About · Background and positioning content.
src/pages/About.tsx - Services · Overview of offered service lines.
src/pages/Services.tsx - Projects · Project summary listing.
src/pages/Projects.tsx - Case Studies · Narrative portfolio and proof content.
src/pages/CaseStudies.tsx - Contact · Lead capture and inquiry entry point.
src/pages/Contact.tsx - FAQ · Frequently asked questions.
src/pages/FAQ.tsx - Legal · Privacy policy and terms of use.
- Project Detail · Deeper project storytelling route.
src/pages/ProjectDetail.tsx
Services
Nested service detail pages.
- Service details · Nested service-specific detail routes.
src/pages/services
UI
Shared reusable components and primitives.
- Navbar · Primary site navigation.
src/components/Navbar.tsx - Footer · Persistent bottom-of-page content.
src/components/Footer.tsx - ScrollToTop · Resets scroll position on route changes.
src/components/ScrollToTop.tsx - Logo · Shared brand identity component.
src/components/Logo.tsx - Marquee · Reusable animated content strip.
src/components/Marquee.tsx - UI primitives · Low-level shared controls and motion helpers.
components/ui
Config
Build and runtime configuration.
- Global CSS · Application-wide styling entry.
src/index.css - Build config · Vite and TypeScript project setup.
vite.config.ts
AI
Client-side proposal generation boundary.
- Proposal Generator · Client-side proposal drafting experience.
src/pages/ProposalGenerator.tsx - Gemini API · External model service used for proposal generation.
Connections 25
- 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.