<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>
