2024-11-02 11:47:07 +00:00
|
|
|
<template>
|
2024-11-03 10:21:44 +00:00
|
|
|
<div class="flex flex-col w-full max-h-72 h-72 overflow-hidden">
|
2024-11-02 11:47:07 +00:00
|
|
|
<NuxtPicture
|
|
|
|
preload
|
|
|
|
loading="lazy"
|
2024-11-03 10:21:44 +00:00
|
|
|
class="w-full h-60 object-cover object-center"
|
2024-11-02 11:47:07 +00:00
|
|
|
:src="baseUrl + data?.banner.url"
|
2024-11-03 10:21:44 +00:00
|
|
|
:imgAttrs="{ class: 'w-full h-60 object-cover object-center' }"
|
2024-11-02 11:47:07 +00:00
|
|
|
/>
|
2024-11-03 10:21:44 +00:00
|
|
|
<div primary class="h-12 min-h-12 w-full px-12 justify-center items-center gap-5 flex">
|
2024-11-02 11:47:07 +00:00
|
|
|
<p>{{ data?.title }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
import type { PropType } from "vue";
|
|
|
|
import type SharedHero from "../../types/component/sharedHero";
|
|
|
|
|
|
|
|
defineProps({
|
|
|
|
data: Object as PropType<SharedHero>,
|
|
|
|
});
|
|
|
|
|
|
|
|
const baseUrl = useStrapiUrl().replace("/api", "");
|
|
|
|
</script>
|