# ashawe/ctf-website-template-2020 architecture

> Architecture diagram of the GitHub repository ashawe/ctf-website-template-2020, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ashawe/ctf-website-template-2020
- Repository: https://github.com/ashawe/ctf-website-template-2020

## Overview

##### Main Components
- Client (User’s Web Browser): This is where users interact with the site and view all the static pages.
- HTML Pages: Each static page (index.html, about.html, login.html, register.html, quests.html, instructions.html, machine.html, feedback.html, hackerboard.html, 404.html, and any additional pages like app.html or form.html) can be grouped into a “Website Pages” module.
- Assets/Static Resources: Represent a module that includes directories for CSS, JavaScript, Fonts, and Images.
- External Libraries/Dependencies: Highlight external resources such as the Neon Glow Bootstrap theme and any other third-party libraries (e.g., chart.js).

##### Relationships and Interactions
- Inside the Web Server, show two major branches:
- One branch delivering HTML pages.
- A second branch delivering static assets (CSS, JS, Fonts, Images).

##### Architectural Patterns and Design Principles
- Modularity: Emphasize how each page is a module that together forms the whole website.

##### Relevant Details
- Technologies: Mention use of Bootstrap (via Neon Glow theme) and JavaScript libraries (e.g., chart.js).
- Design Elements: Show that fonts and custom CSS bring a unique design to the template.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Global Entities
    Client["Client Browser"]:::client
    Server["Static Web Server"]:::server
    Backend["Django (Planned Backend)"]:::future

    %% Relationships from Client to Server and Planned Backend
    Client -->|"requests"| Server
    Server -.->|"future_integration"| Backend

    %% Subgraph for HTML Pages Module inside the Static Web Server
    subgraph "HTML Pages Module"
        index["index.html"]:::html
        about["about.html"]:::html
        feedback["feedback.html"]:::html
        hackerboard["hackerboard.html"]:::html
        instructions["instructions.html"]:::html
        login["login.html"]:::html
        machine["machine.html"]:::html
        quests["quests.html"]:::html
        register["register.html"]:::html
        app["app.html"]:::html
        form["form.html"]:::html
        error["404.html"]:::html
    end

    %% Subgraph for Assets/Static Resources inside the Static Web Server
    subgraph "Assets (CSS, JS, Fonts, Images)"
        %% CSS Assets
        subgraph "CSS Assets"
            bootstrap["bootstrap4-neon-glow.css"]:::css
            maincss["main.css"]:::css
        end
        %% JavaScript Assets
        subgraph "JavaScript Assets"
            chartjs["chart.js"]:::js
            preloader["preloader.js"]:::js
        end
        %% Fonts Assets
        subgraph "Fonts"
            doctor["Doctor Glitch.otf"]:::fonts
            phelix["PhelixBoomgartner.otf"]:::fonts
        end
        %% Images Assets
        subgraph "Images"
            images["Images Directory"]:::images
        end
    end

    %% Indicate HTML Pages referencing Assets
    index -->|"uses_assets"| bootstrap
    index -->|"uses_assets"| maincss
    index -->|"uses_assets"| chartjs
    index -->|"uses_assets"| preloader
    index -->|"uses_assets"| doctor
    index -->|"uses_assets"| phelix
    index -->|"uses_assets"| images

    %% Navigation flow between HTML pages
    index -->|"to_login"| login
    index -->|"to_register"| register
    login -->|"to_quests"| quests
    register -->|"to_quests"| quests
    quests -->|"to_hackerboard"| hackerboard
    index -->|"to_about"| about
    index -->|"to_feedback"| feedback
    index -->|"to_instructions"| instructions
    quests -->|"to_machine"| machine
    feedback -->|"to_form"| form

    %% Click Events for Component Mapping
    click Server "https://github.com/ashawe/ctf-website-template-2020/blob/master/."

    click index "https://github.com/ashawe/ctf-website-template-2020/blob/master/index.html"
    click about "https://github.com/ashawe/ctf-website-template-2020/blob/master/about.html"
    click feedback "https://github.com/ashawe/ctf-website-template-2020/blob/master/feedback.html"
    click hackerboard "https://github.com/ashawe/ctf-website-template-2020/blob/master/hackerboard.html"
    click instructions "https://github.com/ashawe/ctf-website-template-2020/blob/master/instructions.html"
    click login "https://github.com/ashawe/ctf-website-template-2020/blob/master/login.html"
    click machine "https://github.com/ashawe/ctf-website-template-2020/blob/master/machine.html"
    click quests "https://github.com/ashawe/ctf-website-template-2020/blob/master/quests.html"
    click register "https://github.com/ashawe/ctf-website-template-2020/blob/master/register.html"
    click app "https://github.com/ashawe/ctf-website-template-2020/blob/master/app.html"
    click form "https://github.com/ashawe/ctf-website-template-2020/blob/master/form.html"
    click error "https://github.com/ashawe/ctf-website-template-2020/blob/master/404.html"

    click bootstrap "https://github.com/ashawe/ctf-website-template-2020/blob/master/css/bootstrap4-neon-glow.css"
    click maincss "https://github.com/ashawe/ctf-website-template-2020/blob/master/css/main.css"

    click chartjs "https://github.com/ashawe/ctf-website-template-2020/blob/master/js/chart.js"
    click preloader "https://github.com/ashawe/ctf-website-template-2020/blob/master/js/preloader.js"

    click doctor "https://github.com/ashawe/ctf-website-template-2020/blob/master/fonts/Doctor Glitch.otf"
    click phelix "https://github.com/ashawe/ctf-website-template-2020/blob/master/fonts/PhelixBoomgartner.otf"

    click images "https://github.com/ashawe/ctf-website-template-2020/tree/master/images"

    %% Class Definitions with Colors
    classDef client fill:#ADD8E6,stroke:#000,stroke-width:1px;
    classDef server fill:#D3D3D3,stroke:#000,stroke-width:1px;
    classDef html fill:#90EE90,stroke:#000,stroke-width:1px;
    classDef css fill:#F4A460,stroke:#000,stroke-width:1px;
    classDef js fill:#FFFF99,stroke:#000,stroke-width:1px;
    classDef fonts fill:#D8BFD8,stroke:#000,stroke-width:1px;
    classDef images fill:#FFC0CB,stroke:#000,stroke-width:1px;
    classDef future fill:#FFA07A,stroke:#000,stroke-dasharray: 5 5,stroke-width:2px;
```
