How ddevaraj14/shivaram-website works
Purpose and Entry Points
This is a Next.js/TypeScript portfolio site, organized as a single landing page plus dynamic case-study detail routes. The application root and shared document shell are in src/app/layout.tsx; the primary homepage entry is src/app/page.tsx. Case studies resolve through src/app/case-studies/[slug]/page.tsx.
App Router and Page Composition
The project uses the Next.js App Router under src/app. The homepage composes presentation sections into a long-form portfolio experience, while [slug] provides parameterized case-study pages. Case-study rendering is separated from route resolution in src/app/case-studies/[slug]/CaseStudyContent.tsx, creating a boundary between routing and page-specific content presentation.
Shared Site Structure and Navigation
Global page chrome is defined by src/app/layout.tsx and src/app/globals.css. Navigation and footer are reusable components at src/components/Navigation.tsx and src/components/Footer.tsx, likely coordinating in-page navigation on the homepage and links to case-study routes. The global layout is the principal place for shared metadata, fonts, and application-wide styling.
Homepage Content Stages
The homepage is decomposed into independently maintained portfolio sections rather than a monolithic page component. Major stages include hero/introduction (src/components/Hero.tsx), credibility metrics (src/components/MetricsBar.tsx), professional narrative (src/components/AboutSection.tsx, src/components/TimelineSection.tsx), leadership and achievements (src/components/LeadershipSection.tsx, src/components/AchievementsSection.tsx), featured work (src/components/CaseStudiesSection.tsx), insights, and contact (src/components/InsightsSection.tsx, src/components/ContactSection.tsx).
Content Model and Case-Study Boundary
Structured site content is centralized in src/data/content.ts and src/data/site-content.json. These sources are the likely contract consumed by homepage sections and dynamic slug pages: list-oriented case-study data feeds CaseStudiesSection, while slug lookup feeds the [slug] route and CaseStudyContent. The source document at src/data/Shivaram_Kotari_Portfolio_Page_Content_for_Review.docx appears to be editorial input rather than runtime application code.
Styling and Static Assets
Styling combines global CSS with Tailwind configuration: src/app/globals.css, tailwind.config.js, and postcss.config.js. Static visual assets are served from public/images. The runtime is Next.js on Node.js, with TypeScript configuration in tsconfig.json and framework behavior controlled by next.config.js.
Deployment Boundary
Deployment is automated through GitHub Actions in .github/workflows/deploy-pages.yml, indicating static hosting via GitHub Pages or a Pages-compatible deployment target. This makes build/export compatibility in next.config.js architecturally important, especially for the dynamic case-study route and static asset paths.
Main entry points: app/page.tsx Homepage · layout.tsx Root layout · content.ts Structured content · [slug]/page.tsx Case-study slug route
Components 18
Next.js App Router
- Root layout · Provides shared metadata, fonts, global styling, and page chrome.
src/app/layout.tsx - Homepage · Composes the long-form portfolio landing page.
src/app/page.tsx - Case-study slug route · Resolves parameterized case-study URLs.
src/app/case-studies/[slug]/page.tsx - Case-study content · Separates case-study rendering from route resolution.
src/app/case-studies/[slug]/CaseStudyContent.tsx - Global styles · Global CSS works with Tailwind processing.
src/app/globals.css
Shared UI
- Navigation
src/components/Navigation.tsx - Footer
src/components/Footer.tsx - Hero
src/components/Hero.tsx - Metrics bar
src/components/MetricsBar.tsx - About and timeline · Professional narrative stages.
src/components/AboutSection.tsx - Leadership and achievements · Leadership and achievement stages.
src/components/LeadershipSection.tsx - Featured case studies
src/components/CaseStudiesSection.tsx - Insights and contact · Closing content and contact stages.
src/components/InsightsSection.tsx
Content and Assets
- Structured content · Runtime content contract for sections and case studies.
src/data/content.ts - Site content data
src/data/site-content.json - Static images
public/images
Build and Deployment
- Next.js configuration · Controls framework behavior and export compatibility.
next.config.js - GitHub Pages deployment · Builds and deploys the static site.
.github/workflows/deploy-pages.yml
Connections 19
- Root layout → Homepage: wraps
- Root layout → Case-study slug route: wraps
- Root layout → Navigation: renders
- Root layout → Footer: renders
- Root layout → Global styles: loads
- Homepage → Hero: composes
- Homepage → Metrics bar: composes
- Homepage → About and timeline: composes
- Homepage → Leadership and achievements: composes
- Homepage → Featured case studies: composes
- Homepage → Insights and contact: composes
- Case-study slug route → Case-study content: renders
- Structured content → Site content data: sources
- Structured content → Featured case studies: feeds list
- Structured content → Case-study slug route: supports slug lookup
- Structured content → Case-study content: supplies detail data
- Static images → Homepage: visual assets
- Next.js configuration → GitHub Pages deployment: export settings
- GitHub Pages deployment → Homepage: publishes