# bhavishek1/portfolio architecture

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

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

## Overview

This is a client-side personal portfolio: visitors browse an introduction, background, experience, projects, and contact information. The main interaction is selecting a corner section, with JavaScript animating the hero and revealing its content; separate scripts provide a persistent color-mode toggle and project slideshow. The README documents the portfolio sections, while the excerpts show these interactive behaviors. The HTML and styling are represented at their documented role, but their internal wiring is not shown in the supplied excerpts.

Main entry points: [`index.html`](https://github.com/bhavishek1/portfolio/blob/main/index.html) (Portfolio site), [`js/animation.js`](https://github.com/bhavishek1/portfolio/blob/main/js/animation.js) (Corner sections), [`js/color-mode.js`](https://github.com/bhavishek1/portfolio/blob/main/js/color-mode.js) (Color mode), [`js/project-slideshow.js`](https://github.com/bhavishek1/portfolio/blob/main/js/project-slideshow.js) (Project slideshow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portfolio["Portfolio content"]
  node_portfolio_site["Portfolio site<br/>[index.html]"]
  node_home["Home intro<br/>[index.html]"]
  node_about["About<br/>[index.html]"]
  node_experience["Experience<br/>[index.html]"]
  node_projects["Projects<br/>[index.html]"]
  node_contact["Contact<br/>[index.html]"]
end

subgraph group_interaction["Interactive behavior"]
  node_corner_interaction["Corner sections<br/>[animation.js]"]
  node_hero_animation["Hero animation<br/>[animation.js]"]
  node_color_mode["Color mode<br/>[color-mode.js]"]
  node_mode_storage[("Mode preference")]
  node_project_slideshow["Project slideshow"]
end

subgraph group_presentation["Presentation and assets"]
  node_site_styles["Site styling<br/>[style.css]"]
  node_animation_styles["Animation styles<br/>[animation.css]"]
  node_mode_styles["Color styles<br/>[color-mode.css]"]
  node_portfolio_assets["Portfolio assets"]
  node_animation_assets["Animation frames"]
end

node_visitor(("Visitor"))

node_visitor -->|"browses"| node_portfolio_site
node_portfolio_site -->|"presents"| node_home
node_portfolio_site -->|"presents"| node_about
node_portfolio_site -->|"presents"| node_experience
node_portfolio_site -->|"showcases"| node_projects
node_portfolio_site -->|"offers"| node_contact
node_corner_interaction -->|"plays"| node_hero_animation
node_corner_interaction -->|"reveals"| node_about
node_corner_interaction -->|"reveals"| node_experience
node_corner_interaction -->|"reveals"| node_projects
node_corner_interaction -->|"reveals"| node_contact
node_color_mode -->|"reads and writes"| node_mode_storage
node_project_slideshow -->|"shows slides"| node_projects

click node_portfolio_site "https://github.com/bhavishek1/portfolio/blob/main/index.html"
click node_home "https://github.com/bhavishek1/portfolio/blob/main/index.html"
click node_about "https://github.com/bhavishek1/portfolio/blob/main/index.html"
click node_experience "https://github.com/bhavishek1/portfolio/blob/main/index.html"
click node_projects "https://github.com/bhavishek1/portfolio/blob/main/index.html"
click node_contact "https://github.com/bhavishek1/portfolio/blob/main/index.html"
click node_corner_interaction "https://github.com/bhavishek1/portfolio/blob/main/js/animation.js"
click node_hero_animation "https://github.com/bhavishek1/portfolio/blob/main/js/animation.js"
click node_color_mode "https://github.com/bhavishek1/portfolio/blob/main/js/color-mode.js"
click node_project_slideshow "https://github.com/bhavishek1/portfolio/blob/main/js/project-slideshow.js"
click node_site_styles "https://github.com/bhavishek1/portfolio/blob/main/css/style.css"
click node_animation_styles "https://github.com/bhavishek1/portfolio/blob/main/css/animation.css"
click node_mode_styles "https://github.com/bhavishek1/portfolio/blob/main/css/color-mode.css"
click node_portfolio_assets "https://github.com/bhavishek1/portfolio/tree/main/assets"
click node_animation_assets "https://github.com/bhavishek1/portfolio/tree/main/assets/face-animation-dark"

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_site,node_home,node_about,node_experience,node_projects,node_contact toneBlue
class node_corner_interaction,node_hero_animation,node_color_mode,node_mode_storage,node_project_slideshow toneAmber
class node_site_styles,node_animation_styles,node_mode_styles,node_portfolio_assets,node_animation_assets toneMint
class node_visitor toneIndigo
```

## Components

### Portfolio content

- [Portfolio site](https://github.com/bhavishek1/portfolio/blob/main/index.html): `index.html`
- [Home intro](https://github.com/bhavishek1/portfolio/blob/main/index.html): `index.html`
- [About](https://github.com/bhavishek1/portfolio/blob/main/index.html): `index.html`
- [Experience](https://github.com/bhavishek1/portfolio/blob/main/index.html): `index.html`
- [Projects](https://github.com/bhavishek1/portfolio/blob/main/index.html): `index.html`
- [Contact](https://github.com/bhavishek1/portfolio/blob/main/index.html): `index.html`

### Interactive behavior

- [Corner sections](https://github.com/bhavishek1/portfolio/blob/main/js/animation.js): `js/animation.js`
- [Hero animation](https://github.com/bhavishek1/portfolio/blob/main/js/animation.js): `js/animation.js`
- [Color mode](https://github.com/bhavishek1/portfolio/blob/main/js/color-mode.js): `js/color-mode.js`
- **Mode preference**
- [Project slideshow](https://github.com/bhavishek1/portfolio/blob/main/js/project-slideshow.js): `js/project-slideshow.js`

### Presentation and assets

- [Site styling](https://github.com/bhavishek1/portfolio/blob/main/css/style.css): `css/style.css`
- [Animation styles](https://github.com/bhavishek1/portfolio/blob/main/css/animation.css): `css/animation.css`
- [Color styles](https://github.com/bhavishek1/portfolio/blob/main/css/color-mode.css): `css/color-mode.css`
- [Portfolio assets](https://github.com/bhavishek1/portfolio/tree/main/assets): `assets`
- [Animation frames](https://github.com/bhavishek1/portfolio/tree/main/assets/face-animation-dark): `assets/face-animation-dark`

### Other components

- **Visitor**

## Connections

- Visitor → Portfolio site: browses (evidence: `README.md`)
- Portfolio site → Home intro: presents (evidence: `README.md`)
- Portfolio site → About: presents (evidence: `README.md`)
- Portfolio site → Experience: presents (evidence: `README.md`)
- Portfolio site → Projects: showcases (evidence: `README.md`)
- Portfolio site → Contact: offers (evidence: `README.md`)
- Corner sections → Hero animation: plays (evidence: `js/animation.js`)
- Corner sections → About: reveals (evidence: `js/animation.js`)
- Corner sections → Experience: reveals (evidence: `js/animation.js`)
- Corner sections → Projects: reveals (evidence: `js/animation.js`)
- Corner sections → Contact: reveals (evidence: `js/animation.js`)
- Color mode → Mode preference: reads and writes (evidence: `js/color-mode.js`)
- Project slideshow → Projects: shows slides (evidence: `js/project-slideshow.js`)
