Add WYSIWYG editors for Geschichte and TT-Regeln pages
This commit is contained in:
31
pages/verein/geschichte.vue
Normal file
31
pages/verein/geschichte.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<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">
|
||||
Geschichte
|
||||
</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: 'Geschichte - Harheimer TC',
|
||||
})
|
||||
|
||||
async function loadConfig() {
|
||||
try {
|
||||
const data = await $fetch('/api/config')
|
||||
content.value = data?.seiten?.geschichte || ''
|
||||
} catch (e) {
|
||||
content.value = ''
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(loadConfig)
|
||||
</script>
|
||||
31
pages/verein/tt-regeln.vue
Normal file
31
pages/verein/tt-regeln.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<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">
|
||||
TT-Regeln
|
||||
</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: 'TT-Regeln - Harheimer TC',
|
||||
})
|
||||
|
||||
async function loadConfig() {
|
||||
try {
|
||||
const data = await $fetch('/api/config')
|
||||
content.value = data?.seiten?.ttRegeln || ''
|
||||
} catch (e) {
|
||||
content.value = ''
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(loadConfig)
|
||||
</script>
|
||||
Reference in New Issue
Block a user