2024-11-02 11:47:07 +00:00
|
|
|
<template>
|
2024-11-03 12:13:36 +00:00
|
|
|
<NuxtPicture
|
|
|
|
loading="lazy"
|
|
|
|
class="w-1/2 min-w-[50%] h-fit object-cover object-center mx-auto"
|
|
|
|
:src="baseUrl + data?.image.url"
|
|
|
|
:imgAttrs="{ class: 'w-full h-fit object-cover object-center' }"
|
|
|
|
/>
|
2024-11-02 11:47:07 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
import type { PropType } from "vue";
|
|
|
|
import type DynamicZoneFullImage from "../../types/component/dynamicZoneFullImage";
|
|
|
|
|
2024-11-03 12:13:36 +00:00
|
|
|
const baseUrl = useStrapiUrl().replace("/api", "");
|
|
|
|
|
2024-11-02 11:47:07 +00:00
|
|
|
defineProps({
|
|
|
|
data: Object as PropType<DynamicZoneFullImage>,
|
|
|
|
});
|
|
|
|
</script>
|