# nitinprashar1/portfolio architecture

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

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

## Overview

This is a single-page portfolio/personal site with a cinematic zipper reveal and motion-driven visual polish. The user-facing flow is loading the page, optionally opening the intro by drag, scroll, swipe, or tap, then exploring portfolio sections with scroll reveals, counters, navigation highlighting, card interactions, and a skills marquee. JavaScript excerpts support the intro, effects, and cursor trail; HTML structure and styling details are not sampled, so links to those assets are omitted.

Main entry points: [`index.html`](https://github.com/nitinprashar1/portfolio/blob/main/index.html) (Portfolio page), [`js/intro.js`](https://github.com/nitinprashar1/portfolio/blob/main/js/intro.js) (Zipper intro), [`js/cursor-trail.js`](https://github.com/nitinprashar1/portfolio/blob/main/js/cursor-trail.js) (Neon cursor trail), [`js/effects.js`](https://github.com/nitinprashar1/portfolio/blob/main/js/effects.js) (Page effects)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_intro["Intro experience"]
  node_zipper["Zipper intro<br/>[intro.js]"]
  node_trail["Neon cursor trail<br/>[cursor-trail.js]"]
end

subgraph group_interaction["Page interactions"]
  node_effects["Page effects<br/>[effects.js]"]
end

node_visitor(("Site visitor"))
node_site["Portfolio page<br/>[index.html]"]
node_gsap["GSAP animation"]
node_styles["Visual styling"]

node_visitor -->|"opens"| node_site
node_site -.->|"loads"| node_zipper
node_zipper -->|"animates with"| node_gsap
node_site -.->|"loads"| node_effects
node_site -.->|"loads"| node_trail
node_visitor -->|"operates"| node_zipper
node_zipper -->|"reveals"| node_site
node_visitor -->|"interacts"| node_effects
node_effects -->|"enhances"| node_site
node_visitor -->|"moves pointer"| node_trail
node_trail -->|"draws on canvas"| node_site

click node_site "https://github.com/nitinprashar1/portfolio/blob/main/index.html"
click node_zipper "https://github.com/nitinprashar1/portfolio/blob/main/js/intro.js"
click node_trail "https://github.com/nitinprashar1/portfolio/blob/main/js/cursor-trail.js"
click node_effects "https://github.com/nitinprashar1/portfolio/blob/main/js/effects.js"
click node_styles "https://github.com/nitinprashar1/portfolio/tree/main/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_zipper,node_trail toneBlue
class node_effects toneAmber
class node_visitor,node_gsap toneIndigo
class node_site,node_styles toneTeal
```

## Components

### Intro experience

- [Zipper intro](https://github.com/nitinprashar1/portfolio/blob/main/js/intro.js): `js/intro.js`
- [Neon cursor trail](https://github.com/nitinprashar1/portfolio/blob/main/js/cursor-trail.js): `js/cursor-trail.js`

### Page interactions

- [Page effects](https://github.com/nitinprashar1/portfolio/blob/main/js/effects.js): `js/effects.js`

### Other components

- **Site visitor**
- [Portfolio page](https://github.com/nitinprashar1/portfolio/blob/main/index.html): `index.html`
- **GSAP animation**
- [Visual styling](https://github.com/nitinprashar1/portfolio/tree/main/css): `css`

## Connections

- Site visitor → Portfolio page: opens
- Portfolio page → Zipper intro: loads
- Zipper intro → GSAP animation: animates with (evidence: `js/intro.js`)
- Portfolio page → Page effects: loads
- Portfolio page → Neon cursor trail: loads
- Site visitor → Zipper intro: operates (evidence: `js/intro.js`)
- Zipper intro → Portfolio page: reveals (evidence: `js/intro.js`)
- Site visitor → Page effects: interacts (evidence: `js/effects.js`)
- Page effects → Portfolio page: enhances (evidence: `js/effects.js`)
- Site visitor → Neon cursor trail: moves pointer (evidence: `js/cursor-trail.js`)
- Neon cursor trail → Portfolio page: draws on canvas (evidence: `js/cursor-trail.js`)
