# viooptical/klon-website architecture

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

- Interactive diagram: https://gitdiagram.com/viooptical/klon-website
- Repository: https://github.com/viooptical/klon-website

## Overview

1. This repository is a static, multi-page website clone rather than an application with a server-side runtime. The entire deployable surface is HTML plus vendored assets.

2. The site is split into two isolated page roots:
   - `ortho-k/`
   - `solusi-mata-minus/`
   Each folder contains its own `index.html` and its own `assets/` tree, so each page can be served independently.

3. There is no application backend in the repo. All behavior happens in the browser, and the pages are deployed as static files from the repository root.

4. Netlify is the hosting layer. `netlify.toml` configures the publish directory as `.` and provides host-based rewrites so the custom domains map to the corresponding subdirectories:
   - `ortho-k.viooptical.com` -> `/ortho-k/`
   - `solusi-mata-minus.viooptical.com` -> `/solusi-mata-minus/`

5. The runtime request flow is simple: browser hits the domain, Netlify rewrites to the page directory, `index.html` loads, and that HTML pulls in local CSS, fonts, scripts, images, and media from the page-specific `assets/` folder.

6. The `assets/` directories are effectively a vendored snapshot of third-party dependencies. Their structure mirrors external origins such as:
   - `fonts.googleapis.com` and `fonts.gstatic.com`
   - `static.leadpages.net`
   - `api.leadpages.io`
   - `js.center.io`
   - `googleads.g.doubleclick.net`
   - `lh3.googleusercontent.com`
   - `viooptical.lpages.co`
   This indicates the pages were captured from a Leadpages-built landing page and its supporting resources.

7. Tracking and marketing integrations are part of the page architecture, not separate services in this repo. The captured assets include analytics and conversion-related files, such as Leadpages observation capture files and Google Ads conversion pages, plus a Center.io script.

8. Typography and visual styling are also self-contained. Each page bundles font assets locally rather than fetching them live at render time, which makes the clone portable and reduces dependency on external availability.

9. The `youtube/` asset folder under `solusi-mata-minus/` suggests media or embed support is also stored locally for that page, consistent with a static mirrored landing page.

10. Operationally, the repo is designed for simple static serving. The README’s local workflow uses `python -m http.server 4175`, which matches the architecture: no build step, no package install, just file serving.

11. The main architectural boundary is therefore between each page directory and the external services it originally depended on. In this repo those dependencies are flattened into local files, so the deployed site is mostly self-contained with only browser-side execution.

12. For an architecture diagram, the key elements are: Netlify at the edge, two independent static page bundles, browser-side asset loading, and embedded marketing/tracking resources originating from Leadpages and Google-related services.

