Add splash component

This commit is contained in:
Alessio Davoli 2023-07-10 19:11:36 +02:00
parent aed9c4055b
commit 5eafaa736b

View file

@ -0,0 +1,24 @@
<script>
import { onMount } from 'svelte';
import { fade } from 'svelte/transition';
let visible = false;
onMount(() => {
setTimeout(() => {
visible = true;
}, 500);
});
</script>
{#if visible}
<img transition:fade src="/splash.jpeg" alt="splash" />
{/if}
<style>
img {
height: auto;
margin: 0 auto;
width: 100%;
}
</style>