# glimakra-webbutvecklare-2026/modul3-css-heb architecture

> Architecture diagram of the GitHub repository glimakra-webbutvecklare-2026/modul3-css-heb, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/glimakra-webbutvecklare-2026/modul3-css-heb
- Repository: https://github.com/glimakra-webbutvecklare-2026/modul3-css-heb

## Overview

This repository is a browser-based Swedish CSS lesson collection, with a small interactive slide-and-answer controller and standalone playground pages. A learner opens a lesson, navigates its slides with the keyboard, and can reveal answers; the controller also updates slide counts and progress. The file tree identifies lesson topics and playground pages, but their HTML and CSS were not sampled, so their exact links and behavior cannot be verified. The controller’s DOM interactions are supported by its excerpt; other relationships are omitted rather than inferred.

Main entry points: [`planering_WUD1/lektioner.js`](https://github.com/glimakra-webbutvecklare-2026/modul3-css-heb/blob/main/planering_WUD1/lektioner.js) (Slide controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_course["CSS lessons"]
  node_home["Course home<br/>[index.html]"]
  node_box["Box model"]
  node_sizing["Sizing and layout"]
  node_units["CSS units"]
  node_flexbox1["Flexbox container"]
  node_flexbox2["Flexbox items"]
  node_grid1["Grid columns"]
  node_grid2["Grid layout"]
end

subgraph group_interaction["Lesson interaction"]
  node_controller["Slide controller<br/>[lektioner.js]"]
  node_lessonstyles["Lesson styles<br/>[lektioner.css]"]
end

subgraph group_playground["Playground"]
  node_playhome["Playground home<br/>[index.html]"]
  node_playunits["Units playground<br/>[css-enheter.html]"]
  node_playstyles["Playground styles<br/>[reset.css]"]
end

node_learner(("Learner"))

node_learner -->|"uses keyboard or clicks"| node_controller
node_controller -->|"updates slides and progress"| node_controller

click node_home "https://github.com/glimakra-webbutvecklare-2026/modul3-css-heb/blob/main/planering_WUD1/index.html"
click node_box "https://github.com/glimakra-webbutvecklare-2026/modul3-css-heb/blob/main/planering_WUD1/lektion5-boxmodellen-lager-egenskaper.html"
click node_sizing "https://github.com/glimakra-webbutvecklare-2026/modul3-css-heb/blob/main/planering_WUD1/lektion6-box-sizing-display-positionering.html"
click node_units "https://github.com/glimakra-webbutvecklare-2026/modul3-css-heb/blob/main/planering_WUD1/lektion7-css-enheter.html"
click node_flexbox1 "https://github.com/glimakra-webbutvecklare-2026/modul3-css-heb/blob/main/planering_WUD1/lektion8-flexbox-behallaren.html"
click node_flexbox2 "https://github.com/glimakra-webbutvecklare-2026/modul3-css-heb/blob/main/planering_WUD1/lektion9-flexbox-barnen.html"
click node_grid1 "https://github.com/glimakra-webbutvecklare-2026/modul3-css-heb/blob/main/planering_WUD1/lektion10-css-grid-kolumner.html"
click node_grid2 "https://github.com/glimakra-webbutvecklare-2026/modul3-css-heb/blob/main/planering_WUD1/lektion11-css-grid-sidlayout.html"
click node_controller "https://github.com/glimakra-webbutvecklare-2026/modul3-css-heb/blob/main/planering_WUD1/lektioner.js"
click node_lessonstyles "https://github.com/glimakra-webbutvecklare-2026/modul3-css-heb/blob/main/planering_WUD1/lektioner.css"
click node_playhome "https://github.com/glimakra-webbutvecklare-2026/modul3-css-heb/blob/main/playground/index.html"
click node_playunits "https://github.com/glimakra-webbutvecklare-2026/modul3-css-heb/blob/main/playground/css-enheter.html"
click node_playstyles "https://github.com/glimakra-webbutvecklare-2026/modul3-css-heb/blob/main/playground/reset.css"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_home,node_box,node_sizing,node_units,node_flexbox1,node_flexbox2,node_grid1,node_grid2 toneBlue
class node_controller,node_lessonstyles toneAmber
class node_playhome,node_playunits,node_playstyles toneMint
class node_learner toneIndigo
```

## Components

### CSS lessons

- [Course home](https://github.com/glimakra-webbutvecklare-2026/modul3-css-heb/blob/main/planering_WUD1/index.html): `planering_WUD1/index.html`
- [Box model](https://github.com/glimakra-webbutvecklare-2026/modul3-css-heb/blob/main/planering_WUD1/lektion5-boxmodellen-lager-egenskaper.html): `planering_WUD1/lektion5-boxmodellen-lager-egenskaper.html`
- [Sizing and layout](https://github.com/glimakra-webbutvecklare-2026/modul3-css-heb/blob/main/planering_WUD1/lektion6-box-sizing-display-positionering.html): `planering_WUD1/lektion6-box-sizing-display-positionering.html`
- [CSS units](https://github.com/glimakra-webbutvecklare-2026/modul3-css-heb/blob/main/planering_WUD1/lektion7-css-enheter.html): `planering_WUD1/lektion7-css-enheter.html`
- [Flexbox container](https://github.com/glimakra-webbutvecklare-2026/modul3-css-heb/blob/main/planering_WUD1/lektion8-flexbox-behallaren.html): `planering_WUD1/lektion8-flexbox-behallaren.html`
- [Flexbox items](https://github.com/glimakra-webbutvecklare-2026/modul3-css-heb/blob/main/planering_WUD1/lektion9-flexbox-barnen.html): `planering_WUD1/lektion9-flexbox-barnen.html`
- [Grid columns](https://github.com/glimakra-webbutvecklare-2026/modul3-css-heb/blob/main/planering_WUD1/lektion10-css-grid-kolumner.html): `planering_WUD1/lektion10-css-grid-kolumner.html`
- [Grid layout](https://github.com/glimakra-webbutvecklare-2026/modul3-css-heb/blob/main/planering_WUD1/lektion11-css-grid-sidlayout.html): `planering_WUD1/lektion11-css-grid-sidlayout.html`

### Lesson interaction

- [Slide controller](https://github.com/glimakra-webbutvecklare-2026/modul3-css-heb/blob/main/planering_WUD1/lektioner.js): `planering_WUD1/lektioner.js`
- [Lesson styles](https://github.com/glimakra-webbutvecklare-2026/modul3-css-heb/blob/main/planering_WUD1/lektioner.css): `planering_WUD1/lektioner.css`

### Playground

- [Playground home](https://github.com/glimakra-webbutvecklare-2026/modul3-css-heb/blob/main/playground/index.html): `playground/index.html`
- [Units playground](https://github.com/glimakra-webbutvecklare-2026/modul3-css-heb/blob/main/playground/css-enheter.html): `playground/css-enheter.html`
- [Playground styles](https://github.com/glimakra-webbutvecklare-2026/modul3-css-heb/blob/main/playground/reset.css): `playground/reset.css`

### Other components

- **Learner**

## Connections

- Learner → Slide controller: uses keyboard or clicks (evidence: `planering_WUD1/lektioner.js`)
- Slide controller → Slide controller: updates slides and progress (evidence: `planering_WUD1/lektioner.js`)
