chore: add basic layout

This commit is contained in:
2025-12-01 18:58:37 +01:00
parent 0fb8ecf4c6
commit eab0fae501
10 changed files with 111 additions and 5 deletions

View File

@@ -1,13 +1,21 @@
<script setup lang="ts">
const appConfig = useAppConfig()
const { data: home } = await useAsyncData(() => queryCollection('content').path('/').first())
useSeoMeta({
title: home.value?.title,
description: home.value?.description
title: appConfig.title,
description: appConfig.description
})
</script>
<template>
<ContentRenderer v-if="home" :value="home" />
<ContentRenderer class="nuxt-content" v-if="home" :value="home" />
<div v-else>Home not found</div>
</template>
</template>
<style lang="css" scoped>
.nuxt-content {
background-color: var(--secondary-color);
color: var(--primary-color);
}
</style>