app loading page

This commit is contained in:
Benjamin Palko 2024-12-09 16:31:37 -05:00
parent f00e6ccf63
commit 9bae54ac09
3 changed files with 31 additions and 2 deletions

View file

@ -1,2 +1,26 @@
<h1>Welcome to SvelteKit</h1>
<p>Visit <a href="https://svelte.dev/docs/kit">svelte.dev/docs/kit</a> to read the documentation</p>
<script lang="ts">
import Loader from '$lib/components/Loader.svelte';
$effect(() => {
const id = setTimeout(() => {
window.location.href = '/app';
}, 1500);
return () => {
clearTimeout(id);
};
});
</script>
<div class="site-loader">
<h1>Hestia</h1>
<Loader />
</div>
<style>
.site-loader {
@apply flex h-screen w-screen flex-col items-center justify-center gap-6 bg-slate-100;
}
.site-loader h1 {
@apply text-4xl;
}
</style>

View file

@ -0,0 +1,5 @@
<script lang="ts">
import Navbar from '$lib/components/Navbar.svelte';
</script>
<Navbar title="Svelte" />

View file