hacky-ruadat/svelte/src/routes/+layout.svelte

34 lines
769 B
Svelte
Raw Normal View History

2023-06-16 21:35:15 +02:00
<script lang="ts">
import { user } from '../stores/User.js';
2023-06-16 20:11:42 +02:00
import Header from './Header.svelte';
2023-06-16 21:35:15 +02:00
import '../app.css';
const date = new Date();
2023-06-16 20:11:42 +02:00
</script>
2023-06-16 21:35:15 +02:00
2023-06-16 20:11:42 +02:00
2023-06-16 21:35:15 +02:00
<div class="bg-gray-100">
{#if $user.status}
2023-06-16 21:35:15 +02:00
<Header />
{/if}
2023-06-16 20:11:42 +02:00
<main class="flex min-h-screen { $user.status ? 'items-start' : 'items-center'} justify-center px-4 py-12 sm:px-6 lg:px-8">
2023-06-16 20:11:42 +02:00
<slot />
</main>
{#if $user.status}
2023-06-16 21:35:15 +02:00
<footer class="bg-primary-950 text-white w-full flex justify-center p-3">
<div class="max-w-screen-xl w-full flex justify-between">
<div>
<span class="text-[#ff0000]">&hearts;</span> ASKÖ Ruderverein Donau Linz
</div>
<div>
&copy; {date.getFullYear()}
</div>
</div>
</footer>
{/if}
2023-06-16 20:11:42 +02:00
</div>
2023-06-16 21:35:15 +02:00