- The Hub header badge could render 'vdev' because the runtime /etc/nixos/VERSION lookup fell back to the literal string 'dev' when the file was missing (e.g. dev/test environments, or before the Nix-generated config carried a version at all). - modules/core/sovran-hub.nix now reads the repo's VERSION file at Nix eval time and bakes a real semantic version (sovran_version) into the generated config.json and a VERSION file shipped with the package, so the Hub always has a solid value to display. - server.py's _get_sovran_version() now reads that baked-in sovran_version first, and explicitly rejects a literal 'dev' value from any of its file-based fallbacks so the badge never shows 'vdev' again. - templates/index.html + header.css: wrapped the title and the version badge in a '.title-group' column so the version badge sits directly underneath 'Sovran_SystemsOS Hub', left-aligned with it. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
167 lines
3.9 KiB
CSS
167 lines
3.9 KiB
CSS
/* ── Header bar ─────────────────────────────────────────────────── */
|
|
|
|
.header-bar {
|
|
backdrop-filter: blur(14px);
|
|
-webkit-backdrop-filter: blur(14px);
|
|
background-color: rgba(10, 12, 11, 0.82);
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
|
|
padding: 8px 24px;
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
.header-logo {
|
|
height: 80px;
|
|
width: auto;
|
|
display: block;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.header-bar .title {
|
|
font-size: 1.15rem;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.title-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
justify-content: center;
|
|
gap: 2px;
|
|
}
|
|
|
|
.header-buttons {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.role-badge {
|
|
background-color: var(--accent-color);
|
|
color: #0A1A10;
|
|
font-size: 0.72rem;
|
|
font-weight: 700;
|
|
padding: 3px 10px;
|
|
border-radius: 20px;
|
|
letter-spacing: 0.03em;
|
|
}
|
|
|
|
/* ── OS Version Badge (polished) ───────────────────────────────── */
|
|
.os-version-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
background: linear-gradient(145deg, #1a2a22, #0f1a15);
|
|
border: 1px solid rgba(74, 222, 128, 0.25);
|
|
border-radius: 9999px;
|
|
padding: 2px 14px 2px 10px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
color: #4ade80;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
white-space: nowrap;
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.os-version-badge:hover {
|
|
border-color: rgba(74, 222, 128, 0.45);
|
|
box-shadow: 0 4px 8px rgba(74, 222, 128, 0.15);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.os-version-badge .version-label {
|
|
font-size: 0.68rem;
|
|
font-weight: 500;
|
|
color: #4ade80;
|
|
opacity: 0.85;
|
|
margin-right: 2px;
|
|
}
|
|
|
|
.os-version-badge .version-number {
|
|
font-family: 'JetBrains Mono', 'Fira Code', monospace;
|
|
font-weight: 700;
|
|
letter-spacing: 0.5px;
|
|
color: #86efac;
|
|
}
|
|
|
|
/* ── IP bar ─────────────────────────────────────────────────────── */
|
|
|
|
.ip-bar {
|
|
background-color: rgba(10, 12, 11, 0.7);
|
|
backdrop-filter: blur(10px);
|
|
-webkit-backdrop-filter: blur(10px);
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
padding: 8px 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 32px;
|
|
font-size: 0.82rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.ip-bar .ip-label {
|
|
color: var(--text-dim);
|
|
margin-right: 6px;
|
|
}
|
|
|
|
.ip-bar .ip-value {
|
|
font-family: 'JetBrains Mono', 'Fira Code', 'Source Code Pro', monospace;
|
|
color: var(--accent-color);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.ip-separator {
|
|
color: var(--border-color);
|
|
}
|
|
.btn-logout {
|
|
background: transparent;
|
|
border: 1px solid rgba(255, 255, 255, 0.18);
|
|
color: var(--text-secondary);
|
|
font-size: 0.78rem;
|
|
font-weight: 600;
|
|
padding: 4px 12px;
|
|
border-radius: var(--radius-btn);
|
|
cursor: pointer;
|
|
transition: border-color 0.15s, color 0.15s;
|
|
}
|
|
|
|
.btn-logout:hover {
|
|
border-color: var(--accent-color);
|
|
color: var(--accent-color);
|
|
}
|
|
|
|
/* ── Header reboot button ───────────────────────────────────────── */
|
|
|
|
.btn-header-reboot {
|
|
background: transparent;
|
|
border: 1px solid rgba(184, 125, 0, 0.35);
|
|
color: #c98d08;
|
|
font-size: 0.78rem;
|
|
font-weight: 600;
|
|
padding: 4px 12px;
|
|
border-radius: var(--radius-btn);
|
|
cursor: pointer;
|
|
transition: border-color 0.15s, color 0.15s, background-color 0.15s;
|
|
}
|
|
|
|
.btn-header-reboot:hover {
|
|
border-color: #b87d00;
|
|
color: #e0a010;
|
|
background-color: rgba(184, 125, 0, 0.1);
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.btn-header-reboot {
|
|
padding: 4px 8px;
|
|
font-size: 0.72rem;
|
|
}
|
|
}
|