Skip to content

Commit b88e420

Browse files
committed
feat: replace maintenance TV noise with error GIF for better user experience
1 parent eb1a400 commit b88e420

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/routes/+layout.svelte

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script lang="ts">
22
import { website } from '$/lib/assets/config/website';
33
import IconUimGithubAlt from '$/lib/assets/icons/icon-uim-github-alt.svelte';
4+
import errorGif from '$/lib/assets/images/error.gif';
45
import Footer from '$/lib/components/footer/footer.svelte';
56
import Header from '$/lib/components/header/header.svelte';
67
import { t } from '$/lib/i18n';
@@ -31,9 +32,9 @@ class="bg-brand-600 sr-only top-1 left-1 text-white focus:not-sr-only focus:fixe
3132
<Footer />
3233

3334
{#if underMaintenance}
34-
<TvNoise options={{ baseAlpha: 0.5, flickerVariation: 0.01, scaleFactor: 1.5 }} class="pointer-events-none fixed inset-0 mix-blend-overlay backdrop-blur-xs z-50" />
35-
<main class="grid place-items-center h-screen w-screen fixed inset-0 z-50 bg-background/80">
36-
35+
<img loading="lazy" src={errorGif} alt="Error" class="pointer-events-none fixed inset-0 z-50 w-full h-full object-cover" />
36+
<TvNoise options={{ baseAlpha: 0.5, flickerVariation: 0.01, scaleFactor: 1.5 }} class="pointer-events-none fixed inset-0 mix-blend-overlay backdrop-blur-xs z-51" />
37+
<main class="grid place-items-center h-screen w-screen fixed inset-0 z-52 bg-background/80">
3738
<div class="flex flex-col items-center justify-center gap-4 font-mono text-center">
3839
<Typewriter text="$words" speed={100} words={['Under maintenance!', `We'll be back soon!`, 'New year, new updates!', 'Bip bop bip bup!']} />
3940
<a

0 commit comments

Comments
 (0)