Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
207 changes: 206 additions & 1 deletion web/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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));
}
}
4 changes: 2 additions & 2 deletions web/static/js/evidence-ladder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion web/static/js/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
12 changes: 10 additions & 2 deletions web/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>DeepGraph</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,400&family=Source+Sans+3:wght@400;500;600;700&family=Source+Code+Pro:wght@400;500;600;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=JetBrains+Mono:wght@400;500&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,400&family=Source+Sans+3:wght@400;500;600;700&family=Source+Code+Pro:wght@400;500;600;700&display=swap" rel="stylesheet">
<!-- Vendored locally (like MathJax): CDN scripts in <head> were
render-blocking and unreachable/slow from some networks. -->
<script defer src="/static/vendor/d3/d3.v7.min.js"></script>
Expand Down Expand Up @@ -45,7 +45,14 @@
<button class="sidebar-toggle" id="sidebarToggle" aria-label="Toggle sidebar">
<svg width="18" height="18" viewBox="0 0 18 18" fill="none"><path d="M2 4h14M2 9h14M2 14h14" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/></svg>
</button>
<span class="app-name">DeepGraph</span>
<div class="jb-brand">
<a class="jb-brand-root" href="https://joulebeat.com/" target="_blank" rel="noopener" aria-label="JouleBeat home">
<span class="jb-brand-mark" aria-hidden="true"></span>
<span>JOULEBEAT</span>
</a>
<span class="jb-brand-sep" aria-hidden="true">|</span>
<a class="jb-brand-sub" href="/">DEEPGRAPH</a>
</div>
<button class="status-pill live-badge" id="liveBadge" data-testid="status-pill" type="button" data-tab="office" aria-label="Open system activity">
<i aria-hidden="true"></i><span id="statusPillText" data-i18n="app.live.idle">IDLE</span>
</button>
Expand All @@ -68,6 +75,7 @@
</div>
</div>
<div class="topbar-right">
<a class="jb-main-lab-link" href="https://joulebeat.com/" target="_blank" rel="noopener">Main Lab</a>
<div class="lang-switch" data-testid="lang-toggle">
<button type="button" class="lang-btn" data-lang="en" data-i18n="lang.en">EN</button>
<button type="button" class="lang-btn" data-lang="zh" data-i18n="lang.zh">ZH</button>
Expand Down
Loading