# mtjns/nasertyne architecture

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

- Interactive diagram: https://gitdiagram.com/mtjns/nasertyne
- Repository: https://github.com/mtjns/nasertyne

## Overview

This is a small Czech local-election campaign website: its files include campaign pages, a questionnaire, campaign documents and image assets. The principal user journey and links between these pages cannot be verified because the HTML was not excerpted and there is no README. The only sampled runtime behavior is `script.js`, which responds to browser events, adjusts navbar styling, enables Bootstrap ScrollSpy when the relevant element exists, and collapses the responsive menu after navigation clicks.

Main entry points: [`script.js`](https://github.com/mtjns/nasertyne/blob/main/script.js) (Navigation behavior)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Campaign website"]
  node_home["Campaign home<br/>[index.html]"]
  node_questionnaire["Questionnaire<br/>[index.html]"]
  node_archive["Archived page<br/>[index.html]"]
  node_not_found["Not-found page<br/>[404.html]"]
  node_candidate_pdf["Candidate document<br/>[kandidatka.pdf]"]
  node_meeting_pdf["Campaign meeting"]
  node_program_pdf["Election program"]
  node_images["Campaign imagery"]
end

subgraph group_runtime["Browser behavior"]
  node_styles["Site styles<br/>[style.css]"]
  node_custom_styles["Custom styles<br/>[custom.css]"]
  node_fonts["Font styles<br/>[fonts.css]"]
  node_behavior["Navigation behavior<br/>[script.js]"]
end

node_browser(("Web browser"))
node_bootstrap["Bootstrap ScrollSpy"]

node_behavior -->|"registers events"| node_browser
node_behavior -->|"updates navbar"| node_browser
node_behavior -->|"creates ScrollSpy"| node_bootstrap

click node_home "https://github.com/mtjns/nasertyne/blob/main/index.html"
click node_questionnaire "https://github.com/mtjns/nasertyne/blob/main/dotaznik/index.html"
click node_archive "https://github.com/mtjns/nasertyne/blob/main/old/index.html"
click node_not_found "https://github.com/mtjns/nasertyne/blob/main/404.html"
click node_candidate_pdf "https://github.com/mtjns/nasertyne/blob/main/assets/files/kandidatka.pdf"
click node_meeting_pdf "https://github.com/mtjns/nasertyne/blob/main/assets/files/predvolebni-setkani-nase-rtyne.pdf"
click node_program_pdf "https://github.com/mtjns/nasertyne/blob/main/assets/files/volebni-program-nase-rtyne-2026.pdf"
click node_images "https://github.com/mtjns/nasertyne/tree/main/assets/img"
click node_styles "https://github.com/mtjns/nasertyne/blob/main/style.css"
click node_custom_styles "https://github.com/mtjns/nasertyne/blob/main/custom.css"
click node_fonts "https://github.com/mtjns/nasertyne/blob/main/assets/fonts/fonts.css"
click node_behavior "https://github.com/mtjns/nasertyne/blob/main/script.js"

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_questionnaire,node_archive,node_not_found,node_candidate_pdf,node_meeting_pdf,node_program_pdf,node_images,node_browser toneBlue
class node_styles,node_custom_styles,node_fonts,node_behavior toneAmber
class node_bootstrap toneIndigo
```

## Components

### Campaign website

- [Campaign home](https://github.com/mtjns/nasertyne/blob/main/index.html): `index.html`
- [Questionnaire](https://github.com/mtjns/nasertyne/blob/main/dotaznik/index.html): `dotaznik/index.html`
- [Archived page](https://github.com/mtjns/nasertyne/blob/main/old/index.html): `old/index.html`
- [Not-found page](https://github.com/mtjns/nasertyne/blob/main/404.html): `404.html`
- [Candidate document](https://github.com/mtjns/nasertyne/blob/main/assets/files/kandidatka.pdf): `assets/files/kandidatka.pdf`
- [Campaign meeting](https://github.com/mtjns/nasertyne/blob/main/assets/files/predvolebni-setkani-nase-rtyne.pdf): `assets/files/predvolebni-setkani-nase-rtyne.pdf`
- [Election program](https://github.com/mtjns/nasertyne/blob/main/assets/files/volebni-program-nase-rtyne-2026.pdf): `assets/files/volebni-program-nase-rtyne-2026.pdf`
- [Campaign imagery](https://github.com/mtjns/nasertyne/tree/main/assets/img): `assets/img`

### Browser behavior

- [Site styles](https://github.com/mtjns/nasertyne/blob/main/style.css): `style.css`
- [Custom styles](https://github.com/mtjns/nasertyne/blob/main/custom.css): `custom.css`
- [Font styles](https://github.com/mtjns/nasertyne/blob/main/assets/fonts/fonts.css): `assets/fonts/fonts.css`
- [Navigation behavior](https://github.com/mtjns/nasertyne/blob/main/script.js): `script.js`

### Other components

- **Web browser**
- **Bootstrap ScrollSpy**

## Connections

- Navigation behavior → Web browser: registers events (evidence: `script.js`)
- Navigation behavior → Web browser: updates navbar (evidence: `script.js`)
- Navigation behavior → Bootstrap ScrollSpy: creates ScrollSpy (evidence: `script.js`)
