# ironer201/web-practice architecture

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

- Interactive diagram: https://gitdiagram.com/ironer201/web-practice
- Repository: https://github.com/ironer201/web-practice

## Overview

##### Project type and purpose
- This “web-practice” repo is not a single monolithic app but a set of four small front-end practice modules:
- Login form (HTML/CSS)
- Colorful button (HTML/CSS)
- E-commerce demo (HTML/CSS/JS with a shopping-cart model)
- Restaurant UI (HTML/CSS/JS)
- All are static/front-end–only projects demonstrating UI structure (HTML), styling (CSS), and basic behavior (JavaScript).

##### File structure
- Top-level folders:
- “Login form” contains index.html and a CSS file.
- “colorful button” contains index.html and style.css.
- “e-commerce” contains shopping-cart HTML/CSS/JS plus an image folder.
- “restaurant [HTML CSS]” contains index.html, style.css, res.js and a temp folder.
- No server-side code, build scripts, or deployment manifests. Each module is a self-contained static site.

##### Key insights from README
- The README confirms this is a sandbox for practicing front-end skills: HTML structure, CSS layouts, JavaScript DOM manipulation, array usage.

##### Putting it all together
- Inside, partition it vertically into “Static UI Modules” (Login, Button, Restaurant) and “Dynamic UI Module” (E-commerce).

## Diagram (Mermaid)

```mermaid
graph TD
  subgraph "Web Browser"
    subgraph "Static UI Modules"
      subgraph "Login Form"
        LF_HTML["index.html"]:::html
        LF_CSS["log in.css"]:::css
        LF_HTML -->|"links"| LF_CSS
      end
      subgraph "Colorful Button"
        CB_HTML["index.html"]:::html
        CB_CSS["style.css"]:::css
        CB_HTML -->|"links"| CB_CSS
      end
      subgraph "Restaurant UI"
        R_HTML["index.html"]:::html
        R_CSS["style.css"]:::css
        R_JS["res.js"]:::js
        R_ASSET["temp/"]:::asset
        R_HTML -->|"links"| R_CSS
        R_HTML -->|"scripts"| R_JS
      end
    end

    subgraph "Dynamic UI Module (E-commerce)"
      E_HTML["shopping-cart.html"]:::html
      E_CSS["shoppin-cart.css"]:::css
      E_JS["shopping-cart.js"]:::js
      E_ASSET["pic/"]:::asset
      subgraph "Model: Cart Array"
        MODEL["shoppingCart[]"]:::model
      end
      E_HTML -->|"links"| E_CSS
      E_HTML -->|"scripts"| E_JS
      E_JS -->|"reads/writes"| MODEL
      E_JS -->|"updates DOM"| E_HTML
      E_HTML -->|"uses assets"| E_ASSET
    end
  end

  subgraph "Documentation"
    DocRoot["README.md"]:::doc
    DocLogin["readme.md"]:::doc
    DocEcom["readme.md"]:::doc
  end

  click LF_HTML "https://github.com/ironer201/web-practice/blob/main/Login form/index.html"
  click LF_CSS "https://github.com/ironer201/web-practice/blob/main/Login form/log in.css"
  click CB_HTML "https://github.com/ironer201/web-practice/blob/main/colorful button/index.html"
  click CB_CSS "https://github.com/ironer201/web-practice/blob/main/colorful button/style.css"
  click R_HTML "https://github.com/ironer201/web-practice/blob/main/restaurant [HTML CSS]/index.html"
  click R_CSS "https://github.com/ironer201/web-practice/blob/main/restaurant [HTML CSS]/style.css"
  click R_JS "https://github.com/ironer201/web-practice/blob/main/restaurant [HTML CSS]/res.js"
  click R_ASSET "https://github.com/ironer201/web-practice/tree/main/restaurant [HTML CSS]/temp/"
  click E_HTML "https://github.com/ironer201/web-practice/blob/main/e-commerce/shopping-cart.html"
  click E_CSS "https://github.com/ironer201/web-practice/blob/main/e-commerce/shoppin-cart.css"
  click E_JS "https://github.com/ironer201/web-practice/blob/main/e-commerce/shopping-cart.js"
  click E_ASSET "https://github.com/ironer201/web-practice/tree/main/e-commerce/pic/"
  click DocRoot "https://github.com/ironer201/web-practice/blob/main/README.md"
  click DocLogin "https://github.com/ironer201/web-practice/blob/main/Login form/readme.md"
  click DocEcom "https://github.com/ironer201/web-practice/blob/main/e-commerce/readme.md"

  classDef html fill:#ADD8E6,stroke:#000
  classDef css fill:#90EE90,stroke:#000
  classDef js fill:#FFB6C1,stroke:#000
  classDef model fill:#D3D3D3,stroke:#000
  classDef asset fill:#FFFFE0,stroke:#000
  classDef doc fill:#dda0dd,stroke:#000
```
