# xyzcode94/portfolio architecture

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

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

## Overview

##### Project type and purpose
- This is a **static, front-end portfolio website** built solely with HTML, CSS, and JavaScript.
- Its goal is to showcase skills and projects in AI/ML, web development, mobile apps, UI/UX, etc.
- There is no server-side application or database; all content is delivered via static hosting (e.g., GitHub Pages, Netlify, S3+CloudFront).

##### File structure
- Top-level files:
- README.md: documentation
- index.html: main landing page
- robots.txt, sitemap.xml, google-verification.html: SEO & hosting config
- assets/
- css/: section-specific and global styles
- pages/: individual HTML pages for each portfolio section
- script/: section-specific and global JavaScript
- image/: project screenshots (not populated in your tree)
- docs/: downloadable CV (CV.pdf)
- No “backend”, “api” or “database” directory—everything is client-side.

##### README for additional insights
User Browser → Static Hosting/CDN → HTML / CSS / JS / Images / Docs.
- It confirms use of a static site workflow without dynamic layers.

##### Elements
- **Clear labels**: e.g., “Client Browser”, “CDN Edge Node”, “GitHub Pages (origin)”, “HTML Pages”, “CSS”, “JS”, “Images”, “Docs”

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Layer 1: Client
    Client["Client Browser"]:::client

    %% Layer 2: Network / CDN
    CDN["CDN Edge Node"]:::cdn

    %% Layer 3: Origin Hosting
    Origin["GitHub Pages (Origin)"]:::origin

    %% Layer 4: Asset Repositories
    subgraph "HTML Pages" 
        Index["index.html"]:::html
        AI["ai-ml.html"]:::html
        DB["database-management.html"]:::html
        Mobile["mobile-development.html"]:::html
        UIUX["ui-ux-design.html"]:::html
        Video["video-editing.html"]:::html
        Web["web-development.html"]:::html
        Work["workpage.html"]:::html
        Thank["thankyou.html"]:::html
    end

    subgraph "CSS Stylesheets"
        Style["style.css"]:::css
        AI_CSS["ai&ml.css"]:::css
        DB_CSS["database.css"]:::css
        Mobile_CSS["mobile-dev.css"]:::css
        UIUX_CSS["ui_ux.css"]:::css
        Video_CSS["video.css"]:::css
        Web_CSS["web-dev.css"]:::css
        Work_CSS["workpage.css"]:::css
        Thank_CSS["thankyou.css"]:::css
    end

    subgraph "JavaScript Files"
        Script["script.js"]:::js
        AI_JS["ai-ml.js"]:::js
        Web_JS["web-dev.js"]:::js
    end

    subgraph "Images"
        Images["assets/image/ (screenshots)"]:::image
    end

    subgraph "Documents"
        Docs["CV.pdf"]:::docs
    end

    subgraph "Config Files"
        Robots["robots.txt"]:::config
        Sitemap["sitemap.xml"]:::config
        GoogleVerify["googleb44328186f7c82f4.html"]:::config
    end

    %% Flows
    Client -->|GET index.html| CDN
    CDN -->|Cache MISS| Origin
    Origin --> CDN
    CDN -->|Cache HIT| Client

    %% Asset fetch flows
    Client -->|GET HTML/CSS/JS/Images/Docs/Config| CDN
    CDN -->|GET if MISS| Origin
    Origin --> CDN

    %% Click Events
    click Index "https://github.com/xyzcode94/portfolio/blob/main/index.html"
    click AI "https://github.com/xyzcode94/portfolio/blob/main/assests/pages/ai-ml.html"
    click DB "https://github.com/xyzcode94/portfolio/blob/main/assests/pages/database-management.html"
    click Mobile "https://github.com/xyzcode94/portfolio/blob/main/assests/pages/mobile-development.html"
    click UIUX "https://github.com/xyzcode94/portfolio/blob/main/assests/pages/ui-ux-design.html"
    click Video "https://github.com/xyzcode94/portfolio/blob/main/assests/pages/video-editing.html"
    click Web "https://github.com/xyzcode94/portfolio/blob/main/assests/pages/web-development.html"
    click Work "https://github.com/xyzcode94/portfolio/blob/main/assests/pages/workpage.html"
    click Thank "https://github.com/xyzcode94/portfolio/blob/main/assests/pages/thankyou.html"
    click Style "https://github.com/xyzcode94/portfolio/blob/main/assests/css/style.css"
    click AI_CSS "https://github.com/xyzcode94/portfolio/blob/main/assests/css/ai&ml.css"
    click DB_CSS "https://github.com/xyzcode94/portfolio/blob/main/assests/css/database.css"
    click Mobile_CSS "https://github.com/xyzcode94/portfolio/blob/main/assests/css/mobile-dev.css"
    click UIUX_CSS "https://github.com/xyzcode94/portfolio/blob/main/assests/css/ui_ux.css"
    click Video_CSS "https://github.com/xyzcode94/portfolio/blob/main/assests/css/video.css"
    click Web_CSS "https://github.com/xyzcode94/portfolio/blob/main/assests/css/web-dev.css"
    click Work_CSS "https://github.com/xyzcode94/portfolio/blob/main/assests/css/workpage.css"
    click Thank_CSS "https://github.com/xyzcode94/portfolio/blob/main/assests/css/thankyou.css"
    click Script "https://github.com/xyzcode94/portfolio/blob/main/assests/script/script.js"
    click AI_JS "https://github.com/xyzcode94/portfolio/blob/main/assests/script/ai-ml.js"
    click Web_JS "https://github.com/xyzcode94/portfolio/blob/main/assests/script/web-dev.js"
    click Images "https://github.com/xyzcode94/portfolio/tree/main/assests/image/"
    click Docs "https://github.com/xyzcode94/portfolio/blob/main/assests/docs/CV.pdf"
    click Robots "https://github.com/xyzcode94/portfolio/blob/main/robots.txt"
    click Sitemap "https://github.com/xyzcode94/portfolio/blob/main/sitemap.xml"
    click GoogleVerify "https://github.com/xyzcode94/portfolio/blob/main/googleb44328186f7c82f4.html"
    click README "https://github.com/xyzcode94/portfolio/blob/main/README.md"

    %% Styles
    classDef client fill:#D0E8FF,stroke:#0099FF,color:#000
    classDef cdn fill:#E8D0FF,stroke:#9900FF,color:#000
    classDef origin fill:#F0F0F0,stroke:#333,color:#000
    classDef html fill:#D0FFD8,stroke:#00AA00,color:#000
    classDef css fill:#FFF0B3,stroke:#FFAA00,color:#000
    classDef js fill:#FFD0D0,stroke:#FF0000,color:#000
    classDef image fill:#E0FFE0,stroke:#00CC00,color:#000
    classDef docs fill:#F0D0FF,stroke:#AA00FF,color:#000
    classDef config fill:#D8D8D8,stroke:#666,color:#000
```
