File size: 477 Bytes
36f8d04
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
de10f77
 
36f8d04
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<script lang="ts">
	import Container from '$lib/components/Container.svelte';
	import type { PageData } from './$types';

	export let data: PageData;
	$: user = data.user!;
</script>

<Container>
	<p>
		Bienvenue, {user.email}!
	</p>

	{#if user.admin}
		<p><a href="/admin" class="link">Admin</a></p>
	{/if}

	<form action="/deconnexion" method="post" class="text-sunray text-3xl inline-block">
		<input type="submit" value="Déconnexion" class="btn" />
	</form>
</Container>