aboutsummaryrefslogtreecommitdiff
path: root/src/routes/+layout.svelte
blob: 2956cd82bbf5d9c11f4209d7904678c2d760e4d5 (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
27
28
29
30

<script>
	import '../app.css';
	import { page } from '$app/stores';
	import { onMount } from 'svelte';
	import Nav from '$lib/components/Nav.svelte';
	import { refreshOnRefocus } from '$lib/refresh-on-refocus';

	let { children } = $props();

	onMount(refreshOnRefocus);
</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>