# ankit-thakur-5511/portfolio-website architecture

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

- Interactive diagram: https://gitdiagram.com/ankit-thakur-5511/portfolio-website
- Repository: https://github.com/ankit-thakur-5511/portfolio-website

## Overview

A small portfolio website with JavaScript for active navigation, smooth section scrolling, and a back-to-top control. The HTML and CSS are present in the tree but were not sampled, so their contents and wiring are not inferred.

Main entry points: [`index.html`](https://github.com/ankit-thakur-5511/portfolio-website/blob/main/index.html) (Portfolio page), [`script.js`](https://github.com/ankit-thakur-5511/portfolio-website/blob/main/script.js) (Navigation behavior)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Portfolio site"]
  node_page["Portfolio page<br/>[index.html]"]
  node_styles["Page styling<br/>[style.css]"]
  node_navigation["Navigation behavior<br/>[script.js]"]
  node_top["Back-to-top behavior<br/>[script.js]"]
end

node_visitor(("Visitor"))

node_visitor -.->|"views"| node_page
node_navigation -->|"scrolls sections"| node_page
node_top -->|"scrolls to top"| node_page

click node_page "https://github.com/ankit-thakur-5511/portfolio-website/blob/main/index.html"
click node_styles "https://github.com/ankit-thakur-5511/portfolio-website/blob/main/style.css"
click node_navigation "https://github.com/ankit-thakur-5511/portfolio-website/blob/main/script.js"
click node_top "https://github.com/ankit-thakur-5511/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_page,node_styles,node_navigation,node_top toneBlue
class node_visitor toneIndigo
```

## Components

### Portfolio site

- [Portfolio page](https://github.com/ankit-thakur-5511/portfolio-website/blob/main/index.html): `index.html`
- [Page styling](https://github.com/ankit-thakur-5511/portfolio-website/blob/main/style.css): `style.css`
- [Navigation behavior](https://github.com/ankit-thakur-5511/portfolio-website/blob/main/script.js): `script.js`
- [Back-to-top behavior](https://github.com/ankit-thakur-5511/portfolio-website/blob/main/script.js): `script.js`

### Other components

- **Visitor**

## Connections

- Visitor → Portfolio page: views
- Navigation behavior → Portfolio page: scrolls sections (evidence: `script.js`)
- Back-to-top behavior → Portfolio page: scrolls to top (evidence: `script.js`)
