# dwarkasuthar/portfolio architecture

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

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

## Overview

This is a personal developer portfolio site. Visitors browse an introduction, biography, work history, projects, skills, and contact options; the home page composes these sections and coordinates the theme state passed to the navigation and content. The graph includes the shared in-view animation hook used by several sections. Supporting components such as the loader and scroll-to-top control are present in the tree, but their runtime wiring is not shown in the excerpts, so they are not connected here.

Main entry points: [`src/app/page.tsx`](https://github.com/dwarkasuthar/portfolio/blob/main/src/app/page.tsx) (Home page), [`src/components/useInView.ts`](https://github.com/dwarkasuthar/portfolio/blob/main/src/components/useInView.ts) (In-view hook), [`src/components/About.tsx`](https://github.com/dwarkasuthar/portfolio/blob/main/src/components/About.tsx) (About profile), [`src/components/Experience.tsx`](https://github.com/dwarkasuthar/portfolio/blob/main/src/components/Experience.tsx) (Experience)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Site shell"]
  node_layout["Root layout<br/>[layout.tsx]"]
  node_home["Home page<br/>[page.tsx]"]
  node_inview["In-view hook<br/>[useInView.ts]"]
end

subgraph group_profile["Profile sections"]
  node_hero["Introduction<br/>[Hero.tsx]"]
  node_about["About profile<br/>[About.tsx]"]
end

subgraph group_work["Work showcase"]
  node_experience["Experience<br/>[Experience.tsx]"]
  node_projects["Projects<br/>[Projects.tsx]"]
  node_skills["Skills<br/>[Skills.tsx]"]
end

subgraph group_contact["Contact and navigation"]
  node_contact["Contact options<br/>[Contact.tsx]"]
  node_navbar["Navigation<br/>[Navbar.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
end

node_visitor(("Visitor"))

node_visitor -->|"views site"| node_home
node_layout -->|"renders children"| node_home
node_home -->|"renders"| node_navbar
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_about
node_home -->|"renders"| node_experience
node_home -->|"renders"| node_projects
node_home -->|"renders"| node_skills
node_home -->|"renders"| node_contact
node_home -->|"renders"| node_footer
node_about -->|"uses"| node_inview
node_experience -->|"uses"| node_inview
node_projects -->|"uses"| node_inview
node_skills -->|"uses"| node_inview
node_contact -->|"uses"| node_inview

click node_layout "https://github.com/dwarkasuthar/portfolio/blob/main/src/app/layout.tsx"
click node_home "https://github.com/dwarkasuthar/portfolio/blob/main/src/app/page.tsx"
click node_hero "https://github.com/dwarkasuthar/portfolio/blob/main/src/components/Hero.tsx"
click node_about "https://github.com/dwarkasuthar/portfolio/blob/main/src/components/About.tsx"
click node_experience "https://github.com/dwarkasuthar/portfolio/blob/main/src/components/Experience.tsx"
click node_projects "https://github.com/dwarkasuthar/portfolio/blob/main/src/components/Projects.tsx"
click node_skills "https://github.com/dwarkasuthar/portfolio/blob/main/src/components/Skills.tsx"
click node_contact "https://github.com/dwarkasuthar/portfolio/blob/main/src/components/Contact.tsx"
click node_navbar "https://github.com/dwarkasuthar/portfolio/blob/main/src/components/Navbar.tsx"
click node_footer "https://github.com/dwarkasuthar/portfolio/blob/main/src/components/Footer.tsx"
click node_inview "https://github.com/dwarkasuthar/portfolio/blob/main/src/components/useInView.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_layout,node_home,node_inview toneBlue
class node_hero,node_about toneAmber
class node_experience,node_projects,node_skills toneMint
class node_contact,node_navbar,node_footer toneRose
class node_visitor toneIndigo
```

## Components

### Site shell

- [Root layout](https://github.com/dwarkasuthar/portfolio/blob/main/src/app/layout.tsx): `src/app/layout.tsx`
- [Home page](https://github.com/dwarkasuthar/portfolio/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [In-view hook](https://github.com/dwarkasuthar/portfolio/blob/main/src/components/useInView.ts): `src/components/useInView.ts`

### Profile sections

- [Introduction](https://github.com/dwarkasuthar/portfolio/blob/main/src/components/Hero.tsx): `src/components/Hero.tsx`
- [About profile](https://github.com/dwarkasuthar/portfolio/blob/main/src/components/About.tsx): `src/components/About.tsx`

### Work showcase

- [Experience](https://github.com/dwarkasuthar/portfolio/blob/main/src/components/Experience.tsx): `src/components/Experience.tsx`
- [Projects](https://github.com/dwarkasuthar/portfolio/blob/main/src/components/Projects.tsx): `src/components/Projects.tsx`
- [Skills](https://github.com/dwarkasuthar/portfolio/blob/main/src/components/Skills.tsx): `src/components/Skills.tsx`

### Contact and navigation

- [Contact options](https://github.com/dwarkasuthar/portfolio/blob/main/src/components/Contact.tsx): `src/components/Contact.tsx`
- [Navigation](https://github.com/dwarkasuthar/portfolio/blob/main/src/components/Navbar.tsx): `src/components/Navbar.tsx`
- [Footer](https://github.com/dwarkasuthar/portfolio/blob/main/src/components/Footer.tsx): `src/components/Footer.tsx`

### Other components

- **Visitor**

## Connections

- Visitor → Home page: views site
- Root layout → Home page: renders children (evidence: `src/app/layout.tsx`)
- Home page → Navigation: renders (evidence: `src/app/page.tsx`)
- Home page → Introduction: renders (evidence: `src/app/page.tsx`)
- Home page → About profile: renders (evidence: `src/app/page.tsx`)
- Home page → Experience: renders (evidence: `src/app/page.tsx`)
- Home page → Projects: renders (evidence: `src/app/page.tsx`)
- Home page → Skills: renders (evidence: `src/app/page.tsx`)
- Home page → Contact options: renders (evidence: `src/app/page.tsx`)
- Home page → Footer: renders (evidence: `src/app/page.tsx`)
- About profile → In-view hook: uses (evidence: `src/components/About.tsx`)
- Experience → In-view hook: uses (evidence: `src/components/Experience.tsx`)
- Projects → In-view hook: uses (evidence: `src/components/Projects.tsx`)
- Skills → In-view hook: uses (evidence: `src/components/Skills.tsx`)
- Contact options → In-view hook: uses (evidence: `src/components/Contact.tsx`)
