# rajputpritesh1/portfolio architecture

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

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

## Overview

##### Project type and purpose
- This is a static, front-end–only personal portfolio website built with plain HTML, CSS, and JavaScript.
- It’s deployed (via GitHub Pages) to showcase skills, projects, and contact channels.

##### File structure
- Top-level:
- index.html – landing page
- README.md / LICENSE.txt – documentation
- src/ – all source assets
- src/css/ – two style sheets (projects.css, styles.css)
- src/js/ – two scripts (projects.js, scripts.js)
- src/pages/projects.html – secondary page for project details

##### README for additional insights
- No back-end or database, purely static content
- Modern design, responsive layout, no build tools (no webpack, no server-side code)
- Hosted on GitHub Pages – static file hosting

a. Main components
- User’s Browser (Chrome, Firefox, etc.)
- GitHub Pages Hosting (Static File Server + CDN)
- Static Asset Storage (HTML, CSS, JS, images in a GitHub repo)
b. Relationships & interactions
1. Browser issues HTTP GET to GitHub Pages server
2. Server responds with index.html
3. Browser parses HTML and requests CSS, JS, images
4. GitHub Pages serves each asset over HTTP(S)
5. Client-side JS (scripts.js, projects.js) enhances interactivity
c. Architectural patterns / design principles
- Static-site architecture (no runtime back-end)
- Separation of concerns: content (HTML), styling (CSS), behavior (JS)
- Flat file structure – easy to extend (just add new pages under src/pages)
d. Key technologies
- HTML5, CSS3, vanilla JavaScript
- GitHub Pages for CI/CD & hosting
- No external frameworks—keep it lightweight

- CSS, JS, and img under a “Static Asset Storage” node

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Client
    Browser["User Browser"]:::browser

    %% Hosting Subgraph
    subgraph "GitHub Pages Hosting"
        Server["GitHub Pages Server (HTTP(S))"]:::server
        subgraph "Static Asset Storage"
            subgraph "src/" 
                index["index.html"]:::html
                projPage["src/pages/projects.html"]:::html
                styles["src/css/styles.css"]:::css
                projStyles["src/css/projects.css"]:::css
                scripts["src/js/scripts.js"]:::js
                projScripts["src/js/projects.js"]:::js
                images["src/img/"]:::img
            end
            README["README.md"]:::doc
            LICENSE["LICENSE.txt"]:::doc
        end
    end

    %% Requests and Responses
    Browser -->|"GET /index.html"| Server
    Server -->|"200 OK index.html"| Browser

    Browser -->|"GET /src/pages/projects.html"| Server
    Server -->|"200 OK projects.html"| Browser

    Browser -->|"GET /src/css/styles.css\nGET /src/css/projects.css"| Server
    Server -->|"200 OK CSS files"| Browser

    Browser -->|"GET /src/js/scripts.js\nGET /src/js/projects.js"| Server
    Server -->|"200 OK JS files"| Browser

    Browser -->|"GET /src/img/ assets"| Server
    Server -->|"200 OK images"| Browser

    %% CI/CD Flow (optional)
    Repo["GitHub Repo"]:::repo
    Repo -->|"git push"| Server

    %% Click Events
    click index "https://github.com/rajputpritesh1/portfolio/blob/main/index.html"
    click projPage "https://github.com/rajputpritesh1/portfolio/blob/main/src/pages/projects.html"
    click styles "https://github.com/rajputpritesh1/portfolio/blob/main/src/css/styles.css"
    click projStyles "https://github.com/rajputpritesh1/portfolio/blob/main/src/css/projects.css"
    click scripts "https://github.com/rajputpritesh1/portfolio/blob/main/src/js/scripts.js"
    click projScripts "https://github.com/rajputpritesh1/portfolio/blob/main/src/js/projects.js"
    click images "https://github.com/rajputpritesh1/portfolio/tree/main/src/img/"
    click README "https://github.com/rajputpritesh1/portfolio/blob/main/README.md"
    click LICENSE "https://github.com/rajputpritesh1/portfolio/blob/main/LICENSE.txt"
    click SrcRoot "https://github.com/rajputpritesh1/portfolio/tree/main/src/"

    %% Styles
    classDef browser fill:#d1ecf1,stroke:#0c5460;
    classDef server fill:#b8daff,stroke:#004085;
    classDef html fill:#cce5ff,stroke:#004085;
    classDef css fill:#d4edda,stroke:#155724;
    classDef js fill:#fff3cd,stroke:#856404;
    classDef img fill:#e2e3e5,stroke:#6c757d;
    classDef repo fill:#f8d7da,stroke:#721c24;
    classDef doc fill:#e2e3e5,stroke:#6c757d;
```
