frontend/src/views/CollectionView/CollectionMerchCard.vue

45 lines
670 B
Vue
Raw Normal View History

2025-09-18 21:05:19 +03:00
<script setup>
2025-09-16 21:26:36 +03:00
import BoxIcon from '@/components/icons/BoxIcon.vue'
2025-09-18 21:05:19 +03:00
defineProps({
merch: {
type: Object,
required: true,
}
})
2025-09-16 21:26:36 +03:00
</script>
<template>
2025-09-18 21:05:19 +03:00
<n-card :title="merch.name" class="responsive-card">
2025-09-16 21:26:36 +03:00
<template #cover>
<div class="cover-wrapper">
<BoxIcon />
</div>
</template>
Card Content
</n-card>
</template>
<style scoped>
.responsive-card {
max-width: 200px;
min-width: 180px;
}
.cover-wrapper {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
padding: 12px 0;
overflow: hidden;
}
.cover-wrapper :deep(svg) {
width: 100%;
height: auto;
max-width: 80%;
}
2025-09-18 21:05:19 +03:00
2025-09-16 21:26:36 +03:00
</style>