Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-<script setup>
- // Nothing, yet
+<script setup lang="ts">
+ const { title } = defineProps(["title"])
</script>
<template>
<section class="section">
<div class="container">
+ <h1 v-if="title" class="title">{{ title }}</h1>
+
<slot />
</div>
</section>
</script>
<template>
- <Section>
- <h1 class="title">About</h1>
+ <Section :title="$t('About')">
<p>This is the about page</p>
</Section>
</template>
</script>
<template>
- <Section>
- <h1 class="title">{{ $t("Welcome") }}</h1>
+ <Section :title="$t('Welcome')">
<p>{{ $t("This is the front page") }}</p>
</Section>
</template>