Use the startup gradient while site data loads
Browse files- 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="
|
| 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}>
|