# simonstr0202/homepage architecture

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

- Interactive diagram: https://gitdiagram.com/simonstr0202/homepage
- Repository: https://github.com/simonstr0202/homepage

## Overview

This is a static personal website presenting news, products, and legal information. The visible home-page workflow fetches the news JSON, renders article titles and truncated content, and hides its loader. Product and legal pages are represented as separate site sections. The excerpts do not show how pages load scripts or connect to one another, so those links are omitted; navigation links and the news fetch are shown where directly evidenced.

Main entry points: [`js/banner.js`](https://github.com/simonstr0202/homepage/blob/main/js/banner.js) (Top banner), [`home/script.js`](https://github.com/simonstr0202/homepage/blob/main/home/script.js) (News renderer), [`home/index.html`](https://github.com/simonstr0202/homepage/blob/main/home/index.html) (Home page), [`data/news.json`](https://github.com/simonstr0202/homepage/blob/main/data/news.json) (News articles)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shared["Shared navigation"]
  node_banner["Top banner<br/>[banner.js]"]
  node_banner_script["Menu toggle script<br/>[bannerScript.js]"]
end

subgraph group_home["Home and news"]
  node_home_page["Home page<br/>[index.html]"]
  node_news_loader["News renderer<br/>[script.js]"]
  node_news_data["News articles<br/>[news.json]"]
  node_root_page["Root page<br/>[index.html]"]
end

subgraph group_catalog["Product catalog"]
  node_products_page["Products listing<br/>[index.html]"]
  node_residence_detail["Residence Massacre<br/>[index.html]"]
  node_sombies_detail["Sombies product<br/>[index.html]"]
  node_ffn_detail["FFN product<br/>[index.html]"]
end

subgraph group_legal["Legal and media pages"]
  node_sombies_privacy_page["Sombies privacy page<br/>[index.html]"]
  node_sombies_terms_page["Sombies terms page<br/>[index.html]"]
  node_sombies_privacy_doc["Privacy document<br/>[privacy.md]"]
  node_sombies_terms_doc["Terms document<br/>[terms.md]"]
  node_images_page["Images page<br/>[index.html]"]
end

node_visitor(("Site visitor"))

node_banner -->|"links to"| node_home_page
node_banner -->|"links to"| node_products_page
node_news_loader -->|"fetches"| node_news_data

click node_banner "https://github.com/simonstr0202/homepage/blob/main/js/banner.js"
click node_banner_script "https://github.com/simonstr0202/homepage/blob/main/js/bannerScript.js"
click node_home_page "https://github.com/simonstr0202/homepage/blob/main/home/index.html"
click node_news_loader "https://github.com/simonstr0202/homepage/blob/main/home/script.js"
click node_news_data "https://github.com/simonstr0202/homepage/blob/main/data/news.json"
click node_root_page "https://github.com/simonstr0202/homepage/blob/main/index.html"
click node_products_page "https://github.com/simonstr0202/homepage/blob/main/products/index.html"
click node_residence_detail "https://github.com/simonstr0202/homepage/blob/main/products/ResidenceMassacreDetailPage/index.html"
click node_sombies_detail "https://github.com/simonstr0202/homepage/blob/main/products/SombiesDetailPage/index.html"
click node_ffn_detail "https://github.com/simonstr0202/homepage/blob/main/products/ffnDetailPage/index.html"
click node_sombies_privacy_page "https://github.com/simonstr0202/homepage/blob/main/products/SombiesDetailPage/PrivacyPolicy/index.html"
click node_sombies_terms_page "https://github.com/simonstr0202/homepage/blob/main/products/SombiesDetailPage/Terms/index.html"
click node_sombies_privacy_doc "https://github.com/simonstr0202/homepage/blob/main/legalStuff/Sombies/privacy.md"
click node_sombies_terms_doc "https://github.com/simonstr0202/homepage/blob/main/legalStuff/Sombies/terms.md"
click node_images_page "https://github.com/simonstr0202/homepage/blob/main/images/index.html"

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_banner,node_banner_script toneBlue
class node_home_page,node_news_loader,node_news_data,node_root_page toneAmber
class node_products_page,node_residence_detail,node_sombies_detail,node_ffn_detail toneMint
class node_sombies_privacy_page,node_sombies_terms_page,node_sombies_privacy_doc,node_sombies_terms_doc,node_images_page toneRose
class node_visitor toneIndigo
```

## Components

### Shared navigation

- [Top banner](https://github.com/simonstr0202/homepage/blob/main/js/banner.js): `js/banner.js`
- [Menu toggle script](https://github.com/simonstr0202/homepage/blob/main/js/bannerScript.js): `js/bannerScript.js`

### Home and news

- [Home page](https://github.com/simonstr0202/homepage/blob/main/home/index.html): `home/index.html`
- [News renderer](https://github.com/simonstr0202/homepage/blob/main/home/script.js): `home/script.js`
- [News articles](https://github.com/simonstr0202/homepage/blob/main/data/news.json): `data/news.json`
- [Root page](https://github.com/simonstr0202/homepage/blob/main/index.html): `index.html`

### Product catalog

- [Products listing](https://github.com/simonstr0202/homepage/blob/main/products/index.html): `products/index.html`
- [Residence Massacre](https://github.com/simonstr0202/homepage/blob/main/products/ResidenceMassacreDetailPage/index.html): `products/ResidenceMassacreDetailPage/index.html`
- [Sombies product](https://github.com/simonstr0202/homepage/blob/main/products/SombiesDetailPage/index.html): `products/SombiesDetailPage/index.html`
- [FFN product](https://github.com/simonstr0202/homepage/blob/main/products/ffnDetailPage/index.html): `products/ffnDetailPage/index.html`

### Legal and media pages

- [Sombies privacy page](https://github.com/simonstr0202/homepage/blob/main/products/SombiesDetailPage/PrivacyPolicy/index.html): `products/SombiesDetailPage/PrivacyPolicy/index.html`
- [Sombies terms page](https://github.com/simonstr0202/homepage/blob/main/products/SombiesDetailPage/Terms/index.html): `products/SombiesDetailPage/Terms/index.html`
- [Privacy document](https://github.com/simonstr0202/homepage/blob/main/legalStuff/Sombies/privacy.md): `legalStuff/Sombies/privacy.md`
- [Terms document](https://github.com/simonstr0202/homepage/blob/main/legalStuff/Sombies/terms.md): `legalStuff/Sombies/terms.md`
- [Images page](https://github.com/simonstr0202/homepage/blob/main/images/index.html): `images/index.html`

### Other components

- **Site visitor**

## Connections

- Top banner → Home page: links to (evidence: `js/banner.js`)
- Top banner → Products listing: links to (evidence: `js/banner.js`)
- News renderer → News articles: fetches (evidence: `home/script.js`)
