diff --git a/website/assets/kates-cli-overview.png b/website/assets/kates-cli-overview.png deleted file mode 100644 index f042d5e8a..000000000 Binary files a/website/assets/kates-cli-overview.png and /dev/null differ diff --git a/website/assets/kates-ctx-profiles-chips.png b/website/assets/kates-ctx-profiles-chips.png new file mode 100644 index 000000000..6bf79cead Binary files /dev/null and b/website/assets/kates-ctx-profiles-chips.png differ diff --git a/website/assets/kates-dashboard-grid-aurora.png b/website/assets/kates-dashboard-grid-aurora.png new file mode 100644 index 000000000..0f75bcd8e Binary files /dev/null and b/website/assets/kates-dashboard-grid-aurora.png differ diff --git a/website/assets/kates-lab-classic-aurora.png b/website/assets/kates-lab-classic-aurora.png new file mode 100644 index 000000000..1c4ef27e5 Binary files /dev/null and b/website/assets/kates-lab-classic-aurora.png differ diff --git a/website/assets/kates-lab-panels-dracula.png b/website/assets/kates-lab-panels-dracula.png new file mode 100644 index 000000000..5a88e63de Binary files /dev/null and b/website/assets/kates-lab-panels-dracula.png differ diff --git a/website/assets/kates-lab-tui.png b/website/assets/kates-lab-tui.png deleted file mode 100644 index d7a049427..000000000 Binary files a/website/assets/kates-lab-tui.png and /dev/null differ diff --git a/website/index.html b/website/index.html index 03c2ecf3a..87dc9285c 100644 --- a/website/index.html +++ b/website/index.html @@ -295,7 +295,23 @@

Three parts that fit how you already run Kafka.

-
+
+
+ +
kates architecture — grid look, C → aurora
+
+ + + +
+
+ Kates architecture The kates CLI on a laptop or CI runner talks to the Kates API inside Kubernetes over REST with an API key. The API puts load on Kafka, drives faults through LitmusChaos, stores results in PostgreSQL and exposes metrics to Prometheus and Grafana, which also scrape Kafka. Signed Helm charts install everything. @@ -304,84 +320,106 @@

Three parts that fit how you already run Kafka.

+ + + - - Kubernetes cluster + + + Kubernetes cluster Installed by signed Helm charts - REST · API key + REST · API key - - - load + + + load - - - faults + + + faults - results + results - - - inject + + + inject - - + + - - kates CLI - Go · laptop or CI runner - test · gate · disruption + + + + kates CLI + kates CLI + Go · laptop / CI + [test] [gate] [lab] - - Kates API - Quarkus · native image - load · faults · grades + + + + Kates API + Kates API + ● UP native engine + load · faults · grades - - Kafka - Strimzi · 3 zones - - - - kafka-0 · 1 · 2 + + + + Kafka + Kafka + Strimzi · 3 zones + + + + kafka-0 · 1 · 2 - - LitmusChaos - 13 disruption types + + + + LitmusChaos + LitmusChaos + 13 disruption types - + + + + PostgreSQL PostgreSQL every run kept - - Grafana - Prometheus scrape - P99 latency + + + + Grafana + Grafana + Prometheus scrape + P99 latency 17.8 ms @@ -397,33 +435,33 @@

Three parts that fit how you already run Kafka.

- + Kubernetes Installed by signed Helm charts - REST · API key + REST · API key - load + load - faults + faults - results + results - inject + inject @@ -432,23 +470,23 @@

Three parts that fit how you already run Kafka.

- metrics + metrics - + kates CLI Go · laptop or CI runner test · gate · disruption - + Kates API Quarkus · native image load · faults · grades - + Kafka Strimzi · 3 zones @@ -456,17 +494,17 @@

Three parts that fit how you already run Kafka.

- + LitmusChaos 13 disruption types - + PostgreSQL every run kept - + Prometheus · Grafana 12 dashboards · alert rules @@ -474,19 +512,43 @@

Three parts that fit how you already run Kafka.

- - - - - + + + + +

+
The CLI never touches Kafka directly: the API inside the cluster runs the load, drives the faults, grades the result and keeps the history.
-
-

Inside Kafka during a broker kill

