How ayushsatvara1012/sp_design works
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: app/layout.tsx Root layout · page.tsx Home route · (pages)/layout.tsx Secondary routes layout · MagazineFlip.tsx Magazine flip
Components 24
App Router
Route composition and document-level conventions.
- Root layout · Establishes global document concerns and shared styling.
src/app/layout.tsx - Home route
src/app/page.tsx - Secondary routes layout · Shared shell for grouped secondary pages.
src/app/(pages)/layout.tsx - About route
src/app/(pages)/about/page.tsx - Designs route
src/app/(pages)/designs/page.tsx - Quotation route
src/app/(pages)/quotation/page.tsx - Robots metadata
src/app/robots.ts - Sitemap metadata
src/app/sitemap.ts - Site constants · Centralized branding and contact metadata.
src/lib/site.ts - Quotation feature · Dedicated quotation UI with no visible backend boundary.
src/components/quotation/Quotation.tsx
Site Chrome
Shared navigation and presentation behavior.
- Navigation
src/components/common/Navbar.tsx - Footer
src/components/common/Footer.tsx - Smooth scrolling
src/components/common/SmoothScrollProvider.tsx
Home Experience
Landing-page sections and custom visualization.
- Home hero
src/components/home/Hero.tsx - Services section
src/components/home/Services.tsx - Interior sketch · Renders the custom geometric interior visualization.
src/components/home/InteriorSketch.tsx - Sketch path data
src/components/home/interiorSketchPaths.ts
Work Showcase
Interactive portfolio presentation and media.
- Work hero
src/components/work/WorkHero.tsx - Magazine flip · Book-style work viewer with user-controlled sound.
src/components/work/MagazineFlip.tsx - Work catalog · Centralized work metadata and content.
src/lib/work.ts - Book audio
src/lib/bookAudio.ts - Page-turn audio
public/audio/page-flip.wav - Book audio asset
public/audio/book.wav - Work images · Exterior, interior, and technical image categories.
Connections 22
- 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