2024-07-02 15:07:22 +00:00
|
|
|
<template>
|
2024-08-10 08:40:59 +00:00
|
|
|
<v-container class="content-container mx-auto">
|
2024-08-15 15:20:44 +00:00
|
|
|
<v-card v-if="page" class="mb-5">
|
2024-08-10 08:40:59 +00:00
|
|
|
<v-card-text>
|
|
|
|
<v-row>
|
|
|
|
<v-col cols="12" md="4">
|
|
|
|
<v-img :src="page.thumbnail" :aspect-ratio="16/9" class="rounded-md" cover />
|
|
|
|
</v-col>
|
|
|
|
<v-col cols="12" md="8" class="flex flex-col">
|
|
|
|
<h2 class="text-xl">{{ page.title }}</h2>
|
|
|
|
<span>{{ page.description }}</span>
|
|
|
|
<v-chip
|
|
|
|
v-if="page?.archived"
|
|
|
|
label
|
|
|
|
prepend-icon="mdi-archive"
|
|
|
|
variant="text"
|
|
|
|
color="warning"
|
|
|
|
size="small"
|
|
|
|
class="mx-[-6px]"
|
|
|
|
>
|
2024-08-13 09:54:13 +00:00
|
|
|
{{ t("productArchived") }}
|
2024-08-10 08:40:59 +00:00
|
|
|
</v-chip>
|
|
|
|
</v-col>
|
|
|
|
</v-row>
|
|
|
|
</v-card-text>
|
|
|
|
</v-card>
|
|
|
|
|
2024-08-10 13:16:36 +00:00
|
|
|
<article class="text-base prose xl:text-lg mx-auto">
|
2024-08-13 14:44:36 +00:00
|
|
|
<content-renderer :value="page">
|
2024-08-10 05:26:58 +00:00
|
|
|
<template #empty>
|
|
|
|
<v-empty-state
|
|
|
|
icon="mdi-image-broken-variant"
|
2024-08-10 07:00:17 +00:00
|
|
|
text="This product has no specific describe for it, yet."
|
2024-08-10 05:26:58 +00:00
|
|
|
title="No Content"
|
|
|
|
class="no-content-placeholder"
|
|
|
|
>
|
|
|
|
<template #actions>
|
|
|
|
<v-btn prepend-icon="mdi-list-box" variant="plain" text="Back to index" to="/products" exact />
|
|
|
|
</template>
|
|
|
|
</v-empty-state>
|
|
|
|
</template>
|
2024-08-13 14:44:36 +00:00
|
|
|
|
|
|
|
<content-renderer-markdown :value="page" />
|
|
|
|
</content-renderer>
|
2024-08-10 05:26:58 +00:00
|
|
|
</article>
|
2024-08-22 09:32:56 +00:00
|
|
|
|
|
|
|
<div class="flex justify-start mt-5">
|
|
|
|
<v-btn
|
|
|
|
v-if="page?.url"
|
|
|
|
variant="plain"
|
|
|
|
prepend-icon="mdi-launch"
|
|
|
|
:text="t('open')"
|
|
|
|
:href="page?.url"
|
|
|
|
target="_blank"
|
|
|
|
/>
|
|
|
|
</div>
|
2024-07-02 15:07:22 +00:00
|
|
|
</v-container>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.no-content-placeholder {
|
|
|
|
min-height: 0;
|
|
|
|
max-height: 64rem;
|
|
|
|
}
|
|
|
|
</style>
|
2024-08-10 08:40:59 +00:00
|
|
|
|
2024-08-10 07:00:17 +00:00
|
|
|
<script setup lang="ts">
|
2024-08-13 09:54:13 +00:00
|
|
|
const route = useRoute()
|
|
|
|
|
|
|
|
const { t } = useI18n()
|
2024-08-13 14:44:36 +00:00
|
|
|
const { data: page } = await useAsyncData<any>("page", queryContent(route.path).where({ _locale: getLocale() }).findOne)
|
|
|
|
|
|
|
|
if (page.value == null) {
|
|
|
|
throw createError({
|
|
|
|
status: 404,
|
|
|
|
statusMessage: "Product Not Found",
|
|
|
|
})
|
|
|
|
}
|
2024-08-15 17:22:40 +00:00
|
|
|
|
|
|
|
useHead({
|
|
|
|
title: page.value.title,
|
|
|
|
})
|
|
|
|
|
|
|
|
useSeoMeta({
|
|
|
|
title: page.value.title,
|
|
|
|
description: page.value.description,
|
|
|
|
ogTitle: page.value.title,
|
|
|
|
ogDescription: page.value.description,
|
|
|
|
ogUrl: `${useRuntimeConfig().public.siteUrl}${route.fullPath}`,
|
|
|
|
publisher: "Solar Network",
|
|
|
|
ogSiteName: "Solsynth Capital",
|
|
|
|
})
|
2024-08-10 07:00:17 +00:00
|
|
|
</script>
|
2024-08-10 08:40:59 +00:00
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.content-container {
|
|
|
|
max-width: 65ch !important;
|
|
|
|
}
|
|
|
|
</style>
|