Add WYSIWYG editor for Über uns page

This commit is contained in:
Torsten Schulz (local)
2025-10-22 10:49:07 +02:00
parent 082570bc2d
commit 0bab88147c
4 changed files with 131 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<template>
<div class="min-h-full py-16 bg-white">
<div class="max-w-3xl mx-auto px-4 sm:px-6 lg:px-8">
<h1 class="text-4xl sm:text-5xl font-display font-bold text-gray-900 mb-6">
Über uns
</h1>
<div class="prose prose-lg max-w-none" v-html="content" />
</div>
</div>
</template>
<script setup>
import { ref, onMounted } from 'vue'
const content = ref('')
useHead({
title: 'Über uns - Harheimer TC',
})
async function loadConfig() {
try {
const data = await $fetch('/api/config')
content.value = data?.seiten?.ueberUns || ''
} catch (e) {
content.value = ''
}
}
onMounted(loadConfig)
</script>