base zone components and type refinements
This commit is contained in:
parent
9d96e3a6dc
commit
5c56af0dad
38 changed files with 323 additions and 54 deletions
25
components/shared/Hero.vue
Normal file
25
components/shared/Hero.vue
Normal 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>
|
12
components/shared/List.vue
Normal file
12
components/shared/List.vue
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue