added tinro router

This commit is contained in:
Fractal-Tess
2022-10-27 04:54:36 +03:00
parent ad693b6558
commit 0fb96e64ab
17 changed files with 70 additions and 34 deletions

View File

@@ -1,10 +1,7 @@
<script lang="ts">
import { fade } from 'svelte/transition';
import Header from '$lib/components/Header.svelte';
import Index from '$lib/Index.svelte';
import { theme } from '$lib/stores/theme';
import Router from '$lib/router/Router.svelte';
import BaseLayout from '$lib/layout/BaseLayout.svelte';
$: {
document.documentElement.setAttribute('data-theme', $theme);
@@ -13,12 +10,7 @@
</script>
{#await theme.load() then}
<div
class="font-sans bg-base-100 text-base-content h-screen flex flex-col overflow-y-auto overflow-x-hidden"
>
<Header />
<main class="flex-1" in:fade={{ delay: 300, duration: 1000 }}>
<Index />
</main>
</div>
<BaseLayout>
<Router />
</BaseLayout>
{/await}