Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
--- /dev/null
+<script setup lang="ts">
+ import { ref } from "vue";
+
+ defineProps<{
+ title?: string,
+ isClosable?: boolean,
+ }>()
+
+ // Should this notification be shown?
+ const show = ref(true);
+</script>
+
+<template>
+ <div class="notification" v-if="show">
+ <button v-if="isClosable" class="delete" @click="show = false"></button>
+
+ <!-- Title -->
+ <p v-if="title">
+ <strong>{{ title }}</strong>
+ </p>
+
+ <!-- Content -->
+ <slot />
+ </div>
+</template>
--- /dev/null
+<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>
+</template>
--- /dev/null
+<script setup lang="ts">
+ import Section from "../components/Section.vue"
+</script>
+
+<template>
+ <Section :title="$t('Welcome')">
+ <p>{{ $t("This is the front page") }}</p>
+ </Section>
+</template>