2023-06-16 21:35:15 +02:00
|
|
|
<script lang="ts">
|
|
|
|
import { loggedin } from '../store.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();
|
|
|
|
|
|
|
|
let isLoggedIn: Boolean;
|
|
|
|
|
|
|
|
loggedin.subscribe(value => {
|
|
|
|
isLoggedIn = value;
|
|
|
|
});
|
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 isLoggedIn}
|
|
|
|
<Header />
|
|
|
|
{/if}
|
2023-06-16 20:11:42 +02:00
|
|
|
|
2023-06-16 22:18:50 +02:00
|
|
|
<main class="flex min-h-screen {isLoggedIn ? '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 21:35:15 +02:00
|
|
|
{#if isLoggedIn}
|
|
|
|
<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
|
|
|
|