# pealbert/taekol architecture

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

- Interactive diagram: https://gitdiagram.com/pealbert/taekol
- Repository: https://github.com/pealbert/taekol

## Overview

#### Purpose and delivery model
Akademie Taekwon-do SKUP Olomouc is a mostly static public website for a martial-arts academy. Vite builds and serves the site; Cloudflare Workers configuration indicates edge deployment. Primary public entry points are `index.html` and standalone pages in `pages/`.

Paths: `index.html`, `pages/about.html`, `vite.config.js`, `wrangler.jsonc`

#### Page composition
Each page is independently authored HTML rather than being routed through an application framework. The landing page is the primary entry point; informational, class, equipment, registration, legal, and blog content are separate documents under `pages/`. `pages/template.html` likely defines the reusable page markup pattern.

Paths: `index.html`, `pages/template.html`, `pages/classes.html`

#### Client-side behavior
Browser behavior is split into focused JavaScript modules: main-site initialization, responsive burger navigation, class-page interactions, footer behavior, smooth scrolling, and forms. TypeScript has a separate application entry that imports/uses location-oriented data, while existing JavaScript supports page-specific enhancements.

Paths: `src/js/main.js`, `src/js/burger.js`, `src/js/form.js`, `src/ts/main.ts`, `src/ts/locations.ts`

#### Registration and form boundary
Registration is exposed as a dedicated static page, with shared form styling and client logic. The available tree does not identify a backend API or form provider, so form submission handling should be treated as a browser/edge integration boundary rather than an in-repository server implementation.

Paths: `pages/registration.html`, `src/js/form.js`, `src/css/form.css`

#### Presentation assets
Styling is organized by global/base styles plus structural and page-specific stylesheets. Static visual assets, including local fonts, academy/team imagery, and testimonials, are bundled from `src/assets`; Vite resolves and emits them for deployment.

Paths: `src/css/main.css`, `src/css/header.css`, `src/css/classes.css`, `src/assets/fonts`, `src/assets/images`

#### Edge runtime and static hosting
`src/worker.js` is the repository’s server-side/edge entry point, with Cloudflare Worker types and Wrangler configuration defining its runtime boundary. The worker likely fronts static content and can implement request-time behavior; its exact routing behavior requires inspecting the source.

Paths: `src/worker.js`, `worker-configuration.d.ts`, `wrangler.jsonc`

#### Public operational and discovery surface
The `public/` directory contains deployment-ready files copied directly into the built site: crawler controls, sitemap, security contact policy, web manifest, response headers, and structured-data schemas. These form the SEO, PWA, and hosting-header boundary independently of client code.

Paths: `public/_headers`, `public/sitemap.xml`, `public/robots.txt`, `public/schemas/schema-combined.json`

