# mantukumar007/portfolio architecture

> Architecture diagram of the GitHub repository mantukumar007/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/mantukumar007/portfolio
- Repository: https://github.com/mantukumar007/portfolio

## Overview

This is a personal portfolio website. Visitors browse the portfolio, navigate its sections, filter projects, and can generate and download a resume as a Word document. The JavaScript also provides animation, theme, and interaction enhancements; the service worker caches site assets for offline use. The README is empty, and the available source excerpts do not show the page markup or all runtime wiring, so some relationships are omitted.

Main entry points: [`script.js`](https://github.com/mantukumar007/portfolio/blob/main/script.js) (Scroll animations), [`sw.js`](https://github.com/mantukumar007/portfolio/blob/main/sw.js) (Asset caching)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Portfolio site"]
  node_portfolio["Portfolio page<br/>[index.html]"]
  node_resume_asset["Resume PDF<br/>[MK Resume.pdf]"]
  node_site_assets["Site styling and metadata<br/>[style.css]"]
end

subgraph group_interaction["Visitor interactions"]
  node_navigation["Section navigation<br/>[script.js]"]
  node_portfolio_motion["Scroll animations<br/>[script.js]"]
  node_project_filter["Project filtering<br/>[script.js]"]
  node_resume_export["Resume generation and download<br/>[script.js]"]
  node_theme_effects["Theme and visual effects<br/>[script.js]"]
  node_sound_effects["Hover and click sounds<br/>[script.js]"]
end

subgraph group_offline["Offline support"]
  node_service_worker["Asset caching<br/>[sw.js]"]
  node_cache[("Browser cache")]
end

node_visitor(("Visitor"))
node_animation_library["GSAP and ScrollTrigger"]
node_sound_files["Hosted sound effects"]

node_visitor -->|"uses"| node_navigation
node_visitor -->|"filters projects"| node_project_filter
node_visitor -->|"requests download"| node_resume_export
node_visitor -->|"toggles theme"| node_theme_effects
node_portfolio_motion -->|"registers and animates"| node_animation_library
node_sound_effects -->|"plays audio"| node_sound_files
node_service_worker -->|"stores and matches"| node_cache

click node_portfolio "https://github.com/mantukumar007/portfolio/blob/main/index.html"
click node_resume_asset "https://github.com/mantukumar007/portfolio/blob/main/MK%20Resume.pdf"
click node_site_assets "https://github.com/mantukumar007/portfolio/blob/main/style.css"
click node_navigation "https://github.com/mantukumar007/portfolio/blob/main/script.js"
click node_portfolio_motion "https://github.com/mantukumar007/portfolio/blob/main/script.js"
click node_project_filter "https://github.com/mantukumar007/portfolio/blob/main/script.js"
click node_resume_export "https://github.com/mantukumar007/portfolio/blob/main/script.js"
click node_theme_effects "https://github.com/mantukumar007/portfolio/blob/main/script.js"
click node_sound_effects "https://github.com/mantukumar007/portfolio/blob/main/script.js"
click node_service_worker "https://github.com/mantukumar007/portfolio/blob/main/sw.js"

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_portfolio,node_resume_asset,node_site_assets toneBlue
class node_navigation,node_portfolio_motion,node_project_filter,node_resume_export,node_theme_effects,node_sound_effects toneAmber
class node_service_worker,node_cache toneMint
class node_visitor,node_animation_library,node_sound_files toneIndigo
```

## Components

### Portfolio site

- [Portfolio page](https://github.com/mantukumar007/portfolio/blob/main/index.html): `index.html`
- [Resume PDF](https://github.com/mantukumar007/portfolio/blob/main/MK%20Resume.pdf): `MK Resume.pdf`
- [Site styling and metadata](https://github.com/mantukumar007/portfolio/blob/main/style.css): `style.css`

### Visitor interactions

- [Section navigation](https://github.com/mantukumar007/portfolio/blob/main/script.js): `script.js`
- [Scroll animations](https://github.com/mantukumar007/portfolio/blob/main/script.js): `script.js`
- [Project filtering](https://github.com/mantukumar007/portfolio/blob/main/script.js): `script.js`
- [Resume generation and download](https://github.com/mantukumar007/portfolio/blob/main/script.js): `script.js`
- [Theme and visual effects](https://github.com/mantukumar007/portfolio/blob/main/script.js): `script.js`
- [Hover and click sounds](https://github.com/mantukumar007/portfolio/blob/main/script.js): `script.js`

### Offline support

- [Asset caching](https://github.com/mantukumar007/portfolio/blob/main/sw.js): `sw.js`
- **Browser cache**

### Other components

- **Visitor**
- **GSAP and ScrollTrigger**
- **Hosted sound effects**

## Connections

- Visitor → Section navigation: uses (evidence: `script.js`)
- Visitor → Project filtering: filters projects (evidence: `script.js`)
- Visitor → Resume generation and download: requests download (evidence: `script.js`)
- Visitor → Theme and visual effects: toggles theme (evidence: `script.js`)
- Scroll animations → GSAP and ScrollTrigger: registers and animates (evidence: `script.js`)
- Hover and click sounds → Hosted sound effects: plays audio (evidence: `script.js`)
- Asset caching → Browser cache: stores and matches (evidence: `sw.js`)
