--- /dev/null
+<script setup lang="ts">
+ const { title, subtitle } = defineProps(["title", "subtitle"])
+</script>
+
+<template>
+ <div class="box">
+ <h4 v-if="title" class="title is-4">
+ {{ title }}
+ </h4>
+
+ <h6 v-if="subtitle" class="subtitle is-6">
+ {{ subtitle }}
+ </h6>
+
+ <slot />
+ </div>
+</template>
import { fetchMirrors } from "@/api/mirrors";
// Import UI components
- import Section from "../components/Section.vue"
+ import Box from "@/components/Box.vue"
+ import Section from "@/components/Section.vue"
// Mirrors
const mirrors = ref<Mirror[]>([]);
<template>
<Section :title="$t('Mirrors')">
- <Container>
- <div v-for="mirror in mirrors" class="box" :key="mirror.hostname">
- <h5 class="title is-5">
- {{ mirror.hostname }}
- </h5>
-
- <h6 class="subtitle is-6">
- <span v-if="mirror.owner">
- {{ mirror.owner }}
- </span>
- </h6>
- </div>
- </Container>
+ <Box v-for="mirror in mirrors" :key="mirror.hostname"
+ :title="mirror.hostname" :subtitle="mirror.owner">
+ Some content
+ </Box>
</Section>
</template>