# ayushsatvara1012/sp_design architecture

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

- Interactive diagram: https://gitdiagram.com/ayushsatvara1012/sp_design
- Repository: https://github.com/ayushsatvara1012/sp_design

## Overview

#### Purpose and runtime
This is a Next.js App Router site for an architecture/design portfolio, with pages for home, designs/work, about, and quotation. It runs as a React/TypeScript application under Next.js and is suitable for deployment to Vercel. Static media is served from `public/`.

Key entry points: `src/app/layout.tsx`, `src/app/page.tsx`, `src/app/(pages)/layout.tsx`.

#### Route and shell composition
The root layout establishes global document concerns and shared styling; the grouped-pages layout provides a shared shell for secondary routes. Route files compose feature-level page components rather than exposing API endpoints.

- Home: `src/app/page.tsx`
- About and quotation: `src/app/(pages)/about/page.tsx`, `src/app/(pages)/quotation/page.tsx`
- Designs/work: `src/app/(pages)/designs/page.tsx`

#### Shared navigation and site chrome
Reusable chrome defines site-wide navigation, footer, ornamental visual language, and scrolling behavior. These components form the main boundary between global presentation and page-specific content.

- `src/components/common/Navbar.tsx`
- `src/components/common/Footer.tsx`
- `src/components/common/SmoothScrollProvider.tsx`

#### Home experience
The landing route is assembled from a hero, services section, and a custom interior-sketch visualization. The sketch’s geometric/path data is separated from its rendered component, making it the principal custom visual subsystem.

- `src/components/home/Hero.tsx`
- `src/components/home/Services.tsx`
- `src/components/home/InteriorSketch.tsx`
- `src/components/home/interiorSketchPaths.ts`

#### Work/design showcase
The designs route centers on a magazine/book-flip interaction for presenting work, with a dedicated hero and user-controlled sound. Work metadata/content is centralized in a library module, separating the interactive renderer from its catalog data.

- `src/components/work/WorkHero.tsx`
- `src/components/work/MagazineFlip.tsx`
- `src/lib/work.ts`

#### Audio and static assets
Interactive work/book behavior uses browser-served audio assets and a small audio abstraction. Source audio is retained separately from optimized/public delivery assets; image work is organized by exterior, interior, and technical categories.

- `src/lib/bookAudio.ts`
- `public/audio/book.wav`
- `public/audio/page-flip.wav`
- `public/images/work/`

#### Quotation and metadata boundaries
The quotation page is a dedicated UI feature, with no visible backend, API route, or external form service in the repository tree. Search-crawler metadata is generated through App Router conventions, while shared site constants likely provide centralized branding/contact metadata.

- `src/components/quotation/Quotation.tsx`
- `src/app/robots.ts`
- `src/app/sitemap.ts`
- `src/lib/site.ts`

