# neerajrao23/portfolio architecture

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

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

## Overview

##### Project type and purpose
- This is a single‐page, static portfolio website built with HTML, CSS, and JavaScript and hosted on GitHub Pages.
- Its purpose is to present Neeraj’s “About Me,” tech stack, projects, and experience.

##### File structure
- Top‐level files:
- index.html – entry point, defines page structure and content sections.
- script.js – any interactive behavior (e.g., menu toggles, scroll animations).
- README.md – project overview, tech stack, deployment details.

##### README for additional insights
- Confirms it’s a static site, no backend or database.
- Hosted on GitHub Pages (HTTP(S) → GitHub Pages’ CDN).

##### Components & relationships
a. Main components
- Browser (User Agent)
- Static Asset Host (GitHub Pages / CDN)
- Static Files:
– HTML (index.html)
– CSS (style.css)
– JavaScript (script.js)
b. Interactions & data flow
1. User’s browser issues HTTP GET to neejrao23.github.io/portfolio
2. GitHub Pages serves index.html
3. Browser parses HTML and issues requests for style.css and script.js
4. Browser applies CSS rules, executes JS for interactivity
c. Architectural patterns & design principles
- Static site architecture (no server logic)
- Separation of concerns:
– Structure (HTML)
– Presentation (CSS)
– Behavior (JS)
- CDN/distributed hosting for performance and availability
d. Technologies & frameworks
- HTML5 – semantic elements (header, section, nav, footer)
- CSS3 – Flexbox/Grid for layout, transitions for effects
- Vanilla JavaScript – DOM manipulation, event listeners
- GitHub Pages – free static hosting

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Nodes
    Browser["Browser<br/>(User Agent)"]:::client
    CDN["GitHub Pages CDN"]:::cdn

    subgraph "Static Assets"
        HTML["index.html"]:::file
        CSS["style.css"]:::file
        JS["script.js"]:::file
    end

    subgraph "Project Repository"
        README["README.md"]:::file
    end

    %% Connections
    Browser -->|"GET /index.html"| CDN
    HTML -->|"200 OK index.html"| Browser

    Browser -->|"GET /style.css"| CDN
    CSS -->|"200 OK style.css"| Browser

    Browser -->|"GET /script.js"| CDN
    JS -->|"200 OK script.js"| Browser

    %% Click Events
    click HTML "https://github.com/neerajrao23/portfolio/blob/main/index.html"
    click CSS "https://github.com/neerajrao23/portfolio/blob/main/style.css"
    click JS "https://github.com/neerajrao23/portfolio/blob/main/script.js"
    click README "https://github.com/neerajrao23/portfolio/blob/main/README.md"

    %% Styles
    classDef client fill:#f0f8ff,stroke:#036,stroke-width:2px;
    classDef cdn fill:#e0f7fa,stroke:#0288d1,stroke-width:2px,stroke-dasharray: 5 5;
    classDef file fill:#ffffff,stroke:#555,stroke-width:1px,rx:3,ry:3;
```
