diff --git a/frontend/index.html b/frontend/index.html index 6671a33..51ad396 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -72,7 +72,19 @@
-
+
+ + +
diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 4351ddf..541326a 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -161,11 +161,11 @@ function Shell() { const authed = user || isGuest if (!waitedMax && (!ready || !waitedMin)) return (
- {/* The launch screen: the photo, then the app's own mark on it (see .boot-splash in - index.css). Fixed to the viewport, so #app's own padding does not matter here. */} + {/* The launch screen: the photograph, nothing on it. It matches the one index.html paints + before this bundle has even run (see #root there), which is what makes the handover from + that first frame to this one invisible. */}
- KuentaGYM
) diff --git a/frontend/src/App.smoke.test.jsx b/frontend/src/App.smoke.test.jsx index 13297b2..69b66ca 100644 --- a/frontend/src/App.smoke.test.jsx +++ b/frontend/src/App.smoke.test.jsx @@ -44,7 +44,8 @@ describe('the app shell', () => { // The splash: the shell renders it before anything else, which is what a launch screen is. expect(host.querySelector('.boot-splash')).toBeTruthy() expect(host.querySelector('img.boot-photo')?.getAttribute('src')).toBe('splash.webp') - expect(host.querySelector('img.boot-logo')?.getAttribute('src')).toBe('logo.png') + // Only the photograph: the mark that used to sit on it is gone by request. + expect(host.querySelector('.boot-splash').querySelectorAll('img').length).toBe(1) }) it('stays long enough to be seen, then gets out of the way', async () => { diff --git a/frontend/src/index.css b/frontend/src/index.css index 468df31..0b7b032 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -221,17 +221,11 @@ button,.chip,.tile,.item,.wday,.cal-d,.swatch,.hm-c,.lrow,.seg button,.stp butto /* The launch screen, while the profile is being read. The photo fills the viewport and the app's own mark sits on it, over a soft darkening so the logo never fights a busy part of the image. public/splash.webp is derived from assets/splash.jpg by scripts/build-app-icons.mjs. */ -.boot-splash{position:fixed;inset:0;z-index:1;display:grid;place-items:center;overflow:hidden} +/* The photograph, full bleed, and nothing on it. No mark and no vignette: the picture is the + screen, which is also what index.html paints before this stylesheet exists — identical rules, + so the one hands over to the other without a flicker. */ +.boot-splash{position:fixed;inset:0;z-index:1;overflow:hidden;background:#100e0b} .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)); - /* 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))}