mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2026-04-02 09:55:23 +00:00
34 lines
583 B
Svelte
34 lines
583 B
Svelte
<script lang="ts">
|
|
import { goto } from '$app/navigation'
|
|
import { status } from '$lib/stores/status'
|
|
|
|
status.subscribe((config) => {
|
|
if (config != null) {
|
|
if (config.imprint_url) {
|
|
window.location.href = config.imprint_url
|
|
} else if (config.imprint_html == '') {
|
|
goto('/about')
|
|
}
|
|
}
|
|
})
|
|
</script>
|
|
|
|
<svelte:head>
|
|
<title>Imprint</title>
|
|
</svelte:head>
|
|
|
|
<section class="content">
|
|
{#if $status?.imprint_html}
|
|
{@html $status.imprint_html}
|
|
{/if}
|
|
</section>
|
|
|
|
<style>
|
|
section {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2rem;
|
|
}
|
|
</style>
|