mirror of
https://github.com/IT4Change/IT4C.dev.git
synced 2025-12-12 17:05:50 +00:00
32 lines
772 B
Vue
32 lines
772 B
Vue
<template>
|
|
<a :href="href">
|
|
<div class="border border-gray-300 rounded-lg p-6">
|
|
<img :src="image" :alt="title" class="rounded-lg mb-4 w-full h-auto object-contain" />
|
|
<h3 class="text-xl font-semibold mb-2">{{ title }}</h3>
|
|
<p class="text-gray-600 dark:text-gray-300 mb-4">{{ description }}</p>
|
|
<div class="flex flex-wrap gap-2">
|
|
<span v-for="tag in tags" :key="tag" class="tag px-3 py-1 rounded-full text-sm">
|
|
{{ tag }}
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
defineProps<{
|
|
title: string
|
|
description: string
|
|
image: string
|
|
tags: string[]
|
|
href: string
|
|
}>()
|
|
</script>
|
|
|
|
<style>
|
|
.tag {
|
|
color: var(--highlight-color);
|
|
background: var(--highlight-color-light);
|
|
}
|
|
</style>
|