# vivekthecreator/portfolio-website architecture

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

## Overview

This is a small portfolio website with three client-side effects: a hover-driven project image slideshow, an intersection-based reveal, and scroll-triggered reveals. The JavaScript excerpt shows these behaviors and their DOM selectors, but the HTML and CSS were not provided, so their contents and asset/style wiring cannot be confirmed.

Main entry points: [`index.html`](https://github.com/vivekthecreator/portfolio-website/blob/main/index.html) (Portfolio Page), [`portfolio.js`](https://github.com/vivekthecreator/portfolio-website/blob/main/portfolio.js) (Project Slideshow)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_visitor(("Visitor"))
node_browser["Browser Events"]
node_page["Portfolio Page<br/>[index.html]"]
node_styles["Page Styling<br/>[portfolio.css]"]
node_slideshow["Project Slideshow<br/>[portfolio.js]"]
node_intersection["Intersection Reveals<br/>[portfolio.js]"]
node_scroll["Scroll Reveals<br/>[portfolio.js]"]

node_visitor -.->|"views"| node_page
node_slideshow -->|"queries DOM"| node_page
node_intersection -->|"queries DOM"| node_page
node_scroll -->|"queries DOM"| node_page
node_browser -->|"dispatches hover"| node_slideshow
node_browser -->|"dispatches visibility"| node_intersection
node_browser -->|"dispatches scroll"| node_scroll

click node_page "https://github.com/vivekthecreator/portfolio-website/blob/main/index.html"
click node_styles "https://github.com/vivekthecreator/portfolio-website/blob/main/portfolio.css"
click node_slideshow "https://github.com/vivekthecreator/portfolio-website/blob/main/portfolio.js"
click node_intersection "https://github.com/vivekthecreator/portfolio-website/blob/main/portfolio.js"
click node_scroll "https://github.com/vivekthecreator/portfolio-website/blob/main/portfolio.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_visitor toneIndigo
class node_browser toneBlue
class node_page,node_styles,node_slideshow,node_intersection,node_scroll toneTeal
```

## Components

### Other components

- **Visitor**
- **Browser Events**
- [Portfolio Page](https://github.com/vivekthecreator/portfolio-website/blob/main/index.html): `index.html`
- [Page Styling](https://github.com/vivekthecreator/portfolio-website/blob/main/portfolio.css): `portfolio.css`
- [Project Slideshow](https://github.com/vivekthecreator/portfolio-website/blob/main/portfolio.js): `portfolio.js`
- [Intersection Reveals](https://github.com/vivekthecreator/portfolio-website/blob/main/portfolio.js): `portfolio.js`
- [Scroll Reveals](https://github.com/vivekthecreator/portfolio-website/blob/main/portfolio.js): `portfolio.js`

## Connections

- Visitor → Portfolio Page: views
- Project Slideshow → Portfolio Page: queries DOM (evidence: `portfolio.js`)
- Intersection Reveals → Portfolio Page: queries DOM (evidence: `portfolio.js`)
- Scroll Reveals → Portfolio Page: queries DOM (evidence: `portfolio.js`)
- Browser Events → Project Slideshow: dispatches hover (evidence: `portfolio.js`)
- Browser Events → Intersection Reveals: dispatches visibility (evidence: `portfolio.js`)
- Browser Events → Scroll Reveals: dispatches scroll (evidence: `portfolio.js`)
