feat: theme card component aangemaakt

This commit is contained in:
Joyelle Ndagijimana 2025-03-19 21:19:44 +01:00
parent 501ea6259c
commit 03a9e513a8
7 changed files with 143 additions and 20 deletions

View file

@ -0,0 +1,27 @@
<script setup lang="ts">
import { useI18n } from "vue-i18n";
const { t } = useI18n();
defineProps<{
path: string;
title: string;
description: string;
image: string;
}>();
</script>
<template>
<v-card :title="t(`${title}`)" :text="t(`${description}`)" variant="outlined">
<v-img v-if="image" :src="image" height="200px" cover></v-img>
<v-card-actions>
<v-btn :to="`theme/${path}`" variant="text">
{{ t("read-more") }}
</v-btn>
</v-card-actions>
</v-card>
</template>
<style scoped>
</style>