Gestalte Docs-Landing und Header im Nuxt-UI-Template-Stil

This commit is contained in:
2026-04-22 19:13:11 +02:00
parent 63b1c563c1
commit 6224a25c38
3 changed files with 127 additions and 33 deletions

View File

@@ -0,0 +1,23 @@
<script setup lang="ts">
const route = useRoute()
const repoBase = 'https://git.federspiel.tech/flfeders/FEDEO/src/branch/dev/docs'
const sourceUrl = computed(() => {
if (route.path === '/') {
return `${repoBase}/README.md`
}
return `${repoBase}${route.path}.md`
})
</script>
<template>
<UButton
color="neutral"
variant="outline"
icon="i-lucide-file-text"
label="Quelle"
:to="sourceUrl"
target="_blank"
/>
</template>

View File

@@ -44,7 +44,17 @@ const links = computed(() => {
:title="page.title"
:description="page.description"
:headline="headline"
/>
>
<template #links>
<UButton
v-for="(link, index) in page.links"
:key="index"
v-bind="link"
/>
<PageHeaderLinks />
</template>
</UPageHeader>
<UPageBody>
<ContentRenderer