# prasad-kmd/blog-folio architecture

> Architecture diagram of the GitHub repository prasad-kmd/blog-folio, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/prasad-kmd/blog-folio
- Repository: https://github.com/prasad-kmd/blog-folio

## Overview

##### Main Components

a. Frontend Layer:
- Static Pages Component
- Main pages: index.html, blog, books, games, research, profile
- Asset Management Component
- CSS (including semantic UI)
- Fonts (extensive font library)
- Images (SVG and WebP formats)
- Videos
- JavaScript Modules
- Core Components (advice, ipconfig, weather)
- Content Fetchers (9to5G, 9to5M, AP)

b. Component Structure:
- How they connect to the main index.html

##### Architectural Patterns to Highlight

- Client-Side Architecture:
- Modular JavaScript structure
- Component-based design
- Demonstrate asset organization

##### Specific Implementation Details

Create sections showing:
- Static Asset Pipeline
- CSS → Semantic UI → Custom Styles
- Fonts → Custom Font Library
- Media → Images/Videos
- JavaScript Architecture
- Components
- Fetch Modules
- Page-specific Scripts

##### Key Elements to Emphasize

- Component Modularity
- Asset Organization
- Content Management Flow
- Page Structure Hierarchy

**[Client Browser]**
- ↓
**[Main Entry (index.html)]**
- ↓
**┌─────────────────────────────────────┐**
- Frontend Components                 │
- ┬────────────┬─────────┤
- Pages       │ Components │ Assets  │
- Blog      │ - Weather  │ - CSS   │
- Books     │ - IPConfig │ - Fonts │
- Games     │ - Advice   │ - Images│
- Research  │           │ - Video │
- Profile   │           │        │
- ┴────────────┴─────────┘

Additional Considerations:

##### External service connections (if any)

- High-level architecture visibility
- Component-level detail
- Asset management flow
- Module dependencies

Remember to:
- Use consistent styling
- A clear hierarchy
- Document any assumptions
- Scalability points

This design should effectively communicate the project's structure while maintaining clarity about its client-side architecture and component organization.

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph Client
        Browser[Client Browser]
    end

    subgraph MainEntry
        Index["Main Entry Point"]
    end

    subgraph Pages
        Blog["Blog Section"]
        Books["Books Section"]
        Games["Games Section"]
        Research["Research Section"]
        Profile["Profile Section"]
    end

    subgraph Assets
        subgraph CSS
            SemanticUI["Semantic UI"]
            CommonCSS["Common CSS"]
            BlogCSS["Blog CSS"]
            IndexCSS["Index CSS"]
        end

        subgraph Media
            Fonts["Font Library"]
            Images["Image Assets"]
            Videos["Video Assets"]
        end
    end

    subgraph JavaScript
        subgraph CoreComponents
            Weather["Weather Component"]
            IPConfig["IP Config Component"]
            Advice["Advice Component"]
        end

        subgraph Fetchers
            G9to5["9to5G Fetcher"]
            M9to5["9to5M Fetcher"]
            AP["AP Fetcher"]
        end

        subgraph SectionScripts
            BlogJS["Blog Scripts"]
            BooksJS["Books Scripts"]
            GamesJS["Games Scripts"]
            ResearchJS["Research Scripts"]
        end
    end

    Browser --> Index
    Index --> Blog
    Index --> Books
    Index --> Games
    Index --> Research
    Index --> Profile

    Blog --> BlogJS
    Books --> BooksJS
    Games --> GamesJS
    Research --> ResearchJS

    CoreComponents --> Index
    Fetchers --> Index
    CSS --> Index
    Media --> Index

    %% Click Events
    click Index "https://github.com/prasad-kmd/blog-folio/blob/main/index.html"
    click Blog "https://github.com/prasad-kmd/blog-folio/blob/main/blog/index.html"
    click Books "https://github.com/prasad-kmd/blog-folio/blob/main/books/index.html"
    click Games "https://github.com/prasad-kmd/blog-folio/blob/main/games/index.html"
    click Research "https://github.com/prasad-kmd/blog-folio/blob/main/research/index.html"
    click Profile "https://github.com/prasad-kmd/blog-folio/blob/main/profile/index.html"
    click SemanticUI "https://github.com/prasad-kmd/blog-folio/blob/main/assets/css/semantic.css"
    click CommonCSS "https://github.com/prasad-kmd/blog-folio/blob/main/assets/css/common.css"
    click BlogCSS "https://github.com/prasad-kmd/blog-folio/blob/main/assets/css/blog.css"
    click IndexCSS "https://github.com/prasad-kmd/blog-folio/blob/main/assets/css/index.css"
    click Fonts "https://github.com/prasad-kmd/blog-folio/tree/main/assets/font"
    click Images "https://github.com/prasad-kmd/blog-folio/tree/main/assets/img"
    click Videos "https://github.com/prasad-kmd/blog-folio/tree/main/assets/vid"
    click Weather "https://github.com/prasad-kmd/blog-folio/blob/main/assets/js/components/weather.js"
    click IPConfig "https://github.com/prasad-kmd/blog-folio/blob/main/assets/js/components/ipconfig.js"
    click Advice "https://github.com/prasad-kmd/blog-folio/blob/main/assets/js/components/advice.js"
    click G9to5 "https://github.com/prasad-kmd/blog-folio/blob/main/assets/js/fetch/9to5G.js"
    click M9to5 "https://github.com/prasad-kmd/blog-folio/blob/main/assets/js/fetch/9to5M.js"
    click AP "https://github.com/prasad-kmd/blog-folio/blob/main/assets/js/fetch/AP.js"
    click BlogJS "https://github.com/prasad-kmd/blog-folio/blob/main/blog/blog.js"
    click BooksJS "https://github.com/prasad-kmd/blog-folio/blob/main/books/books.js"
    click GamesJS "https://github.com/prasad-kmd/blog-folio/blob/main/games/games.js"
    click ResearchJS "https://github.com/prasad-kmd/blog-folio/blob/main/research/research.js"

    %% Styling
    classDef default fill:#f9f9f9,stroke:#333,stroke-width:2px
    classDef page fill:#ddf1fd,stroke:#0066cc
    classDef asset fill:#fff2cc,stroke:#d6b656
    classDef component fill:#d5e8d4,stroke:#82b366
    classDef fetcher fill:#e1d5e7,stroke:#9673a6

    class Browser,Index default
    class Blog,Books,Games,Research,Profile page
    class SemanticUI,CommonCSS,BlogCSS,IndexCSS,Fonts,Images,Videos asset
    class Weather,IPConfig,Advice,BlogJS,BooksJS,GamesJS,ResearchJS component
    class G9to5,M9to5,AP fetcher
```
