first commit

This commit is contained in:
Fractal-Tess
2022-07-30 17:58:06 +03:00
commit 3e2667722a
48 changed files with 6137 additions and 0 deletions

26
src/App.svelte Normal file
View File

@@ -0,0 +1,26 @@
<script lang="ts">
import { fade } from 'svelte/transition';
import Header from '$lib/example/header/Header.svelte';
import Index from '$lib/Index.svelte';
import Footer from '$lib/example/footer/Footer.svelte';
import { theme } from '$lib/stores/theme';
$: {
document.documentElement.setAttribute('data-theme', $theme);
document.documentElement.classList.value = $theme;
}
</script>
{#await theme.load() then}
<div
class="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>
<Footer />
</div>
{/await}