<script setup>
import "@/views/portal/assets/base.css"
import ctxRef from "@/utils/ctx_ref.js"
import Context from "./index.js"
import PortalLayout from "@/views/portal/components/PortalLayout.vue";

const ctx = ctxRef(new Context())
</script>

<template>
	<PortalLayout :ctx="ctx">
		<div class="block">
			<div class="inner-block">
				<div v-if="ctx.post != null">
					<h1 class="text-3xl font-normal mb-2">{{ ctx.post.subject }}</h1>
					<div class="text-gray-600 mt-2">{{ ctx.post.publishedTime }}</div>
					<div class="mt-2" v-html="ctx.post.body"></div>
				</div>
				<div v-else>POST NOT FOUND</div>
			</div>
		</div>
	</PortalLayout>
</template>

<style scoped lang="postcss">
</style>