# dhaivatjoshi/portfolio architecture

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

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

## Overview

##### Project type and purpose
- This is a static, single‐page portfolio website built with plain HTML, CSS and JavaScript.
- Its purpose is to present the author’s CV, skills and contact information, and is hosted via GitHub Pages.

##### File structure
- Top‐level files:
- index.html – the landing page
- style.css – all styling rules
- script.js – any client‐side interaction
- images/ – static assets (CV PDF, project screenshots)
- .github/workflows/static.yml – CI/CD pipeline for deploying to GitHub Pages
- No backend or database folders; it’s purely front‐end.
- README.md provides site content overview; LICENSE shows it’s open source.

##### README for additional insights
- Confirms the site is a personal portfolio.
- Links site URL (GitHub Pages).
- No mention of server-side logic or external APIs.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Development & Version Control
    subgraph "Developer & Version Control"
        Dev["Developer Workstation"]:::developer
        subgraph "GitHub Repository"
            GH["GitHub Repository"]:::developer
            README["README.md"]:::developer
            LICENSE["LICENSE"]:::developer
        end
    end

    %% CI/CD Pipeline
    subgraph "CI/CD Pipeline"
        Workflow[".github/workflows/static.yml"]:::cicd
        CICD["GitHub Actions Runner"]:::cicd
    end

    %% Hosting & CDN
    subgraph "Hosting & CDN"
        Pages["GitHub Pages / CDN"]:::hosting
        HTML["index.html"]:::client
        CSS["style.css"]:::client
        JS["script.js"]:::client
        Images["images/ (static assets)"]:::client
        PDF["images/my-cv.pdf"]:::client
        Projects["images/project/"]:::client
    end

    %% End User
    Browser["User Browser"]:::client

    %% Connections
    Dev -->|git push| GH
    GH -->|trigger on push| CICD
    Workflow -->|defines pipeline| CICD
    CICD -->|deploy| Pages

    Browser -->|HTTP GET index.html| Pages
    Browser -->|HTTP GET assets| Pages
    Pages -->|HTTP 200 OK index.html| Browser
    Pages -->|HTTP 200 OK assets| Browser

    %% Click Events
    click HTML "https://github.com/dhaivatjoshi/portfolio/blob/main/index.html"
    click CSS "https://github.com/dhaivatjoshi/portfolio/blob/main/style.css"
    click JS "https://github.com/dhaivatjoshi/portfolio/blob/main/script.js"
    click Images "https://github.com/dhaivatjoshi/portfolio/tree/main/images/"
    click PDF "https://github.com/dhaivatjoshi/portfolio/blob/main/images/my-cv.pdf"
    click Projects "https://github.com/dhaivatjoshi/portfolio/tree/main/images/project/"
    click Workflow "https://github.com/dhaivatjoshi/portfolio/blob/main/.github/workflows/static.yml"
    click README "https://github.com/dhaivatjoshi/portfolio/blob/main/README.md"
    click LICENSE "https://github.com/dhaivatjoshi/portfolio/tree/main/LICENSE"

    %% Styles
    classDef developer fill:#cce5ff,stroke:#004085,color:#000;
    classDef cicd fill:#cfe2ff,stroke:#084298,color:#000;
    classDef hosting fill:#d4edda,stroke:#155724,color:#000;
    classDef client fill:#fff3cd,stroke:#856404,color:#000;
```
