2024-11-02 11:47:07 +00:00
|
|
|
<template>
|
2024-11-05 13:41:48 +00:00
|
|
|
<div class="flex flex-col md:flex-row gap-4">
|
2024-11-03 12:13:36 +00:00
|
|
|
<NuxtPicture
|
|
|
|
loading="lazy"
|
|
|
|
class="w-1/2 min-w-[50%] h-fit object-cover object-center"
|
|
|
|
:class="data?.image_left ? 'order-0' : 'order-1'"
|
|
|
|
:src="baseUrl + data?.image.url"
|
|
|
|
:imgAttrs="{ class: 'w-full h-fit object-cover object-center' }"
|
|
|
|
/>
|
|
|
|
<FieldContent :data="data?.text" />
|
|
|
|
</div>
|
2024-11-02 11:47:07 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
import type { PropType } from "vue";
|
|
|
|
import type DynamicZoneColumnImageText from "../../types/component/dynamicZoneColumnImageText";
|
|
|
|
|
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<DynamicZoneColumnImageText>,
|
|
|
|
});
|
|
|
|
</script>
|