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>
import '../app.css';
import Menu from '$lib/components/Menu.svelte';
</script>
<div class="text-black dark:text-white">
<div class="text-black dark:text-white flex flex-col">
<Menu />
<slot />
</div>

View file

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