# sumitbhukal0007/portfolio-v2 architecture

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

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

## Overview

This is a single-page personal portfolio. A visitor lands on the homepage, uses its navigation or scrolls through the hero, work, experience, skills, about and contact sections; the sections render editable content from a shared data module. The hero’s interactive workspace types code beside a preview, while navigation and theme controls provide interaction. Work and contact are currently empty and conditionally hidden. The graph follows the documented composition and excerpted imports; unsampled implementation details are not inferred.

Main entry points: [`app/page.tsx`](https://github.com/sumitbhukal0007/portfolio-v2/blob/main/app/page.tsx) (Homepage), [`data/portfolio.ts`](https://github.com/sumitbhukal0007/portfolio-v2/blob/main/data/portfolio.ts) (Portfolio data), [`components/navigation.tsx`](https://github.com/sumitbhukal0007/portfolio-v2/blob/main/components/navigation.tsx) (Navigation), [`components/section-heading.tsx`](https://github.com/sumitbhukal0007/portfolio-v2/blob/main/components/section-heading.tsx) (Section heading)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Page composition"]
  node_homepage["Homepage<br/>[page.tsx]"]
  node_hero["Hero<br/>[hero.tsx]"]
  node_projects["Projects<br/>[projects.tsx]"]
  node_experience["Experience<br/>[experience.tsx]"]
  node_skills["Skills<br/>[skills.tsx]"]
  node_about["About<br/>[about.tsx]"]
  node_contact["Contact<br/>[contact.tsx]"]
end

subgraph group_content["Portfolio content"]
  node_portfolio_data["Portfolio data<br/>[portfolio.ts]"]
end

subgraph group_interaction["Interactive controls"]
  node_navigation["Navigation<br/>[navigation.tsx]"]
  node_nav_links["Section links<br/>[nav-links.tsx]"]
  node_theme_toggle["Theme toggle<br/>[theme-toggle.tsx]"]
  node_hero_workspace["Hero workspace<br/>[hero-workspace.tsx]"]
  node_theme_provider["Theme provider<br/>[theme-provider.tsx]"]
end

subgraph group_presentation["Shared presentation"]
  node_layout["Root layout<br/>[layout.tsx]"]
  node_section_heading["Section heading"]
  node_styles["Theme styles<br/>[globals.css]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_homepage
node_homepage -->|"renders"| node_navigation
node_homepage -->|"renders"| node_hero
node_homepage -->|"renders"| node_projects
node_homepage -->|"renders"| node_experience
node_homepage -->|"renders"| node_skills
node_homepage -->|"renders"| node_about
node_homepage -->|"renders"| node_contact
node_hero -->|"renders"| node_hero_workspace
node_navigation -->|"renders"| node_nav_links
node_navigation -->|"renders"| node_theme_toggle
node_layout -->|"wraps page"| node_theme_provider
node_layout -->|"loads styles"| node_styles
node_hero -->|"reads profile"| node_portfolio_data
node_hero_workspace -->|"reads profile"| node_portfolio_data
node_navigation -->|"reads navigation"| node_portfolio_data
node_projects -->|"reads projects"| node_portfolio_data
node_experience -->|"reads experience"| node_portfolio_data
node_skills -->|"reads skills"| node_portfolio_data
node_about -->|"reads about"| node_portfolio_data
node_contact -->|"reads contact"| node_portfolio_data
node_projects -->|"renders"| node_section_heading
node_experience -->|"renders"| node_section_heading
node_about -->|"renders"| node_section_heading
node_contact -->|"renders"| node_section_heading

click node_homepage "https://github.com/sumitbhukal0007/portfolio-v2/blob/main/app/page.tsx"
click node_hero "https://github.com/sumitbhukal0007/portfolio-v2/blob/main/components/hero.tsx"
click node_projects "https://github.com/sumitbhukal0007/portfolio-v2/blob/main/components/projects.tsx"
click node_experience "https://github.com/sumitbhukal0007/portfolio-v2/blob/main/components/experience.tsx"
click node_skills "https://github.com/sumitbhukal0007/portfolio-v2/blob/main/components/skills.tsx"
click node_about "https://github.com/sumitbhukal0007/portfolio-v2/blob/main/components/about.tsx"
click node_contact "https://github.com/sumitbhukal0007/portfolio-v2/blob/main/components/contact.tsx"
click node_portfolio_data "https://github.com/sumitbhukal0007/portfolio-v2/blob/main/data/portfolio.ts"
click node_navigation "https://github.com/sumitbhukal0007/portfolio-v2/blob/main/components/navigation.tsx"
click node_nav_links "https://github.com/sumitbhukal0007/portfolio-v2/blob/main/components/nav-links.tsx"
click node_theme_toggle "https://github.com/sumitbhukal0007/portfolio-v2/blob/main/components/theme-toggle.tsx"
click node_hero_workspace "https://github.com/sumitbhukal0007/portfolio-v2/blob/main/components/hero-workspace.tsx"
click node_theme_provider "https://github.com/sumitbhukal0007/portfolio-v2/blob/main/components/theme-provider.tsx"
click node_layout "https://github.com/sumitbhukal0007/portfolio-v2/blob/main/app/layout.tsx"
click node_section_heading "https://github.com/sumitbhukal0007/portfolio-v2/blob/main/components/section-heading.tsx"
click node_styles "https://github.com/sumitbhukal0007/portfolio-v2/blob/main/app/globals.css"

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_hero,node_projects,node_experience,node_skills,node_about,node_contact toneBlue
class node_portfolio_data toneAmber
class node_navigation,node_nav_links,node_theme_toggle,node_hero_workspace,node_theme_provider toneMint
class node_layout,node_section_heading,node_styles toneRose
class node_visitor toneIndigo
```

## Components

### Page composition

- [Homepage](https://github.com/sumitbhukal0007/portfolio-v2/blob/main/app/page.tsx): `app/page.tsx`
- [Hero](https://github.com/sumitbhukal0007/portfolio-v2/blob/main/components/hero.tsx): `components/hero.tsx`
- [Projects](https://github.com/sumitbhukal0007/portfolio-v2/blob/main/components/projects.tsx): `components/projects.tsx`
- [Experience](https://github.com/sumitbhukal0007/portfolio-v2/blob/main/components/experience.tsx): `components/experience.tsx`
- [Skills](https://github.com/sumitbhukal0007/portfolio-v2/blob/main/components/skills.tsx): `components/skills.tsx`
- [About](https://github.com/sumitbhukal0007/portfolio-v2/blob/main/components/about.tsx): `components/about.tsx`
- [Contact](https://github.com/sumitbhukal0007/portfolio-v2/blob/main/components/contact.tsx): `components/contact.tsx`

### Portfolio content

- [Portfolio data](https://github.com/sumitbhukal0007/portfolio-v2/blob/main/data/portfolio.ts): `data/portfolio.ts`

### Interactive controls

- [Navigation](https://github.com/sumitbhukal0007/portfolio-v2/blob/main/components/navigation.tsx): `components/navigation.tsx`
- [Section links](https://github.com/sumitbhukal0007/portfolio-v2/blob/main/components/nav-links.tsx): `components/nav-links.tsx`
- [Theme toggle](https://github.com/sumitbhukal0007/portfolio-v2/blob/main/components/theme-toggle.tsx): `components/theme-toggle.tsx`
- [Hero workspace](https://github.com/sumitbhukal0007/portfolio-v2/blob/main/components/hero-workspace.tsx): `components/hero-workspace.tsx`
- [Theme provider](https://github.com/sumitbhukal0007/portfolio-v2/blob/main/components/theme-provider.tsx): `components/theme-provider.tsx`

### Shared presentation

- [Root layout](https://github.com/sumitbhukal0007/portfolio-v2/blob/main/app/layout.tsx): `app/layout.tsx`
- [Section heading](https://github.com/sumitbhukal0007/portfolio-v2/blob/main/components/section-heading.tsx): `components/section-heading.tsx`
- [Theme styles](https://github.com/sumitbhukal0007/portfolio-v2/blob/main/app/globals.css): `app/globals.css`

### Other components

- **Visitor**

## Connections

- Visitor → Homepage: opens (evidence: `README.md`)
- Homepage → Navigation: renders (evidence: `app/page.tsx`)
- Homepage → Hero: renders (evidence: `app/page.tsx`)
- Homepage → Projects: renders (evidence: `app/page.tsx`)
- Homepage → Experience: renders (evidence: `app/page.tsx`)
- Homepage → Skills: renders (evidence: `app/page.tsx`)
- Homepage → About: renders (evidence: `app/page.tsx`)
- Homepage → Contact: renders (evidence: `app/page.tsx`)
- Hero → Hero workspace: renders (evidence: `components/hero.tsx`)
- Navigation → Section links: renders (evidence: `components/navigation.tsx`)
- Navigation → Theme toggle: renders (evidence: `components/navigation.tsx`)
- Root layout → Theme provider: wraps page (evidence: `app/layout.tsx`)
- Root layout → Theme styles: loads styles (evidence: `app/layout.tsx`)
- Hero → Portfolio data: reads profile (evidence: `components/hero.tsx`)
- Hero workspace → Portfolio data: reads profile (evidence: `components/hero-workspace.tsx`)
- Navigation → Portfolio data: reads navigation (evidence: `components/navigation.tsx`)
- Projects → Portfolio data: reads projects (evidence: `components/projects.tsx`)
- Experience → Portfolio data: reads experience (evidence: `components/experience.tsx`)
- Skills → Portfolio data: reads skills (evidence: `components/skills.tsx`)
- About → Portfolio data: reads about (evidence: `components/about.tsx`)
- Contact → Portfolio data: reads contact (evidence: `components/contact.tsx`)
- Projects → Section heading: renders (evidence: `components/projects.tsx`)
- Experience → Section heading: renders (evidence: `components/experience.tsx`)
- About → Section heading: renders (evidence: `components/about.tsx`)
- Contact → Section heading: renders (evidence: `components/contact.tsx`)
