2024-03-06 16:03:12 +01:00
|
|
|
<!--
|
|
|
|
|
SPDX-FileCopyrightText: 2023 Pere Lev
|
|
|
|
|
SPDX-FileCopyrightText: 2024 André Jaenisch
|
|
|
|
|
|
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
-->
|
|
|
|
|
|
2023-12-20 23:10:18 +01:00
|
|
|
<script lang="ts">
|
2023-05-03 12:28:02 +03:00
|
|
|
// The ordering of these imports is critical to your app working properly
|
2023-05-22 12:30:47 +03:00
|
|
|
//import '@skeletonlabs/skeleton/themes/theme-skeleton.css';
|
|
|
|
|
import '../theme.postcss';
|
2023-05-03 12:28:02 +03:00
|
|
|
// If you have source.organizeImports set to true in VSCode, then it will auto change this ordering
|
2023-12-20 23:10:18 +01:00
|
|
|
//import '@skeletonlabs/skeleton/styles/skeleton.css';
|
2023-05-03 12:28:02 +03:00
|
|
|
// Most of your app wide CSS should be put in this file
|
|
|
|
|
import '../app.postcss';
|
|
|
|
|
import { AppShell, AppBar } from '@skeletonlabs/skeleton';
|
2024-02-20 13:50:41 +01:00
|
|
|
import { locale, locales } from 'svelte-i18n';
|
|
|
|
|
|
|
|
|
|
import { mapLocaleToDir } from '$lib/i18n';
|
|
|
|
|
|
|
|
|
|
locale.subscribe((l) => {
|
|
|
|
|
if (typeof document !== 'undefined') {
|
|
|
|
|
document.dir = mapLocaleToDir(l);
|
|
|
|
|
}
|
|
|
|
|
});
|
2023-05-03 12:28:02 +03:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<!-- App Shell -->
|
|
|
|
|
<AppShell>
|
|
|
|
|
<svelte:fragment slot="header">
|
|
|
|
|
<!-- App Bar -->
|
|
|
|
|
<AppBar>
|
|
|
|
|
<svelte:fragment slot="lead">
|
2023-05-22 14:36:14 +03:00
|
|
|
<strong class="text-xl">Anvil</strong>
|
2023-05-03 12:28:02 +03:00
|
|
|
</svelte:fragment>
|
|
|
|
|
<svelte:fragment slot="trail">
|
2024-02-20 13:50:41 +01:00
|
|
|
<select bind:value={$locale} class="select">
|
|
|
|
|
{#each $locales as locale}
|
|
|
|
|
<option value={locale}>{locale}</option>
|
|
|
|
|
{/each}
|
|
|
|
|
</select>
|
2023-05-03 12:28:02 +03:00
|
|
|
<a
|
|
|
|
|
class="btn btn-sm variant-ghost-surface"
|
2023-05-03 17:41:33 +03:00
|
|
|
href="https://matrix.to/#/#general-forgefed:matrix.batsense.net"
|
2023-05-03 12:28:02 +03:00
|
|
|
target="_blank"
|
|
|
|
|
rel="noreferrer"
|
|
|
|
|
>
|
2023-05-03 17:41:33 +03:00
|
|
|
Matrix
|
2023-05-03 12:28:02 +03:00
|
|
|
</a>
|
|
|
|
|
<a
|
|
|
|
|
class="btn btn-sm variant-ghost-surface"
|
2023-05-03 17:41:33 +03:00
|
|
|
href="https://forgefed.org"
|
2023-05-03 12:28:02 +03:00
|
|
|
target="_blank"
|
|
|
|
|
rel="noreferrer"
|
|
|
|
|
>
|
2023-05-03 17:41:33 +03:00
|
|
|
ForgeFed
|
2023-05-03 12:28:02 +03:00
|
|
|
</a>
|
|
|
|
|
<a
|
|
|
|
|
class="btn btn-sm variant-ghost-surface"
|
2023-05-03 17:41:33 +03:00
|
|
|
href="https://codeberg.org/anvil/anvil"
|
2023-05-03 12:28:02 +03:00
|
|
|
target="_blank"
|
|
|
|
|
rel="noreferrer"
|
|
|
|
|
>
|
2023-05-03 17:41:33 +03:00
|
|
|
Code
|
2023-05-03 12:28:02 +03:00
|
|
|
</a>
|
|
|
|
|
</svelte:fragment>
|
|
|
|
|
</AppBar>
|
|
|
|
|
</svelte:fragment>
|
|
|
|
|
<!-- Page Route Content -->
|
|
|
|
|
<slot />
|
|
|
|
|
</AppShell>
|