# zeenfts/zeenfts.github.io architecture

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

- Interactive diagram: https://gitdiagram.com/zeenfts/zeenfts.github.io
- Repository: https://github.com/zeenfts/zeenfts.github.io

## Overview

This is a static personal portfolio site for an AI and data specialist. Visitors browse profile, project, article, and contact sections, with optional chat and a branching puzzle game; the navigation also offers language and theme controls. The main route composes these experiences, while the layout initializes localization before displaying the page. Source excerpts show the page composition, locale setup, navigation behavior, and contact-form behavior; the game widget’s connection to its state data is not shown, so that link is marked unverified.

Main entry points: [`src/routes/+page.svelte`](https://github.com/zeenfts/zeenfts.github.io/blob/main/src/routes/%2Bpage.svelte) (Home page), [`src/lib/i18n.js`](https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/i18n.js) (Localization), [`src/routes/+layout.svelte`](https://github.com/zeenfts/zeenfts.github.io/blob/main/src/routes/%2Blayout.svelte) (Locale gate), [`src/lib/components/Navbar.svelte`](https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/components/Navbar.svelte) (Navigation and themes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Site shell"]
  node_layout["Locale gate<br/>[+layout.svelte]"]
  node_i18n["Localization<br/>[i18n.js]"]
  node_english["English strings<br/>[en.json]"]
  node_indonesian["Indonesian strings<br/>[id.json]"]
  node_page["Home page<br/>[+page.svelte]"]
  node_navbar["Navigation and themes<br/>[Navbar.svelte]"]
  node_meta["Page metadata<br/>[meta.js]"]
end

subgraph group_content["Portfolio content"]
  node_about["About section<br/>[About.svelte]"]
  node_hero["Hero section<br/>[Hero.svelte]"]
  node_portfolio["Projects<br/>[Portfolio.svelte]"]
  node_articles["Articles<br/>[Articles.svelte]"]
  node_contact["Contact form<br/>[Contact.svelte]"]
  node_footer["Footer<br/>[Footer.svelte]"]
end

subgraph group_interactive["Interactive features"]
  node_game["Puzzle widget<br/>[GameWidget.svelte]"]
  node_game_states["Puzzle state data<br/>[gameStates.js]"]
  node_chat["Chat widget<br/>[ChatWidget.svelte]"]
end

node_visitor(("Visitor"))
node_browser_storage[("Browser storage")]
node_form_service["Form service"]

node_visitor -->|"opens site"| node_layout
node_layout -->|"initializes locale"| node_i18n
node_i18n -->|"registers strings"| node_english
node_i18n -->|"registers strings"| node_indonesian
node_layout -->|"shows after locale"| node_page
node_page -->|"renders"| node_navbar
node_page -->|"renders"| node_hero
node_page -->|"renders"| node_about
node_page -->|"renders"| node_portfolio
node_page -->|"renders"| node_articles
node_page -->|"renders"| node_contact
node_page -->|"renders"| node_footer
node_page -->|"renders"| node_game
node_page -->|"renders"| node_chat
node_page -->|"reads metadata"| node_meta
node_navbar -->|"reads and writes"| node_browser_storage
node_navbar -->|"sets locale"| node_i18n
node_contact -->|"submits form"| node_form_service
node_game -.->|"uses state data"| node_game_states

click node_layout "https://github.com/zeenfts/zeenfts.github.io/blob/main/src/routes/%2Blayout.svelte"
click node_i18n "https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/i18n.js"
click node_english "https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/locales/en.json"
click node_indonesian "https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/locales/id.json"
click node_page "https://github.com/zeenfts/zeenfts.github.io/blob/main/src/routes/%2Bpage.svelte"
click node_navbar "https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/components/Navbar.svelte"
click node_meta "https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/stores/meta.js"
click node_about "https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/components/About.svelte"
click node_hero "https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/components/Hero.svelte"
click node_portfolio "https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/components/Portfolio.svelte"
click node_articles "https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/components/Articles.svelte"
click node_contact "https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/components/Contact.svelte"
click node_footer "https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/components/Footer.svelte"
click node_game "https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/components/GameWidget.svelte"
click node_game_states "https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/gameStates.js"
click node_chat "https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/components/ChatWidget.svelte"

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_layout,node_i18n,node_english,node_indonesian,node_page,node_navbar,node_meta toneBlue
class node_about,node_hero,node_portfolio,node_articles,node_contact,node_footer,node_browser_storage toneAmber
class node_game,node_game_states,node_chat toneMint
class node_visitor,node_form_service toneIndigo
```

## Components

### Site shell

- [Locale gate](https://github.com/zeenfts/zeenfts.github.io/blob/main/src/routes/%2Blayout.svelte): `src/routes/+layout.svelte`
- [Localization](https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/i18n.js): `src/lib/i18n.js`
- [English strings](https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/locales/en.json): `src/lib/locales/en.json`
- [Indonesian strings](https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/locales/id.json): `src/lib/locales/id.json`
- [Home page](https://github.com/zeenfts/zeenfts.github.io/blob/main/src/routes/%2Bpage.svelte): `src/routes/+page.svelte`
- [Navigation and themes](https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/components/Navbar.svelte): `src/lib/components/Navbar.svelte`
- [Page metadata](https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/stores/meta.js): `src/lib/stores/meta.js`

### Portfolio content

- [About section](https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/components/About.svelte): `src/lib/components/About.svelte`
- [Hero section](https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/components/Hero.svelte): `src/lib/components/Hero.svelte`
- [Projects](https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/components/Portfolio.svelte): `src/lib/components/Portfolio.svelte`
- [Articles](https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/components/Articles.svelte): `src/lib/components/Articles.svelte`
- [Contact form](https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/components/Contact.svelte): `src/lib/components/Contact.svelte`
- [Footer](https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/components/Footer.svelte): `src/lib/components/Footer.svelte`

### Interactive features

- [Puzzle widget](https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/components/GameWidget.svelte): `src/lib/components/GameWidget.svelte`
- [Puzzle state data](https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/gameStates.js): `src/lib/gameStates.js`
- [Chat widget](https://github.com/zeenfts/zeenfts.github.io/blob/main/src/lib/components/ChatWidget.svelte): `src/lib/components/ChatWidget.svelte`

### Other components

- **Visitor**
- **Browser storage**
- **Form service**

## Connections

- Visitor → Locale gate: opens site
- Locale gate → Localization: initializes locale (evidence: `src/routes/+layout.svelte`)
- Localization → English strings: registers strings (evidence: `src/lib/i18n.js`)
- Localization → Indonesian strings: registers strings (evidence: `src/lib/i18n.js`)
- Locale gate → Home page: shows after locale (evidence: `src/routes/+layout.svelte`)
- Home page → Navigation and themes: renders (evidence: `src/routes/+page.svelte`)
- Home page → Hero section: renders (evidence: `src/routes/+page.svelte`)
- Home page → About section: renders (evidence: `src/routes/+page.svelte`)
- Home page → Projects: renders (evidence: `src/routes/+page.svelte`)
- Home page → Articles: renders (evidence: `src/routes/+page.svelte`)
- Home page → Contact form: renders (evidence: `src/routes/+page.svelte`)
- Home page → Footer: renders (evidence: `src/routes/+page.svelte`)
- Home page → Puzzle widget: renders (evidence: `src/routes/+page.svelte`)
- Home page → Chat widget: renders (evidence: `src/routes/+page.svelte`)
- Home page → Page metadata: reads metadata (evidence: `src/routes/+page.svelte`)
- Navigation and themes → Browser storage: reads and writes (evidence: `src/lib/components/Navbar.svelte`)
- Navigation and themes → Localization: sets locale (evidence: `src/lib/components/Navbar.svelte`)
- Contact form → Form service: submits form (evidence: `src/lib/components/Contact.svelte`)
- Puzzle widget → Puzzle state data: uses state data
