aboutsummaryrefslogtreecommitdiff
path: root/src/routes/+layout.svelte
blob: add22ee4da63207e66e5b9277ae09fddba70fe0c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

<script>
	import '../app.css';
	import { page } from '$app/stores';
	import Nav from '$lib/components/Nav.svelte';

	let { children } = $props();
</script>

<svelte:head>
	<title>Maison</title>
</svelte:head>

<div class="app">
	{#if $page.url.pathname !== '/login'}
		<Nav />
	{/if}
	{@render children()}
</div>

<style>
	.app {
		max-width: 36rem;
		margin: 0 auto;
		padding-bottom: 2rem;
	}
</style>