# vita4iin/valum_veebileht architecture

> Architecture diagram of the GitHub repository vita4iin/valum_veebileht, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vita4iin/valum_veebileht
- Repository: https://github.com/vita4iin/valum_veebileht

## Overview

Padel Tartus is a small informational website for beginners, organized around three pages: a welcome page, a directory of places to play in Tartu, and a guide to playing padel. The main visitor workflow starts at the welcome page and leads to either the venue directory or the rules guide. The directory adds indoor/outdoor filtering and booking links; the guide covers rules and scoring, with an instructional video, scroll progress, and section reveal animations. Relationships for page navigation and documented external content come from the README; implementation details are limited to the sampled JavaScript.

Main entry points: [`kuidas mängida/kuidas-mangida.html`](https://github.com/vita4iin/valum_veebileht/blob/main/kuidas%20m%C3%A4ngida/kuidas-mangida.html) (Padel rules guide), [`index.html`](https://github.com/vita4iin/valum_veebileht/blob/main/index.html) (Welcome page), [`kohad/kohad.html`](https://github.com/vita4iin/valum_veebileht/blob/main/kohad/kohad.html) (Tartu venues), [`kohad/kohad.js`](https://github.com/vita4iin/valum_veebileht/blob/main/kohad/kohad.js) (Venue filtering)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_home["Welcome page"]
  node_homepage["Welcome page<br/>[index.html]"]
  node_home_script["Welcome interactions<br/>[script.js]"]
  node_home_styles["Home styles<br/>[style.css]"]
end

subgraph group_venues["Venue directory"]
  node_venue_page["Tartu venues<br/>[kohad.html]"]
  node_venue_filter["Venue filtering<br/>[kohad.js]"]
  node_venue_styles["Venue styles<br/>[kohad.css]"]
end

subgraph group_guide["Playing guide"]
  node_guide_page["Padel rules guide"]
  node_guide_script["Scroll effects<br/>[script.js]"]
  node_guide_styles["Guide styles<br/>[padeli-reeglid.css]"]
end

node_visitor(("Visitor"))
node_shared_styles["Shared styles<br/>[style.css]"]
node_mixitup["MixItUp"]
node_playtomic["Playtomic booking"]
node_youtube["Instructional video"]

node_visitor -->|"opens"| node_homepage
node_homepage -->|"links to"| node_venue_page
node_homepage -->|"links to"| node_guide_page
node_venue_filter -->|"filters grid"| node_venue_page
node_venue_filter -->|"invokes"| node_mixitup
node_venue_page -->|"links for booking"| node_playtomic
node_guide_script -->|"reveals sections"| node_guide_page
node_guide_script -->|"updates progress"| node_guide_page
node_guide_page -->|"includes video"| node_youtube

click node_homepage "https://github.com/vita4iin/valum_veebileht/blob/main/index.html"
click node_home_script "https://github.com/vita4iin/valum_veebileht/blob/main/avaleht/script.js"
click node_home_styles "https://github.com/vita4iin/valum_veebileht/blob/main/avaleht/style.css"
click node_shared_styles "https://github.com/vita4iin/valum_veebileht/blob/main/style.css"
click node_venue_page "https://github.com/vita4iin/valum_veebileht/blob/main/kohad/kohad.html"
click node_venue_filter "https://github.com/vita4iin/valum_veebileht/blob/main/kohad/kohad.js"
click node_venue_styles "https://github.com/vita4iin/valum_veebileht/blob/main/kohad/kohad.css"
click node_guide_page "https://github.com/vita4iin/valum_veebileht/blob/main/kuidas%20m%C3%A4ngida/kuidas-mangida.html"
click node_guide_script "https://github.com/vita4iin/valum_veebileht/blob/main/kuidas%20m%C3%A4ngida/script.js"
click node_guide_styles "https://github.com/vita4iin/valum_veebileht/blob/main/kuidas%20m%C3%A4ngida/padeli-reeglid.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_homepage,node_home_script,node_home_styles toneBlue
class node_venue_page,node_venue_filter,node_venue_styles toneAmber
class node_guide_page,node_guide_script,node_guide_styles toneMint
class node_visitor,node_mixitup,node_playtomic,node_youtube toneIndigo
class node_shared_styles toneTeal
```

## Components

### Welcome page

- [Welcome page](https://github.com/vita4iin/valum_veebileht/blob/main/index.html): `index.html`
- [Welcome interactions](https://github.com/vita4iin/valum_veebileht/blob/main/avaleht/script.js): `avaleht/script.js`
- [Home styles](https://github.com/vita4iin/valum_veebileht/blob/main/avaleht/style.css): `avaleht/style.css`

### Venue directory

- [Tartu venues](https://github.com/vita4iin/valum_veebileht/blob/main/kohad/kohad.html): `kohad/kohad.html`
- [Venue filtering](https://github.com/vita4iin/valum_veebileht/blob/main/kohad/kohad.js): `kohad/kohad.js`
- [Venue styles](https://github.com/vita4iin/valum_veebileht/blob/main/kohad/kohad.css): `kohad/kohad.css`

### Playing guide

- [Padel rules guide](https://github.com/vita4iin/valum_veebileht/blob/main/kuidas%20m%C3%A4ngida/kuidas-mangida.html): `kuidas mängida/kuidas-mangida.html`
- [Scroll effects](https://github.com/vita4iin/valum_veebileht/blob/main/kuidas%20m%C3%A4ngida/script.js): `kuidas mängida/script.js`
- [Guide styles](https://github.com/vita4iin/valum_veebileht/blob/main/kuidas%20m%C3%A4ngida/padeli-reeglid.css): `kuidas mängida/padeli-reeglid.css`

### Other components

- **Visitor**
- [Shared styles](https://github.com/vita4iin/valum_veebileht/blob/main/style.css): `style.css`
- **MixItUp**
- **Playtomic booking**
- **Instructional video**

## Connections

- Visitor → Welcome page: opens (evidence: `README.md`)
- Welcome page → Tartu venues: links to (evidence: `README.md`)
- Welcome page → Padel rules guide: links to (evidence: `README.md`)
- Venue filtering → Tartu venues: filters grid (evidence: `kohad/kohad.js`)
- Venue filtering → MixItUp: invokes (evidence: `kohad/kohad.js`)
- Tartu venues → Playtomic booking: links for booking (evidence: `README.md`)
- Scroll effects → Padel rules guide: reveals sections (evidence: `kuidas mängida/script.js`)
- Scroll effects → Padel rules guide: updates progress (evidence: `kuidas mängida/script.js`)
- Padel rules guide → Instructional video: includes video (evidence: `README.md`)
