2024-11-02 11:47:07 +00:00
|
|
|
<template>
|
2024-11-03 12:13:36 +00:00
|
|
|
<NuxtPicture
|
|
|
|
loading="lazy"
|
2024-11-10 07:29:08 +00:00
|
|
|
class="w-full lg:w-1/2 lg:min-w-[50%] object-cover object-center mx-auto"
|
2024-11-03 12:13:36 +00:00
|
|
|
:src="baseUrl + data?.image.url"
|
2024-11-10 07:29:08 +00:00
|
|
|
:imgAttrs="{ class: 'w-full h-full object-cover object-center' }"
|
2024-11-03 12:13:36 +00:00
|
|
|
/>
|
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-05 17:31:12 +00:00
|
|
|
const runtimeConfig = useRuntimeConfig();
|
|
|
|
const baseUrl = runtimeConfig.public.strapi.url;
|
2024-11-03 12:13:36 +00:00
|
|
|
|
2024-11-02 11:47:07 +00:00
|
|
|
defineProps({
|
|
|
|
data: Object as PropType<DynamicZoneFullImage>,
|
|
|
|
});
|
|
|
|
</script>
|