# hritik3706/portfolio architecture

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

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

## Overview

This is a React portfolio site presenting its owner’s profile, skills, selected projects, achievements, and contact information. The visitor moves from the hero through anchored sections; the projects section presents project details and artwork, while navigation tracks the active section. Internally, App composes the page and binds shared pointer state used by the animated hero scene. Project implementations described in the portfolio are showcased content, not runtime subsystems of this repository. The graph follows the supplied source excerpts and index; project-feature relationships are documented in the data and README, not inspected project code.

Main entry points: [`src/App.tsx`](https://github.com/hritik3706/portfolio/blob/main/src/App.tsx) (Page composition), [`src/components/projects/Projects.tsx`](https://github.com/hritik3706/portfolio/blob/main/src/components/projects/Projects.tsx) (Project listing), [`src/data/profile.ts`](https://github.com/hritik3706/portfolio/blob/main/src/data/profile.ts) (Profile data), [`src/components/ui/Reveal.tsx`](https://github.com/hritik3706/portfolio/blob/main/src/components/ui/Reveal.tsx) (Reveal animation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_page["Page composition"]
  node_app["Page composition<br/>[App.tsx]"]
end

subgraph group_content["Portfolio content"]
  node_hero["Hero introduction<br/>[Hero.tsx]"]
  node_about["About profile<br/>[About.tsx]"]
  node_skills["Skills section<br/>[Skills.tsx]"]
  node_achievements["Achievements section<br/>[Achievements.tsx]"]
  node_contact["Contact section<br/>[Contact.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
  node_profiledata["Profile data<br/>[profile.ts]"]
  node_skillsdata["Skills data<br/>[skills.ts]"]
  node_achievementsdata["Achievement data<br/>[achievements.ts]"]
end

subgraph group_projects["Project showcase"]
  node_projects["Project listing<br/>[Projects.tsx]"]
  node_projectdata["Project details<br/>[projects.ts]"]
  node_projectmodal["Project detail modal<br/>[ProjectModal.tsx]"]
  node_projectvisual["Project visual<br/>[ProjectVisual.tsx]"]
  node_projectart["Project artwork<br/>[ProjectArtwork.tsx]"]
end

subgraph group_interaction["Navigation and motion"]
  node_navigation["Section navigation<br/>[Navigation.tsx]"]
  node_activehook["Active section tracking"]
  node_scrollhook["Scroll tracking<br/>[useScrolled.ts]"]
  node_cursor["Custom cursor<br/>[Cursor.tsx]"]
  node_pointer["Pointer state<br/>[pointer.ts]"]
  node_heroscene["Three.js hero scene<br/>[HeroScene.tsx]"]
  node_reducedmotion["Reduced-motion preference"]
  node_reveal["Reveal animation<br/>[Reveal.tsx]"]
  node_sectionlabel["Section labels<br/>[SectionLabel.tsx]"]
end

node_visitor(("Site visitor"))
node_smartpulse["SMARTPULSE live dashboard"]

node_visitor -->|"views"| node_app
node_app -->|"renders"| node_navigation
node_app -->|"renders"| node_hero
node_app -->|"renders"| node_about
node_app -->|"renders"| node_skills
node_app -->|"renders"| node_projects
node_app -->|"renders"| node_achievements
node_app -->|"renders"| node_contact
node_app -->|"renders"| node_footer
node_app -->|"renders"| node_cursor
node_app -->|"binds tracking"| node_pointer
node_hero -->|"renders"| node_heroscene
node_hero -->|"checks preference"| node_reducedmotion
node_heroscene -->|"reads state"| node_pointer
node_cursor -->|"checks preference"| node_reducedmotion
node_navigation -->|"tracks section"| node_activehook
node_navigation -->|"tracks scroll"| node_scrollhook
node_navigation -->|"reads links"| node_profiledata
node_activehook -->|"reads section IDs"| node_profiledata
node_about -->|"reads profile"| node_profiledata
node_skills -->|"reads skills"| node_skillsdata
node_achievements -->|"reads marks"| node_achievementsdata
node_contact -->|"reads contact"| node_profiledata
node_footer -->|"reads profile"| node_profiledata
node_projects -->|"reads entries"| node_projectdata
node_projects -->|"opens details"| node_projectmodal
node_projects -->|"renders visuals"| node_projectvisual
node_projectmodal -->|"reads details"| node_projectdata
node_projectmodal -->|"renders visual"| node_projectvisual
node_projectvisual -->|"renders artwork"| node_projectart
node_about -->|"uses animation"| node_reveal
node_about -->|"renders label"| node_sectionlabel
node_skills -->|"uses animation"| node_reveal
node_skills -->|"renders label"| node_sectionlabel
node_projects -->|"uses animation"| node_reveal
node_projects -->|"renders label"| node_sectionlabel
node_achievements -->|"uses animation"| node_reveal
node_achievements -->|"renders label"| node_sectionlabel
node_contact -->|"uses animation"| node_reveal
node_contact -->|"renders label"| node_sectionlabel
node_projectdata -.->|"links to dashboard"| node_smartpulse

click node_app "https://github.com/hritik3706/portfolio/blob/main/src/App.tsx"
click node_hero "https://github.com/hritik3706/portfolio/blob/main/src/components/hero/Hero.tsx"
click node_about "https://github.com/hritik3706/portfolio/blob/main/src/components/about/About.tsx"
click node_skills "https://github.com/hritik3706/portfolio/blob/main/src/components/skills/Skills.tsx"
click node_achievements "https://github.com/hritik3706/portfolio/blob/main/src/components/achievements/Achievements.tsx"
click node_contact "https://github.com/hritik3706/portfolio/blob/main/src/components/contact/Contact.tsx"
click node_footer "https://github.com/hritik3706/portfolio/blob/main/src/components/layout/Footer.tsx"
click node_profiledata "https://github.com/hritik3706/portfolio/blob/main/src/data/profile.ts"
click node_skillsdata "https://github.com/hritik3706/portfolio/blob/main/src/data/skills.ts"
click node_achievementsdata "https://github.com/hritik3706/portfolio/blob/main/src/data/achievements.ts"
click node_projects "https://github.com/hritik3706/portfolio/blob/main/src/components/projects/Projects.tsx"
click node_projectdata "https://github.com/hritik3706/portfolio/blob/main/src/data/projects.ts"
click node_projectmodal "https://github.com/hritik3706/portfolio/blob/main/src/components/projects/ProjectModal.tsx"
click node_projectvisual "https://github.com/hritik3706/portfolio/blob/main/src/components/projects/ProjectVisual.tsx"
click node_projectart "https://github.com/hritik3706/portfolio/blob/main/src/components/projects/ProjectArtwork.tsx"
click node_navigation "https://github.com/hritik3706/portfolio/blob/main/src/components/layout/Navigation.tsx"
click node_activehook "https://github.com/hritik3706/portfolio/blob/main/src/hooks/useActiveSection.ts"
click node_scrollhook "https://github.com/hritik3706/portfolio/blob/main/src/hooks/useScrolled.ts"
click node_cursor "https://github.com/hritik3706/portfolio/blob/main/src/components/ui/Cursor.tsx"
click node_pointer "https://github.com/hritik3706/portfolio/blob/main/src/lib/pointer.ts"
click node_heroscene "https://github.com/hritik3706/portfolio/blob/main/src/components/hero/HeroScene.tsx"
click node_reducedmotion "https://github.com/hritik3706/portfolio/blob/main/src/hooks/usePrefersReducedMotion.ts"
click node_reveal "https://github.com/hritik3706/portfolio/blob/main/src/components/ui/Reveal.tsx"
click node_sectionlabel "https://github.com/hritik3706/portfolio/blob/main/src/components/ui/SectionLabel.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 toneBlue
class node_hero,node_about,node_skills,node_achievements,node_contact,node_footer,node_profiledata,node_skillsdata,node_achievementsdata toneAmber
class node_projects,node_projectdata,node_projectmodal,node_projectvisual,node_projectart toneMint
class node_navigation,node_activehook,node_scrollhook,node_cursor,node_pointer,node_heroscene,node_reducedmotion,node_reveal,node_sectionlabel toneRose
class node_visitor,node_smartpulse toneIndigo
```

## Components

### Page composition

- [Page composition](https://github.com/hritik3706/portfolio/blob/main/src/App.tsx): `src/App.tsx`

### Portfolio content

- [Hero introduction](https://github.com/hritik3706/portfolio/blob/main/src/components/hero/Hero.tsx): `src/components/hero/Hero.tsx`
- [About profile](https://github.com/hritik3706/portfolio/blob/main/src/components/about/About.tsx): `src/components/about/About.tsx`
- [Skills section](https://github.com/hritik3706/portfolio/blob/main/src/components/skills/Skills.tsx): `src/components/skills/Skills.tsx`
- [Achievements section](https://github.com/hritik3706/portfolio/blob/main/src/components/achievements/Achievements.tsx): `src/components/achievements/Achievements.tsx`
- [Contact section](https://github.com/hritik3706/portfolio/blob/main/src/components/contact/Contact.tsx): `src/components/contact/Contact.tsx`
- [Footer](https://github.com/hritik3706/portfolio/blob/main/src/components/layout/Footer.tsx): `src/components/layout/Footer.tsx`
- [Profile data](https://github.com/hritik3706/portfolio/blob/main/src/data/profile.ts): `src/data/profile.ts`
- [Skills data](https://github.com/hritik3706/portfolio/blob/main/src/data/skills.ts): `src/data/skills.ts`
- [Achievement data](https://github.com/hritik3706/portfolio/blob/main/src/data/achievements.ts): `src/data/achievements.ts`

### Project showcase

- [Project listing](https://github.com/hritik3706/portfolio/blob/main/src/components/projects/Projects.tsx): `src/components/projects/Projects.tsx`
- [Project details](https://github.com/hritik3706/portfolio/blob/main/src/data/projects.ts): `src/data/projects.ts`
- [Project detail modal](https://github.com/hritik3706/portfolio/blob/main/src/components/projects/ProjectModal.tsx): `src/components/projects/ProjectModal.tsx`
- [Project visual](https://github.com/hritik3706/portfolio/blob/main/src/components/projects/ProjectVisual.tsx): `src/components/projects/ProjectVisual.tsx`
- [Project artwork](https://github.com/hritik3706/portfolio/blob/main/src/components/projects/ProjectArtwork.tsx): `src/components/projects/ProjectArtwork.tsx`

### Navigation and motion

- [Section navigation](https://github.com/hritik3706/portfolio/blob/main/src/components/layout/Navigation.tsx): `src/components/layout/Navigation.tsx`
- [Active section tracking](https://github.com/hritik3706/portfolio/blob/main/src/hooks/useActiveSection.ts): `src/hooks/useActiveSection.ts`
- [Scroll tracking](https://github.com/hritik3706/portfolio/blob/main/src/hooks/useScrolled.ts): `src/hooks/useScrolled.ts`
- [Custom cursor](https://github.com/hritik3706/portfolio/blob/main/src/components/ui/Cursor.tsx): `src/components/ui/Cursor.tsx`
- [Pointer state](https://github.com/hritik3706/portfolio/blob/main/src/lib/pointer.ts): `src/lib/pointer.ts`
- [Three.js hero scene](https://github.com/hritik3706/portfolio/blob/main/src/components/hero/HeroScene.tsx): `src/components/hero/HeroScene.tsx`
- [Reduced-motion preference](https://github.com/hritik3706/portfolio/blob/main/src/hooks/usePrefersReducedMotion.ts): `src/hooks/usePrefersReducedMotion.ts`
- [Reveal animation](https://github.com/hritik3706/portfolio/blob/main/src/components/ui/Reveal.tsx): `src/components/ui/Reveal.tsx`
- [Section labels](https://github.com/hritik3706/portfolio/blob/main/src/components/ui/SectionLabel.tsx): `src/components/ui/SectionLabel.tsx`

### Other components

- **Site visitor**
- **SMARTPULSE live dashboard**

## Connections

- Site visitor → Page composition: views (evidence: `src/App.tsx`)
- Page composition → Section navigation: renders (evidence: `src/App.tsx`)
- Page composition → Hero introduction: renders (evidence: `src/App.tsx`)
- Page composition → About profile: renders (evidence: `src/App.tsx`)
- Page composition → Skills section: renders (evidence: `src/App.tsx`)
- Page composition → Project listing: renders (evidence: `src/App.tsx`)
- Page composition → Achievements section: renders (evidence: `src/App.tsx`)
- Page composition → Contact section: renders (evidence: `src/App.tsx`)
- Page composition → Footer: renders (evidence: `src/App.tsx`)
- Page composition → Custom cursor: renders (evidence: `src/App.tsx`)
- Page composition → Pointer state: binds tracking (evidence: `src/App.tsx`)
- Hero introduction → Three.js hero scene: renders (evidence: `src/components/hero/Hero.tsx`)
- Hero introduction → Reduced-motion preference: checks preference (evidence: `src/components/hero/Hero.tsx`)
- Three.js hero scene → Pointer state: reads state (evidence: `src/components/hero/HeroScene.tsx`)
- Custom cursor → Reduced-motion preference: checks preference (evidence: `src/components/ui/Cursor.tsx`)
- Section navigation → Active section tracking: tracks section (evidence: `src/components/layout/Navigation.tsx`)
- Section navigation → Scroll tracking: tracks scroll (evidence: `src/components/layout/Navigation.tsx`)
- Section navigation → Profile data: reads links (evidence: `src/components/layout/Navigation.tsx`)
- Active section tracking → Profile data: reads section IDs (evidence: `src/hooks/useActiveSection.ts`)
- About profile → Profile data: reads profile (evidence: `src/components/about/About.tsx`)
- Skills section → Skills data: reads skills (evidence: `src/components/skills/Skills.tsx`)
- Achievements section → Achievement data: reads marks (evidence: `src/components/achievements/Achievements.tsx`)
- Contact section → Profile data: reads contact (evidence: `src/components/contact/Contact.tsx`)
- Footer → Profile data: reads profile (evidence: `src/components/layout/Footer.tsx`)
- Project listing → Project details: reads entries (evidence: `src/components/projects/Projects.tsx`)
- Project listing → Project detail modal: opens details (evidence: `src/components/projects/Projects.tsx`)
- Project listing → Project visual: renders visuals (evidence: `src/components/projects/Projects.tsx`)
- Project detail modal → Project details: reads details (evidence: `src/components/projects/ProjectModal.tsx`)
- Project detail modal → Project visual: renders visual (evidence: `src/components/projects/ProjectModal.tsx`)
- Project visual → Project artwork: renders artwork (evidence: `src/components/projects/ProjectVisual.tsx`)
- About profile → Reveal animation: uses animation (evidence: `src/components/about/About.tsx`)
- About profile → Section labels: renders label (evidence: `src/components/about/About.tsx`)
- Skills section → Reveal animation: uses animation (evidence: `src/components/skills/Skills.tsx`)
- Skills section → Section labels: renders label (evidence: `src/components/skills/Skills.tsx`)
- Project listing → Reveal animation: uses animation (evidence: `src/components/projects/Projects.tsx`)
- Project listing → Section labels: renders label (evidence: `src/components/projects/Projects.tsx`)
- Achievements section → Reveal animation: uses animation (evidence: `src/components/achievements/Achievements.tsx`)
- Achievements section → Section labels: renders label (evidence: `src/components/achievements/Achievements.tsx`)
- Contact section → Reveal animation: uses animation (evidence: `src/components/contact/Contact.tsx`)
- Contact section → Section labels: renders label (evidence: `src/components/contact/Contact.tsx`)
- Project details → SMARTPULSE live dashboard: links to dashboard (evidence: `README.md`)