Main entry points: [`index.html`](https://github.com/pealbert/taekol/blob/main/index.html) (Landing page), [`src/worker.js`](https://github.com/pealbert/taekol/blob/main/src/worker.js) (Cloudflare Worker), [`vite.config.js`](https://github.com/pealbert/taekol/blob/main/vite.config.js) (Vite build), [`pages/registration.html`](https://github.com/pealbert/taekol/blob/main/pages/registration.html) (Registration page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pages["Static pages"]
  node_landing["Landing page<br/>HTML entry<br/>[index.html]"]
  node_page_template["Page template<br/>HTML pattern<br/>[template.html]"]
  node_classes_page["Classes page<br/>HTML page<br/>[classes.html]"]
  node_registration_page["Registration page<br/>HTML page<br/>[registration.html]"]
end

subgraph group_client["Browser behavior"]
  node_main_js["Site initialization<br/>JavaScript module<br/>[main.js]"]
  node_burger_js["Burger navigation<br/>JavaScript module<br/>[burger.js]"]
  node_form_js["Form behavior<br/>JavaScript module<br/>[form.js]"]
  node_ts_entry["TypeScript entry<br/>TypeScript module<br/>[main.ts]"]
  node_locations["Location data<br/>TypeScript data<br/>[locations.ts]"]
end

subgraph group_presentation["Presentation assets"]
  node_styles["Global styles<br/>CSS<br/>[main.css]"]
  node_header_styles["Header styles<br/>CSS<br/>[header.css]"]
  node_classes_styles["Classes styles<br/>CSS<br/>[classes.css]"]
  node_form_styles["Form styles<br/>CSS<br/>[form.css]"]
  node_assets["Images and fonts<br/>Static assets"]
end

subgraph group_edge["Build and edge delivery"]
  node_vite{{"Vite build<br/>Build configuration<br/>[vite.config.js]"}}
  node_worker{{"Cloudflare Worker<br/>Edge entry<br/>[worker.js]"}}
  node_wrangler["Wrangler config<br/>Worker configuration<br/>[wrangler.jsonc]"]
end

subgraph group_public["Public operational files"]
  node_headers["Response headers<br/>Hosting policy"]
  node_discovery["SEO discovery<br/>Crawler metadata<br/>[sitemap.xml]"]
  node_structured_data["Structured data<br/>SEO schema"]
end

node_page_template -.->|"markup pattern"| node_classes_page
node_page_template -.->|"markup pattern"| node_registration_page
node_landing -->|"initializes"| node_main_js
node_landing -->|"responsive nav"| node_burger_js
node_landing -->|"loads"| node_ts_entry
node_classes_page -->|"styled by"| node_classes_styles
node_registration_page -->|"form handling"| node_form_js
node_registration_page -->|"styled by"| node_form_styles
node_ts_entry -->|"uses"| node_locations
node_main_js -.->|"site presentation"| node_styles
node_burger_js -.->|"controls"| node_header_styles
node_styles -->|"references"| node_assets
node_vite -->|"builds"| node_landing
node_vite -->|"builds"| node_page_template
node_vite -.->|"deploys with"| node_worker
node_wrangler -->|"configures"| node_worker
node_worker -->|"serves"| node_landing
node_headers -.->|"delivery policy"| node_worker
node_discovery -.->|"indexes"| node_landing
node_structured_data -.->|"describes"| node_landing

click node_landing "https://github.com/pealbert/taekol/blob/main/index.html"
click node_page_template "https://github.com/pealbert/taekol/blob/main/pages/template.html"
click node_classes_page "https://github.com/pealbert/taekol/blob/main/pages/classes.html"
click node_registration_page "https://github.com/pealbert/taekol/blob/main/pages/registration.html"
click node_main_js "https://github.com/pealbert/taekol/blob/main/src/js/main.js"
click node_burger_js "https://github.com/pealbert/taekol/blob/main/src/js/burger.js"
click node_form_js "https://github.com/pealbert/taekol/blob/main/src/js/form.js"
click node_ts_entry "https://github.com/pealbert/taekol/blob/main/src/ts/main.ts"
click node_locations "https://github.com/pealbert/taekol/blob/main/src/ts/locations.ts"
click node_styles "https://github.com/pealbert/taekol/blob/main/src/css/main.css"
click node_header_styles "https://github.com/pealbert/taekol/blob/main/src/css/header.css"
click node_classes_styles "https://github.com/pealbert/taekol/blob/main/src/css/classes.css"
click node_form_styles "https://github.com/pealbert/taekol/blob/main/src/css/form.css"
click node_assets "https://github.com/pealbert/taekol/tree/main/src/assets/images"
click node_vite "https://github.com/pealbert/taekol/blob/main/vite.config.js"
click node_worker "https://github.com/pealbert/taekol/blob/main/src/worker.js"
click node_wrangler "https://github.com/pealbert/taekol/blob/main/wrangler.jsonc"
click node_headers "https://github.com/pealbert/taekol/blob/main/public/_headers"
click node_discovery "https://github.com/pealbert/taekol/blob/main/public/sitemap.xml"
click node_structured_data "https://github.com/pealbert/taekol/blob/main/public/schemas/schema-combined.json"

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_landing,node_page_template,node_classes_page,node_registration_page toneBlue
class node_main_js,node_burger_js,node_form_js,node_ts_entry,node_locations toneAmber
class node_styles,node_header_styles,node_classes_styles,node_form_styles,node_assets toneMint
class node_vite,node_worker,node_wrangler toneRose
class node_headers,node_discovery,node_structured_data toneIndigo
```

## Components

### Static pages

Independently authored public HTML documents.

- [Landing page](https://github.com/pealbert/taekol/blob/main/index.html): HTML entry · Primary public entry point. · `index.html`
- [Page template](https://github.com/pealbert/taekol/blob/main/pages/template.html): HTML pattern · Reusable markup pattern for standalone pages. · `pages/template.html`
- [Classes page](https://github.com/pealbert/taekol/blob/main/pages/classes.html): HTML page · `pages/classes.html`
- [Registration page](https://github.com/pealbert/taekol/blob/main/pages/registration.html): HTML page · Dedicated registration form surface. · `pages/registration.html`

### Browser behavior

- [Site initialization](https://github.com/pealbert/taekol/blob/main/src/js/main.js): JavaScript module · `src/js/main.js`
- [Burger navigation](https://github.com/pealbert/taekol/blob/main/src/js/burger.js): JavaScript module · Responsive navigation behavior. · `src/js/burger.js`
- [Form behavior](https://github.com/pealbert/taekol/blob/main/src/js/form.js): JavaScript module · Browser-side submission integration boundary. · `src/js/form.js`
- [TypeScript entry](https://github.com/pealbert/taekol/blob/main/src/ts/main.ts): TypeScript module · `src/ts/main.ts`
- [Location data](https://github.com/pealbert/taekol/blob/main/src/ts/locations.ts): TypeScript data · `src/ts/locations.ts`

### Presentation assets

- [Global styles](https://github.com/pealbert/taekol/blob/main/src/css/main.css): CSS · Base and shared site styling. · `src/css/main.css`
- [Header styles](https://github.com/pealbert/taekol/blob/main/src/css/header.css): CSS · `src/css/header.css`
- [Classes styles](https://github.com/pealbert/taekol/blob/main/src/css/classes.css): CSS · `src/css/classes.css`
- [Form styles](https://github.com/pealbert/taekol/blob/main/src/css/form.css): CSS · `src/css/form.css`
- [Images and fonts](https://github.com/pealbert/taekol/tree/main/src/assets/images): Static assets · Academy imagery, testimonials, and local fonts. · `src/assets/images`

### Build and edge delivery

- [Vite build](https://github.com/pealbert/taekol/blob/main/vite.config.js): Build configuration · Builds and serves the static site. · `vite.config.js`
- [Cloudflare Worker](https://github.com/pealbert/taekol/blob/main/src/worker.js): Edge entry · Request-time and static-content delivery boundary. · `src/worker.js`
- [Wrangler config](https://github.com/pealbert/taekol/blob/main/wrangler.jsonc): Worker configuration · `wrangler.jsonc`

### Public operational files

- [Response headers](https://github.com/pealbert/taekol/blob/main/public/_headers): Hosting policy · `public/_headers`
- [SEO discovery](https://github.com/pealbert/taekol/blob/main/public/sitemap.xml): Crawler metadata · Sitemap and crawler controls. · `public/sitemap.xml`
- [Structured data](https://github.com/pealbert/taekol/blob/main/public/schemas/schema-combined.json): SEO schema · `public/schemas/schema-combined.json`

## Connections

- Page template → Classes page: markup pattern
- Page template → Registration page: markup pattern
- Landing page → Site initialization: initializes
- Landing page → Burger navigation: responsive nav
- Landing page → TypeScript entry: loads
- Classes page → Classes styles: styled by
- Registration page → Form behavior: form handling
- Registration page → Form styles: styled by
- TypeScript entry → Location data: uses
- Site initialization → Global styles: site presentation
- Burger navigation → Header styles: controls
- Global styles → Images and fonts: references
- Vite build → Landing page: builds
- Vite build → Page template: builds
- Vite build → Cloudflare Worker: deploys with
- Wrangler config → Cloudflare Worker: configures
- Cloudflare Worker → Landing page: serves
- Response headers → Cloudflare Worker: delivery policy
- SEO discovery → Landing page: indexes
- Structured data → Landing page: describes
