# whatisaprocoder/odin-admin-dashboard architecture

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

- Interactive diagram: https://gitdiagram.com/whatisaprocoder/odin-admin-dashboard
- Repository: https://github.com/whatisaprocoder/odin-admin-dashboard

## Overview

##### Project type and purpose
- This is a static, client-side **Admin Dashboard** built for The Odin Project’s Intermediate HTML and CSS course.
- There is no backend or database—everything runs in the browser. The goal was to learn Flexbox, CSS Grid, and implement a light/dark theme toggle.

##### File structure
- Top level contains:
- index.html – the single entry point.
- styles.css – all CSS, including grid and flex layouts and theme rules.
- script.js – handles theme switching logic.
- images/ – any raster assets (logos, placeholders).
- No server-side code or build scripts; this is a pure static site.

##### README for additional insights
- Confirms use of Flexbox + CSS Grid for layout.
- Highlights a browser-controlled light/dark theme toggle.
- Live deployment is via GitHub Pages.

## Diagram (Mermaid)

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

    %% Hosting Service
    Host("GitHub Pages CDN"):::host

    %% Asset Repository
    subgraph "Assets Repository"
        HTML["index.html"]:::file
        CSS["styles.css"]:::file
        JS["script.js"]:::file
        subgraph "Media Assets"
            ICONS["icons/"]:::media
            IMAGES["images/"]:::media
        end
        README["README.md"]:::file
    end

    %% Requests and Responses
    Browser -->|"GET index.html"| Host
    Host -->|"Serves index.html"| Browser

    Browser -->|"GET styles.css"| Host
    Host -->|"Serves styles.css"| Browser

    Browser -->|"GET script.js"| Host
    Host -->|"Serves script.js"| Browser

    Browser -->|"GET icons/*"| Host
    Host -->|"Serves icons/*"| Browser

    Browser -->|"GET images/*"| Host
    Host -->|"Serves images/*"| Browser

    %% Rendering Flow
    Browser -->|"Render HTML structure"| HTML
    Browser -->|"Apply CSS Grid & Flexbox"| CSS
    Browser -->|"Initialize JS behavior"| JS

    %% Theme Toggle Interaction
    Browser -->|"User clicks toggle"| JS
    JS -->|"Toggles CSS variables/class"| CSS
    CSS -->|"Repaint with new theme"| Browser

    %% Documentation
    Host -->|"Holds project docs"| README

    %% Click Events
    click HTML "https://github.com/whatisaprocoder/odin-admin-dashboard/blob/main/index.html"
    click CSS "https://github.com/whatisaprocoder/odin-admin-dashboard/blob/main/styles.css"
    click JS "https://github.com/whatisaprocoder/odin-admin-dashboard/blob/main/script.js"
    click ICONS "https://github.com/whatisaprocoder/odin-admin-dashboard/tree/main/icons/"
    click IMAGES "https://github.com/whatisaprocoder/odin-admin-dashboard/tree/main/images/"
    click README "https://github.com/whatisaprocoder/odin-admin-dashboard/blob/main/README.md"

    %% Styles
    classDef client fill:#dddddd,stroke:#333,stroke-width:1px;
    classDef host fill:#f5a623,stroke:#333,stroke-width:1px,stroke-dasharray: 5 5;
    classDef file fill:#4aa96c,stroke:#333,stroke-width:1px;
    classDef media fill:#2e8b57,stroke:#333,stroke-width:1px;
```
