feat: title and menu at layout

This commit is contained in:
Artemy Egorov 2023-08-27 19:53:14 +03:00
parent ab4531064e
commit 2988809298
3 changed files with 7 additions and 1 deletions

View file

View file

@ -1,7 +1,9 @@
<script> <script>
import '../app.css'; import '../app.css';
import Menu from '$lib/components/Menu.svelte';
</script> </script>
<div class="text-black dark:text-white"> <div class="text-black dark:text-white flex flex-col">
<Menu />
<slot /> <slot />
</div> </div>

View file

@ -9,6 +9,10 @@
} }
</script> </script>
<svelte:head>
<title>AnoPaper main page</title>
</svelte:head>
<h1 class="text-3xl font-bold underline">AnoPaper!</h1> <h1 class="text-3xl font-bold underline">AnoPaper!</h1>
<Button onClick={handleClick} href="#">{text}</Button> <Button onClick={handleClick} href="#">{text}</Button>