release-2.0
This commit is contained in:
@@ -1,47 +1,54 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');
|
||||
|
||||
/* ── Design Tokens ── */
|
||||
/* ══════════════════════════════════════════
|
||||
DESIGN TOKENS
|
||||
══════════════════════════════════════════ */
|
||||
:root {
|
||||
--bg: #111318;
|
||||
--bg-card: #1c1f2b;
|
||||
--bg-card2: #21253a;
|
||||
--border: rgba(255,255,255,.07);
|
||||
--border-hover:rgba(255,255,255,.13);
|
||||
--bg: #111318;
|
||||
--bg-card: #1c1f2b;
|
||||
--bg-card2: #21253a;
|
||||
--border: rgba(255,255,255,.07);
|
||||
--border-h: rgba(255,255,255,.13);
|
||||
|
||||
--txt: #e4e9f5;
|
||||
--txt-dim: rgba(228,233,245,.55);
|
||||
--txt-ghost: rgba(228,233,245,.28);
|
||||
--txt: #e4e9f5;
|
||||
--txt-dim: rgba(228,233,245,.55);
|
||||
--txt-ghost: rgba(228,233,245,.28);
|
||||
|
||||
--blue: #3b82f6;
|
||||
--blue-glow: rgba(59,130,246,.25);
|
||||
--blue-soft: rgba(59,130,246,.12);
|
||||
--blue: #3b82f6;
|
||||
--blue-soft: rgba(59,130,246,.12);
|
||||
--blue-glow: rgba(59,130,246,.35);
|
||||
|
||||
--green: #22c55e;
|
||||
--green-soft: rgba(34,197,94,.12);
|
||||
--green-glow: rgba(34,197,94,.3);
|
||||
--green: #22c55e;
|
||||
--green-soft: rgba(34,197,94,.12);
|
||||
|
||||
--yellow: #f59e0b;
|
||||
--yellow-soft: rgba(245,158,11,.12);
|
||||
--yellow: #f59e0b;
|
||||
--yellow-soft: rgba(245,158,11,.12);
|
||||
|
||||
--red: #ef4444;
|
||||
--red-soft: rgba(239,68,68,.12);
|
||||
--red-glow: rgba(239,68,68,.3);
|
||||
--red: #ef4444;
|
||||
--red-soft: rgba(239,68,68,.12);
|
||||
|
||||
--teal: #14b8a6;
|
||||
--teal-soft: rgba(20,184,166,.12);
|
||||
--teal: #14b8a6;
|
||||
--teal-soft: rgba(20,184,166,.12);
|
||||
|
||||
--purple: #a78bfa;
|
||||
--purple-soft: rgba(167,139,250,.12);
|
||||
--r: 12px;
|
||||
--r-sm: 8px;
|
||||
--gap: 14px;
|
||||
|
||||
--r: 12px;
|
||||
--r-sm: 8px;
|
||||
--gap: 14px;
|
||||
--font: 'Inter', system-ui, sans-serif;
|
||||
--mono: 'JetBrains Mono', monospace;
|
||||
|
||||
--font: 'Inter', system-ui, sans-serif;
|
||||
--mono: 'JetBrains Mono', monospace;
|
||||
/* Consumer view palette */
|
||||
--c-bg: #090b12;
|
||||
--c-txt: #dde8ff;
|
||||
--c-dim: rgba(221,232,255,.45);
|
||||
--c-ghost: rgba(221,232,255,.2);
|
||||
--c-accent: #60a5fa;
|
||||
--c-accent2: #34d399;
|
||||
}
|
||||
|
||||
/* ── Reset ── */
|
||||
/* ══════════════════════════════════════════
|
||||
RESET & BASE
|
||||
══════════════════════════════════════════ */
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
html, body {
|
||||
@@ -52,20 +59,86 @@ html, body {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
overflow-x: hidden;
|
||||
overflow: hidden; /* both views are full-viewport */
|
||||
}
|
||||
|
||||
/* Subtle grid background */
|
||||
/* grid overlay */
|
||||
body::before {
|
||||
content: '';
|
||||
position: fixed; inset: 0; z-index: 0; pointer-events: none;
|
||||
background-image:
|
||||
linear-gradient(rgba(59,130,246,.025) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(59,130,246,.025) 1px, transparent 1px);
|
||||
linear-gradient(rgba(59,130,246,.018) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(59,130,246,.018) 1px, transparent 1px);
|
||||
background-size: 40px 40px;
|
||||
transition: opacity .6s;
|
||||
}
|
||||
body.consumer-mode::before { opacity: 0; }
|
||||
|
||||
/* ══════════════════════════════════════════
|
||||
VIEW SWITCHER (hidden toggle button)
|
||||
══════════════════════════════════════════ */
|
||||
#view-toggle {
|
||||
position: fixed;
|
||||
bottom: 18px; right: 18px;
|
||||
z-index: 9999;
|
||||
width: 28px; height: 28px;
|
||||
border-radius: 50%;
|
||||
background: rgba(255,255,255,.04);
|
||||
border: 1px solid rgba(255,255,255,.08);
|
||||
cursor: pointer;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
opacity: 0;
|
||||
transition: opacity .3s, background .2s, transform .2s;
|
||||
user-select: none;
|
||||
}
|
||||
#view-toggle:hover {
|
||||
opacity: 1 !important;
|
||||
background: rgba(255,255,255,.10);
|
||||
transform: scale(1.15);
|
||||
}
|
||||
#view-toggle:active { transform: scale(.95); }
|
||||
#view-toggle svg { width: 12px; height: 12px; fill: rgba(255,255,255,.4); }
|
||||
|
||||
/* Show faintly on long hover of bottom-right corner */
|
||||
body:hover #view-toggle { opacity: .15; }
|
||||
|
||||
/* ══════════════════════════════════════════
|
||||
VIEWS — TRANSITION CONTAINER
|
||||
══════════════════════════════════════════ */
|
||||
#view-dev, #view-consumer {
|
||||
position: fixed; inset: 0;
|
||||
overflow-y: auto;
|
||||
transition: opacity .55s cubic-bezier(.4,0,.2,1),
|
||||
transform .55s cubic-bezier(.4,0,.2,1);
|
||||
}
|
||||
|
||||
/* ── Layout ── */
|
||||
/* dev default: visible */
|
||||
#view-dev {
|
||||
opacity: 1; transform: none;
|
||||
z-index: 1;
|
||||
pointer-events: all;
|
||||
}
|
||||
/* consumer: hidden right */
|
||||
#view-consumer {
|
||||
opacity: 0; transform: translateX(60px);
|
||||
z-index: 2;
|
||||
pointer-events: none;
|
||||
background: var(--c-bg);
|
||||
}
|
||||
|
||||
/* active states */
|
||||
body.consumer-mode #view-dev {
|
||||
opacity: 0; transform: translateX(-60px);
|
||||
pointer-events: none;
|
||||
}
|
||||
body.consumer-mode #view-consumer {
|
||||
opacity: 1; transform: none;
|
||||
pointer-events: all;
|
||||
}
|
||||
|
||||
/* ══════════════════════════════════════════
|
||||
── DEV VIEW ──
|
||||
══════════════════════════════════════════ */
|
||||
.mirror-layout {
|
||||
position: relative; z-index: 1;
|
||||
display: grid;
|
||||
@@ -77,16 +150,15 @@ body::before {
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/* ── Card primitive ── */
|
||||
.card {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--r);
|
||||
transition: border-color .25s, background .25s;
|
||||
}
|
||||
.card:hover { border-color: var(--border-hover); }
|
||||
.card:hover { border-color: var(--border-h); }
|
||||
|
||||
/* ── Header ── */
|
||||
/* Header */
|
||||
.mirror-header {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr auto;
|
||||
@@ -94,89 +166,50 @@ body::before {
|
||||
gap: 20px;
|
||||
padding: 16px 20px;
|
||||
}
|
||||
|
||||
.header-brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
.header-brand { display: flex; align-items: center; gap: 10px; }
|
||||
.brand-icon {
|
||||
width: 32px; height: 32px;
|
||||
border-radius: 8px;
|
||||
background: var(--blue-soft);
|
||||
border: 1px solid var(--blue);
|
||||
border: 1px solid rgba(59,130,246,.3);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-size: 16px;
|
||||
}
|
||||
.brand-name {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
letter-spacing: .04em;
|
||||
color: var(--txt);
|
||||
}
|
||||
.brand-sub {
|
||||
font-size: 11px;
|
||||
color: var(--txt-ghost);
|
||||
margin-top: 1px;
|
||||
}
|
||||
.brand-name { font-size: 13px; font-weight: 600; letter-spacing: .04em; }
|
||||
.brand-sub { font-size: 11px; color: var(--txt-ghost); margin-top: 1px; }
|
||||
|
||||
/* Clock — centred */
|
||||
.mirror-clock { text-align: center; }
|
||||
.clock-time {
|
||||
font-family: var(--mono);
|
||||
font-size: clamp(2rem, 5vw, 3.6rem);
|
||||
font-size: clamp(2rem, 5vw, 3.4rem);
|
||||
font-weight: 500;
|
||||
letter-spacing: .08em;
|
||||
color: var(--txt);
|
||||
line-height: 1;
|
||||
}
|
||||
.clock-date {
|
||||
font-size: 11px;
|
||||
font-weight: 400;
|
||||
letter-spacing: .18em;
|
||||
text-transform: uppercase;
|
||||
color: var(--txt-ghost);
|
||||
margin-top: 6px;
|
||||
font-size: 11px; font-weight: 400;
|
||||
letter-spacing: .18em; text-transform: uppercase;
|
||||
color: var(--txt-ghost); margin-top: 6px;
|
||||
}
|
||||
|
||||
/* Connection badge */
|
||||
.conn-badge {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
padding: 8px 14px;
|
||||
border-radius: var(--r-sm);
|
||||
font-family: var(--mono);
|
||||
font-size: 11px;
|
||||
font-family: var(--mono); font-size: 11px;
|
||||
color: var(--txt-ghost);
|
||||
transition: all .3s;
|
||||
}
|
||||
.conn-badge.ok {
|
||||
background: var(--green-soft);
|
||||
border-color: rgba(34,197,94,.25);
|
||||
color: var(--green);
|
||||
}
|
||||
.conn-badge.err {
|
||||
background: var(--red-soft);
|
||||
border-color: rgba(239,68,68,.25);
|
||||
color: var(--red);
|
||||
}
|
||||
.conn-badge.ok { background: var(--green-soft); border-color: rgba(34,197,94,.25); color: var(--green); }
|
||||
.conn-badge.err { background: var(--red-soft); border-color: rgba(239,68,68,.25); color: var(--red); }
|
||||
.conn-dot {
|
||||
width: 7px; height: 7px;
|
||||
border-radius: 50%;
|
||||
background: currentColor;
|
||||
flex-shrink: 0;
|
||||
transition: box-shadow .3s;
|
||||
width: 7px; height: 7px; border-radius: 50%;
|
||||
background: currentColor; flex-shrink: 0;
|
||||
}
|
||||
.conn-badge.ok .conn-dot { box-shadow: 0 0 6px var(--green); animation: pulse-green 2s infinite; }
|
||||
.conn-badge.err .conn-dot { box-shadow: 0 0 6px var(--red); }
|
||||
.conn-badge.ok .conn-dot { animation: pulse-ok 2s infinite; box-shadow: 0 0 6px var(--green); }
|
||||
@keyframes pulse-ok { 0%,100%{opacity:1} 50%{opacity:.4} }
|
||||
|
||||
@keyframes pulse-green {
|
||||
0%,100% { opacity: 1; }
|
||||
50% { opacity: .5; }
|
||||
}
|
||||
|
||||
/* ── Body grid ── */
|
||||
/* Body grid */
|
||||
.mirror-body {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
@@ -184,343 +217,302 @@ body::before {
|
||||
gap: var(--gap);
|
||||
}
|
||||
|
||||
/* ── Sensor tiles ── */
|
||||
/* Sensor tiles */
|
||||
.sensor-tile {
|
||||
padding: 18px 18px 14px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
cursor: default;
|
||||
position: relative; overflow: hidden;
|
||||
transition: transform .2s, box-shadow .2s, border-color .25s;
|
||||
}
|
||||
.sensor-tile:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 8px 24px rgba(0,0,0,.35);
|
||||
}
|
||||
|
||||
/* Coloured left stripe */
|
||||
.sensor-tile:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
|
||||
.sensor-tile::after {
|
||||
content: '';
|
||||
position: absolute; top: 0; left: 0; bottom: 0;
|
||||
width: 3px;
|
||||
position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
|
||||
border-radius: var(--r) 0 0 var(--r);
|
||||
background: var(--blue);
|
||||
transition: background .3s;
|
||||
background: var(--blue); transition: background .3s;
|
||||
}
|
||||
.sensor-tile.breach-high::after { background: var(--red); }
|
||||
.sensor-tile.breach-low::after { background: var(--yellow); }
|
||||
|
||||
.sensor-tile-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
.sensor-tile-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
|
||||
.sensor-icon {
|
||||
width: 30px; height: 30px;
|
||||
border-radius: 7px;
|
||||
background: var(--blue-soft);
|
||||
border: 1px solid rgba(59,130,246,.2);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-size: 14px;
|
||||
width: 30px; height: 30px; border-radius: 7px;
|
||||
background: var(--blue-soft); border: 1px solid rgba(59,130,246,.2);
|
||||
display: flex; align-items: center; justify-content: center; font-size: 14px;
|
||||
transition: background .3s, border-color .3s;
|
||||
}
|
||||
.sensor-tile.breach-high .sensor-icon {
|
||||
background: var(--red-soft);
|
||||
border-color: rgba(239,68,68,.3);
|
||||
}
|
||||
.sensor-tile.breach-low .sensor-icon {
|
||||
background: var(--yellow-soft);
|
||||
border-color: rgba(245,158,11,.3);
|
||||
}
|
||||
|
||||
.sensor-tile.breach-high .sensor-icon { background: var(--red-soft); border-color: rgba(239,68,68,.3); }
|
||||
.sensor-tile.breach-low .sensor-icon { background: var(--yellow-soft); border-color: rgba(245,158,11,.3); }
|
||||
.sensor-state-dot {
|
||||
width: 6px; height: 6px;
|
||||
border-radius: 50%;
|
||||
background: var(--blue);
|
||||
opacity: .5;
|
||||
transition: background .3s, opacity .3s, box-shadow .3s;
|
||||
width: 6px; height: 6px; border-radius: 50%;
|
||||
background: var(--blue); opacity: .4; transition: all .3s;
|
||||
}
|
||||
.sensor-tile.breach-high .sensor-state-dot {
|
||||
background: var(--red); opacity: 1;
|
||||
box-shadow: 0 0 6px var(--red);
|
||||
animation: blink .8s infinite;
|
||||
.sensor-tile.breach-high .sensor-state-dot,
|
||||
.sensor-tile.breach-low .sensor-state-dot {
|
||||
opacity: 1; animation: blink .8s infinite;
|
||||
}
|
||||
.sensor-tile.breach-low .sensor-state-dot {
|
||||
background: var(--yellow); opacity: 1;
|
||||
box-shadow: 0 0 6px var(--yellow);
|
||||
animation: blink .8s infinite;
|
||||
}
|
||||
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
|
||||
.sensor-tile.breach-high .sensor-state-dot { background: var(--red); box-shadow: 0 0 6px var(--red); }
|
||||
.sensor-tile.breach-low .sensor-state-dot { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
|
||||
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }
|
||||
|
||||
.sensor-label {
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
letter-spacing: .06em;
|
||||
text-transform: uppercase;
|
||||
color: var(--txt-ghost);
|
||||
}
|
||||
|
||||
.sensor-value {
|
||||
font-family: var(--mono);
|
||||
font-size: clamp(1.5rem, 2.5vw, 2.1rem);
|
||||
font-weight: 500;
|
||||
color: var(--txt);
|
||||
line-height: 1;
|
||||
transition: color .3s;
|
||||
}
|
||||
.sensor-label { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--txt-ghost); }
|
||||
.sensor-value { font-family: var(--mono); font-size: clamp(1.5rem,2.5vw,2.1rem); font-weight: 500; line-height: 1; transition: color .3s; }
|
||||
.sensor-tile.breach-high .sensor-value { color: var(--red); }
|
||||
.sensor-tile.breach-low .sensor-value { color: var(--yellow); }
|
||||
|
||||
.sensor-meta {
|
||||
margin-top: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.sensor-threshold {
|
||||
font-family: var(--mono);
|
||||
font-size: 10px;
|
||||
color: var(--txt-ghost);
|
||||
}
|
||||
.sensor-meta { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; }
|
||||
.sensor-threshold { font-family: var(--mono); font-size: 10px; color: var(--txt-ghost); }
|
||||
.sensor-alert-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
font-size: 10px;
|
||||
font-weight: 500;
|
||||
letter-spacing: .05em;
|
||||
text-transform: uppercase;
|
||||
padding: 2px 7px;
|
||||
border-radius: 4px;
|
||||
background: var(--red-soft);
|
||||
color: var(--red);
|
||||
border: 1px solid rgba(239,68,68,.25);
|
||||
}
|
||||
.sensor-alert-badge.low {
|
||||
background: var(--yellow-soft);
|
||||
color: var(--yellow);
|
||||
border-color: rgba(245,158,11,.25);
|
||||
font-size: 10px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase;
|
||||
padding: 2px 7px; border-radius: 4px;
|
||||
background: var(--red-soft); color: var(--red); border: 1px solid rgba(239,68,68,.25);
|
||||
}
|
||||
.sensor-alert-badge.low { background: var(--yellow-soft); color: var(--yellow); border-color: rgba(245,158,11,.25); }
|
||||
|
||||
/* ── Stat row ── */
|
||||
.stat-row {
|
||||
grid-column: 1 / -1;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: var(--gap);
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
padding: 14px 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
/* Stat row */
|
||||
.stat-row { grid-column: 1/-1; display: grid; grid-template-columns: repeat(4,1fr); gap: var(--gap); }
|
||||
.stat-card { padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
|
||||
.stat-card-icon {
|
||||
width: 36px; height: 36px;
|
||||
border-radius: 9px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-size: 16px;
|
||||
flex-shrink: 0;
|
||||
width: 36px; height: 36px; border-radius: 9px;
|
||||
display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
|
||||
}
|
||||
.stat-card-icon.blue { background: var(--blue-soft); }
|
||||
.stat-card-icon.green { background: var(--green-soft); }
|
||||
.stat-card-icon.red { background: var(--red-soft); }
|
||||
.stat-card-icon.teal { background: var(--teal-soft); }
|
||||
.stat-card-icon.purple { background: var(--purple-soft); }
|
||||
|
||||
.stat-info { min-width: 0; }
|
||||
.stat-label {
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
letter-spacing: .06em;
|
||||
text-transform: uppercase;
|
||||
color: var(--txt-ghost);
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.stat-value {
|
||||
font-family: var(--mono);
|
||||
font-size: 1.15rem;
|
||||
font-weight: 500;
|
||||
color: var(--txt);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.stat-label { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--txt-ghost); margin-bottom: 3px; }
|
||||
.stat-value { font-family: var(--mono); font-size: 1.15rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.stat-value.red { color: var(--red); }
|
||||
.stat-sub {
|
||||
font-size: 10px;
|
||||
color: var(--txt-ghost);
|
||||
margin-top: 2px;
|
||||
font-family: var(--mono);
|
||||
}
|
||||
.stat-sub { font-size: 10px; color: var(--txt-ghost); margin-top: 2px; font-family: var(--mono); }
|
||||
|
||||
/* ── Chart panel ── */
|
||||
.chart-panel {
|
||||
grid-column: 1 / 3;
|
||||
padding: 16px 18px 14px;
|
||||
}
|
||||
.panel-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
.panel-title {
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
letter-spacing: .08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--txt-dim);
|
||||
}
|
||||
/* Chart */
|
||||
.chart-panel { grid-column: 1/3; padding: 16px 18px 14px; }
|
||||
.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
|
||||
.panel-title { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--txt-dim); }
|
||||
.panel-badge {
|
||||
font-family: var(--mono);
|
||||
font-size: 10px;
|
||||
color: var(--txt-ghost);
|
||||
background: rgba(255,255,255,.04);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 4px;
|
||||
padding: 2px 7px;
|
||||
font-family: var(--mono); font-size: 10px; color: var(--txt-ghost);
|
||||
background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 4px; padding: 2px 7px;
|
||||
}
|
||||
#chart { display: block; width: 100%; }
|
||||
|
||||
/* ── Log panel ── */
|
||||
.log-panel {
|
||||
grid-column: 3 / -1;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
min-height: 220px;
|
||||
}
|
||||
|
||||
.tab-bar {
|
||||
display: flex;
|
||||
border-bottom: 1px solid var(--border);
|
||||
flex-shrink: 0;
|
||||
padding: 0 6px;
|
||||
gap: 2px;
|
||||
}
|
||||
/* Log panel */
|
||||
.log-panel { grid-column: 3/-1; padding: 0; display: flex; flex-direction: column; overflow: hidden; min-height: 220px; }
|
||||
.tab-bar { display: flex; border-bottom: 1px solid var(--border); flex-shrink: 0; padding: 0 6px; gap: 2px; }
|
||||
.tab {
|
||||
flex: 1;
|
||||
padding: 10px 12px;
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
letter-spacing: .06em;
|
||||
text-transform: uppercase;
|
||||
color: var(--txt-ghost);
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
transition: color .2s;
|
||||
border-bottom: 2px solid transparent;
|
||||
margin-bottom: -1px;
|
||||
position: relative;
|
||||
flex: 1; padding: 10px 12px;
|
||||
font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
|
||||
color: var(--txt-ghost); cursor: pointer; text-align: center;
|
||||
transition: color .2s; border-bottom: 2px solid transparent; margin-bottom: -1px;
|
||||
}
|
||||
.tab:hover { color: var(--txt-dim); }
|
||||
.tab.active { color: var(--blue); border-bottom-color: var(--blue); }
|
||||
|
||||
.tab-body {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 8px 12px;
|
||||
font-family: var(--mono);
|
||||
font-size: 11px;
|
||||
}
|
||||
.tab-body { flex: 1; overflow-y: auto; padding: 8px 12px; font-family: var(--mono); font-size: 11px; }
|
||||
.tab-body::-webkit-scrollbar { width: 3px; }
|
||||
.tab-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
|
||||
|
||||
.tab-pane { display: none; }
|
||||
.tab-pane.active { display: block; }
|
||||
|
||||
.log-entry {
|
||||
display: grid;
|
||||
grid-template-columns: 68px 1fr auto;
|
||||
gap: 8px;
|
||||
padding: 5px 0;
|
||||
display: grid; grid-template-columns: 68px 1fr auto;
|
||||
gap: 8px; padding: 5px 0;
|
||||
border-bottom: 1px solid rgba(255,255,255,.04);
|
||||
animation: fadeSlide .15s ease;
|
||||
align-items: center;
|
||||
}
|
||||
@keyframes fadeSlide {
|
||||
from { opacity: 0; transform: translateY(-3px); }
|
||||
to { opacity: 1; transform: none; }
|
||||
animation: fadeSlide .15s ease; align-items: center;
|
||||
}
|
||||
@keyframes fadeSlide { from{opacity:0;transform:translateY(-3px)} to{opacity:1;transform:none} }
|
||||
.log-ts { color: var(--txt-ghost); font-size: 10px; }
|
||||
.log-raw { color: var(--txt-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.log-num { color: var(--blue); text-align: right; white-space: nowrap; }
|
||||
|
||||
.alert-entry {
|
||||
display: grid;
|
||||
grid-template-columns: 16px 68px 1fr;
|
||||
gap: 8px;
|
||||
padding: 6px 0;
|
||||
border-bottom: 1px solid rgba(255,255,255,.04);
|
||||
align-items: center;
|
||||
animation: fadeSlide .15s ease;
|
||||
}
|
||||
.alert-entry { display: grid; grid-template-columns: 16px 68px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.04); align-items: center; animation: fadeSlide .15s ease; }
|
||||
.alert-icon { color: var(--red); font-size: 12px; }
|
||||
.alert-ts { color: var(--txt-ghost); font-size: 10px; }
|
||||
.alert-msg { color: var(--txt-dim); }
|
||||
|
||||
.alert-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 16px; height: 16px;
|
||||
border-radius: 8px;
|
||||
background: var(--red);
|
||||
color: #fff;
|
||||
font-size: 9px;
|
||||
font-weight: 600;
|
||||
margin-left: 5px;
|
||||
vertical-align: middle;
|
||||
padding: 0 3px;
|
||||
display: none;
|
||||
display: none; align-items: center; justify-content: center;
|
||||
min-width: 16px; height: 16px; border-radius: 8px;
|
||||
background: var(--red); color: #fff;
|
||||
font-size: 9px; font-weight: 600; margin-left: 5px; padding: 0 3px;
|
||||
}
|
||||
.alert-badge.visible { display: inline-flex; }
|
||||
|
||||
/* ── Rain tile — special ── */
|
||||
.rain-tile {
|
||||
/* Footer */
|
||||
.mirror-footer { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; font-size: 11px; font-family: var(--mono); color: var(--txt-ghost); }
|
||||
|
||||
/* ══════════════════════════════════════════
|
||||
── CONSUMER VIEW ──
|
||||
══════════════════════════════════════════ */
|
||||
.consumer-wrap {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
.rain-bar-wrap {
|
||||
width: 100%;
|
||||
height: 6px;
|
||||
background: rgba(255,255,255,.06);
|
||||
border-radius: 3px;
|
||||
overflow: hidden;
|
||||
margin-top: 8px;
|
||||
}
|
||||
.rain-bar {
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, var(--blue), var(--teal));
|
||||
border-radius: 3px;
|
||||
transition: width .5s ease;
|
||||
}
|
||||
|
||||
/* ── Footer ── */
|
||||
.mirror-footer {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 10px 20px;
|
||||
font-size: 11px;
|
||||
font-family: var(--mono);
|
||||
color: var(--txt-ghost);
|
||||
justify-content: center;
|
||||
min-height: 100vh;
|
||||
padding: 40px 24px;
|
||||
gap: 0;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* ── Responsive ── */
|
||||
/* Atmospheric background gradient */
|
||||
.consumer-wrap::before {
|
||||
content: '';
|
||||
position: absolute; inset: 0;
|
||||
background:
|
||||
radial-gradient(ellipse 80% 60% at 50% 10%, rgba(59,130,246,.08) 0%, transparent 65%),
|
||||
radial-gradient(ellipse 60% 40% at 20% 80%, rgba(20,184,166,.05) 0%, transparent 60%);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* ── Big Clock ── */
|
||||
.c-clock {
|
||||
text-align: center;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.c-time {
|
||||
font-family: var(--mono);
|
||||
font-size: clamp(4rem, 14vw, 10rem);
|
||||
font-weight: 300;
|
||||
letter-spacing: .04em;
|
||||
color: var(--c-txt);
|
||||
line-height: 1;
|
||||
text-shadow: 0 0 80px rgba(96,165,250,.15);
|
||||
}
|
||||
.c-date {
|
||||
font-size: clamp(.8rem, 1.5vw, 1.1rem);
|
||||
font-weight: 400;
|
||||
letter-spacing: .22em;
|
||||
text-transform: uppercase;
|
||||
color: var(--c-dim);
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
/* Divider line */
|
||||
.c-divider {
|
||||
width: 60px; height: 1px;
|
||||
background: linear-gradient(90deg, transparent, rgba(96,165,250,.35), transparent);
|
||||
margin: 32px auto;
|
||||
}
|
||||
|
||||
/* ── Weather block ── */
|
||||
.c-weather {
|
||||
text-align: center;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
.c-location {
|
||||
font-size: .7rem;
|
||||
font-weight: 500;
|
||||
letter-spacing: .22em;
|
||||
text-transform: uppercase;
|
||||
color: var(--c-ghost);
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
.c-weather-main {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 20px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.c-weather-icon {
|
||||
font-size: clamp(3rem, 8vw, 5.5rem);
|
||||
line-height: 1;
|
||||
filter: drop-shadow(0 0 20px rgba(96,165,250,.3));
|
||||
}
|
||||
.c-temp-outside {
|
||||
font-family: var(--mono);
|
||||
font-size: clamp(2.8rem, 8vw, 5.5rem);
|
||||
font-weight: 300;
|
||||
letter-spacing: .04em;
|
||||
color: var(--c-txt);
|
||||
line-height: 1;
|
||||
}
|
||||
.c-weather-desc {
|
||||
font-size: clamp(.9rem, 1.5vw, 1.1rem);
|
||||
color: var(--c-dim);
|
||||
letter-spacing: .06em;
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
/* ── Sensor + weather stat pills ── */
|
||||
.c-stats {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 36px;
|
||||
}
|
||||
.c-stat {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 18px 28px;
|
||||
border-radius: 16px;
|
||||
background: rgba(255,255,255,.03);
|
||||
border: 1px solid rgba(255,255,255,.06);
|
||||
min-width: 120px;
|
||||
backdrop-filter: blur(10px);
|
||||
transition: border-color .3s, background .3s;
|
||||
}
|
||||
.c-stat:hover {
|
||||
border-color: rgba(96,165,250,.18);
|
||||
background: rgba(96,165,250,.04);
|
||||
}
|
||||
.c-stat-icon { font-size: 1.4rem; line-height: 1; }
|
||||
.c-stat-val {
|
||||
font-family: var(--mono);
|
||||
font-size: clamp(1.4rem, 2.5vw, 2rem);
|
||||
font-weight: 400;
|
||||
color: var(--c-txt);
|
||||
line-height: 1;
|
||||
}
|
||||
.c-stat-label {
|
||||
font-size: .65rem;
|
||||
font-weight: 500;
|
||||
letter-spacing: .15em;
|
||||
text-transform: uppercase;
|
||||
color: var(--c-ghost);
|
||||
}
|
||||
|
||||
/* Rain probability bar */
|
||||
.c-rain-bar-wrap {
|
||||
width: 100%;
|
||||
height: 3px;
|
||||
background: rgba(255,255,255,.08);
|
||||
border-radius: 2px;
|
||||
overflow: hidden;
|
||||
margin-top: 4px;
|
||||
}
|
||||
.c-rain-bar {
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, var(--c-accent), var(--c-accent2));
|
||||
border-radius: 2px;
|
||||
transition: width 1s ease;
|
||||
}
|
||||
|
||||
/* Loading / no-data state */
|
||||
.c-stat-val.loading { opacity: .3; }
|
||||
|
||||
/* Weather error notice */
|
||||
.c-weather-error {
|
||||
font-size: .7rem;
|
||||
color: var(--c-ghost);
|
||||
margin-top: 16px;
|
||||
font-family: var(--mono);
|
||||
}
|
||||
|
||||
/* ══════════════════════════════════════════
|
||||
RESPONSIVE
|
||||
══════════════════════════════════════════ */
|
||||
@media (max-width: 1100px) {
|
||||
.mirror-body { grid-template-columns: 1fr 1fr; }
|
||||
.stat-row { grid-template-columns: 1fr 1fr; }
|
||||
.chart-panel { grid-column: 1 / -1; }
|
||||
.log-panel { grid-column: 1 / -1; min-height: 200px; }
|
||||
.stat-row { grid-template-columns: 1fr 1fr; }
|
||||
.chart-panel { grid-column: 1/-1; }
|
||||
.log-panel { grid-column: 1/-1; min-height: 200px; }
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
.mirror-body { grid-template-columns: 1fr 1fr; }
|
||||
.stat-row { grid-template-columns: 1fr 1fr; }
|
||||
.mirror-body { grid-template-columns: 1fr 1fr; }
|
||||
.mirror-header { grid-template-columns: 1fr; }
|
||||
.header-brand, .conn-badge { display: none; }
|
||||
.c-stats { gap: 10px; }
|
||||
.c-stat { min-width: 100px; padding: 14px 18px; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user