base zone components and type refinements

This commit is contained in:
Julian Krauser 2024-11-02 12:47:07 +01:00
parent 9d96e3a6dc
commit 5c56af0dad
38 changed files with 323 additions and 54 deletions

View file

@ -0,0 +1,25 @@
<template>
<div class="w-full max-h-60 h-60">
<NuxtPicture
preload
loading="lazy"
class="w-full h-full object-cover object-center"
:src="baseUrl + data?.banner.url"
:imgAttrs="{ class: 'w-full h-full object-cover object-center' }"
/>
<div primary class="h-12 w-full px-12 justify-center items-center gap-5 flex">
<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>

View file

@ -0,0 +1,12 @@
<template>
<p>{{ data }}</p>
</template>
<script setup lang="ts">
import type { PropType } from "vue";
import type SharedList from "../../types/component/sharedList";
defineProps({
data: Object as PropType<SharedList>,
});
</script>