Main entry points: [`solusi-mata-minus/assets`](https://github.com/viooptical/klon-website/tree/main/solusi-mata-minus/assets) (Solusi assets), [`ortho-k/assets`](https://github.com/viooptical/klon-website/tree/main/ortho-k/assets) (Ortho assets), [`netlify.toml`](https://github.com/viooptical/klon-website/blob/main/netlify.toml) (Netlify), [`ortho-k/index.html`](https://github.com/viooptical/klon-website/blob/main/ortho-k/index.html) (Ortho index)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_deployment["Deployment"]
  node_browser(("Browser<br/>client"))
  node_netlify["Netlify<br/>static host<br/>[netlify.toml]"]
  node_root_index["Root page<br/>entry html<br/>[index.html]"]
end

subgraph group_ortho["Ortho K"]
  node_ortho_index["Ortho index<br/>page html<br/>[index.html]"]
  node_ortho_assets[("Ortho assets<br/>asset bundle")]
  node_ortho_rt["Tracking JS<br/>runtime script<br/>[rt.js]"]
end

subgraph group_solusi["Solusi Mata Minus"]
  node_solusi_index["Solusi index<br/>page html<br/>[index.html]"]
  node_solusi_assets[("Solusi assets<br/>asset bundle")]
  node_solusi_rt["Tracking JS<br/>runtime script<br/>[rt.js]"]
  node_solusi_youtube[("Media pack<br/>media assets")]
end

subgraph group_vendors["Vendored Origins"]
  node_ortho_fonts[("Font pack<br/>fonts<br/>[fonts.gstatic.com]")]
  node_ortho_style["Theme CSS<br/>stylesheets<br/>[css-ad9ce310.css]"]
  node_ortho_static[("Leadpages UI<br/>vendor assets")]
  node_ortho_api["Capture data<br/>analytics asset"]
  node_ortho_center["Center script<br/>marketing js<br/>[center.js]"]
  node_solusi_fonts[("Font pack<br/>fonts<br/>[fonts.gstatic.com]")]
  node_solusi_style["Theme CSS<br/>stylesheets<br/>[css-aa5e59d3.css]"]
  node_solusi_static[("Leadpages UI<br/>vendor assets")]
  node_solusi_api["Capture data<br/>analytics asset"]
  node_solusi_center["Center script<br/>marketing js<br/>[center.js]"]
end

node_browser -->|"requests"| node_netlify
node_netlify -->|"rewrite ortho-k"| node_ortho_index
node_netlify -->|"rewrite solusi"| node_solusi_index
node_root_index -.->|"entry path"| node_ortho_index
node_root_index -.->|"entry path"| node_solusi_index
node_ortho_index -->|"loads"| node_ortho_assets
node_ortho_assets -->|"includes"| node_ortho_rt
node_ortho_assets -->|"fonts"| node_ortho_fonts
node_ortho_assets -->|"styles"| node_ortho_style
node_ortho_assets -->|"ui assets"| node_ortho_static
node_ortho_assets -->|"analytics"| node_ortho_api
node_ortho_assets -->|"tracking"| node_ortho_center
node_solusi_index -->|"loads"| node_solusi_assets
node_solusi_assets -->|"includes"| node_solusi_rt
node_solusi_assets -->|"media"| node_solusi_youtube
node_solusi_assets -->|"fonts"| node_solusi_fonts
node_solusi_assets -->|"styles"| node_solusi_style
node_solusi_assets -->|"ui assets"| node_solusi_static
node_solusi_assets -->|"analytics"| node_solusi_api
node_solusi_assets -->|"tracking"| node_solusi_center

click node_netlify "https://github.com/viooptical/klon-website/blob/main/netlify.toml"
click node_root_index "https://github.com/viooptical/klon-website/blob/main/index.html"
click node_ortho_index "https://github.com/viooptical/klon-website/blob/main/ortho-k/index.html"
click node_ortho_assets "https://github.com/viooptical/klon-website/tree/main/ortho-k/assets"
click node_ortho_rt "https://github.com/viooptical/klon-website/blob/main/ortho-k/assets/viooptical.lpages.co/rt.js"
click node_ortho_fonts "https://github.com/viooptical/klon-website/blob/main/ortho-k/assets/fonts.gstatic.com"
click node_ortho_style "https://github.com/viooptical/klon-website/blob/main/ortho-k/assets/fonts.googleapis.com/css-ad9ce310.css"
click node_ortho_static "https://github.com/viooptical/klon-website/blob/main/ortho-k/assets/static.leadpages.net"
click node_ortho_api "https://github.com/viooptical/klon-website/blob/main/ortho-k/assets/api.leadpages.io/analytics/v1/observations/capture-8fd5fa0a.bin"
click node_ortho_center "https://github.com/viooptical/klon-website/blob/main/ortho-k/assets/js.center.io/center.js"
click node_solusi_index "https://github.com/viooptical/klon-website/blob/main/solusi-mata-minus/index.html"
click node_solusi_assets "https://github.com/viooptical/klon-website/tree/main/solusi-mata-minus/assets"
click node_solusi_rt "https://github.com/viooptical/klon-website/blob/main/solusi-mata-minus/assets/viooptical.lpages.co/rt.js"
click node_solusi_youtube "https://github.com/viooptical/klon-website/tree/main/solusi-mata-minus/assets/youtube"
click node_solusi_fonts "https://github.com/viooptical/klon-website/blob/main/solusi-mata-minus/assets/fonts.gstatic.com"
click node_solusi_style "https://github.com/viooptical/klon-website/blob/main/solusi-mata-minus/assets/fonts.googleapis.com/css-aa5e59d3.css"
click node_solusi_static "https://github.com/viooptical/klon-website/blob/main/solusi-mata-minus/assets/static.leadpages.net"
click node_solusi_api "https://github.com/viooptical/klon-website/blob/main/solusi-mata-minus/assets/api.leadpages.io/analytics/v1/observations/capture-f3e94da1.bin"
click node_solusi_center "https://github.com/viooptical/klon-website/blob/main/solusi-mata-minus/assets/js.center.io/center.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_browser,node_netlify,node_root_index toneBlue
class node_ortho_index,node_ortho_assets,node_ortho_rt toneAmber
class node_solusi_index,node_solusi_assets,node_solusi_rt,node_solusi_youtube toneMint
class node_ortho_fonts,node_ortho_style,node_ortho_static,node_ortho_api,node_ortho_center,node_solusi_fonts,node_solusi_style,node_solusi_static,node_solusi_api,node_solusi_center toneRose
```

## Components

### Deployment

Static hosting and routing

- **Browser**: client · Requests pages and runs all behavior in-page
- [Netlify](https://github.com/viooptical/klon-website/blob/main/netlify.toml): static host · Publishes the repo root and applies host-based rewrites · `netlify.toml`
- [Root page](https://github.com/viooptical/klon-website/blob/main/index.html): entry html · Top-level static entry point · `index.html`

### Ortho K

Independent page bundle

- [Ortho index](https://github.com/viooptical/klon-website/blob/main/ortho-k/index.html): page html · Standalone landing page entry · `ortho-k/index.html`
- [Ortho assets](https://github.com/viooptical/klon-website/tree/main/ortho-k/assets): asset bundle · Vendored CSS, fonts, scripts, and media for the Ortho page · `ortho-k/assets`
- [Tracking JS](https://github.com/viooptical/klon-website/blob/main/ortho-k/assets/viooptical.lpages.co/rt.js): runtime script · Leadpages runtime/observability script · `ortho-k/assets/viooptical.lpages.co/rt.js`

### Solusi Mata Minus

Independent page bundle

- [Solusi index](https://github.com/viooptical/klon-website/blob/main/solusi-mata-minus/index.html): page html · Standalone landing page entry · `solusi-mata-minus/index.html`
- [Solusi assets](https://github.com/viooptical/klon-website/tree/main/solusi-mata-minus/assets): asset bundle · Vendored CSS, fonts, scripts, and media for the Solusi page · `solusi-mata-minus/assets`
- [Tracking JS](https://github.com/viooptical/klon-website/blob/main/solusi-mata-minus/assets/viooptical.lpages.co/rt.js): runtime script · Leadpages runtime/observability script · `solusi-mata-minus/assets/viooptical.lpages.co/rt.js`
- [Media pack](https://github.com/viooptical/klon-website/tree/main/solusi-mata-minus/assets/youtube): media assets · Local media/embed support files · `solusi-mata-minus/assets/youtube`

### Vendored Origins

Captured third-party resources flattened into local files

- [Font pack](https://github.com/viooptical/klon-website/blob/main/ortho-k/assets/fonts.gstatic.com): fonts · Locally mirrored typography assets · `ortho-k/assets/fonts.gstatic.com`
- [Theme CSS](https://github.com/viooptical/klon-website/blob/main/ortho-k/assets/fonts.googleapis.com/css-ad9ce310.css): stylesheets · Vendored font and site styles · `ortho-k/assets/fonts.googleapis.com/css-ad9ce310.css`
- [Leadpages UI](https://github.com/viooptical/klon-website/blob/main/ortho-k/assets/static.leadpages.net): vendor assets · Captured Leadpages styles and images · `ortho-k/assets/static.leadpages.net`
- [Capture data](https://github.com/viooptical/klon-website/blob/main/ortho-k/assets/api.leadpages.io/analytics/v1/observations/capture-8fd5fa0a.bin): analytics asset · Leadpages observation capture artifact · `ortho-k/assets/api.leadpages.io/analytics/v1/observations/capture-8fd5fa0a.bin`
- [Center script](https://github.com/viooptical/klon-website/blob/main/ortho-k/assets/js.center.io/center.js): marketing js · Captured Center.io integration · `ortho-k/assets/js.center.io/center.js`
- [Font pack](https://github.com/viooptical/klon-website/blob/main/solusi-mata-minus/assets/fonts.gstatic.com): fonts · Locally mirrored typography assets · `solusi-mata-minus/assets/fonts.gstatic.com`
- [Theme CSS](https://github.com/viooptical/klon-website/blob/main/solusi-mata-minus/assets/fonts.googleapis.com/css-aa5e59d3.css): stylesheets · Vendored font and site styles · `solusi-mata-minus/assets/fonts.googleapis.com/css-aa5e59d3.css`
- [Leadpages UI](https://github.com/viooptical/klon-website/blob/main/solusi-mata-minus/assets/static.leadpages.net): vendor assets · Captured Leadpages styles and images · `solusi-mata-minus/assets/static.leadpages.net`
- [Capture data](https://github.com/viooptical/klon-website/blob/main/solusi-mata-minus/assets/api.leadpages.io/analytics/v1/observations/capture-f3e94da1.bin): analytics asset · Leadpages observation capture artifact · `solusi-mata-minus/assets/api.leadpages.io/analytics/v1/observations/capture-f3e94da1.bin`
- [Center script](https://github.com/viooptical/klon-website/blob/main/solusi-mata-minus/assets/js.center.io/center.js): marketing js · Captured Center.io integration · `solusi-mata-minus/assets/js.center.io/center.js`

## Connections

- Browser → Netlify: requests · Browser requests the custom domains from the host
- Netlify → Ortho index: rewrite ortho-k · Host rewrite maps the domain to the Ortho page root
- Netlify → Solusi index: rewrite solusi · Host rewrite maps the domain to the Solusi page root
- Root page → Ortho index: entry path · Static entry surfaces the independent page root
- Root page → Solusi index: entry path · Static entry surfaces the independent page root
- Ortho index → Ortho assets: loads · HTML pulls its page-specific asset tree
- Ortho assets → Tracking JS: includes · Page bundle includes the runtime script
- Ortho assets → Font pack: fonts · Uses locally mirrored font files
- Ortho assets → Theme CSS: styles · Uses captured stylesheet resources
- Ortho assets → Leadpages UI: ui assets · Uses mirrored Leadpages styling and imagery
- Ortho assets → Capture data: analytics · Includes observation capture artifacts
- Ortho assets → Center script: tracking · Includes marketing integration script
- Solusi index → Solusi assets: loads · HTML pulls its page-specific asset tree
- Solusi assets → Tracking JS: includes · Page bundle includes the runtime script
- Solusi assets → Media pack: media · Contains local media/embed support files
- Solusi assets → Font pack: fonts · Uses locally mirrored font files
- Solusi assets → Theme CSS: styles · Uses captured stylesheet resources
- Solusi assets → Leadpages UI: ui assets · Uses mirrored Leadpages styling and imagery
- Solusi assets → Capture data: analytics · Includes observation capture artifacts
- Solusi assets → Center script: tracking · Includes marketing integration script
