# ddevaraj14/shivaram-website architecture

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

- Interactive diagram: https://gitdiagram.com/ddevaraj14/shivaram-website
- Repository: https://github.com/ddevaraj14/shivaram-website

## Overview

#### 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: [`src/app/page.tsx`](https://github.com/ddevaraj14/shivaram-website/blob/main/src/app/page.tsx) (Homepage), [`src/app/layout.tsx`](https://github.com/ddevaraj14/shivaram-website/blob/main/src/app/layout.tsx) (Root layout), [`src/data/content.ts`](https://github.com/ddevaraj14/shivaram-website/blob/main/src/data/content.ts) (Structured content), [`src/app/case-studies/[slug]/page.tsx`](https://github.com/ddevaraj14/shivaram-website/blob/main/src/app/case-studies/%5Bslug%5D/page.tsx) (Case-study slug route)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Next.js App Router"]
  node_layout["Root layout<br/>app shell<br/>[layout.tsx]"]
  node_home["Homepage<br/>route<br/>[page.tsx]"]
  node_case_route["Case-study slug route<br/>dynamic route<br/>[page.tsx]"]
  node_case_content["Case-study content<br/>page presentation"]
  node_styles["Global styles<br/>styling<br/>[globals.css]"]
end

subgraph group_sections["Shared UI"]
  node_navigation["Navigation<br/>shared component<br/>[Navigation.tsx]"]
  node_footer["Footer<br/>shared component<br/>[Footer.tsx]"]
  node_hero["Hero<br/>homepage section<br/>[Hero.tsx]"]
  node_metrics["Metrics bar<br/>homepage section<br/>[MetricsBar.tsx]"]
  node_narrative["About and timeline<br/>homepage sections<br/>[AboutSection.tsx]"]
  node_leadership["Leadership and achievements<br/>homepage sections"]
  node_case_list["Featured case studies<br/>homepage section"]
  node_insights_contact["Insights and contact<br/>homepage sections"]
end

subgraph group_content["Content and Assets"]
  node_content_ts["Structured content<br/>content model<br/>[content.ts]"]
  node_content_json["Site content data<br/>[site-content.json]"]
  node_assets["Static images<br/>static assets"]
end

subgraph group_delivery["Build and Deployment"]
  node_next_config["Next.js configuration<br/>build configuration<br/>[next.config.js]"]
  node_deploy{{"GitHub Pages deployment<br/>CI deployment<br/>[deploy-pages.yml]"}}
end

node_layout -->|"wraps"| node_home
node_layout -->|"wraps"| node_case_route
node_layout -->|"renders"| node_navigation
node_layout -->|"renders"| node_footer
node_layout -->|"loads"| node_styles
node_home -->|"composes"| node_hero
node_home -->|"composes"| node_metrics
node_home -->|"composes"| node_narrative
node_home -->|"composes"| node_leadership
node_home -->|"composes"| node_case_list
node_home -->|"composes"| node_insights_contact
node_case_route -->|"renders"| node_case_content
node_content_ts -->|"sources"| node_content_json
node_content_ts -->|"feeds list"| node_case_list
node_content_ts -->|"supports slug lookup"| node_case_route
node_content_ts -->|"supplies detail data"| node_case_content
node_assets -.->|"visual assets"| node_home
node_next_config -->|"export settings"| node_deploy
node_deploy -.->|"publishes"| node_home

