# darshankarna/portfolio_site architecture

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

- Interactive diagram: https://gitdiagram.com/darshankarna/portfolio_site
- Repository: https://github.com/darshankarna/portfolio_site

## Overview

This is a single-page personal portfolio presented as a hand-painted Kathmandu street. Visitors explore portfolio sections and project case studies, then can send a contact message; the runtime also adds scroll-driven motion, an animated street, and an interactive walker. The README and sampled entry point establish the main wiring. The page markup and styles are documented but unsampled, so their detailed runtime links are not asserted.

Main entry points: [`src/main.js`](https://github.com/darshankarna/portfolio_site/blob/main/src/main.js) (App Bootstrap), [`src/motion/walker.js`](https://github.com/darshankarna/portfolio_site/blob/main/src/motion/walker.js) (Pixel Walker), [`src/ui/contact-form.js`](https://github.com/darshankarna/portfolio_site/blob/main/src/ui/contact-form.js) (Contact Form), [`src/motion/signs.js`](https://github.com/darshankarna/portfolio_site/blob/main/src/motion/signs.js) (Hanging Signs)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Portfolio Experience"]
  node_runtime["App Bootstrap<br/>[main.js]"]
  node_page["Portfolio Page<br/>[index.html]"]
end

subgraph group_motion["Street Motion"]
  node_hero["Hero Paint-In<br/>[hero.js]"]
  node_street["Sideways Street<br/>[street.js]"]
  node_scrollux["Scroll Effects<br/>[scroll-ux.js]"]
  node_depth["Parallax Depth<br/>[depth.js]"]
  node_signs["Hanging Signs<br/>[signs.js]"]
  node_walker["Pixel Walker<br/>[walker.js]"]
  node_smoothscroll["Smooth Scrolling<br/>[main.js]"]
end

subgraph group_interaction["Visitor Interactions"]
  node_cases["Case Dialogs<br/>[case-dialog.js]"]
  node_contact["Contact Form<br/>[contact-form.js]"]
  node_sectionfit["Section Fit<br/>[fit.js]"]
end

subgraph group_presentation["Presentation"]
  node_styles["Page Styles"]
end

node_visitor(("Visitor"))
node_web3forms{{"Web3Forms"}}

node_visitor -->|"visits"| node_runtime
node_runtime -->|"starts"| node_hero
node_runtime -->|"starts"| node_street
node_runtime -->|"starts"| node_scrollux
node_runtime -->|"starts"| node_depth
node_runtime -->|"starts"| node_signs
node_runtime -->|"starts"| node_walker
node_runtime -->|"starts"| node_cases
node_runtime -->|"starts"| node_contact
node_runtime -->|"starts"| node_sectionfit
node_runtime -->|"imports"| node_styles
node_runtime -->|"configures"| node_smoothscroll
node_walker -->|"reads angle, nudges"| node_signs
node_visitor -->|"views"| node_page
node_contact -->|"submits message"| node_web3forms

click node_runtime "https://github.com/darshankarna/portfolio_site/blob/main/src/main.js"
click node_page "https://github.com/darshankarna/portfolio_site/blob/main/index.html"
click node_hero "https://github.com/darshankarna/portfolio_site/blob/main/src/motion/hero.js"
click node_street "https://github.com/darshankarna/portfolio_site/blob/main/src/motion/street.js"
click node_scrollux "https://github.com/darshankarna/portfolio_site/blob/main/src/motion/scroll-ux.js"
click node_depth "https://github.com/darshankarna/portfolio_site/blob/main/src/motion/depth.js"
click node_signs "https://github.com/darshankarna/portfolio_site/blob/main/src/motion/signs.js"
click node_walker "https://github.com/darshankarna/portfolio_site/blob/main/src/motion/walker.js"
click node_smoothscroll "https://github.com/darshankarna/portfolio_site/blob/main/src/main.js"
click node_cases "https://github.com/darshankarna/portfolio_site/blob/main/src/ui/case-dialog.js"
click node_contact "https://github.com/darshankarna/portfolio_site/blob/main/src/ui/contact-form.js"
click node_sectionfit "https://github.com/darshankarna/portfolio_site/blob/main/src/ui/fit.js"
click node_styles "https://github.com/darshankarna/portfolio_site/tree/main/src/styles"

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_runtime,node_page toneBlue
class node_hero,node_street,node_scrollux,node_depth,node_signs,node_walker,node_smoothscroll toneAmber
class node_cases,node_contact,node_sectionfit toneMint
class node_styles toneRose
class node_visitor,node_web3forms toneIndigo
```

## Components

### Portfolio Experience

- [App Bootstrap](https://github.com/darshankarna/portfolio_site/blob/main/src/main.js): `src/main.js`
- [Portfolio Page](https://github.com/darshankarna/portfolio_site/blob/main/index.html): `index.html`

### Street Motion

- [Hero Paint-In](https://github.com/darshankarna/portfolio_site/blob/main/src/motion/hero.js): `src/motion/hero.js`
- [Sideways Street](https://github.com/darshankarna/portfolio_site/blob/main/src/motion/street.js): `src/motion/street.js`
- [Scroll Effects](https://github.com/darshankarna/portfolio_site/blob/main/src/motion/scroll-ux.js): `src/motion/scroll-ux.js`
- [Parallax Depth](https://github.com/darshankarna/portfolio_site/blob/main/src/motion/depth.js): `src/motion/depth.js`
- [Hanging Signs](https://github.com/darshankarna/portfolio_site/blob/main/src/motion/signs.js): `src/motion/signs.js`
- [Pixel Walker](https://github.com/darshankarna/portfolio_site/blob/main/src/motion/walker.js): `src/motion/walker.js`
- [Smooth Scrolling](https://github.com/darshankarna/portfolio_site/blob/main/src/main.js): `src/main.js`

### Visitor Interactions

- [Case Dialogs](https://github.com/darshankarna/portfolio_site/blob/main/src/ui/case-dialog.js): `src/ui/case-dialog.js`
- [Contact Form](https://github.com/darshankarna/portfolio_site/blob/main/src/ui/contact-form.js): `src/ui/contact-form.js`
- [Section Fit](https://github.com/darshankarna/portfolio_site/blob/main/src/ui/fit.js): `src/ui/fit.js`

### Presentation

- [Page Styles](https://github.com/darshankarna/portfolio_site/tree/main/src/styles): `src/styles`

### Other components

- **Visitor**
- **Web3Forms**

## Connections

- Visitor → App Bootstrap: visits (evidence: `README.md`)
- App Bootstrap → Hero Paint-In: starts (evidence: `src/main.js`)
- App Bootstrap → Sideways Street: starts (evidence: `src/main.js`)
- App Bootstrap → Scroll Effects: starts (evidence: `src/main.js`)
- App Bootstrap → Parallax Depth: starts (evidence: `src/main.js`)
- App Bootstrap → Hanging Signs: starts (evidence: `src/main.js`)
- App Bootstrap → Pixel Walker: starts (evidence: `src/main.js`)
- App Bootstrap → Case Dialogs: starts (evidence: `src/main.js`)
- App Bootstrap → Contact Form: starts (evidence: `src/main.js`)
- App Bootstrap → Section Fit: starts (evidence: `src/main.js`)
- App Bootstrap → Page Styles: imports (evidence: `src/main.js`)
- App Bootstrap → Smooth Scrolling: configures (evidence: `src/main.js`)
- Pixel Walker → Hanging Signs: reads angle, nudges (evidence: `src/motion/walker.js`)
- Visitor → Portfolio Page: views (evidence: `README.md`)
- Contact Form → Web3Forms: submits message (evidence: `src/ui/contact-form.js`)
