Fix white and black startup flashes with a brand gradient

#1
by FordTang - opened

The page can show an empty white screen before React starts, then a black screen while data/site.json loads. It can also lose its hero background while the video and poster are unavailable.

Use a shared 135-degree gradient from #FF276F to #FF7038 for the initial HTML placeholder, the React data-loading state, and the background behind HeroVideo. Keep the existing media, white fade, and data-error messages.

Validation: npm run build and npm run lint passed (lint reports existing warnings). Verified the production build in Chrome 158 and standalone WebKit 26.4 at widths 390, 639, 640, and 1440: delayed JavaScript, delayed data, blocked media, data recovery, English/Chinese errors, direct category navigation, normal media loading, and the model menu. No horizontal overflow in these scenarios. WebKit coverage is an independent engine run, not a physical iPhone test.

After merging, rebuild and publish the Space with the existing scripts/deploy_space.py workflow. If code/ is synchronized from another source repository, carry the change there as well so a later sync preserves it.

saladday1 changed pull request status to merged

Sign up or log in to comment