click node_layout "https://github.com/ddevaraj14/shivaram-website/blob/main/src/app/layout.tsx"
click node_home "https://github.com/ddevaraj14/shivaram-website/blob/main/src/app/page.tsx"
click node_case_route "https://github.com/ddevaraj14/shivaram-website/blob/main/src/app/case-studies/%5Bslug%5D/page.tsx"
click node_case_content "https://github.com/ddevaraj14/shivaram-website/blob/main/src/app/case-studies/%5Bslug%5D/CaseStudyContent.tsx"
click node_navigation "https://github.com/ddevaraj14/shivaram-website/blob/main/src/components/Navigation.tsx"
click node_footer "https://github.com/ddevaraj14/shivaram-website/blob/main/src/components/Footer.tsx"
click node_hero "https://github.com/ddevaraj14/shivaram-website/blob/main/src/components/Hero.tsx"
click node_metrics "https://github.com/ddevaraj14/shivaram-website/blob/main/src/components/MetricsBar.tsx"
click node_narrative "https://github.com/ddevaraj14/shivaram-website/blob/main/src/components/AboutSection.tsx"
click node_leadership "https://github.com/ddevaraj14/shivaram-website/blob/main/src/components/LeadershipSection.tsx"
click node_case_list "https://github.com/ddevaraj14/shivaram-website/blob/main/src/components/CaseStudiesSection.tsx"
click node_insights_contact "https://github.com/ddevaraj14/shivaram-website/blob/main/src/components/InsightsSection.tsx"
click node_content_ts "https://github.com/ddevaraj14/shivaram-website/blob/main/src/data/content.ts"
click node_content_json "https://github.com/ddevaraj14/shivaram-website/blob/main/src/data/site-content.json"
click node_assets "https://github.com/ddevaraj14/shivaram-website/tree/main/public/images"
click node_styles "https://github.com/ddevaraj14/shivaram-website/blob/main/src/app/globals.css"
click node_next_config "https://github.com/ddevaraj14/shivaram-website/blob/main/next.config.js"
click node_deploy "https://github.com/ddevaraj14/shivaram-website/blob/main/.github/workflows/deploy-pages.yml"

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_layout,node_home,node_case_route,node_case_content,node_styles toneBlue
class node_navigation,node_footer,node_hero,node_metrics,node_narrative,node_leadership,node_case_list,node_insights_contact toneAmber
class node_content_ts,node_content_json,node_assets toneMint
class node_next_config,node_deploy toneRose
```

## Components

### Next.js App Router

- [Root layout](https://github.com/ddevaraj14/shivaram-website/blob/main/src/app/layout.tsx): app shell · Provides shared metadata, fonts, global styling, and page chrome. · `src/app/layout.tsx`
- [Homepage](https://github.com/ddevaraj14/shivaram-website/blob/main/src/app/page.tsx): route · Composes the long-form portfolio landing page. · `src/app/page.tsx`
- [Case-study slug route](https://github.com/ddevaraj14/shivaram-website/blob/main/src/app/case-studies/%5Bslug%5D/page.tsx): dynamic route · Resolves parameterized case-study URLs. · `src/app/case-studies/[slug]/page.tsx`
- [Case-study content](https://github.com/ddevaraj14/shivaram-website/blob/main/src/app/case-studies/%5Bslug%5D/CaseStudyContent.tsx): page presentation · Separates case-study rendering from route resolution. · `src/app/case-studies/[slug]/CaseStudyContent.tsx`
- [Global styles](https://github.com/ddevaraj14/shivaram-website/blob/main/src/app/globals.css): styling · Global CSS works with Tailwind processing. · `src/app/globals.css`

### Shared UI

- [Navigation](https://github.com/ddevaraj14/shivaram-website/blob/main/src/components/Navigation.tsx): shared component · `src/components/Navigation.tsx`
- [Footer](https://github.com/ddevaraj14/shivaram-website/blob/main/src/components/Footer.tsx): shared component · `src/components/Footer.tsx`
- [Hero](https://github.com/ddevaraj14/shivaram-website/blob/main/src/components/Hero.tsx): homepage section · `src/components/Hero.tsx`
- [Metrics bar](https://github.com/ddevaraj14/shivaram-website/blob/main/src/components/MetricsBar.tsx): homepage section · `src/components/MetricsBar.tsx`
- [About and timeline](https://github.com/ddevaraj14/shivaram-website/blob/main/src/components/AboutSection.tsx): homepage sections · Professional narrative stages. · `src/components/AboutSection.tsx`
- [Leadership and achievements](https://github.com/ddevaraj14/shivaram-website/blob/main/src/components/LeadershipSection.tsx): homepage sections · Leadership and achievement stages. · `src/components/LeadershipSection.tsx`
- [Featured case studies](https://github.com/ddevaraj14/shivaram-website/blob/main/src/components/CaseStudiesSection.tsx): homepage section · `src/components/CaseStudiesSection.tsx`
- [Insights and contact](https://github.com/ddevaraj14/shivaram-website/blob/main/src/components/InsightsSection.tsx): homepage sections · Closing content and contact stages. · `src/components/InsightsSection.tsx`

### Content and Assets

- [Structured content](https://github.com/ddevaraj14/shivaram-website/blob/main/src/data/content.ts): content model · Runtime content contract for sections and case studies. · `src/data/content.ts`
- [Site content data](https://github.com/ddevaraj14/shivaram-website/blob/main/src/data/site-content.json): content data · `src/data/site-content.json`
- [Static images](https://github.com/ddevaraj14/shivaram-website/tree/main/public/images): static assets · `public/images`

### Build and Deployment

- [Next.js configuration](https://github.com/ddevaraj14/shivaram-website/blob/main/next.config.js): build configuration · Controls framework behavior and export compatibility. · `next.config.js`
- [GitHub Pages deployment](https://github.com/ddevaraj14/shivaram-website/blob/main/.github/workflows/deploy-pages.yml): CI deployment · Builds and deploys the static site. · `.github/workflows/deploy-pages.yml`

## Connections

- 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
