# jabrielbams/tubestefa2-kelompok3 architecture

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

- Interactive diagram: https://gitdiagram.com/jabrielbams/tubestefa2-kelompok3
- Repository: https://github.com/jabrielbams/tubestefa2-kelompok3

## Overview

##### Project type and purpose
- This is a static, multi-page front-end application for an Internet café’s ordering system (no backend/API or database).
- It serves two user flows: Regular customers (direct menu selection) and VIP customers (enter customer ID, then menu selection with discounts).
- All logic (menu rendering, price calculation, discount application, modal display) runs in the browser via JavaScript.

##### File structure
- Top level:
– index.html (landing/home page)
– vip.html (VIP login page)
– menu.html (regular menu page)
– menuvip.html (VIP menu page)
- Assets folders:
– css/style.css (custom styles + Bootstrap5)
– js/script.js (core logic: reading selections, computing totals, opening modal)
– js/regular.js (possibly auxiliary functions for regular flow)
– dokumentasi/PPT… (project documentation, not part of runtime)

##### README for insights
- Tech stack: HTML5, CSS3, JavaScript, Bootstrap5
- Features: Regular vs VIP flows, order & calculation logic, popup display
- No server-side component—purely client-side

##### Detail orientation
- HTML page as its own component.
- That vip.html is a gating page requiring customer ID before routing to menuvip.html.
- Modal/popup as a child component of the menu pages.

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph "Static File Host"
        HOST(("Static File Host")):::external
        subgraph "Repository (Non-runtime)"
            DocPPT["dokumentasi/PPT Kelompok 3.pptx"]:::doc
            Readme["README.md"]:::doc
        end
    end

    subgraph "Browser / Client"
        subgraph "HTML Pages"
            Home["index.html"]:::html
            VIPLogin["vip.html"]:::html
            RegMenu["menu.html"]:::html
            VIPMenu["menuvip.html"]:::html
        end
        subgraph "CSS Assets"
            Style["css/style.css"]:::css
            Bootstrap["Bootstrap5 CDN"]:::external
        end
        subgraph "JavaScript Modules"
            Script["js/script.js"]:::js
            RegularJS["js/regular.js"]:::js
        end
        ImgAssets["img/"]:::img
        Modal["Order Summary Modal"]:::ui
    end

    %% Host serving HTML pages
    HOST -->|GET index.html| Home
    HOST -->|GET vip.html| VIPLogin
    HOST -->|GET menu.html| RegMenu
    HOST -->|GET menuvip.html| VIPMenu

    %% HTML loading assets
    Home -->|loads CSS| Style
    VIPLogin -->|loads CSS| Style
    RegMenu -->|loads CSS| Style
    VIPMenu -->|loads CSS| Style

    Home -->|loads JS| Script
    VIPLogin -->|loads JS| Script
    RegMenu -->|loads JS| Script
    VIPMenu -->|loads JS| Script

    RegMenu -->|loads JS| RegularJS
    RegMenu -->|loads images| ImgAssets
    VIPMenu -->|loads images| ImgAssets

    Home -->|loads external CSS/JS| Bootstrap
    VIPLogin -->|loads external CSS/JS| Bootstrap
    RegMenu -->|loads external CSS/JS| Bootstrap
    VIPMenu -->|loads external CSS/JS| Bootstrap

    %% Navigation flows
    Home -->|"Regular Customer Flow"| RegMenu
    Home -->|"VIP Customer Flow"| VIPLogin
    VIPLogin -->|"Submit Customer ID"| VIPMenu

    %% JS execution flow
    RegMenu -->|"select items & click order"| Script
    VIPMenu -->|"select items & click order"| Script
    Script -->|"compute total & apply discount"| Modal
    Script -->|"display popup"| Modal

    %% Styles
    classDef html fill:#D0E8FF,stroke:#024073,color:#024073
    classDef css fill:#D5E8D4,stroke:#0B6623,color:#0B6623
    classDef js fill:#FFF2CC,stroke:#B7791F,color:#B7791F
    classDef img fill:#F8CECC,stroke:#B85450,color:#B85450
    classDef external fill:#EEEEEE,stroke:#777777,color:#333333,stroke-dasharray: 3 2
    classDef ui fill:#FFE6CC,stroke:#CC8400,color:#CC8400
    classDef doc fill:#F4CCCC,stroke:#A80000,color:#A80000

    %% Click Events
    click Home "https://github.com/jabrielbams/tubestefa2-kelompok3/blob/main/index.html"
    click VIPLogin "https://github.com/jabrielbams/tubestefa2-kelompok3/blob/main/vip.html"
    click RegMenu "https://github.com/jabrielbams/tubestefa2-kelompok3/blob/main/menu.html"
    click VIPMenu "https://github.com/jabrielbams/tubestefa2-kelompok3/blob/main/menuvip.html"
    click Style "https://github.com/jabrielbams/tubestefa2-kelompok3/blob/main/css/style.css"
    click Script "https://github.com/jabrielbams/tubestefa2-kelompok3/blob/main/js/script.js"
    click RegularJS "https://github.com/jabrielbams/tubestefa2-kelompok3/blob/main/js/regular.js"
    click ImgAssets "https://github.com/jabrielbams/tubestefa2-kelompok3/tree/main/img/"
    click DocPPT "https://github.com/jabrielbams/tubestefa2-kelompok3/blob/main/dokumentasi/PPT Kelompok 3.pptx"
    click Readme "https://github.com/jabrielbams/tubestefa2-kelompok3/blob/main/README.md"
```
