Redesign home command deck

This commit is contained in:
dirtydishes 2026-05-28 05:10:21 -04:00
parent b075a0994c
commit a35a757622
4 changed files with 1325 additions and 24 deletions

View file

@ -769,6 +769,395 @@ h3 {
grid-column: 1 / -1;
}
.command-deck-shell {
display: grid;
gap: 12px;
}
.command-deck-header {
min-width: 0;
display: grid;
grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1fr) auto;
gap: 14px;
align-items: center;
padding: 13px 14px;
border: 1px solid var(--border);
border-radius: 12px;
background: linear-gradient(180deg, oklch(0.18 0.013 250 / 0.96), oklch(0.145 0.012 250 / 0.96));
}
.command-deck-brand {
min-width: 0;
display: flex;
align-items: center;
gap: 11px;
}
.command-deck-mark {
width: 34px;
height: 34px;
flex: 0 0 auto;
border: 1px solid var(--border-strong);
border-radius: 8px;
background:
linear-gradient(135deg, oklch(0.78 0.12 74 / 0.7), oklch(0.28 0.035 250)),
var(--accent-soft);
}
.command-deck-kicker,
.command-pane-meta,
.command-health-row,
.command-replay-strip,
.command-ticker-card {
font-family: var(--font-mono), monospace;
}
.command-deck-kicker {
display: block;
color: var(--text-faint);
font-size: 0.68rem;
letter-spacing: 0.12em;
text-transform: lowercase;
}
.command-deck-brand h2 {
margin: 1px 0 0;
font-family: var(--font-display), sans-serif;
font-size: 1.2rem;
line-height: 1.05;
letter-spacing: 0;
}
.command-deck-brief {
min-width: 0;
display: flex;
align-items: center;
gap: 9px;
flex-wrap: wrap;
color: var(--text-dim);
font-size: 0.82rem;
}
.command-deck-brief strong {
color: var(--text);
font-family: var(--font-mono), monospace;
font-size: 0.86rem;
}
.command-deck-controls {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 8px;
flex-wrap: wrap;
}
.command-chip {
min-height: 32px;
display: inline-flex;
align-items: center;
border: 1px solid var(--border);
border-radius: 999px;
padding: 5px 9px;
background: var(--bg-soft);
color: var(--text-dim);
font-family: var(--font-mono), monospace;
font-size: 0.68rem;
text-transform: uppercase;
}
.command-chip-connected {
color: var(--green);
background: var(--green-soft);
}
.command-chip-stale,
.command-chip-connecting {
color: var(--accent);
background: var(--accent-soft);
}
.command-chip-disconnected {
color: var(--red);
background: var(--red-soft);
}
.command-ticker-rail {
min-width: 0;
overflow: hidden;
border: 1px solid var(--border);
border-radius: 10px;
background: oklch(0.13 0.012 250 / 0.98);
}
.command-ticker-track {
display: grid;
grid-auto-columns: minmax(176px, 1fr);
grid-auto-flow: column;
gap: 8px;
overflow-x: auto;
padding: 7px;
}
.command-ticker-card {
min-width: 176px;
min-height: 64px;
display: grid;
grid-template-columns: 1fr auto;
gap: 4px 9px;
align-items: center;
border: 1px solid var(--border);
border-radius: 8px;
padding: 8px 10px;
background: oklch(0.17 0.013 250);
color: inherit;
text-align: left;
cursor: pointer;
}
.command-ticker-card:hover,
.command-ticker-card:focus-visible {
border-color: var(--border-strong);
outline: none;
}
.command-ticker-symbol {
color: var(--text);
font-weight: 700;
}
.command-ticker-price,
.command-ticker-meta {
color: var(--text-dim);
font-size: 0.72rem;
}
.command-ticker-move {
justify-self: end;
color: var(--text-faint);
font-size: 0.68rem;
}
.command-ticker-card.is-up .command-ticker-move {
color: var(--green);
}
.command-ticker-card.is-down .command-ticker-move {
color: var(--red);
}
.command-ticker-meta {
grid-column: 1 / -1;
}
.command-deck-grid {
display: grid;
grid-template-columns: minmax(360px, 1.12fr) minmax(420px, 1.38fr) minmax(300px, 0.9fr);
grid-template-areas:
"tape chart signals"
"feed dark context"
"replay replay replay";
gap: 10px;
align-items: stretch;
}
.command-deck-grid > .terminal-pane {
border-radius: 10px;
}
.command-deck-grid > :nth-child(1) {
grid-area: tape;
min-height: 386px;
}
.command-deck-grid > :nth-child(2) {
grid-area: chart;
min-height: 386px;
}
.command-deck-grid > :nth-child(3) {
grid-area: signals;
min-height: 386px;
}
.command-deck-grid > :nth-child(4) {
grid-area: feed;
min-height: 278px;
}
.command-deck-grid > :nth-child(5) {
grid-area: dark;
min-height: 278px;
}
.command-deck-grid > :nth-child(6) {
grid-area: context;
min-height: 278px;
}
.command-deck-grid > :nth-child(7) {
grid-area: replay;
min-height: 116px;
}
.command-deck-grid .terminal-pane-head {
min-height: 42px;
padding: 10px 12px;
}
.command-deck-grid .terminal-pane-body {
padding: 10px 12px 12px;
}
.command-deck-grid .terminal-pane-title {
font-family: var(--font-mono), monospace;
font-size: 0.72rem;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.command-deck-grid .chart-surface {
height: 300px;
}
.command-pane-meta {
color: var(--text-faint);
font-size: 0.68rem;
text-transform: uppercase;
}
.command-health-list,
.command-context-list,
.command-replay-strip {
display: grid;
gap: 8px;
}
.command-health-row {
min-height: 34px;
display: grid;
grid-template-columns: minmax(96px, 1fr) 92px 76px 92px;
gap: 8px;
align-items: center;
border-bottom: 1px solid oklch(0.72 0.012 250 / 0.09);
color: var(--text-dim);
font-size: 0.72rem;
}
.command-health-row:last-child {
border-bottom: 0;
}
.command-health-status {
width: fit-content;
max-width: 100%;
display: inline-flex;
align-items: center;
min-height: 22px;
border: 1px solid var(--border);
border-radius: 999px;
padding: 3px 7px;
font-size: 0.64rem;
}
.command-health-connected {
color: var(--green);
background: var(--green-soft);
}
.command-health-stale,
.command-health-connecting {
color: var(--accent);
background: var(--accent-soft);
}
.command-health-disconnected {
color: var(--red);
background: var(--red-soft);
}
.command-context-row {
min-width: 0;
min-height: 42px;
display: grid;
grid-template-columns: 62px 52px minmax(0, 1fr);
gap: 4px 8px;
align-items: center;
border: 0;
border-bottom: 1px solid oklch(0.72 0.012 250 / 0.09);
padding: 6px 0;
background: transparent;
color: inherit;
text-align: left;
cursor: pointer;
}
.command-context-row:last-child {
border-bottom: 0;
}
.command-context-row time,
.command-context-row span {
color: var(--text-dim);
font-family: var(--font-mono), monospace;
font-size: 0.68rem;
}
.command-context-row strong {
min-width: 0;
overflow: hidden;
color: var(--text);
font-size: 0.78rem;
text-overflow: ellipsis;
white-space: nowrap;
}
.command-context-row > span:last-child {
grid-column: 3;
overflow: hidden;
color: var(--text-faint);
text-overflow: ellipsis;
white-space: nowrap;
}
.command-context-kind {
width: fit-content;
border: 1px solid var(--border);
border-radius: 999px;
padding: 2px 6px;
background: var(--bg-soft);
text-transform: uppercase;
}
.command-replay-strip {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.command-replay-strip div {
min-width: 0;
display: grid;
gap: 3px;
border: 1px solid var(--border);
border-radius: 8px;
padding: 8px 10px;
background: var(--bg-soft);
}
.command-replay-strip span {
color: var(--text-faint);
font-size: 0.66rem;
text-transform: uppercase;
}
.command-replay-strip strong {
min-width: 0;
overflow: hidden;
color: var(--text);
font-size: 0.78rem;
text-overflow: ellipsis;
white-space: nowrap;
}
.terminal-pane {
min-width: 0;
height: 100%;
@ -2027,6 +2416,25 @@ h3 {
min-width: 136px;
padding: 10px 12px;
}
.command-deck-header {
grid-template-columns: minmax(220px, 0.8fr) minmax(240px, 1fr);
}
.command-deck-controls {
grid-column: 1 / -1;
justify-content: flex-start;
}
.command-deck-grid {
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
grid-template-areas:
"signals chart"
"tape chart"
"feed context"
"dark dark"
"replay replay";
}
}
@media (max-width: 980px) {
@ -2065,6 +2473,32 @@ h3 {
min-height: 0;
}
.command-deck-grid {
grid-template-columns: minmax(0, 1fr);
grid-template-areas:
"signals"
"chart"
"tape"
"context"
"replay"
"feed"
"dark";
}
.command-deck-grid > .terminal-pane {
min-height: 0;
}
.command-deck-grid > :nth-child(1),
.command-deck-grid > :nth-child(2),
.command-deck-grid > :nth-child(3),
.command-deck-grid > :nth-child(4),
.command-deck-grid > :nth-child(5),
.command-deck-grid > :nth-child(6),
.command-deck-grid > :nth-child(7) {
min-height: 0;
}
.terminal-topbar {
align-items: center;
justify-content: space-between;
@ -2129,11 +2563,32 @@ h3 {
.terminal-pane-head,
.chart-controls,
.card-controls,
.terminal-pane-actions {
.terminal-pane-actions,
.command-deck-header {
flex-direction: column;
align-items: flex-start;
}
.command-deck-header {
display: flex;
}
.command-deck-brief,
.command-deck-controls {
width: 100%;
justify-content: flex-start;
}
.command-deck-controls .terminal-button,
.command-chip {
width: 100%;
justify-content: center;
}
.command-ticker-track {
grid-auto-columns: minmax(164px, 78vw);
}
.terminal-pane-title-row {
flex-direction: column;
align-items: flex-start;
@ -2311,6 +2766,37 @@ h3 {
height: 48px;
}
.command-deck-grid .chart-surface {
height: 320px;
}
.command-health-row {
grid-template-columns: minmax(94px, 1fr) 92px;
}
.command-health-row span:nth-child(3),
.command-health-row span:nth-child(4) {
font-size: 0.68rem;
}
.command-context-row {
grid-template-columns: 58px minmax(0, 1fr);
}
.command-context-kind {
grid-column: 2;
grid-row: 1;
}
.command-context-row strong,
.command-context-row > span:last-child {
grid-column: 2;
}
.command-replay-strip {
grid-template-columns: minmax(0, 1fr);
}
.time {
text-align: left;
}