# ajit-mahato/ajit-s-portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/ajit-mahato/ajit-s-portfolio
- Repository: https://github.com/ajit-mahato/ajit-s-portfolio

## Overview

This is a small personal portfolio website. Visitors view its page and can use section navigation, a responsive menu, a dark-mode toggle, and scroll-sensitive navigation; a rotating role animation adds presentation polish. The JavaScript also saves the theme preference in browser storage. The tree identifies the page, stylesheet, and image directory, but their contents and the README were not provided, so relationships involving those assets are not inferred.

Main entry points: [`main.js`](https://github.com/ajit-mahato/ajit-s-portfolio/blob/main/main.js) (Interaction controller), [`index.html`](https://github.com/ajit-mahato/ajit-s-portfolio/blob/main/index.html) (Portfolio page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_presentation["Portfolio presentation"]
  node_page["Portfolio page<br/>[index.html]"]
  node_styles["Page styles<br/>[style.css]"]
end

subgraph group_behavior["Interactive behavior"]
  node_controller["Interaction controller<br/>[main.js]"]
  node_preference[("Theme preference")]
  node_typed["Typed library"]
end

node_visitor(("Visitor"))

node_visitor -.->|"views"| node_page
node_page -->|"queries controls"| node_controller
node_controller -->|"reads and writes"| node_preference
node_controller -->|"creates animation"| node_typed

click node_page "https://github.com/ajit-mahato/ajit-s-portfolio/blob/main/index.html"
click node_styles "https://github.com/ajit-mahato/ajit-s-portfolio/blob/main/style.css"
click node_controller "https://github.com/ajit-mahato/ajit-s-portfolio/blob/main/main.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 toneBlue
class node_controller,node_preference,node_typed toneAmber
class node_visitor toneIndigo
```

## Components

### Portfolio presentation

- [Portfolio page](https://github.com/ajit-mahato/ajit-s-portfolio/blob/main/index.html): `index.html`
- [Page styles](https://github.com/ajit-mahato/ajit-s-portfolio/blob/main/style.css): `style.css`

### Interactive behavior

- [Interaction controller](https://github.com/ajit-mahato/ajit-s-portfolio/blob/main/main.js): `main.js`
- **Theme preference**
- **Typed library**

### Other components

- **Visitor**

## Connections

- Visitor → Portfolio page: views
- Portfolio page → Interaction controller: queries controls (evidence: `main.js`)
- Interaction controller → Theme preference: reads and writes (evidence: `main.js`)
- Interaction controller → Typed library: creates animation (evidence: `main.js`)
