FordTang commited on
Commit
563f50f
·
verified ·
1 Parent(s): b4aba11

Use the startup gradient while site data loads

Browse files
Files changed (1) hide show
  1. code/web/src/App.tsx +1 -1
code/web/src/App.tsx CHANGED
@@ -22,7 +22,7 @@ export default function App() {
22
  }, [route.cat, lang])
23
 
24
  if (failed) return <p className="p-10 text-lg">{T.noData}</p>
25
- if (!site) return <div className="dark stage min-h-screen" />
26
  // A new language draws the page afresh, so nothing keeps copy from the old one.
27
  return (
28
  <Fragment key={lang}>
 
22
  }, [route.cat, lang])
23
 
24
  if (failed) return <p className="p-10 text-lg">{T.noData}</p>
25
+ if (!site) return <div className="brand-backdrop startup-screen" aria-busy="true" aria-label={T.site} />
26
  // A new language draws the page afresh, so nothing keeps copy from the old one.
27
  return (
28
  <Fragment key={lang}>