# shubhamstrength/portfolio architecture

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

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

## Overview

This is a React portfolio site: visitors browse an animated introduction, biography, career history, skills and contact details. The experience section adds an interactive role cabinet, while the hero includes an interactive portrait. Resume copy and career data come from a shared data module. The graph follows documented imports and sampled call sites; unsampled components are included where the README or source index establishes their role, but their internal behavior is not inferred.

Main entry points: [`src/App.tsx`](https://github.com/shubhamstrength/portfolio/blob/main/src/App.tsx) (Page composition), [`src/data/resume.ts`](https://github.com/shubhamstrength/portfolio/blob/main/src/data/resume.ts) (Resume content), [`src/components/Experience.tsx`](https://github.com/shubhamstrength/portfolio/blob/main/src/components/Experience.tsx) (Experience section), [`src/components/Hero.tsx`](https://github.com/shubhamstrength/portfolio/blob/main/src/components/Hero.tsx) (Hero section)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Portfolio sections"]
  node_app["Page composition<br/>[App.tsx]"]
  node_nav["Navigation<br/>[Nav.tsx]"]
  node_scroll["Scroll progress<br/>[ScrollProgress.tsx]"]
  node_cursor["Cursor glow<br/>[CursorGlow.tsx]"]
  node_hero["Hero section<br/>[Hero.tsx]"]
  node_hero_code["Hero code visual<br/>[HeroCode.tsx]"]
  node_about["About section<br/>[About.tsx]"]
  node_skills["Skills section<br/>[Skills.tsx]"]
  node_contact["Contact section<br/>[Contact.tsx]"]
  node_reveal["Reveal effects<br/>[Reveal.tsx]"]
end

subgraph group_content["Portfolio content"]
  node_resume["Resume content<br/>[resume.ts]"]
end

subgraph group_portrait["Interactive portrait"]
  node_avatar["Avatar interaction<br/>[Avatar.tsx]"]
  node_depth["Depth portrait<br/>[DepthPortrait.tsx]"]
  node_pointer["Pointer tracking<br/>[usePointerLook.ts]"]
end

subgraph group_career["Career cabinet"]
  node_experience["Experience section<br/>[Experience.tsx]"]
  node_cabinet["Work cabinet<br/>[WorkCabinet.tsx]"]
  node_career_model["Career model<br/>[model.ts]"]
  node_geometry["Cabinet geometry<br/>[geometry.ts]"]
  node_iso_kit["Isometric drawing<br/>[iso-kit.ts]"]
  node_iso_live["Animation utilities<br/>[live.tsx]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens portfolio"| node_app
node_app -->|"renders"| node_nav
node_app -->|"renders"| node_scroll
node_app -->|"renders"| node_cursor
node_app -->|"renders"| node_hero
node_app -->|"renders"| node_about
node_app -->|"renders"| node_experience
node_app -->|"renders"| node_skills
node_app -->|"renders"| node_contact
node_hero -->|"reads profile"| node_resume
node_hero -->|"renders"| node_avatar
node_hero -->|"renders"| node_hero_code
node_about -->|"reads content"| node_resume
node_about -->|"uses"| node_reveal
node_experience -->|"reads roles"| node_resume
node_experience -->|"renders"| node_cabinet
node_experience -->|"reads roles"| node_career_model
node_experience -->|"uses"| node_reveal
node_skills -->|"reads skills"| node_resume
node_skills -->|"uses"| node_reveal
node_contact -->|"reads contact"| node_resume
node_contact -->|"uses"| node_reveal
node_avatar -->|"tracks pointer"| node_pointer
node_avatar -->|"renders portrait"| node_depth
node_cabinet -->|"reads role data"| node_career_model
node_cabinet -->|"uses geometry"| node_geometry
node_cabinet -->|"uses animation"| node_iso_live
node_career_model -->|"derives roles"| node_resume
node_geometry -->|"uses roles"| node_career_model
node_geometry -->|"draws with"| node_iso_kit

click node_app "https://github.com/shubhamstrength/portfolio/blob/main/src/App.tsx"
click node_nav "https://github.com/shubhamstrength/portfolio/blob/main/src/components/Nav.tsx"
click node_scroll "https://github.com/shubhamstrength/portfolio/blob/main/src/components/ScrollProgress.tsx"
click node_cursor "https://github.com/shubhamstrength/portfolio/blob/main/src/components/CursorGlow.tsx"
click node_hero "https://github.com/shubhamstrength/portfolio/blob/main/src/components/Hero.tsx"
click node_hero_code "https://github.com/shubhamstrength/portfolio/blob/main/src/components/HeroCode.tsx"
click node_about "https://github.com/shubhamstrength/portfolio/blob/main/src/components/About.tsx"
click node_experience "https://github.com/shubhamstrength/portfolio/blob/main/src/components/Experience.tsx"
click node_skills "https://github.com/shubhamstrength/portfolio/blob/main/src/components/Skills.tsx"
click node_contact "https://github.com/shubhamstrength/portfolio/blob/main/src/components/Contact.tsx"
click node_reveal "https://github.com/shubhamstrength/portfolio/blob/main/src/components/Reveal.tsx"
click node_resume "https://github.com/shubhamstrength/portfolio/blob/main/src/data/resume.ts"
click node_avatar "https://github.com/shubhamstrength/portfolio/blob/main/src/components/avatar/Avatar.tsx"
click node_depth "https://github.com/shubhamstrength/portfolio/blob/main/src/components/avatar/DepthPortrait.tsx"
click node_pointer "https://github.com/shubhamstrength/portfolio/blob/main/src/components/avatar/usePointerLook.ts"
click node_cabinet "https://github.com/shubhamstrength/portfolio/blob/main/src/components/cabinet/WorkCabinet.tsx"
click node_career_model "https://github.com/shubhamstrength/portfolio/blob/main/src/components/cabinet/model.ts"
click node_geometry "https://github.com/shubhamstrength/portfolio/blob/main/src/components/cabinet/geometry.ts"
click node_iso_kit "https://github.com/shubhamstrength/portfolio/blob/main/src/components/iso/iso-kit.ts"
click node_iso_live "https://github.com/shubhamstrength/portfolio/blob/main/src/components/iso/live.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_app,node_nav,node_scroll,node_cursor,node_hero,node_hero_code,node_about,node_skills,node_contact,node_reveal toneBlue
class node_resume toneAmber
class node_avatar,node_depth,node_pointer toneMint
class node_experience,node_cabinet,node_career_model,node_geometry,node_iso_kit,node_iso_live toneRose
class node_visitor toneIndigo
```

## Components

### Portfolio sections

- [Page composition](https://github.com/shubhamstrength/portfolio/blob/main/src/App.tsx): `src/App.tsx`
- [Navigation](https://github.com/shubhamstrength/portfolio/blob/main/src/components/Nav.tsx): `src/components/Nav.tsx`
- [Scroll progress](https://github.com/shubhamstrength/portfolio/blob/main/src/components/ScrollProgress.tsx): `src/components/ScrollProgress.tsx`
- [Cursor glow](https://github.com/shubhamstrength/portfolio/blob/main/src/components/CursorGlow.tsx): `src/components/CursorGlow.tsx`
- [Hero section](https://github.com/shubhamstrength/portfolio/blob/main/src/components/Hero.tsx): `src/components/Hero.tsx`
- [Hero code visual](https://github.com/shubhamstrength/portfolio/blob/main/src/components/HeroCode.tsx): `src/components/HeroCode.tsx`
- [About section](https://github.com/shubhamstrength/portfolio/blob/main/src/components/About.tsx): `src/components/About.tsx`
- [Skills section](https://github.com/shubhamstrength/portfolio/blob/main/src/components/Skills.tsx): `src/components/Skills.tsx`
- [Contact section](https://github.com/shubhamstrength/portfolio/blob/main/src/components/Contact.tsx): `src/components/Contact.tsx`
- [Reveal effects](https://github.com/shubhamstrength/portfolio/blob/main/src/components/Reveal.tsx): `src/components/Reveal.tsx`

### Portfolio content

- [Resume content](https://github.com/shubhamstrength/portfolio/blob/main/src/data/resume.ts): `src/data/resume.ts`

### Interactive portrait

- [Avatar interaction](https://github.com/shubhamstrength/portfolio/blob/main/src/components/avatar/Avatar.tsx): `src/components/avatar/Avatar.tsx`
- [Depth portrait](https://github.com/shubhamstrength/portfolio/blob/main/src/components/avatar/DepthPortrait.tsx): `src/components/avatar/DepthPortrait.tsx`
- [Pointer tracking](https://github.com/shubhamstrength/portfolio/blob/main/src/components/avatar/usePointerLook.ts): `src/components/avatar/usePointerLook.ts`

### Career cabinet

- [Experience section](https://github.com/shubhamstrength/portfolio/blob/main/src/components/Experience.tsx): `src/components/Experience.tsx`
- [Work cabinet](https://github.com/shubhamstrength/portfolio/blob/main/src/components/cabinet/WorkCabinet.tsx): `src/components/cabinet/WorkCabinet.tsx`
- [Career model](https://github.com/shubhamstrength/portfolio/blob/main/src/components/cabinet/model.ts): `src/components/cabinet/model.ts`
- [Cabinet geometry](https://github.com/shubhamstrength/portfolio/blob/main/src/components/cabinet/geometry.ts): `src/components/cabinet/geometry.ts`
- [Isometric drawing](https://github.com/shubhamstrength/portfolio/blob/main/src/components/iso/iso-kit.ts): `src/components/iso/iso-kit.ts`
- [Animation utilities](https://github.com/shubhamstrength/portfolio/blob/main/src/components/iso/live.tsx): `src/components/iso/live.tsx`

### Other components

- **Visitor**

## Connections

- Visitor → Page composition: opens portfolio (evidence: `README.md`)
- Page composition → Navigation: renders (evidence: `src/App.tsx`)
- Page composition → Scroll progress: renders (evidence: `src/App.tsx`)
- Page composition → Cursor glow: renders (evidence: `src/App.tsx`)
- Page composition → Hero section: renders (evidence: `src/App.tsx`)
- Page composition → About section: renders (evidence: `src/App.tsx`)
- Page composition → Experience section: renders (evidence: `src/App.tsx`)
- Page composition → Skills section: renders (evidence: `src/App.tsx`)
- Page composition → Contact section: renders (evidence: `src/App.tsx`)
- Hero section → Resume content: reads profile (evidence: `src/components/Hero.tsx`)
- Hero section → Avatar interaction: renders (evidence: `src/components/Hero.tsx`)
- Hero section → Hero code visual: renders (evidence: `src/components/Hero.tsx`)
- About section → Resume content: reads content (evidence: `src/components/About.tsx`)
- About section → Reveal effects: uses (evidence: `src/components/About.tsx`)
- Experience section → Resume content: reads roles (evidence: `src/components/Experience.tsx`)
- Experience section → Work cabinet: renders (evidence: `src/components/Experience.tsx`)
- Experience section → Career model: reads roles (evidence: `src/components/Experience.tsx`)
- Experience section → Reveal effects: uses (evidence: `src/components/Experience.tsx`)
- Skills section → Resume content: reads skills (evidence: `src/components/Skills.tsx`)
- Skills section → Reveal effects: uses (evidence: `src/components/Skills.tsx`)
- Contact section → Resume content: reads contact (evidence: `src/components/Contact.tsx`)
- Contact section → Reveal effects: uses (evidence: `src/components/Contact.tsx`)
- Avatar interaction → Pointer tracking: tracks pointer (evidence: `src/components/avatar/Avatar.tsx`)
- Avatar interaction → Depth portrait: renders portrait (evidence: `src/components/avatar/Avatar.tsx`)
- Work cabinet → Career model: reads role data (evidence: `src/components/cabinet/WorkCabinet.tsx`)
- Work cabinet → Cabinet geometry: uses geometry (evidence: `src/components/cabinet/WorkCabinet.tsx`)
- Work cabinet → Animation utilities: uses animation (evidence: `src/components/cabinet/WorkCabinet.tsx`)
- Career model → Resume content: derives roles (evidence: `src/components/cabinet/model.ts`)
- Cabinet geometry → Career model: uses roles (evidence: `src/components/cabinet/geometry.ts`)
- Cabinet geometry → Isometric drawing: draws with (evidence: `src/components/cabinet/geometry.ts`)
