ff-webpage/app/pages/index.vue

15 lines
380 B
Vue
Raw Normal View History

2024-10-30 15:02:47 +01:00
<template>
2024-11-01 14:15:09 +01:00
<NuxtLayout name="landing">
<ContentBuilder :content="content" />
2024-11-01 14:15:09 +01:00
</NuxtLayout>
2024-10-30 15:02:47 +01:00
</template>
2024-11-01 14:15:09 +01:00
<script setup lang="ts">
2025-07-23 13:46:18 +02:00
import type Homepage from "~~/types/single/homepage";
2024-11-01 14:15:09 +01:00
const { findOne } = useStrapi();
const { data: homepage } = await useAsyncData("homepage", () => findOne<Homepage>("homepage"));
const { content } = homepage.value?.data ?? {};
2024-11-01 14:15:09 +01:00
</script>