cosette/components/cosetta.vue

19 lines
600 B
Vue
Raw Normal View History

2022-08-11 09:57:51 +02:00
<script setup>
const { cosetta } = defineProps({
cosetta: {
type: Object,
required: true
}
})
</script>
<template>
2022-08-12 18:23:03 +02:00
<div class="w-full md:w-1/3 xl:w-1/4 p-6 flex flex-col">
<nuxt-link :to="`/c/${cosetta.uuid}`">
<img class="hover:grow hover:shadow-lg" :src="`src/public/${cosetta.images[0]}`">
<div class="pt-3 flex items-center justify-between">
<p class=" text-black font-bold uppercase" v-text='cosetta.name'></p>
</div>
<p class="pt-1 text-gray-700 text-sm" v-text='cosetta.description'></p>
</nuxt-link>
</div>
2022-08-11 09:57:51 +02:00
</template>