# yuvraj960/hackmate architecture

> Architecture diagram of the GitHub repository yuvraj960/hackmate, 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/yuvraj960/hackmate
- Repository: https://github.com/yuvraj960/hackmate

## Overview

##### Project type and purpose
- This is a purely front-end, static website (“HackMate Website”) built with HTML, CSS and Bootstrap.
- Its goal is to display current and upcoming hackathons/events to college students.

##### File structure
- Top-level:
– index.html plus several standalone pages (about.html, event.html, login.html, register.html, signup.html, resource.html).
- assets/ directory contains:
– css/ (Bootstrap core + custom styles)
– js/ (Bootstrap JS, jQuery, custom plugins, slider config)
– js/main/ (page-specific scripts + JSON data files)
- No backend or API server code present—data is currently loaded from local JSON files.

##### README for additional insights
- Confirms static front-end; fully responsive.
- Roadmap: add dynamic JavaScript interactions in version 2, then migrate to a React web app.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Client Layer
    subgraph "Client (Web Browser)"
        direction TB
        Browser["Web Browser"]:::user
    end

    %% Infrastructure Layer
    subgraph "Hosting Infrastructure"
        direction TB
        CDN["Netlify CDN"]:::infra
        StaticStore["Static Asset Store"]:::infra
    end

    %% HTML Pages
    subgraph "HTML Pages" 
        direction TB
        index["index.html"]:::frontend
        about["about.html"]:::frontend
        event["event.html"]:::frontend
        login["login.html"]:::frontend
        register["register.html"]:::frontend
        signup["signup.html"]:::frontend
        resource["resource.html"]:::frontend
    end

    %% Presentation Layer: CSS
    subgraph "CSS Stylesheets" 
        direction TB
        css1["bootstrap.css"]:::presentation
        css2["bootstrap-grid.css"]:::presentation
        css3["bootstrap-reboot.css"]:::presentation
        css4["default-skin.css"]:::presentation
        css5["icomoon.css"]:::presentation
        css6["jquery-ui.css"]:::presentation
        css7["meanmenu.css"]:::presentation
        css8["nice-select.css"]:::presentation
        css9["normalize.css"]:::presentation
        css10["popup.css"]:::presentation
        css11["responsive.css"]:::presentation
        css12["slick.css"]:::presentation
        css13["style.css"]:::presentation
    end

    %% Behavior Layer: Global JS & Plugins
    subgraph "Global JavaScript & Plugins"
        direction TB
        js1["bootstrap.bundle.js"]:::behavior
        js2["bootstrap.js"]:::behavior
        js3["plugin.js"]:::behavior
        js4["slider-setting.js"]:::behavior
        js5["custom.js"]:::behavior
        js6["jquery.validate.js"]:::behavior
        js7["modernizer.js"]:::behavior
        revolution["revolution/"]:::behavior
    end

    %% Behavior Layer: Page-specific Scripts
    subgraph "Page-Specific Scripts" 
        direction TB
        aboutJS["about.js"]:::behavior
        eventJS["event.js"]:::behavior
        homeJS["home.js"]:::behavior
        loginJS["login.js"]:::behavior
        registerJS["register.js"]:::behavior
        resourceJS["resource.js"]:::behavior
        signupJS["signup.js"]:::behavior
    end

    %% Data Layer: JSON Files
    subgraph "Static JSON Data" 
        direction TB
        aboutJSON["about.json"]:::data
        eventJSON["event.json"]:::data
        homeJSON["home.json"]:::data
        resourceJSON["resource.json"]:::data
        usersJSON["users.json"]:::data
    end

    %% Static Assets: Fonts, Icons, Images
    subgraph "Fonts & Icons" 
        direction TB
        fonts["assets/fonts/"]:::infra
        icons["assets/icon/about_team/"]:::infra
    end

    subgraph "Images" 
        direction TB
        images["assets/images/"]:::infra
    end

    %% Future Components
    FutureAPI["Future API Server"]:::future
    ReactApp["Future React App"]:::future

    %% Connections
    Browser -->|"HTTP GET index.html"| CDN
    CDN -->|"Serves HTML"| Browser

    CDN --> StaticStore
    StaticStore --> index
    StaticStore --> about
    StaticStore --> event
    StaticStore --> login
    StaticStore --> register
    StaticStore --> signup
    StaticStore --> resource

    Browser -->|"Parse HTML & fetch CSS"| css1
    Browser --> css2
    Browser --> css3
    Browser --> css4
    Browser --> css5
    Browser --> css6
    Browser --> css7
    Browser --> css8
    Browser --> css9
    Browser --> css10
    Browser --> css11
    Browser --> css12
    Browser --> css13

    Browser -->|"Load global scripts"| js1
    Browser --> js2
    Browser --> js3
    Browser --> js4
    Browser --> js5
    Browser --> js6
    Browser --> js7
    Browser --> revolution

    Browser -->|"Load page-specific scripts"| aboutJS
    Browser --> eventJS
    Browser --> homeJS
    Browser --> loginJS
    Browser --> registerJS
    Browser --> resourceJS
    Browser --> signupJS

    aboutJS -->|"AJAX GET about.json"| aboutJSON
    eventJS -->|"AJAX GET event.json"| eventJSON
    homeJS -->|"AJAX GET home.json"| homeJSON
    resourceJS -->|"AJAX GET resource.json"| resourceJSON
    signupJS -->|"AJAX GET users.json"| usersJSON

    Browser --> fonts
    Browser --> icons
    Browser --> images

    %% Future migration path
    Browser -->|“API calls”| FutureAPI
    FutureAPI --> ReactApp

    %% Click Events
    click index "https://github.com/yuvraj960/hackmate/blob/main/index.html"
    click about "https://github.com/yuvraj960/hackmate/blob/main/assets/about.html"
    click event "https://github.com/yuvraj960/hackmate/blob/main/assets/event.html"
    click login "https://github.com/yuvraj960/hackmate/blob/main/assets/login.html"
    click register "https://github.com/yuvraj960/hackmate/blob/main/assets/register.html"
    click signup "https://github.com/yuvraj960/hackmate/blob/main/assets/signup.html"
    click resource "https://github.com/yuvraj960/hackmate/blob/main/assets/resource.html"

    click css1 "https://github.com/yuvraj960/hackmate/blob/main/assets/css/bootstrap.css"
    click css2 "https://github.com/yuvraj960/hackmate/blob/main/assets/css/bootstrap-grid.css"
    click css3 "https://github.com/yuvraj960/hackmate/blob/main/assets/css/bootstrap-reboot.css"
    click css4 "https://github.com/yuvraj960/hackmate/blob/main/assets/css/default-skin.css"
    click css5 "https://github.com/yuvraj960/hackmate/blob/main/assets/css/icomoon.css"
    click css6 "https://github.com/yuvraj960/hackmate/blob/main/assets/css/jquery-ui.css"
    click css7 "https://github.com/yuvraj960/hackmate/blob/main/assets/css/meanmenu.css"
    click css8 "https://github.com/yuvraj960/hackmate/blob/main/assets/css/nice-select.css"
    click css9 "https://github.com/yuvraj960/hackmate/blob/main/assets/css/normalize.css"
    click css10 "https://github.com/yuvraj960/hackmate/blob/main/assets/css/popup.css"
    click css11 "https://github.com/yuvraj960/hackmate/blob/main/assets/css/responsive.css"
    click css12 "https://github.com/yuvraj960/hackmate/blob/main/assets/css/slick.css"
    click css13 "https://github.com/yuvraj960/hackmate/blob/main/assets/css/style.css"

    click js1 "https://github.com/yuvraj960/hackmate/blob/main/assets/js/bootstrap.bundle.js"
    click js2 "https://github.com/yuvraj960/hackmate/blob/main/assets/js/bootstrap.js"
    click js3 "https://github.com/yuvraj960/hackmate/blob/main/assets/js/plugin.js"
    click js4 "https://github.com/yuvraj960/hackmate/blob/main/assets/js/slider-setting.js"
    click js5 "https://github.com/yuvraj960/hackmate/blob/main/assets/js/custom.js"
    click js6 "https://github.com/yuvraj960/hackmate/blob/main/assets/js/jquery.validate.js"
    click js7 "https://github.com/yuvraj960/hackmate/blob/main/assets/js/modernizer.js"
    click revolution "https://github.com/yuvraj960/hackmate/tree/main/assets/js/revolution/"

    click aboutJS "https://github.com/yuvraj960/hackmate/blob/main/assets/js/main/about.js"
    click aboutJSON "https://github.com/yuvraj960/hackmate/blob/main/assets/js/main/about.json"
    click eventJS "https://github.com/yuvraj960/hackmate/blob/main/assets/js/main/event.js"
    click eventJSON "https://github.com/yuvraj960/hackmate/blob/main/assets/js/main/event.json"
    click homeJS "https://github.com/yuvraj960/hackmate/blob/main/assets/js/main/home.js"
    click homeJSON "https://github.com/yuvraj960/hackmate/blob/main/assets/js/main/home.json"
    click loginJS "https://github.com/yuvraj960/hackmate/blob/main/assets/js/main/login.js"
    click registerJS "https://github.com/yuvraj960/hackmate/blob/main/assets/js/main/register.js"
    click resourceJS "https://github.com/yuvraj960/hackmate/blob/main/assets/js/main/resource.js"
    click resourceJSON "https://github.com/yuvraj960/hackmate/blob/main/assets/js/main/resource.json"
    click signupJS "https://github.com/yuvraj960/hackmate/blob/main/assets/js/main/signup.js"
    click usersJSON "https://github.com/yuvraj960/hackmate/blob/main/assets/js/main/users.json"

    click fonts "https://github.com/yuvraj960/hackmate/tree/main/assets/fonts/"
    click icons "https://github.com/yuvraj960/hackmate/tree/main/assets/icon/about_team/"
    click images "https://github.com/yuvraj960/hackmate/tree/main/assets/images/"

    %% Styles
    classDef frontend fill:#D0E6FF,stroke:#1E90FF,color:#000
    classDef user fill:#E8F0FE,stroke:#4177D2,color:#000
    classDef infra fill:#F0F0F0,stroke:#888,color:#000
    classDef presentation fill:#DFF7DC,stroke:#27A844,color:#000
    classDef behavior fill:#FFF5CC,stroke:#D2A121,color:#000
    classDef data fill:#FFE5D0,stroke:#D66E00,color:#000
    classDef future fill:#F4E1FF,stroke:#A14CC1,color:#000
```
