app loading page
This commit is contained in:
parent
f00e6ccf63
commit
9bae54ac09
3 changed files with 31 additions and 2 deletions
|
|
@ -1,2 +1,26 @@
|
||||||
<h1>Welcome to SvelteKit</h1>
|
<script lang="ts">
|
||||||
<p>Visit <a href="https://svelte.dev/docs/kit">svelte.dev/docs/kit</a> to read the documentation</p>
|
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>
|
||||||
5
src/routes/app/+layout.svelte
Normal file
5
src/routes/app/+layout.svelte
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
<script lang="ts">
|
||||||
|
import Navbar from '$lib/components/Navbar.svelte';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<Navbar title="Svelte" />
|
||||||
0
src/routes/app/+page.svelte
Normal file
0
src/routes/app/+page.svelte
Normal file
Loading…
Add table
Reference in a new issue