ff-webpage/components/Footer.vue

36 lines
1.3 KiB
Vue
Raw Normal View History

2024-11-01 14:15:09 +01:00
<template>
2025-02-14 13:57:55 +01:00
<footer darkgray class="h-48 min-h-fit w-full p-5 pt-10 flex-col justify-center items-center flex gap-2">
<div
v-if="links && links.length != 0"
class="self-stretch py-5 justify-center items-center gap-4 md:gap-10 inline-flex flex-wrap"
>
<div v-for="link in links" :key="link.id" class="contents">
2024-11-10 08:29:08 +01:00
<a v-if="link.URL.startsWith('http')" :href="link.URL" :target="link.target" class="text-base">{{
link.text
}}</a>
<NuxtLink
v-else
:to="`${link.URL.startsWith('/') ? '' : '/'}${link.URL}`"
:target="link.target"
class="text-base"
>
{{ link.text }}
</NuxtLink>
</div>
2024-11-01 14:15:09 +01:00
</div>
2025-02-14 13:57:55 +01:00
<p class="text-base text-center">@Copyright {{ new Date().getFullYear() }} {{ copyright ?? title }}</p>
<p class="text-base text-center">Inhalte verwaltet von {{ maintained_by ?? copyright ?? title }}</p>
<p class="text-sm text-gray-400 pt-2">
2025-02-10 11:38:56 +01:00
<a href="https://ff-admin.de/webpage" target="_blank">FF Webpage</a>
entwickelt von
<a href="https://jk-effects.com" target="_blank">JK Effects</a>
</p>
2024-11-10 08:29:08 +01:00
</footer>
2024-11-01 14:15:09 +01:00
</template>
<script setup lang="ts">
2025-02-14 13:57:55 +01:00
const title = await calculateTitle();
const { footer } = await provideGlobal();
const { links, maintained_by, copyright } = footer ?? {};
2024-11-01 14:15:09 +01:00
</script>