site-panzai/components/DishPhoto.vue
2026-11-13 13:57:04 +01:00

13 lines
413 B
Vue

<script setup lang="ts">
defineProps<{ img?: string, alt: string }>()
</script>
<template>
<div class="dish-photo">
<img v-if="img" :src="img" :alt="alt" loading="lazy">
<template v-else>
<div class="empty-bowl" role="img" :aria-label="`Photo de ${alt} à venir`" />
<span class="placeholder-tag" style="right: 12px; bottom: 10px">PHOTO À VENIR</span>
</template>
</div>
</template>