-
Kates API · producers48,112 rec/s · acks=all
+
+
+ +
kates kafka tui — grid look, C → aurora
+
+ + + +
+
+
+ Inside Kafka + · + During a Broker Kill (Partition Leadership & ISR) + → + krafter.kafka:9092 +
+
Kates API · producers● 48,112 rec/s · acks=all
- Overview of the kates CLI command groups -
The CLI at a glance
+ kates lab interactive performance tuning in the Panels look with Dracula colors +
kates lab · Panels look & Dracula colors. Tune producer parameters, run load iterations, compare P99 latency and throughput deltas, and switch looks (T) or color palettes (C) live.
+
+
+ kates lab interactive performance tuning in the Classic look with Aurora colors +
kates lab · Classic look & Aurora colors. The same interactive tuning session rendered in the Classic borderless layout with the Aurora palette; persist your favorite with kates theme set.
+
+
+ kates dashboard live cluster and test monitor in the Grid look with Aurora colors +
kates dashboard · Grid look & Aurora colors. Live 1s-refreshing view of API and Kafka broker health, under-replicated partitions, active workloads, completed runs, and real-time throughput/P99 sparklines.
- The kates lab terminal UI showing a disruption run -
The lab TUI during a disruption run
+ kates ctx profiles set interactive selector in the Chips look +
kates ctx profiles set · Chips look. Scope the CLI to the command groups you need—performance, integrity, chaos, topology, security, or deploy—per context.
diff --git a/website/site.js b/website/site.js index ac4977043..ce630e695 100644 --- a/website/site.js +++ b/website/site.js @@ -66,6 +66,41 @@ var steps = ['Steady load: measuring the baseline', 'Injecting broker-pod-kill through LitmusChaos', 'Broker down: ISR shrinks, P99 climbs', 'Broker back: recovery time measured', 'Run graded A and stored; the CLI exits 0']; var btns = arch.querySelectorAll('.arch-tl button'), bar = arch.querySelector('.arch-tl-bar span'), step = arch.querySelector('.arch-step'); + var kzFig = document.querySelector('.kz'); + var designBtns = document.querySelectorAll('[data-set-design]'); + var winTitle = document.getElementById('arch-wintitle'), kzWinTitle = document.getElementById('kz-wintitle'); + var designOrder = ['grid', 'panels', 'chips']; + var designTitles = { + grid: 'kates architecture — grid look, C → aurora', + panels: 'kates architecture — T → panels, C → dracula', + chips: 'kates architecture — classic look, C → chips / aurora' + }; + var kzDesignTitles = { + grid: 'kates kafka tui — grid look, C → aurora', + panels: 'kates kafka tui — T → panels, C → dracula', + chips: 'kates kafka tui — classic look, C → chips / aurora' + }; + function setDesign(name) { + arch.setAttribute('data-tui-design', name); + if (kzFig) kzFig.setAttribute('data-tui-design', name); + if (winTitle && designTitles[name]) winTitle.textContent = designTitles[name]; + if (kzWinTitle && kzDesignTitles[name]) kzWinTitle.textContent = kzDesignTitles[name]; + designBtns.forEach(function (b) { + b.setAttribute('aria-pressed', b.getAttribute('data-set-design') === name ? 'true' : 'false'); + }); + } + designBtns.forEach(function (b) { + b.addEventListener('click', function () { setDesign(b.getAttribute('data-set-design')); }); + }); + document.addEventListener('keydown', function (e) { + if (arch.classList.contains('paused') && (!kzFig || kzFig.classList.contains('paused'))) return; + if (e.target && (e.target.tagName === 'INPUT' || e.target.tagName === 'TEXTAREA')) return; + if (e.key === 'T' || e.key === 'C') { + var cur = arch.getAttribute('data-tui-design') || 'grid'; + var idx = (designOrder.indexOf(cur) + 1) % designOrder.length; + setDesign(designOrder[idx]); + } + }); var clip = arch.querySelector('#p99-clip rect'), head = arch.querySelector('.p99-head'), val = arch.querySelector('.p99'); var X0 = 784, W = 132; function ms(p) { // illustrative P99 in ms, matching the hero terminal: 17.8 baseline, 41.2 with a broker down diff --git a/website/styles.css b/website/styles.css index 3ab21e290..735f08440 100644 --- a/website/styles.css +++ b/website/styles.css @@ -42,7 +42,7 @@ img { max-width: 100%; height: auto; display: block; } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; } code, pre { font-family: var(--mono); } -p code, li code, td code, th code, h2 code { +p code, li code, td code, th code, h2 code, figcaption code { font-size: 0.85em; background: var(--accent-soft); color: #a9cff6; @@ -177,71 +177,317 @@ h3 { font-size: 1.2rem; font-weight: 600; } .checks li { padding-left: 28px; position: relative; } .checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; } -/* ---------- architecture ---------- */ -.arch { margin: 0 0 56px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; --fault: #d64545; } -.arch svg { display: block; width: 100%; height: auto; font-family: var(--sans); color: var(--muted); } +/* ---------- architecture (Kates TUI styles) ---------- */ +.arch, .kz { + margin: 0 0 56px; + background: var(--tui-bg); + border: 1px solid var(--tui-win-border); + border-radius: 12px; + padding: 0 24px 20px; + overflow: hidden; + box-shadow: 0 24px 64px rgba(10, 14, 26, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.05); + font-family: var(--mono); + color: var(--tui-text); + /* Default tokens = Design 1: Grid · Aurora (kates dashboard style) */ + --tui-bg: #0b0d14; + --tui-win-bar: #151924; + --tui-win-border: #262c3d; + --tui-pane: #0b0d14; + --tui-pane-focus: #0e1320; + --tui-border: #334155; + --tui-focus: #818cf8; + --tui-title: #c4b5fd; + --tui-heading: #e6edf3; + --tui-text: #cbd5e1; + --tui-muted: #7d899f; + --tui-accent: #2dd4bf; + --tui-accent-soft: rgba(45, 212, 191, 0.14); + --tui-ok: #4ade80; + --tui-warn: #fbbf24; + --tui-fault: #fb7185; + --tui-stripe: transparent; +} + +/* Design 2: Panels · Dracula (kates lab style — filled slate panes with horizontal row rules) */ +.arch[data-tui-design="panels"], .kz[data-tui-design="panels"] { + --tui-bg: #0b0d14; + --tui-win-bar: #161822; + --tui-win-border: #2c2f42; + --tui-pane: #343746; + --tui-pane-focus: #383b4c; + --tui-border: #6272a4; + --tui-focus: #bd93f9; + --tui-title: #8be9fd; + --tui-heading: #f8f8f2; + --tui-text: #e2e4f0; + --tui-muted: #9ea8c7; + --tui-accent: #bd93f9; + --tui-accent-soft: rgba(189, 147, 249, 0.18); + --tui-ok: #50fa7b; + --tui-warn: #f1fa8c; + --tui-fault: #ff5555; + --tui-stripe: rgba(18, 20, 30, 0.42); +} + +/* Design 3: Classic · Chips (kates ctx / classic look — solid banner & filled pill badges) */ +.arch[data-tui-design="chips"], .kz[data-tui-design="chips"] { + --tui-bg: #0b0d14; + --tui-win-bar: #151924; + --tui-win-border: #262c3d; + --tui-pane: #101420; + --tui-pane-focus: #131a2b; + --tui-border: #28344e; + --tui-focus: #60a5fa; + --tui-title: #0b0d14; + --tui-heading: #f8fafc; + --tui-text: #cbd5e1; + --tui-muted: #7d899f; + --tui-accent: #60a5fa; + --tui-accent-soft: rgba(96, 165, 250, 0.18); + --tui-ok: #4ade80; + --tui-warn: #fbbf24; + --tui-fault: #f87171; + --tui-stripe: transparent; +} + +/* macOS terminal titlebar + design switcher */ +.arch-winbar { + display: flex; + align-items: center; + justify-content: space-between; + gap: 12px; + margin: 0 -24px 16px; + padding: 10px 16px; + background: var(--tui-win-bar); + border-bottom: 1px solid var(--tui-win-border); + flex-wrap: wrap; +} +.arch-dots { display: inline-flex; gap: 7px; align-items: center; } +.arch-dots span { width: 12px; height: 12px; border-radius: 50%; } +.arch-dots span:nth-child(1) { background: #ff5f57; } +.arch-dots span:nth-child(2) { background: #febc2e; } +.arch-dots span:nth-child(3) { background: #28c840; } +.arch-wintitle { + font-family: var(--sans); + font-size: 0.8rem; + color: var(--tui-muted); + text-align: center; + flex: 1; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} +.arch-designs { display: inline-flex; gap: 6px; flex-wrap: wrap; } +.arch-designs button { + font: 500 11.5px var(--mono); + color: var(--tui-muted); + background: rgba(255, 255, 255, 0.03); + border: 1px solid var(--tui-win-border); + border-radius: 6px; + padding: 4px 9px; + cursor: pointer; + transition: all 0.15s ease; +} +.arch-designs button:hover { color: var(--tui-heading); border-color: var(--tui-focus); } +.arch-designs button[aria-pressed="true"] { + color: #0b0d14; + background: var(--tui-focus); + border-color: var(--tui-focus); + font-weight: 600; +} + +/* TUI Screen Header Bar (matches kates lab / kates dashboard header) */ +.arch-tui-head { + display: flex; + align-items: center; + gap: 10px; + padding: 6px 14px; + margin-bottom: 14px; + border: 1px solid var(--tui-border); + font-size: 0.86rem; + color: var(--tui-heading); + background: transparent; + overflow-x: auto; + white-space: nowrap; +} +.arch-tui-head b { color: var(--tui-title); font-weight: 700; } +.arch-tui-head .sep { color: var(--tui-muted); } +.arch-tui-head .url { color: var(--tui-text); } +.arch[data-tui-design="panels"] .arch-tui-head, +.kz[data-tui-design="panels"] .arch-tui-head { + border-color: var(--tui-focus); + background: var(--tui-pane); + border-radius: 4px; +} +.arch[data-tui-design="panels"] .arch-tui-head b, +.kz[data-tui-design="panels"] .arch-tui-head b { color: var(--tui-focus); } +.arch[data-tui-design="chips"] .arch-tui-head, +.kz[data-tui-design="chips"] .arch-tui-head { + background: #d8b4fe; + border-color: #d8b4fe; + color: #0b0d14; + font-weight: 600; +} +.arch[data-tui-design="chips"] .arch-tui-head b, +.arch[data-tui-design="chips"] .arch-tui-head .sep, +.arch[data-tui-design="chips"] .arch-tui-head .url, +.kz[data-tui-design="chips"] .arch-tui-head b, +.kz[data-tui-design="chips"] .arch-tui-head .sep, +.kz[data-tui-design="chips"] .arch-tui-head .url { color: #0b0d14; } + +.arch svg { display: block; width: 100%; height: auto; font-family: var(--mono); color: var(--tui-muted); } .arch .arch-v { display: none; } /* below this the wide layout's labels get too small, so a vertical layout takes over */ @media (max-width: 820px) { - .arch { padding: 12px; } + .arch { padding: 0 12px 14px; } + .arch-winbar { margin: 0 -12px 12px; } .arch .arch-h { display: none; } .arch .arch-v { display: block; max-width: 420px; margin: 0 auto; } } -.arch .box rect { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 1.5; } -.arch .box-cli rect, .arch .box-api rect { stroke: var(--accent); fill: var(--accent-soft); } -.arch .cluster { fill: none; stroke: var(--border-strong); stroke-dasharray: 6 6; } -.arch .t-title { fill: var(--heading); font-size: 17px; font-weight: 600; } -.arch .t-sub { fill: var(--muted); font-size: 13px; } -.arch .t-code { fill: var(--accent); font-size: 12px; font-family: var(--mono); } -.arch .t-cluster { fill: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; } -.arch .edge { fill: none; stroke: var(--accent); stroke-width: 1.8; } -.arch .fault .edge, .arch .fault .pkt { stroke: var(--fault); } -.arch marker path { fill: var(--accent); } -.arch .mk-fault path { fill: var(--fault); } -.arch .pkt { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 0.01 0.99; stroke-dashoffset: 1; animation: arch-flow var(--t, 2s) linear infinite; filter: drop-shadow(0 0 3px var(--accent)); } -.arch .fault .pkt { filter: drop-shadow(0 0 4px var(--fault)); } -.arch .chip rect { fill: var(--surface); stroke: var(--border-strong); } -.arch .chip text { fill: var(--muted); font-size: 11px; } -.arch .fault .chip text { fill: var(--fault); } -.arch .broker { fill: var(--ok); transition: fill 0.3s, opacity 0.3s; } -.arch .spark { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 1; animation: arch-spark 6s ease-in-out infinite; } + +.arch .tui-stripe-line { stroke: var(--tui-stripe); stroke-width: 1; } +.arch .pane-stripes { pointer-events: none; opacity: 0; } +.arch[data-tui-design="panels"] .pane-stripes { opacity: 1; } + +.arch .box .pane-bg { + fill: var(--tui-pane); + stroke: var(--tui-border); + stroke-width: 1.4; + transition: stroke 0.2s, fill 0.2s; +} +.arch .box-cli .pane-bg, .arch .box-api .pane-bg { + stroke: var(--tui-focus); + fill: var(--tui-pane-focus); +} +/* Grid look: sharp corners + title embedded in top border */ +.arch[data-tui-design="grid"] .box .pane-bg, +.arch[data-tui-design="grid"] .cluster { rx: 0; } +.arch[data-tui-design="grid"] .t-title { opacity: 0; } +.arch[data-tui-design="grid"] .title-cut { fill: var(--tui-bg); stroke: none; } +.arch[data-tui-design="grid"] .t-border-title { fill: var(--tui-title); font-size: 13.5px; font-weight: 700; } + +/* Panels look: rounded filled panes, centered cyan title inside pane */ +.arch[data-tui-design="panels"] .box .pane-bg { rx: 4px; } +.arch[data-tui-design="panels"] .title-cut, +.arch[data-tui-design="panels"] .t-border-title { opacity: 0; } + +/* Chips look: filled pill badge on top border of each node */ +.arch[data-tui-design="chips"] .t-title { opacity: 0; } +.arch[data-tui-design="chips"] .title-cut { fill: var(--tui-accent); rx: 4px; } +.arch[data-tui-design="chips"] .box-cli .title-cut, +.arch[data-tui-design="chips"] .box-api .title-cut { fill: #d8b4fe; } +.arch[data-tui-design="chips"] .t-border-title { fill: #0b0d14; font-size: 12.5px; font-weight: 700; } + +.arch .cluster { fill: none; stroke: var(--tui-border); stroke-dasharray: 5 5; stroke-width: 1.2; } +.arch .cluster-tag { fill: var(--tui-bg); } +.arch .t-title { fill: var(--tui-title); font-size: 15.5px; font-weight: 700; } +.arch .t-sub { fill: var(--tui-muted); font-size: 12px; } +.arch .t-code { fill: var(--tui-accent); font-size: 11.5px; font-family: var(--mono); } +.arch .t-cluster { fill: var(--tui-title); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; } +.arch .edge { fill: none; stroke: var(--tui-accent); stroke-width: 1.8; } +.arch .fault .edge, .arch .fault .pkt { stroke: var(--tui-fault); } +.arch marker path { fill: var(--tui-accent); } +.arch .mk-fault path { fill: var(--tui-fault); } +.arch .pkt { fill: none; stroke: var(--tui-accent); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 0.01 0.99; stroke-dashoffset: 1; animation: arch-flow var(--t, 2s) linear infinite; filter: drop-shadow(0 0 4px var(--tui-accent)); } +.arch .fault .pkt { filter: drop-shadow(0 0 5px var(--tui-fault)); } +.arch .chip rect { fill: #151926; stroke: var(--tui-border); stroke-width: 1.2; } +.arch .chip text { fill: var(--tui-heading); font-size: 10.5px; font-family: var(--mono); } +.arch .fault .chip rect { fill: rgba(251, 113, 133, 0.18); stroke: var(--tui-fault); stroke-width: 1.5; } +.arch .fault .chip text { fill: var(--tui-fault); font-weight: 700; } +.arch .broker { fill: var(--tui-ok); transition: fill 0.3s, opacity 0.3s; } +.arch .spark { fill: none; stroke: var(--tui-accent); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 1; animation: arch-spark 6s ease-in-out infinite; } .arch .t-small { font-size: 11px; } /* the story: site.js sets data-phase 0-4 (baseline, inject, broker down, recovery, graded) on the figure */ .arch [data-ph] { visibility: hidden; } .arch[data-phase="1"] [data-ph="1"], .arch[data-phase="4"] [data-ph="4"] { visibility: visible; } -.arch .fault .edge { stroke-opacity: 0.3; } +.arch .fault .edge { stroke-opacity: 0.65; } .arch[data-phase="1"] .fault .edge, .arch[data-phase="2"] .fault .edge { stroke-opacity: 1; } -.arch .ok .edge { stroke: var(--ok); stroke-dasharray: 5 4; } -.arch .ok .pkt { stroke: var(--ok); filter: drop-shadow(0 0 4px var(--ok)); } -.arch .mk-ok path { fill: var(--ok); } -.arch[data-phase="1"] .litmus-hit, .arch[data-phase="2"] .kafka-hit { stroke: var(--fault); stroke-width: 2.5; } -.arch[data-phase="3"] .kafka-hit { stroke: var(--warn); } -.arch[data-phase="2"] .broker.hit { fill: var(--fault); opacity: 0.3; } -.arch[data-phase="3"] .broker.hit { fill: var(--warn); animation: arch-blink 0.5s infinite alternate; } +.arch .ok .edge { stroke: var(--tui-ok); stroke-dasharray: 5 4; } +.arch .ok .pkt { stroke: var(--tui-ok); filter: drop-shadow(0 0 4px var(--tui-ok)); } +.arch .mk-ok path { fill: var(--tui-ok); } +.arch[data-phase="1"] .litmus-hit, .arch[data-phase="2"] .kafka-hit { stroke: var(--tui-fault) !important; stroke-width: 2.2; } +.arch[data-phase="3"] .kafka-hit { stroke: var(--tui-warn) !important; } +.arch[data-phase="2"] .broker.hit { fill: var(--tui-fault); opacity: 0.35; } +.arch[data-phase="3"] .broker.hit { fill: var(--tui-warn); animation: arch-blink 0.5s infinite alternate; } .arch .stamp { transform-box: fill-box; transform-origin: center; transform: scale(2.2) rotate(-14deg); transition: transform 0.35s cubic-bezier(.3, 1.6, .5, 1); } .arch[data-phase="4"] .stamp { transform: rotate(-10deg); } -.arch .stamp circle { fill: var(--ok); } -.arch .stamp text { fill: var(--surface); font-weight: 800; font-size: 20px; } -.arch .p99 { font-size: 26px; font-weight: 700; fill: var(--heading); transition: fill 0.3s; } -.arch[data-phase="2"] .p99 { fill: var(--fault); } -.arch[data-phase="3"] .p99 { fill: var(--warn); } -.arch .p99-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; } -.arch .p99-area { fill: var(--accent-soft); } -.arch .p99-head { fill: var(--accent); stroke: var(--surface); stroke-width: 2; } -.arch .band { fill: var(--fault); fill-opacity: 0.07; } -.arch .grid { stroke: var(--border); stroke-dasharray: 2 4; } -.arch-tl { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 14px; padding-top: 10px; position: relative; } -.arch-tl-bar { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--surface-2); border-radius: 4px; overflow: hidden; } -.arch-tl-bar span { display: block; height: 100%; width: 0; background: var(--accent); } -.arch-tl button { font: 500 13px var(--sans); color: var(--muted); background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px 4px; cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s; } -.arch-tl button[aria-pressed="true"] { color: var(--heading); border-color: var(--accent); background: var(--accent-soft); } -.arch-tl button.bad[aria-pressed="true"] { color: var(--fault); border-color: var(--fault); } -.arch-tl button.good[aria-pressed="true"] { color: var(--ok); border-color: var(--ok); } -.arch-step { text-align: center; font-weight: 600; color: var(--heading); margin: 12px 0 0; min-height: 1.65em; } -.arch[data-phase="1"] .arch-step, .arch[data-phase="2"] .arch-step { color: var(--fault); } -.arch[data-phase="3"] .arch-step, .arch[data-phase="4"] .arch-step { color: var(--ok); } -.arch .node { cursor: default; outline: none; transform-box: fill-box; } -.arch .node:focus-visible rect { stroke-width: 3; stroke: var(--accent); } +.arch .stamp circle { fill: var(--tui-ok); } +.arch .stamp text { fill: #0b0d14; font-weight: 800; font-size: 18px; } +.arch .p99 { font-size: 23px; font-weight: 700; fill: var(--tui-ok); transition: fill 0.3s; } +.arch[data-phase="2"] .p99 { fill: var(--tui-fault); } +.arch[data-phase="3"] .p99 { fill: var(--tui-warn); } +.arch .p99-line { fill: none; stroke: var(--tui-accent); stroke-width: 2.2; stroke-linejoin: round; } +.arch .p99-area { fill: var(--tui-accent-soft); } +.arch .p99-head { fill: var(--tui-accent); stroke: var(--tui-bg); stroke-width: 2; } +.arch .band { fill: var(--tui-fault); fill-opacity: 0.12; } +.arch .grid { stroke: var(--tui-border); stroke-dasharray: 2 4; } + +.arch-tl { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 14px; padding-top: 12px; position: relative; } +.arch-tl-bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #1e2436; border-radius: 3px; overflow: hidden; } +.arch-tl-bar span { display: block; height: 100%; width: 0; background: var(--tui-accent); } +.arch-tl button { + font: 500 12.5px var(--mono); + color: var(--tui-muted); + background: rgba(255, 255, 255, 0.02); + border: 1px solid var(--tui-border); + border-radius: 4px; + padding: 7px 6px; + cursor: pointer; + transition: color 0.2s, border-color 0.2s, background 0.2s; +} +.arch-tl button .k-idx { color: var(--tui-focus); font-weight: 700; margin-right: 4px; } +.arch-tl button[aria-pressed="true"] { + color: var(--tui-heading); + border-color: var(--tui-accent); + background: var(--tui-accent-soft); + font-weight: 600; +} +.arch-tl button.bad[aria-pressed="true"] { color: var(--tui-fault); border-color: var(--tui-fault); background: rgba(251, 113, 133, 0.14); } +.arch-tl button.good[aria-pressed="true"] { color: var(--tui-ok); border-color: var(--tui-ok); background: rgba(74, 222, 128, 0.14); } +/* In Chips look, the active timeline phase looks like the solid selection bar in kates ctx profiles set */ +.arch[data-tui-design="chips"] .arch-tl button[aria-pressed="true"] { + background: var(--tui-focus); + border-color: var(--tui-focus); + color: #0b0d14; +} +.arch[data-tui-design="chips"] .arch-tl button[aria-pressed="true"] .k-idx { color: #0b0d14; } + +.arch-step { + text-align: left; + font-weight: 600; + font-size: 0.88rem; + color: var(--tui-ok); + margin: 12px 0 0; + min-height: 1.65em; +} +.arch-step::before { content: "▸ "; } +.arch[data-phase="1"] .arch-step, .arch[data-phase="2"] .arch-step { color: var(--tui-fault); } +.arch[data-phase="3"] .arch-step { color: var(--tui-warn); } +.arch[data-phase="4"] .arch-step { color: var(--tui-ok); } + +.arch-keyhints { + display: flex; + flex-wrap: wrap; + gap: 6px; + margin-top: 10px; + padding-top: 10px; + border-top: 1px solid var(--tui-win-border); + font-size: 0.8rem; + color: var(--tui-muted); +} +.arch-keyhints b { color: var(--tui-focus); font-weight: 600; } +.arch[data-tui-design="panels"] .arch-keyhints b, +.kz[data-tui-design="panels"] .arch-keyhints b { color: #bd93f9; } +.arch-keyhints .sep { color: var(--tui-border); } +.arch figcaption, .kz figcaption { + color: var(--tui-muted); + font-size: 0.83rem; + margin: 6px 0 0; + text-align: left; +} + +.arch .node { cursor: pointer; outline: none; transform-box: fill-box; } +.arch .node:focus-visible .pane-bg { stroke-width: 2.5; stroke: var(--tui-accent); } /* dimming sits on the link group and the box contents, apart from the entrance transitions */ .arch .node > *, .arch .link { transition: opacity 0.2s; } .arch.focus .node:not(.on) > *, .arch.focus .link:not(.on) { opacity: 0.18; } @@ -261,66 +507,151 @@ h3 { font-size: 1.2rem; font-weight: 600; } .arch .pkt, .kz-lane i { display: none; } .arch .broker.hit, .arch .spark, .kz * { animation: none !important; stroke-dashoffset: 0; } } -.arch figcaption { color: var(--muted); font-size: 0.92rem; margin-top: 14px; text-align: center; } /* inside Kafka: site.js sets data-phase 0-4 on the figure */ -.kz { margin: 0 0 56px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; --fault: #d64545; } -.kz h3 { margin-bottom: 16px; } .kz-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; } -.kz-src { border: 1.5px solid var(--accent); background: var(--accent-soft); border-radius: 12px; padding: 10px 16px; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; } -.kz-src b, .kz-chaos b, .kz-brk-h b { color: var(--heading); } -.kz-src span, .kz-chaos span { color: var(--muted); font: 13px var(--mono); } -.kz-lane { height: 54px; position: relative; } -.kz-lane::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1.5px dashed var(--border-strong); } -.kz-lane i { position: absolute; left: calc(50% - 4px); top: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); animation: kz-drop 1s linear infinite; } +.kz-src { + border: 1.4px solid var(--tui-focus); + background: var(--tui-pane-focus); + border-radius: 6px; + padding: 10px 16px; + display: flex; + justify-content: space-between; + align-items: baseline; + flex-wrap: wrap; + gap: 4px 16px; +} +.kz[data-tui-design="grid"] .kz-src, +.kz[data-tui-design="grid"] .kz-brk, +.kz[data-tui-design="grid"] .kz-chaos { border-radius: 0; } +.kz[data-tui-design="panels"] .kz-src, +.kz[data-tui-design="panels"] .kz-brk, +.kz[data-tui-design="panels"] .kz-chaos { + border-radius: 4px; + background-image: repeating-linear-gradient( + to bottom, + transparent 0, + transparent 21px, + var(--tui-stripe) 21px, + var(--tui-stripe) 22px + ); +} +.kz-src b, .kz-chaos b, .kz-brk-h b { color: var(--tui-title); font-weight: 700; } +.kz-src span { color: var(--tui-ok); font: 600 12.5px var(--mono); } +.kz-chaos span { color: var(--tui-muted); font: 12.5px var(--mono); } +.kz-lane { height: 50px; position: relative; } +.kz-lane::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1.5px dashed var(--tui-border); } +.kz-lane i { position: absolute; left: calc(50% - 4px); top: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--tui-accent); box-shadow: 0 0 6px var(--tui-accent); animation: kz-drop 1s linear infinite; } .kz-lane i:nth-child(2) { animation-delay: -0.33s; } .kz-lane i:nth-child(3) { animation-delay: -0.66s; } .kz-lane.busy i { animation-duration: 0.55s; } .kz-lane.idle i { visibility: hidden; } -.kz-brk { border: 1.5px solid var(--border-strong); background: var(--surface-2); border-radius: 12px; padding: 12px; transition: opacity 0.4s, filter 0.4s, border-color 0.3s; } -.kz-brk-h { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; margin-bottom: 10px; } -.kz-brk-h b { font: 600 13px var(--mono); } -.kz-brk-h small { color: var(--muted); font-size: 12px; } +.kz-brk { + position: relative; + border: 1.4px solid var(--tui-border); + background: var(--tui-pane); + border-radius: 6px; + padding: 14px 12px 12px; + transition: opacity 0.4s, filter 0.4s, border-color 0.3s; +} +.kz-brk-h { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; margin-bottom: 12px; } +.kz-brk-h b { font: 700 13px var(--mono); color: var(--tui-title); } +.kz-brk-h small { color: var(--tui-muted); font-size: 11.5px; } +/* Grid look: broker title cut into the top border */ +.kz[data-tui-design="grid"] .kz-brk-h b { + position: absolute; + top: -10px; + left: 10px; + background: var(--tui-bg); + padding: 0 6px; +} +.kz[data-tui-design="grid"] .kz-brk-h { justify-content: flex-end; margin-bottom: 8px; } +/* Chips look: broker title as a solid filled pill badge on the top border */ +.kz[data-tui-design="chips"] .kz-brk-h b { + position: absolute; + top: -11px; + left: 10px; + background: var(--tui-accent); + color: #0b0d14; + padding: 1px 8px; + border-radius: 4px; +} +.kz[data-tui-design="chips"] .kz-brk-h { justify-content: flex-end; margin-bottom: 8px; } + .kz-parts { display: flex; gap: 6px; } -.kz-parts span { position: relative; overflow: hidden; flex: 1; text-align: center; font: 500 12px/1.4 var(--mono); padding: 6px 0; border-radius: 7px; border: 1.5px solid var(--accent); color: var(--accent); background: var(--surface); transition: background 0.5s, color 0.5s; } -.kz-parts .ldr { background: var(--accent); color: var(--surface); } +.kz-parts span { + position: relative; + overflow: hidden; + flex: 1; + text-align: center; + font: 600 12px/1.4 var(--mono); + padding: 6px 0; + border-radius: 4px; + border: 1.4px solid var(--tui-accent); + color: var(--tui-accent); + background: rgba(255, 255, 255, 0.02); + transition: background 0.4s, color 0.4s, border-color 0.4s; +} +.kz-parts .ldr { background: var(--tui-accent); color: #0b0d14; font-weight: 700; } .kz-parts .ldr::before { content: "★ "; font-size: 10px; } -.kz-parts span::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--warn); } -.kz[data-phase="1"] .kz-hit .kz-brk { animation: kz-shake 0.12s 6; border-color: var(--fault); } -.kz[data-phase="2"] .kz-hit .kz-brk { opacity: 0.35; filter: grayscale(1); border-style: dashed; } +.kz-parts span::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--tui-warn); } +.kz[data-phase="1"] .kz-hit .kz-brk { animation: kz-shake 0.12s 6; border-color: var(--tui-fault); } +.kz[data-phase="2"] .kz-hit .kz-brk { opacity: 0.4; filter: grayscale(0.85); border-style: dashed; border-color: var(--tui-fault); } .kz[data-phase="2"] .kz-hit .kz-parts span { border-style: dashed; } -.kz[data-phase="3"] .kz-hit .kz-brk { border-color: var(--warn); } +.kz[data-phase="3"] .kz-hit .kz-brk { border-color: var(--tui-warn); } .kz[data-phase="3"] .kz-hit .kz-parts span::after { width: 100%; transition: width 2.4s linear; } -.kz-bolt { height: 36px; position: relative; } -.kz-bolt::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px dashed var(--fault); opacity: 0.25; transition: opacity 0.3s; } +.kz-bolt { height: 42px; position: relative; display: flex; align-items: center; justify-content: center; } +.kz-bolt::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px dashed var(--tui-fault); opacity: 0.55; transition: opacity 0.3s; } +.kz-inject-tag { + position: relative; + z-index: 1; + margin-left: 64px; + padding: 2px 8px; + border-radius: 4px; + border: 1.4px solid var(--tui-fault); + background: rgba(251, 113, 133, 0.18); + color: var(--tui-fault); + font: 700 10.5px var(--mono); +} .kz[data-phase="1"] .kz-bolt::before { opacity: 1; animation: kz-up 0.4s linear infinite; } -.kz-chaos { border: 1.5px solid var(--border-strong); background: var(--surface-2); border-radius: 12px; padding: 10px 14px; text-align: center; display: grid; transition: border-color 0.3s; } -.kz[data-phase="1"] .kz-chaos { border-color: var(--fault); } -.kz[data-phase="1"] .kz-chaos span { color: var(--fault); } -.kz-isr { display: flex; justify-content: center; gap: 12px 28px; flex-wrap: wrap; margin-top: 18px; font: 500 13px var(--mono); color: var(--muted); } -.kz-isr span { display: inline-flex; gap: 4px; align-items: center; } -.kz-isr i { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); border: 2px solid var(--ok); transition: background 0.3s, border-color 0.3s; } -.kz[data-phase="2"] .kz-isr .hit { background: transparent; border-color: var(--fault); } -.kz[data-phase="3"] .kz-isr .hit { background: transparent; border-color: var(--warn); animation: arch-blink 0.5s infinite alternate; } -.kz figcaption { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 12px; min-height: 3.2em; } -.kz figcaption b { color: var(--heading); } -.kz[data-phase="1"] figcaption, .kz[data-phase="2"] figcaption { color: var(--fault); } -.kz[data-phase="4"] figcaption { color: var(--ok); } +.kz-chaos { + border: 1.4px solid var(--tui-border); + background: var(--tui-pane); + border-radius: 6px; + padding: 10px 14px; + text-align: center; + display: grid; + gap: 2px; + transition: border-color 0.3s; +} +.kz[data-phase="1"] .kz-chaos, .kz[data-phase="2"] .kz-chaos { border-color: var(--tui-fault); } +.kz[data-phase="1"] .kz-chaos span, .kz[data-phase="2"] .kz-chaos span { color: var(--tui-fault); font-weight: 600; } +.kz-isr { display: flex; justify-content: center; gap: 12px 28px; flex-wrap: wrap; margin: 18px 0 12px; font: 600 12.5px var(--mono); color: var(--tui-muted); } +.kz-isr span { display: inline-flex; gap: 6px; align-items: center; } +.kz-isr i { width: 10px; height: 10px; border-radius: 50%; background: var(--tui-ok); border: 2px solid var(--tui-ok); transition: background 0.3s, border-color 0.3s; } +.kz[data-phase="2"] .kz-isr .hit { background: transparent; border-color: var(--tui-fault); } +.kz[data-phase="3"] .kz-isr .hit { background: transparent; border-color: var(--tui-warn); animation: arch-blink 0.5s infinite alternate; } +.kz figcaption { text-align: left; color: var(--tui-muted); font-size: 0.84rem; margin: 0; min-height: 1.6em; } +.kz figcaption b { color: var(--tui-heading); } +.kz[data-phase="1"] figcaption, .kz[data-phase="2"] figcaption { color: var(--tui-fault); } +.kz[data-phase="3"] figcaption { color: var(--tui-warn); } +.kz[data-phase="4"] figcaption { color: var(--tui-ok); } .kz.paused * { animation-play-state: paused; } -@keyframes kz-drop { from { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } to { transform: translateY(48px); opacity: 0.2; } } +@keyframes kz-drop { from { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } to { transform: translateY(44px); opacity: 0.2; } } @keyframes kz-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } } @keyframes kz-up { to { transform: translateY(-6px); } } /* three brokers side by side leave no room for full names or a row of partitions */ @media (max-width: 640px) { - .kz { padding: 14px; } + .kz { padding: 0 12px 14px; } .kz-row { gap: 8px; } - .kz-brk { padding: 8px; } + .kz-brk { padding: 14px 8px 8px; } .kz-brk-h b span { display: none; } .kz-parts { flex-direction: column; gap: 4px; } .kz-parts span { flex: none; } } -.screens { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } +.screens { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; } .screens figure { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; } .screens img { width: 100%; } .screens figcaption { padding: 12px 16px; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--border); } +.screens figcaption b { color: var(--heading); } /* ---------- compare ---------- */ .table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); } @@ -386,7 +717,7 @@ h1 { font-weight: 600; } h2 { font-weight: 600; } .nav { background: rgba(247, 245, 239, 0.88); } .hero-glow { background: radial-gradient(60% 50% at 20% 30%, rgba(26, 91, 204, 0.12), transparent 70%); } .btn-primary { color: #fff; } .btn-primary:hover { background: #2f6fdc; } -p code, li code, td code, th code, h2 code { color: #143f8f; } +p code, li code, td code, th code, h2 code, figcaption code { color: #143f8f; } .cta { background: radial-gradient(60% 80% at 50% 0%, rgba(26, 91, 204, 0.1), transparent 70%); } .footer { background: #102a66; border-top-color: #102a66; } .footer-links a, .footer-brand p, .footer-legal, .footer-links h4 { color: #c3cce0; }