Polish dashboard: real retarget prediction, symmetric 5x2, Kamado theme

The diff-adjustment tile was showing raw epoch progress (blocks-so-far
/ 2016 * 100%), which is never what anyone wants to see there. Compute
the real predicted change server-side: fetch the timestamp of the
first block in the current retarget epoch once per epoch, then each
refresh derive (expected_interval / actual_interval - 1) * 100,
clamped to Bitcoin's consensus bounds of [-75%, +300%]. The tile now
renders the signed percent, green when positive, red when negative.

Tile layout is forced to an explicit 5x2 grid so the number of
columns doesn't depend on viewport width. Reordering puts the
difficulty tile at (row 1, col 5) with the next-adjustment tile
directly below it at (row 2, col 5); block height, block reward,
total work, and expected block fill the rest of the second row.
Mobile breakpoints fall back to 3 and then 2 columns.

Header keeps only a live/connecting/offline status dot — the chain
name and block height badges were redundant now that the height tile
exists and animates on its own.

Stat-sub text bumped from 0.85em to 0.95em for readability.

Background: a warm ember-glow radial at the top of the viewport
layered with two accent radials and a low-opacity haori-checker tile
pattern (inline SVG data URI). Cards get a translucent backdrop so
the texture peeks through between them.
This commit is contained in:
satoshi
2026-04-22 21:29:11 +03:00
parent e881bc930d
commit 64ca14435c
5 changed files with 156 additions and 70 deletions
+24 -7
View File
@@ -27,13 +27,26 @@ html,
body {
margin: 0;
padding: 0;
background: var(--bg);
color: var(--fg);
min-height: 100vh;
}
/* Kamado-inspired backdrop: a warm ember glow at the top (the Hinokami
* Kagura / hearth flame) layered over a very low-opacity checker
* pattern nodding to Tanjiro's haori. Fixed to the viewport so it
* doesn't scroll away from the content. */
body {
font-variant-numeric: tabular-nums;
background-color: var(--bg);
background-image:
radial-gradient(ellipse 1400px 820px at 50% -120px, rgba(255, 100, 40, 0.22), transparent 62%),
radial-gradient(circle 420px at 8% 14%, rgba(180, 40, 20, 0.10), transparent 70%),
radial-gradient(circle 520px at 92% 22%, rgba(30, 90, 60, 0.07), transparent 70%),
url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='96' height='96'><rect x='0' y='0' width='48' height='48' fill='%23284030' fill-opacity='0.08'/><rect x='48' y='48' width='48' height='48' fill='%23284030' fill-opacity='0.08'/></svg>");
background-repeat: no-repeat, no-repeat, no-repeat, repeat;
background-size: 100% auto, auto, auto, 96px 96px;
background-position: 0 0, 0 0, 0 0, 0 0;
background-attachment: fixed, fixed, fixed, fixed;
}
a {
@@ -65,10 +78,12 @@ code,
}
.card {
background: var(--bg-card);
background: rgba(21, 26, 36, 0.88);
border: 1px solid var(--border);
border-radius: 10px;
padding: 1.25rem 1.5rem;
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
}
.grid {
@@ -85,20 +100,22 @@ code,
.stat-label {
color: var(--fg-dim);
font-size: 0.85em;
font-size: 0.82em;
text-transform: uppercase;
letter-spacing: 0.04em;
margin-bottom: 0.35em;
letter-spacing: 0.05em;
margin-bottom: 0.4em;
}
.stat-value {
font-size: 1.7rem;
font-weight: 600;
letter-spacing: -0.01em;
line-height: 1.15;
}
.stat-sub {
color: var(--fg-dim);
font-size: 0.85em;
margin-top: 0.25em;
font-size: 0.95em;
margin-top: 0.4em;
line-height: 1.4;
}
table {