From 5f67ec68c23d967ab15fc32e3ce55af5fdedd750 Mon Sep 17 00:00:00 2001 From: Protocol Zero <257158451+Protocol-zero-0@users.noreply.github.com> Date: Mon, 30 Nov 2026 23:10:37 +0000 Subject: [PATCH] Add JouleBeat topbar brand shell and default English UI --- web/static/css/style.css | 207 ++++++++++++++++++++++++++++++- web/static/js/evidence-ladder.js | 4 +- web/static/js/i18n.js | 2 +- web/templates/index.html | 12 +- 4 files changed, 219 insertions(+), 6 deletions(-) diff --git a/web/static/css/style.css b/web/static/css/style.css index 0016d91..65cf784 100644 --- a/web/static/css/style.css +++ b/web/static/css/style.css @@ -31,7 +31,7 @@ --font-mono: 'Source Code Pro', 'JetBrains Mono', 'Fira Code', monospace; --sidebar-w: 240px; --sidebar-w-collapsed: 56px; - --topbar-h: 56px; + --topbar-h: 64px; --radius: 8px; --radius-sm: 5px; --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1); @@ -4067,3 +4067,208 @@ mjx-assistive-mml { line-height: 1.5; color: var(--text-secondary, inherit); } + +/* ── Unified JouleBeat | DeepGraph 64px topbar brand shell ────────── */ +header#topBar { + background: rgba(255, 253, 248, 0.94); + backdrop-filter: blur(8px); + -webkit-backdrop-filter: blur(8px); +} + +.homepage-hierarchy-v2 .topbar-left { + gap: 16px; +} + +.jb-brand { + display: inline-flex; + align-items: center; + gap: 10px; + flex-shrink: 0; + min-width: 0; +} + +.jb-brand-root { + display: inline-flex; + align-items: center; + gap: 10px; + color: #16181B; + text-decoration: none; + font-family: "Space Grotesk", "Noto Sans SC", system-ui, -apple-system, sans-serif; + font-weight: 700; + font-size: 0.98rem; + line-height: 1; + letter-spacing: 0.04em; + white-space: nowrap; + transition: color 0.16s ease; +} + +.jb-brand-root:hover { + color: #C2410C; +} + +.jb-brand-mark { + width: 14px; + height: 14px; + background: #C2410C; + border-radius: 2px; + flex: 0 0 14px; + display: inline-block; +} + +.jb-brand-sep { + color: #BFC2B8; + font-family: "JetBrains Mono", "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, monospace; + font-size: 0.82rem; + line-height: 1; + user-select: none; +} + +.jb-brand-sub { + font-family: "JetBrains Mono", "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, monospace; + font-size: 0.74rem; + line-height: 1; + letter-spacing: 0.12em; + text-transform: uppercase; + color: #525866; + text-decoration: none; + font-weight: 500; + white-space: nowrap; + transition: color 0.16s ease; +} + +.jb-brand-sub:hover { + color: #C2410C; +} + +.jb-main-lab-link { + font-family: "Space Grotesk", "Noto Sans SC", system-ui, -apple-system, sans-serif; + font-size: 0.84rem; + font-weight: 500; + color: #525866; + text-decoration: none; + white-space: nowrap; + margin-right: 4px; + transition: color 0.16s ease; +} + +.jb-main-lab-link:hover { + color: #C2410C; +} + +.jb-brand-root:focus-visible, +.jb-brand-sub:focus-visible, +.jb-main-lab-link:focus-visible { + outline: 2px solid #C2410C; + outline-offset: 2px; + border-radius: 2px; +} + +@media (max-width: 1100px) and (min-width: 601px) { + .homepage-hierarchy-v2 header#topBar .topbar-right { + display: flex; + flex: 0 0 auto; + } +} + +@media (max-width: 900px) { + .jb-main-lab-link { + display: none; + } +} + +@media (max-width: 900px) and (min-width: 601px) { + .homepage-hierarchy-v2 header#topBar .topbar-right .search-container { + width: 200px; + } +} + +@media (max-width: 600px) { + :root { + --topbar-h: 104px; + } + body header#topBar, + body.homepage-hierarchy-v2 header#topBar { + display: flex; + flex-wrap: wrap; + align-items: center; + align-content: center; + gap: 4px 8px; + height: var(--topbar-h); + padding: 5px 12px; + } + body .app-shell, + body.homepage-hierarchy-v2 .app-shell { + top: var(--topbar-h); + } + body header#topBar .topbar-left, + body.homepage-hierarchy-v2 header#topBar .topbar-left, + body header#topBar .topbar-right, + body.homepage-hierarchy-v2 header#topBar .topbar-right { + display: contents; + } + header#topBar #sidebarToggle { + order: 1; + flex: 0 0 32px; + width: 32px; + min-height: 44px; + } + header#topBar .jb-brand { + order: 2; + flex: 1 1 auto; + min-width: 0; + gap: 6px; + } + header#topBar .jb-brand-root { + gap: 7px; + font-size: 0.86rem; + min-height: 44px; + } + header#topBar .jb-brand-sub { + display: inline-flex; + align-items: center; + min-height: 44px; + font-size: 0.67rem; + letter-spacing: 0.08em; + overflow: hidden; + text-overflow: ellipsis; + } + header#topBar .lang-switch { + order: 3; + flex: 0 0 auto; + margin-right: 0; + padding: 0 2px; + } + header#topBar .lang-btn { + min-height: 44px; + display: inline-flex; + align-items: center; + justify-content: center; + } + header#topBar #liveBadge { + order: 4; + flex: 0 1 auto; + max-width: 158px; + min-height: 44px; + padding: 0 10px; + overflow: hidden; + } + header#topBar #statusPillText { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + header#topBar .search-container { + order: 5; + flex: 1 1 180px; + width: auto; + min-width: 0; + } + header#topBar .search-input { + height: 40px; + } + header#topBar .search-results { + left: auto; + right: 0; + width: min(366px, calc(100vw - 24px)); + } +} diff --git a/web/static/js/evidence-ladder.js b/web/static/js/evidence-ladder.js index e9ce931..7a11dbf 100644 --- a/web/static/js/evidence-ladder.js +++ b/web/static/js/evidence-ladder.js @@ -24,8 +24,8 @@ function lang() { try { var v = localStorage.getItem(LANG_KEY); - return v === "en" || v === "zh" ? v : "zh"; - } catch (e) { return "zh"; } + return v === "en" || v === "zh" ? v : "en"; + } catch (e) { return "en"; } } /* i18n.js owns the dashboard's strings and defines window.t. This component diff --git a/web/static/js/i18n.js b/web/static/js/i18n.js index 507f7c1..607d9b5 100644 --- a/web/static/js/i18n.js +++ b/web/static/js/i18n.js @@ -903,7 +903,7 @@ function preferredLanguage() { const saved = localStorage.getItem("deepgraph.lang"); if (saved === "en" || saved === "zh") return saved; - return "zh"; + return "en"; } let currentLanguage = preferredLanguage(); diff --git a/web/templates/index.html b/web/templates/index.html index 56f47a8..9692701 100644 --- a/web/templates/index.html +++ b/web/templates/index.html @@ -6,7 +6,7 @@ DeepGraph - + @@ -45,7 +45,14 @@ - DeepGraph +
+ + + JOULEBEAT + + + DEEPGRAPH +
@@ -68,6 +75,7 @@
+ Main Lab