# codewithsayak/portfolio architecture

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

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

## Overview

This is a motion-first personal developer portfolio. A visitor enters the React app, views its profile, selected work, skills, services and journey, then can follow contact links or submit the contact form. Portfolio content is centralized in site.js; reusable motion and presentation components support the section layouts. Edges follow the supplied excerpts and SOURCE INDEX references; unsampled component internals and form-delivery behavior are not inferred.

Main entry points: [`src/App.jsx`](https://github.com/codewithsayak/portfolio/blob/main/src/App.jsx) (Portfolio layout), [`src/sections/Hero.jsx`](https://github.com/codewithsayak/portfolio/blob/main/src/sections/Hero.jsx) (Hero intro), [`src/data/site.js`](https://github.com/codewithsayak/portfolio/blob/main/src/data/site.js) (Portfolio content), [`src/components/SectionHeading.jsx`](https://github.com/codewithsayak/portfolio/blob/main/src/components/SectionHeading.jsx) (Section heading)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["App shell"]
  node_entry["React entry<br/>[main.jsx]"]
  node_app["Portfolio layout<br/>[App.jsx]"]
end

subgraph group_sections["Portfolio sections"]
  node_header["Navigation<br/>[Header.jsx]"]
  node_hero["Hero intro<br/>[Hero.jsx]"]
  node_about["About profile<br/>[About.jsx]"]
  node_work["Project showcase<br/>[Work.jsx]"]
  node_skills["Skills showcase<br/>[Skills.jsx]"]
  node_services["Services<br/>[Services.jsx]"]
  node_journey["Journey timeline<br/>[Journey.jsx]"]
  node_contact["Contact form<br/>[Contact.jsx]"]
  node_footer["Footer<br/>[Footer.jsx]"]
end

subgraph group_content["Portfolio content"]
  node_site["Portfolio content<br/>[site.js]"]
end

subgraph group_ui["Motion and interface"]
  node_heading["Section heading<br/>[SectionHeading.jsx]"]
  node_button["Animated button"]
  node_cursor["Cursor preview<br/>[cursor-card.jsx]"]
  node_glow["Glow card"]
  node_gooey["Text reveal"]
  node_grid["Highlight grid<br/>[highlight-grid.jsx]"]
  node_lines["Light-lines backdrop<br/>[light-lines.jsx]"]
  node_slider["Logo slider<br/>[logo-slider.jsx]"]
  node_morph["Morphing text<br/>[morph-text.jsx]"]
  node_navbar["Spotlight navbar"]
  node_stats["Stats counter<br/>[stats-counter.jsx]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"renders"| node_header
node_app -->|"renders"| node_hero
node_app -->|"renders"| node_about
node_app -->|"renders"| node_work
node_app -->|"renders"| node_skills
node_app -->|"renders"| node_services
node_app -->|"renders"| node_journey
node_app -->|"renders"| node_contact
node_app -->|"renders"| node_footer
node_header -->|"uses"| node_navbar
node_hero -->|"reads"| node_site
node_hero -->|"uses"| node_button
node_hero -->|"uses"| node_gooey
node_hero -->|"uses"| node_lines
node_hero -->|"uses"| node_morph
node_hero -->|"uses"| node_stats
node_about -->|"reads"| node_site
node_about -->|"uses"| node_heading
node_about -->|"uses"| node_gooey
node_work -->|"reads"| node_site
node_work -->|"uses"| node_heading
node_work -->|"uses"| node_button
node_work -->|"uses"| node_cursor
node_work -->|"uses"| node_glow
node_skills -->|"reads"| node_site
node_skills -->|"uses"| node_heading
node_skills -->|"uses"| node_grid
node_skills -->|"uses"| node_slider
node_services -->|"reads"| node_site
node_services -->|"uses"| node_heading
node_services -->|"uses"| node_button
node_services -->|"uses"| node_glow
node_journey -->|"reads"| node_site
node_journey -->|"uses"| node_heading
node_journey -->|"uses"| node_gooey
node_contact -->|"reads"| node_site
node_contact -->|"uses"| node_heading
node_contact -->|"uses"| node_button
node_footer -->|"reads"| node_site
node_heading -->|"renders"| node_gooey

click node_entry "https://github.com/codewithsayak/portfolio/blob/main/src/main.jsx"
click node_app "https://github.com/codewithsayak/portfolio/blob/main/src/App.jsx"
click node_header "https://github.com/codewithsayak/portfolio/blob/main/src/sections/Header.jsx"
click node_hero "https://github.com/codewithsayak/portfolio/blob/main/src/sections/Hero.jsx"
click node_about "https://github.com/codewithsayak/portfolio/blob/main/src/sections/About.jsx"
click node_work "https://github.com/codewithsayak/portfolio/blob/main/src/sections/Work.jsx"
click node_skills "https://github.com/codewithsayak/portfolio/blob/main/src/sections/Skills.jsx"
click node_services "https://github.com/codewithsayak/portfolio/blob/main/src/sections/Services.jsx"
click node_journey "https://github.com/codewithsayak/portfolio/blob/main/src/sections/Journey.jsx"
click node_contact "https://github.com/codewithsayak/portfolio/blob/main/src/sections/Contact.jsx"
click node_footer "https://github.com/codewithsayak/portfolio/blob/main/src/sections/Footer.jsx"
click node_site "https://github.com/codewithsayak/portfolio/blob/main/src/data/site.js"
click node_heading "https://github.com/codewithsayak/portfolio/blob/main/src/components/SectionHeading.jsx"
click node_button "https://github.com/codewithsayak/portfolio/blob/main/src/components/ui/animated-button.jsx"
click node_cursor "https://github.com/codewithsayak/portfolio/blob/main/src/components/ui/cursor-card.jsx"
click node_glow "https://github.com/codewithsayak/portfolio/blob/main/src/components/ui/glow-border-card.jsx"
click node_gooey "https://github.com/codewithsayak/portfolio/blob/main/src/components/ui/gooey-text-reveal.jsx"
click node_grid "https://github.com/codewithsayak/portfolio/blob/main/src/components/ui/highlight-grid.jsx"
click node_lines "https://github.com/codewithsayak/portfolio/blob/main/src/components/ui/light-lines.jsx"
click node_slider "https://github.com/codewithsayak/portfolio/blob/main/src/components/ui/logo-slider.jsx"
click node_morph "https://github.com/codewithsayak/portfolio/blob/main/src/components/ui/morph-text.jsx"
click node_navbar "https://github.com/codewithsayak/portfolio/blob/main/src/components/ui/spotlight-navbar.jsx"
click node_stats "https://github.com/codewithsayak/portfolio/blob/main/src/components/ui/stats-counter.jsx"

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_entry,node_app toneBlue
class node_header,node_hero,node_about,node_work,node_skills,node_services,node_journey,node_contact,node_footer toneAmber
class node_site toneMint
class node_heading,node_button,node_cursor,node_glow,node_gooey,node_grid,node_lines,node_slider,node_morph,node_navbar,node_stats toneRose
class node_visitor toneIndigo
```

## Components

### App shell

- [React entry](https://github.com/codewithsayak/portfolio/blob/main/src/main.jsx): `src/main.jsx`
- [Portfolio layout](https://github.com/codewithsayak/portfolio/blob/main/src/App.jsx): `src/App.jsx`

### Portfolio sections

- [Navigation](https://github.com/codewithsayak/portfolio/blob/main/src/sections/Header.jsx): `src/sections/Header.jsx`
- [Hero intro](https://github.com/codewithsayak/portfolio/blob/main/src/sections/Hero.jsx): `src/sections/Hero.jsx`
- [About profile](https://github.com/codewithsayak/portfolio/blob/main/src/sections/About.jsx): `src/sections/About.jsx`
- [Project showcase](https://github.com/codewithsayak/portfolio/blob/main/src/sections/Work.jsx): `src/sections/Work.jsx`
- [Skills showcase](https://github.com/codewithsayak/portfolio/blob/main/src/sections/Skills.jsx): `src/sections/Skills.jsx`
- [Services](https://github.com/codewithsayak/portfolio/blob/main/src/sections/Services.jsx): `src/sections/Services.jsx`
- [Journey timeline](https://github.com/codewithsayak/portfolio/blob/main/src/sections/Journey.jsx): `src/sections/Journey.jsx`
- [Contact form](https://github.com/codewithsayak/portfolio/blob/main/src/sections/Contact.jsx): `src/sections/Contact.jsx`
- [Footer](https://github.com/codewithsayak/portfolio/blob/main/src/sections/Footer.jsx): `src/sections/Footer.jsx`

### Portfolio content

- [Portfolio content](https://github.com/codewithsayak/portfolio/blob/main/src/data/site.js): `src/data/site.js`

### Motion and interface

- [Section heading](https://github.com/codewithsayak/portfolio/blob/main/src/components/SectionHeading.jsx): `src/components/SectionHeading.jsx`
- [Animated button](https://github.com/codewithsayak/portfolio/blob/main/src/components/ui/animated-button.jsx): `src/components/ui/animated-button.jsx`
- [Cursor preview](https://github.com/codewithsayak/portfolio/blob/main/src/components/ui/cursor-card.jsx): `src/components/ui/cursor-card.jsx`
- [Glow card](https://github.com/codewithsayak/portfolio/blob/main/src/components/ui/glow-border-card.jsx): `src/components/ui/glow-border-card.jsx`
- [Text reveal](https://github.com/codewithsayak/portfolio/blob/main/src/components/ui/gooey-text-reveal.jsx): `src/components/ui/gooey-text-reveal.jsx`
- [Highlight grid](https://github.com/codewithsayak/portfolio/blob/main/src/components/ui/highlight-grid.jsx): `src/components/ui/highlight-grid.jsx`
- [Light-lines backdrop](https://github.com/codewithsayak/portfolio/blob/main/src/components/ui/light-lines.jsx): `src/components/ui/light-lines.jsx`
- [Logo slider](https://github.com/codewithsayak/portfolio/blob/main/src/components/ui/logo-slider.jsx): `src/components/ui/logo-slider.jsx`
- [Morphing text](https://github.com/codewithsayak/portfolio/blob/main/src/components/ui/morph-text.jsx): `src/components/ui/morph-text.jsx`
- [Spotlight navbar](https://github.com/codewithsayak/portfolio/blob/main/src/components/ui/spotlight-navbar.jsx): `src/components/ui/spotlight-navbar.jsx`
- [Stats counter](https://github.com/codewithsayak/portfolio/blob/main/src/components/ui/stats-counter.jsx): `src/components/ui/stats-counter.jsx`

### Other components

- **Visitor**

## Connections

- Visitor → React entry: opens
- React entry → Portfolio layout: renders (evidence: `src/main.jsx`)
- Portfolio layout → Navigation: renders (evidence: `src/App.jsx`)
- Portfolio layout → Hero intro: renders (evidence: `src/App.jsx`)
- Portfolio layout → About profile: renders (evidence: `src/App.jsx`)
- Portfolio layout → Project showcase: renders (evidence: `src/App.jsx`)
- Portfolio layout → Skills showcase: renders (evidence: `src/App.jsx`)
- Portfolio layout → Services: renders (evidence: `src/App.jsx`)
- Portfolio layout → Journey timeline: renders (evidence: `src/App.jsx`)
- Portfolio layout → Contact form: renders (evidence: `src/App.jsx`)
- Portfolio layout → Footer: renders (evidence: `src/App.jsx`)
- Navigation → Spotlight navbar: uses (evidence: `src/sections/Header.jsx`)
- Hero intro → Portfolio content: reads (evidence: `src/sections/Hero.jsx`)
- Hero intro → Animated button: uses (evidence: `src/sections/Hero.jsx`)
- Hero intro → Text reveal: uses (evidence: `src/sections/Hero.jsx`)
- Hero intro → Light-lines backdrop: uses (evidence: `src/sections/Hero.jsx`)
- Hero intro → Morphing text: uses (evidence: `src/sections/Hero.jsx`)
- Hero intro → Stats counter: uses (evidence: `src/sections/Hero.jsx`)
- About profile → Portfolio content: reads (evidence: `src/sections/About.jsx`)
- About profile → Section heading: uses (evidence: `src/sections/About.jsx`)
- About profile → Text reveal: uses (evidence: `src/sections/About.jsx`)
- Project showcase → Portfolio content: reads (evidence: `src/sections/Work.jsx`)
- Project showcase → Section heading: uses (evidence: `src/sections/Work.jsx`)
- Project showcase → Animated button: uses (evidence: `src/sections/Work.jsx`)
- Project showcase → Cursor preview: uses (evidence: `src/sections/Work.jsx`)
- Project showcase → Glow card: uses (evidence: `src/sections/Work.jsx`)
- Skills showcase → Portfolio content: reads (evidence: `src/sections/Skills.jsx`)
- Skills showcase → Section heading: uses (evidence: `src/sections/Skills.jsx`)
- Skills showcase → Highlight grid: uses (evidence: `src/sections/Skills.jsx`)
- Skills showcase → Logo slider: uses (evidence: `src/sections/Skills.jsx`)
- Services → Portfolio content: reads (evidence: `src/sections/Services.jsx`)
- Services → Section heading: uses (evidence: `src/sections/Services.jsx`)
- Services → Animated button: uses (evidence: `src/sections/Services.jsx`)
- Services → Glow card: uses (evidence: `src/sections/Services.jsx`)
- Journey timeline → Portfolio content: reads (evidence: `src/sections/Journey.jsx`)
- Journey timeline → Section heading: uses (evidence: `src/sections/Journey.jsx`)
- Journey timeline → Text reveal: uses (evidence: `src/sections/Journey.jsx`)
- Contact form → Portfolio content: reads (evidence: `src/sections/Contact.jsx`)
- Contact form → Section heading: uses (evidence: `src/sections/Contact.jsx`)
- Contact form → Animated button: uses (evidence: `src/sections/Contact.jsx`)
- Footer → Portfolio content: reads (evidence: `src/sections/Footer.jsx`)
- Section heading → Text reveal: renders (evidence: `src/components/SectionHeading.jsx`)
