Cards you can see through, a splash that waits, and iOS launch screens
Tests / test (push) Canceled after 0s
Publish Docker images / build (., ./web/Dockerfile, web) (push) Canceled after 0s
Publish Docker images / build (./api, ./api/Dockerfile, api) (push) Canceled after 0s

**The transparency was there and invisible.** `--glass` was a near-black at 55% alpha, and a
dark film over a dark background reads as solid no matter what the alpha says — so the cards
looked exactly as opaque as before. It is 34% now, the family tint weighs a little more
(14%) and the blur is 10px instead of 16: heavy blur flattens the backdrop into one colour,
which hides the very thing that is supposed to show through.

The opaque `@supports` fallback is gone as well. It was copied from the tab bar, where it is
right — the bar floats over scrolling text — and it is wrong here: a card sits in the page
flow and the only thing behind it is the aura. On any device that took that branch, the
cards were solid by construction.

**The splash now waits, which is what a launch screen does.** It stays until the boot is
finished, with a floor of 1.1s so it can actually be read (a warm boot takes milliseconds,
and a splash that lasts that long is a flicker) and a ceiling of 6s so a request that never
answers cannot hold anybody behind a photograph — their workouts are already local. The mark
pulses slowly while it waits, so it looks like a screen that is loading rather than a
photograph that is stuck.

**The long white is iOS, before any of our code runs.** The deployed HTML already carries
the aura's base colour inline, so what is left is the installed web app's own launch screen:
iOS paints it before the page exists, and without an `apple-touch-startup-image` that
matches the device it paints nothing. Fourteen entries now cover the phone and tablet sizes
the app is opened on, cropped from the same photograph (each device fetches only its own).
build-app-icons.mjs fails when the sizes it generates and the sizes index.html links
disagree, because a missing entry is the blank screen this exists to remove.
This commit is contained in:
dsantillan committed 2026-09-23 11:47:52 -04:00
1 parent 3908dc524a
commit 9e580c4794
20 files changed
+150 -41

No files matched your search

+23 -15
View File
@@ -26,7 +26,10 @@
--surface-3: #3a3a3c; /* controls (segmented track, switch off) */
/* The translucent card fill. Deliberately a warm near-black rather than the neutral --surface:
these cards sit on the aura, and a cool grey over a warm background reads as a dirty edge. */
--glass: rgba(26,23,20,.55);
/* 34%, not 55%: at 55 the fill was technically translucent and visually identical to opaque —
a dark film over a dark background reads as solid, and that is what people saw. This is the one
number to turn if the cards should show more or less of the aura behind them. */
--glass: rgba(20,18,16,.34);
/* text */
--label: #ffffff;
@@ -70,7 +73,7 @@
--surface: #ffffff;
--surface-2: #ececef;
--surface-3: #e3e3e8;
--glass: rgba(255,255,255,.62);
--glass: rgba(255,255,255,.44);
--label: #000000;
--label-2: rgba(60,60,67,.60);
@@ -218,7 +221,14 @@ button,.chip,.tile,.item,.wday,.cal-d,.swatch,.hm-c,.lrow,.seg button,.stp butto
.boot-splash{position:fixed;inset:0;z-index:1;display:grid;place-items:center;overflow:hidden}
.boot-splash img.boot-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.boot-splash::after{content:'';position:absolute;inset:0;background:radial-gradient(circle at 50% 45%,transparent 30%,rgba(16,14,11,.55) 100%)}
.boot-splash img.boot-logo{position:relative;width:104px;height:auto;filter:drop-shadow(0 8px 24px rgba(0,0,0,.45))}
.boot-splash img.boot-logo{
position:relative;width:104px;height:auto;filter:drop-shadow(0 8px 24px rgba(0,0,0,.45));
/* A slow pulse so a screen that is waiting looks like it is waiting. `prefers-reduced-motion`
already switches every animation in this file off (see the top), which is the right answer for
anybody who asked for less movement. */
animation:splash-breathe 1.9s var(--ease) infinite;
}
@keyframes splash-breathe{0%,100%{opacity:.82;transform:scale(1)}50%{opacity:1;transform:scale(1.035)}}
/* Keep the last workout controls clear of the mobile overlays without adding a second
screenful of blank scroll space. The stacked rest timer needs the larger reserve. */
body.resting #app{padding-bottom:calc(206px + var(--sab))}
@@ -1331,9 +1341,9 @@ body.chips-dragging *{cursor:inherit}
behind the card. The wash is kept low (8%) on purpose — the colour is there to sort the grid at
a glance, not to shout, and a saturated tile behind a 26px number would fight the number. */
.vh-card{--tint:var(--grey);width:100%;text-align:left;display:block;font:inherit;color:inherit;padding-bottom:10px;
background:color-mix(in srgb,var(--tint) 10%,var(--glass));
border:var(--hair) solid color-mix(in srgb,var(--tint) 22%,transparent);
-webkit-backdrop-filter:blur(16px) saturate(150%);backdrop-filter:blur(16px) saturate(150%)}
background:color-mix(in srgb,var(--tint) 14%,var(--glass));
border:var(--hair) solid color-mix(in srgb,var(--tint) 26%,transparent);
-webkit-backdrop-filter:blur(10px) saturate(140%);backdrop-filter:blur(10px) saturate(140%)}
.vh-card .l .icn{color:var(--tint)}
.vh-card .v{color:var(--tint)}
.vh-unit{margin-left:4px;font-size:14px;font-weight:500;color:var(--label-2);letter-spacing:0}
@@ -1356,16 +1366,14 @@ body.chips-dragging *{cursor:inherit}
the tiles, so a panel and its card are recognisably the same metric. */
.vh-charts{display:flex;flex-direction:column;gap:10px;margin-bottom:14px}
.vh-tchart{--tint:var(--grey);width:100%;text-align:left;display:block;font:inherit;color:inherit;
padding:12px 10px 6px;background:color-mix(in srgb,var(--tint) 7%,var(--glass));
border:var(--hair) solid color-mix(in srgb,var(--tint) 18%,transparent);
-webkit-backdrop-filter:blur(16px) saturate(150%);backdrop-filter:blur(16px) saturate(150%)}
padding:12px 10px 6px;background:color-mix(in srgb,var(--tint) 9%,var(--glass));
border:var(--hair) solid color-mix(in srgb,var(--tint) 20%,transparent);
-webkit-backdrop-filter:blur(10px) saturate(140%);backdrop-filter:blur(10px) saturate(140%)}
.vh-tchart:active{background:color-mix(in srgb,var(--tint) 14%,var(--glass))}
/* Same order rule as the tab bar's block: this has to come AFTER the rules above or the glass
would win here too. Without a blur, a see-through card over a busy background is worse than an
opaque one — the numbers would sit on whatever the aura happens to be doing behind them. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
.vh-card,.vh-tchart{background:color-mix(in srgb,var(--tint) 9%,var(--surface))}
}
/* Deliberately NO opaque fallback where backdrop-filter is missing, unlike the tab bar. The bar
floats over scrolling content, where a see-through panel would put text on text; a card sits in
the page flow, and the only thing behind it is the aura. Losing the blur there costs nothing, and
the opaque fallback is exactly what made these cards look solid on a device that took it. */
.vh-tchart-hd{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:0 2px;margin-bottom:2px}
.vh-tchart-t{display:flex;align-items:center;gap:5px;font-size:14px;font-weight:500;color:var(--label-2)}
.vh-tchart-t .icn{font-size:15px;color:var(--tint)}