pronounscc/frontend/src/routes/+layout.svelte

41 lines
1.2 KiB
Svelte
Raw Normal View History

<script lang="ts">
2023-03-11 01:36:30 +01:00
import "bootstrap/dist/css/bootstrap.min.css";
import "bootstrap-icons/font/bootstrap-icons.css";
2023-03-09 17:08:43 +01:00
import Navigation from "./nav/Navigation.svelte";
import type { LayoutData } from "./$types";
import { version } from "$app/environment";
export let data: LayoutData;
const versionParts = version.split("-");
let commit = "[unknown]";
if (versionParts.length >= 3) commit = versionParts[2];
const versionMismatch = data.git_commit !== commit && data.git_commit !== "[unknown]";
2023-03-09 17:08:43 +01:00
</script>
2023-03-14 03:01:26 +01:00
<svelte:head>
<meta property="og:type" content="website" />
<meta name="theme-color" content="#aa8ed6" />
<meta property="og:site_name" content="pronouns.cc" />
</svelte:head>
2023-03-09 17:08:43 +01:00
<Navigation />
<div class="container">
<slot />
<footer>
<hr />
<p>
pronouns.cc <a href="https://codeberg.org/u1f320/pronouns.cc/commit/{commit}">{version}</a>
{#if versionMismatch}
(backend: <a href="https://codeberg.org/u1f320/pronouns.cc/commit/{data.git_commit}">
{data.git_commit}
</a>)
{/if} &middot;
<a href="/page/terms">Terms of service</a>
- <a href="/page/privacy">Privacy policy</a>
</p>
</footer>
</div>