<script>
  import { onMount } from "svelte";
  import { _ } from "svelte-i18n";
  $: releaseinfo = "";
  onMount(() => {
    releaseinfo = document
      .getElementById("buildinfo")
      .textContent.replace("RELEASE_INFO-", "")
      .replace("-RELEASE_INFO", "");
  });
  const year = new Date().getFullYear();
</script>

<footer class="p-5 w-full">
  <p class="text-sm text-gray-500 mt-4">
    Lauf für Kaya! Läufersystem - Copyright ©
    {year}
    + proudly powered by
    <a
      class="underline"
      href="https://odit.services"
      rel="noopener,noreferrer"
      target="_blank">ODIT.Services</a>
  </p>
  <p class="text-sm text-gray-500 mt-4">
    <a
      class="underline"
      target="_blank"
      rel="noopener, noreferrer"
      href="https://git.odit.services/lfk/frontend/">LfK!Frontend</a>@<a
      class="underline"
      target="_blank"
      rel="noopener, noreferrer"
      href="https://git.odit.services/lfk/frontend/src/tag/{releaseinfo}">{releaseinfo}</a>
    -
    <a
      rel="noopener, noreferrer"
      class="underline"
      href="https://docs.lauf-fuer-kaya.de"
      target="_blank">{$_('documentation')}</a>
    -
    <a class="underline" href="/privacy">{$_('privacy')}</a>
    -
    <a class="underline" href="/imprint">{$_('imprint')}</a>
  </p>
</footer>
