# sanju1098/sanjay-portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/sanju1098/sanjay-portfolio
- Repository: https://github.com/sanju1098/sanjay-portfolio

## Overview

This is Sanjay Kumar S R’s React portfolio: visitors navigate a shared site shell to explore the home page, biography and contact details, project work, skills, and career history, then follow résumé or external profile links. The route layout supplies navigation, page metadata, loading and error handling; page components present content datasets and reusable project visuals. README-documented capabilities include responsive themed design, accessibility, lazy routes and imagery, and SEO metadata. Unsampled page details are represented at their source paths; edges reflect only shown imports, calls, or README statements.

Main entry points: [`src/content/routes.tsx`](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/content/routes.tsx) (Routes and layout), [`src/pages/Index.tsx`](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/pages/Index.tsx) (Home page), [`src/pages/About.tsx`](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/pages/About.tsx) (About and contact), [`src/pages/Projects.tsx`](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/pages/Projects.tsx) (Projects page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Navigation and shell"]
  node_app["Router provider<br/>[App.tsx]"]
  node_routes["Routes and layout<br/>[routes.tsx]"]
  node_header["Header and theme<br/>[Header.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
  node_error["Error boundary<br/>[ErrorBoundary.tsx]"]
  node_loader["Route loader<br/>[Loader.tsx]"]
  node_scroll["Scroll handling<br/>[ScrollToTop.tsx]"]
end

subgraph group_pages["Portfolio pages"]
  node_home["Home page<br/>[Index.tsx]"]
  node_about["About and contact<br/>[About.tsx]"]
  node_projects["Projects page<br/>[Projects.tsx]"]
  node_skills["Skills page<br/>[Skills.tsx]"]
  node_experience["Experience page<br/>[Experience.tsx]"]
  node_notfound["Not-found page<br/>[NotFound.tsx]"]
end

subgraph group_content["Portfolio content"]
  node_homecontent["Home content<br/>[home.tsx]"]
  node_aboutcontent["About content<br/>[about.ts]"]
  node_projectcontent["Project catalog<br/>[project.tsx]"]
  node_skillcontent["Skills content<br/>[skills.tsx]"]
  node_experiencecontent["Career content<br/>[experience.tsx]"]
  node_layoutcontent["Navigation content<br/>[layout.tsx]"]
  node_resume["Résumé PDF<br/>[Resume.pdf]"]
end

subgraph group_presentation["Visual components"]
  node_projectcard["Project card<br/>[project-card.tsx]"]
  node_carousel["Image carousel"]
  node_hero["Hero visual<br/>[hero-visual.tsx]"]
  node_backdrop["Hero backdrop<br/>[hero-backdrop.tsx]"]
  node_sectionheader["Section header"]
  node_button["Button<br/>[button.tsx]"]
  node_badge["Badge<br/>[badge.tsx]"]
  node_cloudinary["Image URL optimizer<br/>[cloudinary.ts]"]
end

node_visitor(("Site visitor"))

node_visitor -->|"opens site"| node_app
node_app -->|"provides router"| node_routes
node_routes -->|"renders"| node_header
node_routes -->|"renders"| node_footer
node_routes -->|"wraps layout"| node_error
node_routes -->|"loads pages"| node_loader
node_routes -->|"renders"| node_scroll
node_routes -->|"routes to"| node_home
node_routes -->|"routes to"| node_about
node_routes -->|"routes to"| node_projects
node_routes -->|"routes to"| node_skills
node_routes -->|"routes to"| node_experience
node_routes -->|"routes to"| node_notfound
node_header -->|"reads navigation"| node_layoutcontent
node_home -->|"reads"| node_homecontent
node_home -->|"reads"| node_projectcontent
node_home -->|"renders"| node_hero
node_home -->|"loads"| node_backdrop
node_home -->|"renders"| node_projectcard
node_home -->|"links résumé"| node_resume
node_about -->|"reads"| node_aboutcontent
node_about -->|"links résumé"| node_resume
node_about -->|"optimizes images"| node_cloudinary
node_projects -->|"reads"| node_projectcontent
node_projects -->|"renders"| node_carousel
node_skills -->|"reads"| node_skillcontent
node_experience -->|"reads"| node_experiencecontent
node_experience -->|"optimizes images"| node_cloudinary
node_home -->|"uses"| node_sectionheader
node_about -->|"uses"| node_sectionheader
node_projects -->|"uses"| node_sectionheader
node_skills -->|"uses"| node_sectionheader
node_experience -->|"uses"| node_sectionheader
node_home -->|"uses"| node_button
node_projects -->|"uses"| node_button
node_about -->|"uses"| node_button
node_home -->|"uses"| node_badge
node_projects -->|"uses"| node_badge
node_projectcard -->|"renders project"| node_projectcontent
node_projectcard -->|"optimizes images"| node_cloudinary
node_projectcard -->|"uses"| node_badge
node_projectcard -->|"uses"| node_button
node_carousel -->|"optimizes images"| node_cloudinary
node_hero -->|"reads visual data"| node_homecontent

click node_app "https://github.com/sanju1098/sanjay-portfolio/blob/master/src/App.tsx"
click node_routes "https://github.com/sanju1098/sanjay-portfolio/blob/master/src/content/routes.tsx"
click node_header "https://github.com/sanju1098/sanjay-portfolio/blob/master/src/layout/Header.tsx"
click node_footer "https://github.com/sanju1098/sanjay-portfolio/blob/master/src/layout/Footer.tsx"
click node_error "https://github.com/sanju1098/sanjay-portfolio/blob/master/src/layout/ErrorBoundary.tsx"
click node_loader "https://github.com/sanju1098/sanjay-portfolio/blob/master/src/layout/Loader.tsx"
click node_scroll "https://github.com/sanju1098/sanjay-portfolio/blob/master/src/layout/ScrollToTop.tsx"
click node_home "https://github.com/sanju1098/sanjay-portfolio/blob/master/src/pages/Index.tsx"
click node_about "https://github.com/sanju1098/sanjay-portfolio/blob/master/src/pages/About.tsx"
click node_projects "https://github.com/sanju1098/sanjay-portfolio/blob/master/src/pages/Projects.tsx"
click node_skills "https://github.com/sanju1098/sanjay-portfolio/blob/master/src/pages/Skills.tsx"
click node_experience "https://github.com/sanju1098/sanjay-portfolio/blob/master/src/pages/Experience.tsx"
click node_notfound "https://github.com/sanju1098/sanjay-portfolio/blob/master/src/pages/NotFound.tsx"
click node_homecontent "https://github.com/sanju1098/sanjay-portfolio/blob/master/src/content/home.tsx"
click node_aboutcontent "https://github.com/sanju1098/sanjay-portfolio/blob/master/src/content/about.ts"
click node_projectcontent "https://github.com/sanju1098/sanjay-portfolio/blob/master/src/content/project.tsx"
click node_skillcontent "https://github.com/sanju1098/sanjay-portfolio/blob/master/src/content/skills.tsx"
click node_experiencecontent "https://github.com/sanju1098/sanjay-portfolio/blob/master/src/content/experience.tsx"
click node_layoutcontent "https://github.com/sanju1098/sanjay-portfolio/blob/master/src/content/layout.tsx"
click node_projectcard "https://github.com/sanju1098/sanjay-portfolio/blob/master/src/components/project-card.tsx"
click node_carousel "https://github.com/sanju1098/sanjay-portfolio/blob/master/src/components/project-carousel.tsx"
click node_hero "https://github.com/sanju1098/sanjay-portfolio/blob/master/src/components/hero-visual.tsx"
click node_backdrop "https://github.com/sanju1098/sanjay-portfolio/blob/master/src/components/hero-backdrop.tsx"
click node_sectionheader "https://github.com/sanju1098/sanjay-portfolio/blob/master/src/components/page-section-header.tsx"
click node_button "https://github.com/sanju1098/sanjay-portfolio/blob/master/src/components/ui/button.tsx"
click node_badge "https://github.com/sanju1098/sanjay-portfolio/blob/master/src/components/ui/badge.tsx"
click node_cloudinary "https://github.com/sanju1098/sanjay-portfolio/blob/master/src/lib/cloudinary.ts"
click node_resume "https://github.com/sanju1098/sanjay-portfolio/blob/master/src/assets/Resume.pdf"

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_app,node_routes,node_header,node_footer,node_error,node_loader,node_scroll toneBlue
class node_home,node_about,node_projects,node_skills,node_experience,node_notfound toneAmber
class node_homecontent,node_aboutcontent,node_projectcontent,node_skillcontent,node_experiencecontent,node_layoutcontent,node_resume toneMint
class node_projectcard,node_carousel,node_hero,node_backdrop,node_sectionheader,node_button,node_badge,node_cloudinary toneRose
class node_visitor toneIndigo
```

## Components

### Navigation and shell

- [Router provider](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/App.tsx): `src/App.tsx`
- [Routes and layout](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/content/routes.tsx): `src/content/routes.tsx`
- [Header and theme](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/layout/Header.tsx): `src/layout/Header.tsx`
- [Footer](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/layout/Footer.tsx): `src/layout/Footer.tsx`
- [Error boundary](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/layout/ErrorBoundary.tsx): `src/layout/ErrorBoundary.tsx`
- [Route loader](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/layout/Loader.tsx): `src/layout/Loader.tsx`
- [Scroll handling](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/layout/ScrollToTop.tsx): `src/layout/ScrollToTop.tsx`

### Portfolio pages

- [Home page](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/pages/Index.tsx): `src/pages/Index.tsx`
- [About and contact](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/pages/About.tsx): `src/pages/About.tsx`
- [Projects page](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/pages/Projects.tsx): `src/pages/Projects.tsx`
- [Skills page](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/pages/Skills.tsx): `src/pages/Skills.tsx`
- [Experience page](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/pages/Experience.tsx): `src/pages/Experience.tsx`
- [Not-found page](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/pages/NotFound.tsx): `src/pages/NotFound.tsx`

### Portfolio content

- [Home content](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/content/home.tsx): `src/content/home.tsx`
- [About content](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/content/about.ts): `src/content/about.ts`
- [Project catalog](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/content/project.tsx): `src/content/project.tsx`
- [Skills content](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/content/skills.tsx): `src/content/skills.tsx`
- [Career content](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/content/experience.tsx): `src/content/experience.tsx`
- [Navigation content](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/content/layout.tsx): `src/content/layout.tsx`
- [Résumé PDF](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/assets/Resume.pdf): `src/assets/Resume.pdf`

### Visual components

- [Project card](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/components/project-card.tsx): `src/components/project-card.tsx`
- [Image carousel](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/components/project-carousel.tsx): `src/components/project-carousel.tsx`
- [Hero visual](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/components/hero-visual.tsx): `src/components/hero-visual.tsx`
- [Hero backdrop](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/components/hero-backdrop.tsx): `src/components/hero-backdrop.tsx`
- [Section header](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/components/page-section-header.tsx): `src/components/page-section-header.tsx`
- [Button](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/components/ui/button.tsx): `src/components/ui/button.tsx`
- [Badge](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/components/ui/badge.tsx): `src/components/ui/badge.tsx`
- [Image URL optimizer](https://github.com/sanju1098/sanjay-portfolio/blob/master/src/lib/cloudinary.ts): `src/lib/cloudinary.ts`

### Other components

- **Site visitor**

## Connections

- Site visitor → Router provider: opens site (evidence: `README.md`)
- Router provider → Routes and layout: provides router (evidence: `src/App.tsx`)
- Routes and layout → Header and theme: renders (evidence: `src/content/routes.tsx`)
- Routes and layout → Footer: renders (evidence: `src/content/routes.tsx`)
- Routes and layout → Error boundary: wraps layout (evidence: `src/content/routes.tsx`)
- Routes and layout → Route loader: loads pages (evidence: `src/content/routes.tsx`)
- Routes and layout → Scroll handling: renders (evidence: `src/content/routes.tsx`)
- Routes and layout → Home page: routes to (evidence: `src/content/routes.tsx`)
- Routes and layout → About and contact: routes to (evidence: `src/content/routes.tsx`)
- Routes and layout → Projects page: routes to (evidence: `src/content/routes.tsx`)
- Routes and layout → Skills page: routes to (evidence: `src/content/routes.tsx`)
- Routes and layout → Experience page: routes to (evidence: `src/content/routes.tsx`)
- Routes and layout → Not-found page: routes to (evidence: `src/content/routes.tsx`)
- Header and theme → Navigation content: reads navigation (evidence: `src/layout/Header.tsx`)
- Home page → Home content: reads (evidence: `src/pages/Index.tsx`)
- Home page → Project catalog: reads (evidence: `src/pages/Index.tsx`)
- Home page → Hero visual: renders (evidence: `src/pages/Index.tsx`)
- Home page → Hero backdrop: loads (evidence: `src/pages/Index.tsx`)
- Home page → Project card: renders (evidence: `src/pages/Index.tsx`)
- Home page → Résumé PDF: links résumé (evidence: `src/pages/Index.tsx`)
- About and contact → About content: reads (evidence: `src/pages/About.tsx`)
- About and contact → Résumé PDF: links résumé (evidence: `src/pages/About.tsx`)
- About and contact → Image URL optimizer: optimizes images (evidence: `src/pages/About.tsx`)
- Projects page → Project catalog: reads (evidence: `src/pages/Projects.tsx`)
- Projects page → Image carousel: renders (evidence: `src/pages/Projects.tsx`)
- Skills page → Skills content: reads (evidence: `src/pages/Skills.tsx`)
- Experience page → Career content: reads (evidence: `src/pages/Experience.tsx`)
- Experience page → Image URL optimizer: optimizes images (evidence: `src/pages/Experience.tsx`)
- Home page → Section header: uses (evidence: `src/pages/Index.tsx`)
- About and contact → Section header: uses (evidence: `src/pages/About.tsx`)
- Projects page → Section header: uses (evidence: `src/pages/Projects.tsx`)
- Skills page → Section header: uses (evidence: `src/pages/Skills.tsx`)
- Experience page → Section header: uses (evidence: `src/pages/Experience.tsx`)
- Home page → Button: uses (evidence: `src/pages/Index.tsx`)
- Projects page → Button: uses (evidence: `src/pages/Projects.tsx`)
- About and contact → Button: uses (evidence: `src/pages/About.tsx`)
- Home page → Badge: uses (evidence: `src/pages/Index.tsx`)
- Projects page → Badge: uses (evidence: `src/pages/Projects.tsx`)
- Project card → Project catalog: renders project (evidence: `src/components/project-card.tsx`)
- Project card → Image URL optimizer: optimizes images (evidence: `src/components/project-card.tsx`)
- Project card → Badge: uses (evidence: `src/components/project-card.tsx`)
- Project card → Button: uses (evidence: `src/components/project-card.tsx`)
- Image carousel → Image URL optimizer: optimizes images (evidence: `src/components/project-carousel.tsx`)
- Hero visual → Home content: reads visual data (evidence: `src/components/hero-visual.tsx`)
