# lohit30/portfolio-website architecture

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

## Overview

This is a small personal portfolio website. A visitor explores the page and can use its interactive features, including project and resume modals and a contact form. The sampled JavaScript also implements navigation and visual effects, a rotating role description, theme persistence, and a date display. The HTML and CSS contents were not provided, so their wiring and presentation details are not described.

Main entry points: [`index.html`](https://github.com/lohit30/portfolio-website/blob/main/index.html) (Portfolio page), [`script.js`](https://github.com/lohit30/portfolio-website/blob/main/script.js) (Contact form)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_page["Portfolio page"]
  node_portfolio["Portfolio page<br/>[index.html]"]
  node_resume["Resume PDF<br/>[Lohit_S_Resume.pdf]"]
end

subgraph group_behavior["Page interactions"]
  node_scroll["Scroll effects<br/>[script.js]"]
  node_navigation["Navigation controls<br/>[script.js]"]
  node_contact["Contact form<br/>[script.js]"]
  node_role["Typing introduction<br/>[script.js]"]
  node_modals["Project and resume modals<br/>[script.js]"]
  node_theme["Theme preference<br/>[script.js]"]
  node_date["Date display<br/>[script.js]"]
end

node_visitor(("Visitor"))
node_browserstorage[("Browser storage")]
node_contactservice["Form endpoint"]

node_visitor -->|"views"| node_portfolio
node_visitor -->|"scrolls"| node_scroll
node_visitor -->|"interacts"| node_navigation
node_visitor -->|"submits"| node_contact
node_visitor -->|"opens"| node_modals
node_portfolio -->|"updates page"| node_scroll
node_portfolio -->|"updates page"| node_navigation
node_portfolio -->|"contains form"| node_contact
node_portfolio -->|"updates text"| node_role
node_portfolio -->|"displays dialogs"| node_modals
node_portfolio -->|"sets theme"| node_theme
node_portfolio -->|"displays date"| node_date
node_theme -->|"stores preference"| node_browserstorage
node_contact -->|"posts form"| node_contactservice

click node_portfolio "https://github.com/lohit30/portfolio-website/blob/main/index.html"
click node_resume "https://github.com/lohit30/portfolio-website/blob/main/Lohit_S_Resume.pdf"
click node_scroll "https://github.com/lohit30/portfolio-website/blob/main/script.js"
click node_navigation "https://github.com/lohit30/portfolio-website/blob/main/script.js"
click node_contact "https://github.com/lohit30/portfolio-website/blob/main/script.js"
click node_role "https://github.com/lohit30/portfolio-website/blob/main/script.js"
click node_modals "https://github.com/lohit30/portfolio-website/blob/main/script.js"
click node_theme "https://github.com/lohit30/portfolio-website/blob/main/script.js"
click node_date "https://github.com/lohit30/portfolio-website/blob/main/script.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 toneBlue
class node_scroll,node_navigation,node_contact,node_role,node_modals,node_theme,node_date,node_browserstorage toneAmber
class node_visitor,node_contactservice toneIndigo
```

## Components

### Portfolio page

- [Portfolio page](https://github.com/lohit30/portfolio-website/blob/main/index.html): `index.html`
- [Resume PDF](https://github.com/lohit30/portfolio-website/blob/main/Lohit_S_Resume.pdf): `Lohit_S_Resume.pdf`

### Page interactions

- [Scroll effects](https://github.com/lohit30/portfolio-website/blob/main/script.js): `script.js`
- [Navigation controls](https://github.com/lohit30/portfolio-website/blob/main/script.js): `script.js`
- [Contact form](https://github.com/lohit30/portfolio-website/blob/main/script.js): `script.js`
- [Typing introduction](https://github.com/lohit30/portfolio-website/blob/main/script.js): `script.js`
- [Project and resume modals](https://github.com/lohit30/portfolio-website/blob/main/script.js): `script.js`
- [Theme preference](https://github.com/lohit30/portfolio-website/blob/main/script.js): `script.js`
- [Date display](https://github.com/lohit30/portfolio-website/blob/main/script.js): `script.js`

### Other components

- **Visitor**
- **Browser storage**
- **Form endpoint**

## Connections

- Visitor → Portfolio page: views
- Visitor → Scroll effects: scrolls (evidence: `script.js`)
- Visitor → Navigation controls: interacts (evidence: `script.js`)
- Visitor → Contact form: submits (evidence: `script.js`)
- Visitor → Project and resume modals: opens (evidence: `script.js`)
- Portfolio page → Scroll effects: updates page (evidence: `script.js`)
- Portfolio page → Navigation controls: updates page (evidence: `script.js`)
- Portfolio page → Contact form: contains form (evidence: `script.js`)
- Portfolio page → Typing introduction: updates text (evidence: `script.js`)
- Portfolio page → Project and resume modals: displays dialogs (evidence: `script.js`)
- Portfolio page → Theme preference: sets theme (evidence: `script.js`)
- Portfolio page → Date display: displays date (evidence: `script.js`)
- Theme preference → Browser storage: stores preference (evidence: `script.js`)
- Contact form → Form endpoint: posts form (evidence: `script.js`)
