2023-06-16 21:35:15 +02:00
|
|
|
<script lang="ts">
|
2023-06-16 23:24:44 +02:00
|
|
|
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">
|
2023-06-16 23:24:44 +02:00
|
|
|
{#if $user.status}
|
2023-06-16 21:35:15 +02:00
|
|
|
<Header />
|
|
|
|
{/if}
|
2023-06-16 20:11:42 +02:00
|
|
|
|
2023-06-16 23:24:44 +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>
|
|
|
|
|
2023-06-16 23:24:44 +02:00
|
|
|
{#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]">♥</span> ASKÖ Ruderverein Donau Linz
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
© {date.getFullYear()}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
{/if}
|
2023-06-16 20:11:42 +02:00
|
|
|
</div>
|
|
|
|
|
2023-06-16 21:35:15 +02:00
|
|
|
|