2024-11-01 13:15:09 +00:00
|
|
|
<template>
|
2024-11-10 07:29:08 +00:00
|
|
|
<footer darkgray class="h-48 min-h-fit w-full px-5 py-10 flex-col justify-center items-center flex gap-2">
|
2024-11-05 17:38:19 +00:00
|
|
|
<div class="self-stretch py-5 justify-center items-center gap-4 md:gap-10 inline-flex flex-wrap">
|
2024-11-10 07:29:08 +00:00
|
|
|
<div v-for="link in footer.links" :key="link.id" class="contents">
|
|
|
|
<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 13:15:09 +00:00
|
|
|
</div>
|
2024-11-06 07:59:07 +00:00
|
|
|
<div class="text-base text-center">@Copyright {{ new Date().getFullYear() }} {{ footer.copyright }}</div>
|
|
|
|
<div class="text-base text-center">verwaltet von {{ footer.designed_developed_by }}</div>
|
2024-11-10 07:29:08 +00:00
|
|
|
</footer>
|
2024-11-01 13:15:09 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
import type Global from "../types/single/global";
|
|
|
|
|
|
|
|
const { findOne } = useStrapi();
|
|
|
|
|
|
|
|
const { data: global } = await useAsyncData("global", () => findOne<Global>("global"));
|
2024-11-02 11:47:07 +00:00
|
|
|
const { footer } = global.value?.data ?? ({} as Global);
|
2024-11-01 13:15:09 +00:00
|
|
|
</script>
|