aboutsummaryrefslogtreecommitdiff
path: root/src/routes/+layout.svelte
blob: 8a59b9659b670df1223701efd93dcf3c564b569b (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 { startAutoRefresh } from '$lib/auto-refresh';

	let { children } = $props();

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