# vybhav031/animated-portfolio architecture

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

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

## Overview

This is a Next.js single-page personal portfolio. Visitors enter at the home page, browse animated profile, skills, and project sections, then use project links or submit the contact form. The graph preserves the documented project and skills data branches and the EmailJS contact flow. Some component-to-component wiring is visible in the page excerpt; other relationships are taken from SOURCE INDEX references. Unsampled implementation details are not inferred.

Main entry points: [`src/pages/index.tsx`](https://github.com/vybhav031/animated-portfolio/blob/main/src/pages/index.tsx) (Home page), [`src/components/layout/sidebar/Sidebar.tsx`](https://github.com/vybhav031/animated-portfolio/blob/main/src/components/layout/sidebar/Sidebar.tsx) (Mobile sidebar), [`src/components/home/portfolio/Portfolio.tsx`](https://github.com/vybhav031/animated-portfolio/blob/main/src/components/home/portfolio/Portfolio.tsx) (Project gallery), [`src/components/home/Contact.tsx`](https://github.com/vybhav031/animated-portfolio/blob/main/src/components/home/Contact.tsx) (Contact form)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_presentation["Portfolio presentation"]
  node_homepage["Home page<br/>[index.tsx]"]
  node_cursor["Animated cursor<br/>[Cursor.tsx]"]
  node_navbar["Social navbar<br/>[Navbar.tsx]"]
  node_sidebar["Mobile sidebar<br/>[Sidebar.tsx]"]
  node_sidebarlinks["Sidebar links<br/>[Links.tsx]"]
  node_toggle["Sidebar toggle<br/>[ToggleButton.tsx]"]
  node_hero["Hero section<br/>[Hero.tsx]"]
  node_about["About section<br/>[About.tsx]"]
  node_parallax["Parallax sections<br/>[Parallax.tsx]"]
end

subgraph group_content["Portfolio content"]
  node_skills["Skills section<br/>[Services.tsx]"]
  node_skillsdata["Skills data<br/>[services.data.ts]"]
  node_portfolio["Project gallery<br/>[Portfolio.tsx]"]
  node_projectcard["Project details<br/>[ProjectDetails.tsx]"]
  node_projectdata["Project data<br/>[portfolio.data.ts]"]
  node_visitorlinks{{"Project destinations"}}
end

subgraph group_contact["Contact delivery"]
  node_contactform["Contact form<br/>[Contact.tsx]"]
  node_contactdata["Contact details<br/>[contact.data.ts]"]
  node_emailutil["Email sender<br/>[email.util.ts]"]
  node_emailjs{{"EmailJS service"}}
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_homepage
node_homepage -->|"renders"| node_cursor
node_homepage -->|"renders"| node_navbar
node_homepage -->|"renders"| node_hero
node_homepage -->|"renders"| node_about
node_homepage -->|"renders"| node_parallax
node_homepage -->|"renders"| node_skills
node_homepage -->|"renders"| node_portfolio
node_homepage -->|"renders"| node_contactform
node_navbar -->|"renders"| node_sidebar
node_sidebar -->|"renders"| node_sidebarlinks
node_sidebar -->|"renders"| node_toggle
node_sidebarlinks -.->|"offers navigation"| node_visitor
node_skills -->|"reads"| node_skillsdata
node_portfolio -->|"renders"| node_projectcard
node_portfolio -->|"reads"| node_projectdata
node_projectcard -->|"links to projects"| node_visitorlinks
node_contactform -->|"reads"| node_contactdata
node_contactform -->|"submits form"| node_emailutil
node_emailutil -->|"sends email"| node_emailjs

click node_homepage "https://github.com/vybhav031/animated-portfolio/blob/main/src/pages/index.tsx"
click node_cursor "https://github.com/vybhav031/animated-portfolio/blob/main/src/components/_shared/Cursor.tsx"
click node_navbar "https://github.com/vybhav031/animated-portfolio/blob/main/src/components/layout/Navbar.tsx"
click node_sidebar "https://github.com/vybhav031/animated-portfolio/blob/main/src/components/layout/sidebar/Sidebar.tsx"
click node_sidebarlinks "https://github.com/vybhav031/animated-portfolio/blob/main/src/components/layout/sidebar/Links.tsx"
click node_toggle "https://github.com/vybhav031/animated-portfolio/blob/main/src/components/layout/sidebar/ToggleButton.tsx"
click node_hero "https://github.com/vybhav031/animated-portfolio/blob/main/src/components/home/Hero.tsx"
click node_about "https://github.com/vybhav031/animated-portfolio/blob/main/src/components/home/About.tsx"
click node_parallax "https://github.com/vybhav031/animated-portfolio/blob/main/src/components/home/Parallax.tsx"
click node_skills "https://github.com/vybhav031/animated-portfolio/blob/main/src/components/home/Services.tsx"
click node_skillsdata "https://github.com/vybhav031/animated-portfolio/blob/main/src/data/services.data.ts"
click node_portfolio "https://github.com/vybhav031/animated-portfolio/blob/main/src/components/home/portfolio/Portfolio.tsx"
click node_projectcard "https://github.com/vybhav031/animated-portfolio/blob/main/src/components/home/portfolio/ProjectDetails.tsx"
click node_projectdata "https://github.com/vybhav031/animated-portfolio/blob/main/src/data/portfolio.data.ts"
click node_contactform "https://github.com/vybhav031/animated-portfolio/blob/main/src/components/home/Contact.tsx"
click node_contactdata "https://github.com/vybhav031/animated-portfolio/blob/main/src/data/contact.data.ts"
click node_emailutil "https://github.com/vybhav031/animated-portfolio/blob/main/src/utils/email.util.ts"

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_homepage,node_cursor,node_navbar,node_sidebar,node_sidebarlinks,node_toggle,node_hero,node_about,node_parallax toneBlue
class node_skills,node_skillsdata,node_portfolio,node_projectcard,node_projectdata,node_visitorlinks toneAmber
class node_contactform,node_contactdata,node_emailutil,node_emailjs toneMint
class node_visitor toneIndigo
```

## Components

### Portfolio presentation

- [Home page](https://github.com/vybhav031/animated-portfolio/blob/main/src/pages/index.tsx): `src/pages/index.tsx`
- [Animated cursor](https://github.com/vybhav031/animated-portfolio/blob/main/src/components/_shared/Cursor.tsx): `src/components/_shared/Cursor.tsx`
- [Social navbar](https://github.com/vybhav031/animated-portfolio/blob/main/src/components/layout/Navbar.tsx): `src/components/layout/Navbar.tsx`
- [Mobile sidebar](https://github.com/vybhav031/animated-portfolio/blob/main/src/components/layout/sidebar/Sidebar.tsx): `src/components/layout/sidebar/Sidebar.tsx`
- [Sidebar links](https://github.com/vybhav031/animated-portfolio/blob/main/src/components/layout/sidebar/Links.tsx): `src/components/layout/sidebar/Links.tsx`
- [Sidebar toggle](https://github.com/vybhav031/animated-portfolio/blob/main/src/components/layout/sidebar/ToggleButton.tsx): `src/components/layout/sidebar/ToggleButton.tsx`
- [Hero section](https://github.com/vybhav031/animated-portfolio/blob/main/src/components/home/Hero.tsx): `src/components/home/Hero.tsx`
- [About section](https://github.com/vybhav031/animated-portfolio/blob/main/src/components/home/About.tsx): `src/components/home/About.tsx`
- [Parallax sections](https://github.com/vybhav031/animated-portfolio/blob/main/src/components/home/Parallax.tsx): `src/components/home/Parallax.tsx`

### Portfolio content

- [Skills section](https://github.com/vybhav031/animated-portfolio/blob/main/src/components/home/Services.tsx): `src/components/home/Services.tsx`
- [Skills data](https://github.com/vybhav031/animated-portfolio/blob/main/src/data/services.data.ts): `src/data/services.data.ts`
- [Project gallery](https://github.com/vybhav031/animated-portfolio/blob/main/src/components/home/portfolio/Portfolio.tsx): `src/components/home/portfolio/Portfolio.tsx`
- [Project details](https://github.com/vybhav031/animated-portfolio/blob/main/src/components/home/portfolio/ProjectDetails.tsx): `src/components/home/portfolio/ProjectDetails.tsx`
- [Project data](https://github.com/vybhav031/animated-portfolio/blob/main/src/data/portfolio.data.ts): `src/data/portfolio.data.ts`
- **Project destinations**

### Contact delivery

- [Contact form](https://github.com/vybhav031/animated-portfolio/blob/main/src/components/home/Contact.tsx): `src/components/home/Contact.tsx`
- [Contact details](https://github.com/vybhav031/animated-portfolio/blob/main/src/data/contact.data.ts): `src/data/contact.data.ts`
- [Email sender](https://github.com/vybhav031/animated-portfolio/blob/main/src/utils/email.util.ts): `src/utils/email.util.ts`
- **EmailJS service**

### Other components

- **Visitor**

## Connections

- Visitor → Home page: opens (evidence: `README.md`)
- Home page → Animated cursor: renders (evidence: `src/pages/index.tsx`)
- Home page → Social navbar: renders (evidence: `src/pages/index.tsx`)
- Home page → Hero section: renders (evidence: `src/pages/index.tsx`)
- Home page → About section: renders (evidence: `src/pages/index.tsx`)
- Home page → Parallax sections: renders (evidence: `src/pages/index.tsx`)
- Home page → Skills section: renders (evidence: `src/pages/index.tsx`)
- Home page → Project gallery: renders (evidence: `src/pages/index.tsx`)
- Home page → Contact form: renders (evidence: `src/pages/index.tsx`)
- Social navbar → Mobile sidebar: renders (evidence: `src/components/layout/Navbar.tsx`)
- Mobile sidebar → Sidebar links: renders (evidence: `src/components/layout/sidebar/Sidebar.tsx`)
- Mobile sidebar → Sidebar toggle: renders (evidence: `src/components/layout/sidebar/Sidebar.tsx`)
- Sidebar links → Visitor: offers navigation
- Skills section → Skills data: reads (evidence: `src/components/home/Services.tsx`)
- Project gallery → Project details: renders (evidence: `src/components/home/portfolio/Portfolio.tsx`)
- Project gallery → Project data: reads (evidence: `src/components/home/portfolio/Portfolio.tsx`)
- Project details → Project destinations: links to projects (evidence: `src/components/home/portfolio/ProjectDetails.tsx`)
- Contact form → Contact details: reads (evidence: `src/components/home/Contact.tsx`)
- Contact form → Email sender: submits form (evidence: `src/components/home/Contact.tsx`)
- Email sender → EmailJS service: sends email (evidence: `src/utils/email.util.ts`)