Main entry points: [`src/app/layout.tsx`](https://github.com/ayushsatvara1012/sp_design/blob/main/src/app/layout.tsx) (Root layout), [`src/app/page.tsx`](https://github.com/ayushsatvara1012/sp_design/blob/main/src/app/page.tsx) (Home route), [`src/app/(pages)/layout.tsx`](https://github.com/ayushsatvara1012/sp_design/blob/main/src/app/(pages)/layout.tsx) (Secondary routes layout), [`src/components/work/MagazineFlip.tsx`](https://github.com/ayushsatvara1012/sp_design/blob/main/src/components/work/MagazineFlip.tsx) (Magazine flip)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App Router"]
  node_root_layout["Root layout<br/>Next.js layout<br/>[layout.tsx]"]
  node_home_route["Home route<br/>Next.js page<br/>[page.tsx]"]
  node_pages_layout["Secondary routes layout<br/>Next.js layout<br/>[layout.tsx]"]
  node_about_route["About route<br/>Next.js page<br/>[page.tsx]"]
  node_designs_route["Designs route<br/>Next.js page<br/>[page.tsx]"]
  node_quotation_route["Quotation route<br/>Next.js page<br/>[page.tsx]"]
  node_robots["Robots metadata<br/>App Router metadata<br/>[robots.ts]"]
  node_sitemap["Sitemap metadata<br/>App Router metadata<br/>[sitemap.ts]"]
  node_site_constants["Site constants<br/>shared metadata<br/>[site.ts]"]
  node_quotation["Quotation feature<br/>React component<br/>[Quotation.tsx]"]
end

subgraph group_chrome["Site Chrome"]
  node_navbar["Navigation<br/>React component<br/>[Navbar.tsx]"]
  node_footer["Footer<br/>React component<br/>[Footer.tsx]"]
  node_smooth_scroll["Smooth scrolling<br/>React provider"]
end

subgraph group_home["Home Experience"]
  node_hero["Home hero<br/>React component<br/>[Hero.tsx]"]
  node_services["Services section<br/>React component<br/>[Services.tsx]"]
  node_interior_sketch["Interior sketch<br/>React visualization<br/>[InteriorSketch.tsx]"]
  node_sketch_paths["Sketch path data<br/>visual data"]
end

subgraph group_work["Work Showcase"]
  node_work_hero["Work hero<br/>React component<br/>[WorkHero.tsx]"]
  node_magazine_flip["Magazine flip<br/>interactive React component<br/>[MagazineFlip.tsx]"]
  node_work_catalog["Work catalog<br/>content data<br/>[work.ts]"]
  node_book_audio["Book audio<br/>browser audio abstraction<br/>[bookAudio.ts]"]
  node_audio_assets["Page-turn audio<br/>public media<br/>[page-flip.wav]"]
  node_book_audio_asset["Book audio asset<br/>public media<br/>[book.wav]"]
  node_work_images["Work images<br/>public media collection"]
end

node_root_layout -->|"wraps"| node_smooth_scroll
node_root_layout -->|"renders"| node_navbar
node_root_layout -->|"renders"| node_footer
node_root_layout -->|"hosts"| node_home_route
node_root_layout -->|"hosts"| node_pages_layout
node_pages_layout -->|"hosts"| node_about_route
node_pages_layout -->|"hosts"| node_designs_route
node_pages_layout -->|"hosts"| node_quotation_route
node_home_route -->|"composes"| node_hero
node_home_route -->|"composes"| node_services
node_home_route -->|"composes"| node_interior_sketch
node_interior_sketch -->|"renders from"| node_sketch_paths
node_designs_route -->|"composes"| node_work_hero
node_designs_route -->|"composes"| node_magazine_flip
node_magazine_flip -->|"reads"| node_work_catalog
node_magazine_flip -->|"uses"| node_book_audio
node_magazine_flip -->|"displays"| node_work_images
node_book_audio -->|"loads"| node_audio_assets
node_book_audio -->|"loads"| node_book_audio_asset
node_quotation_route -->|"composes"| node_quotation
node_robots -.->|"uses"| node_site_constants
node_sitemap -.->|"uses"| node_site_constants

click node_root_layout "https://github.com/ayushsatvara1012/sp_design/blob/main/src/app/layout.tsx"
click node_home_route "https://github.com/ayushsatvara1012/sp_design/blob/main/src/app/page.tsx"
click node_pages_layout "https://github.com/ayushsatvara1012/sp_design/blob/main/src/app/(pages)/layout.tsx"
click node_about_route "https://github.com/ayushsatvara1012/sp_design/blob/main/src/app/(pages)/about/page.tsx"
click node_designs_route "https://github.com/ayushsatvara1012/sp_design/blob/main/src/app/(pages)/designs/page.tsx"
click node_quotation_route "https://github.com/ayushsatvara1012/sp_design/blob/main/src/app/(pages)/quotation/page.tsx"
click node_robots "https://github.com/ayushsatvara1012/sp_design/blob/main/src/app/robots.ts"
click node_sitemap "https://github.com/ayushsatvara1012/sp_design/blob/main/src/app/sitemap.ts"
click node_site_constants "https://github.com/ayushsatvara1012/sp_design/blob/main/src/lib/site.ts"
click node_navbar "https://github.com/ayushsatvara1012/sp_design/blob/main/src/components/common/Navbar.tsx"
click node_footer "https://github.com/ayushsatvara1012/sp_design/blob/main/src/components/common/Footer.tsx"
click node_smooth_scroll "https://github.com/ayushsatvara1012/sp_design/blob/main/src/components/common/SmoothScrollProvider.tsx"
click node_hero "https://github.com/ayushsatvara1012/sp_design/blob/main/src/components/home/Hero.tsx"
click node_services "https://github.com/ayushsatvara1012/sp_design/blob/main/src/components/home/Services.tsx"
click node_interior_sketch "https://github.com/ayushsatvara1012/sp_design/blob/main/src/components/home/InteriorSketch.tsx"
click node_sketch_paths "https://github.com/ayushsatvara1012/sp_design/blob/main/src/components/home/interiorSketchPaths.ts"
click node_work_hero "https://github.com/ayushsatvara1012/sp_design/blob/main/src/components/work/WorkHero.tsx"
click node_magazine_flip "https://github.com/ayushsatvara1012/sp_design/blob/main/src/components/work/MagazineFlip.tsx"
click node_work_catalog "https://github.com/ayushsatvara1012/sp_design/blob/main/src/lib/work.ts"
click node_book_audio "https://github.com/ayushsatvara1012/sp_design/blob/main/src/lib/bookAudio.ts"
click node_audio_assets "https://github.com/ayushsatvara1012/sp_design/blob/main/public/audio/page-flip.wav"
click node_book_audio_asset "https://github.com/ayushsatvara1012/sp_design/blob/main/public/audio/book.wav"
click node_quotation "https://github.com/ayushsatvara1012/sp_design/blob/main/src/components/quotation/Quotation.tsx"

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_root_layout,node_home_route,node_pages_layout,node_about_route,node_designs_route,node_quotation_route,node_robots,node_sitemap,node_site_constants,node_quotation toneBlue
class node_navbar,node_footer,node_smooth_scroll toneAmber
class node_hero,node_services,node_interior_sketch,node_sketch_paths toneMint
class node_work_hero,node_magazine_flip,node_work_catalog,node_book_audio,node_audio_assets,node_book_audio_asset,node_work_images toneRose
```

## Components

### App Router

Route composition and document-level conventions.

- [Root layout](https://github.com/ayushsatvara1012/sp_design/blob/main/src/app/layout.tsx): Next.js layout · Establishes global document concerns and shared styling. · `src/app/layout.tsx`
- [Home route](https://github.com/ayushsatvara1012/sp_design/blob/main/src/app/page.tsx): Next.js page · `src/app/page.tsx`
- [Secondary routes layout](https://github.com/ayushsatvara1012/sp_design/blob/main/src/app/(pages)/layout.tsx): Next.js layout · Shared shell for grouped secondary pages. · `src/app/(pages)/layout.tsx`
- [About route](https://github.com/ayushsatvara1012/sp_design/blob/main/src/app/(pages)/about/page.tsx): Next.js page · `src/app/(pages)/about/page.tsx`
- [Designs route](https://github.com/ayushsatvara1012/sp_design/blob/main/src/app/(pages)/designs/page.tsx): Next.js page · `src/app/(pages)/designs/page.tsx`
- [Quotation route](https://github.com/ayushsatvara1012/sp_design/blob/main/src/app/(pages)/quotation/page.tsx): Next.js page · `src/app/(pages)/quotation/page.tsx`
- [Robots metadata](https://github.com/ayushsatvara1012/sp_design/blob/main/src/app/robots.ts): App Router metadata · `src/app/robots.ts`
- [Sitemap metadata](https://github.com/ayushsatvara1012/sp_design/blob/main/src/app/sitemap.ts): App Router metadata · `src/app/sitemap.ts`
- [Site constants](https://github.com/ayushsatvara1012/sp_design/blob/main/src/lib/site.ts): shared metadata · Centralized branding and contact metadata. · `src/lib/site.ts`
- [Quotation feature](https://github.com/ayushsatvara1012/sp_design/blob/main/src/components/quotation/Quotation.tsx): React component · Dedicated quotation UI with no visible backend boundary. · `src/components/quotation/Quotation.tsx`

### Site Chrome

Shared navigation and presentation behavior.

- [Navigation](https://github.com/ayushsatvara1012/sp_design/blob/main/src/components/common/Navbar.tsx): React component · `src/components/common/Navbar.tsx`
- [Footer](https://github.com/ayushsatvara1012/sp_design/blob/main/src/components/common/Footer.tsx): React component · `src/components/common/Footer.tsx`
- [Smooth scrolling](https://github.com/ayushsatvara1012/sp_design/blob/main/src/components/common/SmoothScrollProvider.tsx): React provider · `src/components/common/SmoothScrollProvider.tsx`

### Home Experience

Landing-page sections and custom visualization.

- [Home hero](https://github.com/ayushsatvara1012/sp_design/blob/main/src/components/home/Hero.tsx): React component · `src/components/home/Hero.tsx`
- [Services section](https://github.com/ayushsatvara1012/sp_design/blob/main/src/components/home/Services.tsx): React component · `src/components/home/Services.tsx`
- [Interior sketch](https://github.com/ayushsatvara1012/sp_design/blob/main/src/components/home/InteriorSketch.tsx): React visualization · Renders the custom geometric interior visualization. · `src/components/home/InteriorSketch.tsx`
- [Sketch path data](https://github.com/ayushsatvara1012/sp_design/blob/main/src/components/home/interiorSketchPaths.ts): visual data · `src/components/home/interiorSketchPaths.ts`

### Work Showcase

Interactive portfolio presentation and media.

- [Work hero](https://github.com/ayushsatvara1012/sp_design/blob/main/src/components/work/WorkHero.tsx): React component · `src/components/work/WorkHero.tsx`
- [Magazine flip](https://github.com/ayushsatvara1012/sp_design/blob/main/src/components/work/MagazineFlip.tsx): interactive React component · Book-style work viewer with user-controlled sound. · `src/components/work/MagazineFlip.tsx`
- [Work catalog](https://github.com/ayushsatvara1012/sp_design/blob/main/src/lib/work.ts): content data · Centralized work metadata and content. · `src/lib/work.ts`
- [Book audio](https://github.com/ayushsatvara1012/sp_design/blob/main/src/lib/bookAudio.ts): browser audio abstraction · `src/lib/bookAudio.ts`
- [Page-turn audio](https://github.com/ayushsatvara1012/sp_design/blob/main/public/audio/page-flip.wav): public media · `public/audio/page-flip.wav`
- [Book audio asset](https://github.com/ayushsatvara1012/sp_design/blob/main/public/audio/book.wav): public media · `public/audio/book.wav`
- **Work images**: public media collection · Exterior, interior, and technical image categories.

## Connections

- Root layout → Smooth scrolling: wraps
- Root layout → Navigation: renders
- Root layout → Footer: renders
- Root layout → Home route: hosts
- Root layout → Secondary routes layout: hosts
- Secondary routes layout → About route: hosts
- Secondary routes layout → Designs route: hosts
- Secondary routes layout → Quotation route: hosts
- Home route → Home hero: composes
- Home route → Services section: composes
- Home route → Interior sketch: composes
- Interior sketch → Sketch path data: renders from
- Designs route → Work hero: composes
- Designs route → Magazine flip: composes
- Magazine flip → Work catalog: reads
- Magazine flip → Book audio: uses
- Magazine flip → Work images: displays
- Book audio → Page-turn audio: loads
- Book audio → Book audio asset: loads
- Quotation route → Quotation feature: composes
- Robots metadata → Site constants: uses
- Sitemap metadata → Site constants: uses
