# sulemaniftikhar/web-assignment architecture

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

- Interactive diagram: https://gitdiagram.com/sulemaniftikhar/web-assignment
- Repository: https://github.com/sulemaniftikhar/web-assignment

## Overview

##### Project type and purpose
- From the README (“Web Programming Assignment… academic project”) and the file tree, this is a static, multi‐page web application.
- There is no server‐side code or API—just static HTML, CSS, JavaScript, a JSON data file, and assets (images + Bootstrap library).

##### File structure
- Top level:
- index.html, login-signup.html, support.html → presentation pages
- anime.css, chatbox.css, login-signup.css, styles.css → custom styles
- scripts.js, login-signup.js → custom client-side logic
- data.json → local data source
- bootstrap/ → front-end framework assets (CSS & JS)
- images/ → static media assets
- No “src/” or “backend” folders—this is a purely front-end static site.
- No build scripts or server configs—served as-is by any static web server.

##### README for additional insights
- The README simply states that this is an academic web assignment that will be updated.

a. Main components
- Client Browser (User Interface)
- Static File Server (could be Nginx, Apache, or GitHub Pages)
- Static Assets:
- HTML pages
- CSS files (custom + Bootstrap)
- JavaScript files (custom + bootstrap.bundle.js)
- data.json (data source)
- images/
b. Relationships & interactions
- Browser → HTTP GET → Server for HTML pages
- HTML pages reference CSS & JS assets → Browser fetches them
- scripts.js (or login-signup.js) dynamically fetches data.json via AJAX/Fetch
- Browser renders data-driven components (e.g., chatbox, anime listings)
c. Architectural patterns & design principles
- Separation of concerns:
- Content & structure in HTML
- Presentation in CSS (including Bootstrap)
- Behavior in JavaScript
- Client-driven data fetch from a local JSON file
d. Relevant technologies & libraries
- HTML5, CSS3, JavaScript (ES6)
- Bootstrap (grid, components, utilities)
- Fetch API or XMLHttpRequest for data.json

##### Essential details
- Multi‐page structure (index, login-signup, support)
- Style separation (custom CSS vs. Bootstrap)
- Behavior separation (custom JS vs. Bootstrap JS)
- Data flow from data.json into the UI
- Avoid unnecessary components—keep it focused on client-side rendering of static assets.

## Diagram (Mermaid)

```mermaid
flowchart TD
    Browser["Client Browser"]:::browser
    Server["Static File Server"]:::server

    Browser -->|"HTTP GET HTML/CSS/JS/Images/Data"| Server

    subgraph "Static File Server"
        subgraph "HTML Pages"
            Index["index.html"]:::html
            Login["login-signup.html"]:::html
            Support["support.html"]:::html
        end
        subgraph "Custom CSS"
            AnimeCSS["anime.css"]:::customcss
            ChatCSS["chatbox.css"]:::customcss
            LoginCSS["login-signup.css"]:::customcss
            StylesCSS["styles.css"]:::customcss
        end
        subgraph "Custom JS"
            ScriptsJS["scripts.js"]:::customjs
            LoginJS["login-signup.js"]:::customjs
        end
        subgraph "Bootstrap Framework"
            BootstrapCSS["bootstrap/css/"]:::bootstrap
            BootstrapJS["bootstrap/js/"]:::bootstrap
        end
        Data["data.json"]:::data
        Images["images/"]:::media
    end

    Server -->|serves| Index
    Server -->|serves| Login
    Server -->|serves| Support
    Server -->|serves| AnimeCSS
    Server -->|serves| ChatCSS
    Server -->|serves| LoginCSS
    Server -->|serves| StylesCSS
    Server -->|serves| ScriptsJS
    Server -->|serves| LoginJS
    Server -->|serves| BootstrapCSS
    Server -->|serves| BootstrapJS
    Server -->|serves| Images
    Server -->|serves| Data

    ScriptsJS -->|Fetch /data.json| Data
    LoginJS -->|Fetch /data.json| Data

    click Index "https://github.com/sulemaniftikhar/web-assignment/blob/main/index.html"
    click Login "https://github.com/sulemaniftikhar/web-assignment/blob/main/login-signup.html"
    click Support "https://github.com/sulemaniftikhar/web-assignment/blob/main/support.html"
    click AnimeCSS "https://github.com/sulemaniftikhar/web-assignment/blob/main/anime.css"
    click ChatCSS "https://github.com/sulemaniftikhar/web-assignment/blob/main/chatbox.css"
    click LoginCSS "https://github.com/sulemaniftikhar/web-assignment/blob/main/login-signup.css"
    click StylesCSS "https://github.com/sulemaniftikhar/web-assignment/blob/main/styles.css"
    click ScriptsJS "https://github.com/sulemaniftikhar/web-assignment/blob/main/scripts.js"
    click LoginJS "https://github.com/sulemaniftikhar/web-assignment/blob/main/login-signup.js"
    click BootstrapCSS "https://github.com/sulemaniftikhar/web-assignment/tree/main/bootstrap/css/"
    click BootstrapJS "https://github.com/sulemaniftikhar/web-assignment/tree/main/bootstrap/js/"
    click Data "https://github.com/sulemaniftikhar/web-assignment/blob/main/data.json"
    click Images "https://github.com/sulemaniftikhar/web-assignment/tree/main/images/"

    classDef browser fill:#ADD8E6,stroke:#000;
    classDef server fill:#A9A9A9,stroke:#000;
    classDef html fill:#E0FFE0,stroke:#000;
    classDef customcss fill:#CCFFCC,stroke:#000;
    classDef customjs fill:#CCFFCC,stroke:#000;
    classDef bootstrap fill:#99CCFF,stroke:#000;
    classDef data fill:#FFD580,stroke:#000;
    classDef media fill:#E6CCFF,stroke:#000;
```
