# bashutosh017/portfoilio architecture

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

- Interactive diagram: https://gitdiagram.com/bashutosh017/portfoilio
- Repository: https://github.com/bashutosh017/portfoilio

## Overview

This is a small browser-based webpage with JavaScript enhancements: mobile navigation, section-aware navigation highlighting, and a reduced-motion-aware hero animation. The shown script also suppresses the context menu. The HTML, styles, and assets are present in the tree, but their contents and wiring were not sampled, so their relationships are omitted rather than inferred.

Main entry points: [`script.js`](https://github.com/bashutosh017/portfoilio/blob/main/script.js) (Page interactions)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_visitor(("Visitor"))
node_page["Webpage<br/>[index.html]"]
node_script["Page interactions<br/>[script.js]"]
node_mobile_nav["Mobile navigation<br/>[script.js]"]
node_section_nav["Section highlighting<br/>[script.js]"]
node_hero_motion["Hero animation<br/>[script.js]"]
node_context_menu["Context menu suppression<br/>[script.js]"]
node_styles["Page styling<br/>[style.css]"]

node_script -->|"toggles and closes"| node_mobile_nav
node_script -->|"observes and highlights"| node_section_nav
node_script -->|"animates conditionally"| node_hero_motion
node_script -->|"prevents default"| node_context_menu

click node_page "https://github.com/bashutosh017/portfoilio/blob/main/index.html"
click node_script "https://github.com/bashutosh017/portfoilio/blob/main/script.js"
click node_mobile_nav "https://github.com/bashutosh017/portfoilio/blob/main/script.js"
click node_section_nav "https://github.com/bashutosh017/portfoilio/blob/main/script.js"
click node_hero_motion "https://github.com/bashutosh017/portfoilio/blob/main/script.js"
click node_context_menu "https://github.com/bashutosh017/portfoilio/blob/main/script.js"
click node_styles "https://github.com/bashutosh017/portfoilio/blob/main/style.css"

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_page,node_script,node_mobile_nav,node_section_nav,node_hero_motion,node_context_menu,node_styles toneTeal
```

## Components

### Other components

- **Visitor**
- [Webpage](https://github.com/bashutosh017/portfoilio/blob/main/index.html): `index.html`
- [Page interactions](https://github.com/bashutosh017/portfoilio/blob/main/script.js): `script.js`
- [Mobile navigation](https://github.com/bashutosh017/portfoilio/blob/main/script.js): `script.js`
- [Section highlighting](https://github.com/bashutosh017/portfoilio/blob/main/script.js): `script.js`
- [Hero animation](https://github.com/bashutosh017/portfoilio/blob/main/script.js): `script.js`
- [Context menu suppression](https://github.com/bashutosh017/portfoilio/blob/main/script.js): `script.js`
- [Page styling](https://github.com/bashutosh017/portfoilio/blob/main/style.css): `style.css`

## Connections

- Page interactions → Mobile navigation: toggles and closes (evidence: `script.js`)
- Page interactions → Section highlighting: observes and highlights (evidence: `script.js`)
- Page interactions → Hero animation: animates conditionally (evidence: `script.js`)
- Page interactions → Context menu suppression: prevents default (evidence: `script.js`)
