# nijika21/portfolio-web architecture

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

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

## Overview

##### Project type and purpose
- This is a static, front-end portfolio website built with plain HTML, CSS, and JavaScript and hosted on GitHub Pages. Its purpose is to showcase the developer’s profile, projects, and contact information, including a small gallery of 3D models.

##### File structure
- Top-level files:
- README.md – project description and usage
- index.html – entry point
- style.css, style.js – styling and behavior
- assets/ directory:
- 3D model files (GLB) and preview image(s)
- No backend code or server framework—pure static content.

##### README for additional insights
- Confirms responsive design for desktop/mobile
- Describes sections: profile, project gallery, contact
- Technology stack: HTML5, CSS3, JavaScript, GitHub Pages hosting

##### Diagramming the architecture
a. Main components
- Client (Browser)
- Static Hosting Service (GitHub Pages CDN)
- Static assets:
- index.html
- style.css
- style.js
- 3D models (GLB) and images
b. Relationships and interactions
- Browser sends HTTP GET to GitHub Pages URL
- Hosting service responds with HTML, CSS, JS, and asset files
- Browser renders HTML, applies CSS, runs JS, fetches 3D models and images dynamically
c. Architectural patterns / design principles
- Single-Page (or multi-section) static site
- Separation of concerns: markup, styling, scripting, and media assets in distinct files/directories
d. Key technologies
- HTML5 for structure
- CSS3 for responsive layout
- Vanilla JavaScript for dynamic behavior (e.g., loading 3D models)
- GitHub Pages as the static site host / CDN

##### Elements
- Clear rectangular nodes for: Browser, GitHub Pages CDN, and “Assets Storage”
- Blue for code files (HTML/CSS/JS)
- Green for media assets (GLB, images)
- Orange for hosting/infrastructure

##### Detailed breakdown to capture essential elements
- Responsive design step (CSS media query block) to show mobile vs. desktop styling

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Client
    Browser(["Browser"]):::client

    %% CDN Hosting Service
    subgraph "GitHub Pages CDN"
        index["index.html"]:::code
        css["style.css"]:::code
        js["style.js"]:::code
    end

    %% Assets Storage
    subgraph "Assets Storage"
        assets_dir["assets/"]:::media
        model1["3d model.glb"]:::media
        model2["nijika_crying.glb"]:::media
    end

    %% Documentation
    README["README.md"]:::docs

    %% Request/Response Flows
    Browser -->|"GET /index.html"| index
    index -->|"200 OK"| Browser

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

    Browser -->|"GET /style.js"| js
    js -->|"200 OK"| Browser

    Browser -->|"GET /assets/3d model.glb"| model1
    model1 -->|"200 OK"| Browser

    Browser -->|"GET /assets/nijika_crying.glb"| model2
    model2 -->|"200 OK"| Browser

    %% Click Events
    click index "https://github.com/nijika21/portfolio-web/blob/main/index.html"
    click css "https://github.com/nijika21/portfolio-web/blob/main/style.css"
    click js "https://github.com/nijika21/portfolio-web/blob/main/style.js"
    click model1 "https://github.com/nijika21/portfolio-web/blob/main/assets/3d model.glb"
    click model2 "https://github.com/nijika21/portfolio-web/blob/main/assets/nijika_crying.glb"
    click assets_dir "https://github.com/nijika21/portfolio-web/tree/main/assets/"
    click README "https://github.com/nijika21/portfolio-web/blob/main/README.md"

    %% Styles
    classDef client fill:#D0E6FF,stroke:#0366d6,color:#0366d6,stroke-width:2px;
    classDef code fill:#E0F7FA,stroke:#00796B,color:#004D40,stroke-width:2px;
    classDef media fill:#E8F5E9,stroke:#388E3C,color:#1B5E20,stroke-width:2px;
    classDef infra fill:#FFF3E0,stroke:#FB8C00,color:#E65100,stroke-width:2px;
    classDef docs fill:#F3E5F5,stroke:#8E24AA,color:#4A148C,stroke-width:2px;
```
