Add home and CMS page routes

This commit is contained in:
2026-04-23 21:11:47 +04:00
parent 128f9d80fb
commit d68d780a00
3 changed files with 63 additions and 6 deletions

View File

@@ -0,0 +1,13 @@
type Props = {
title: string
content: string
}
export function PageView({ title, content }: Props) {
return (
<article className="page">
<h1 className="text-3xl font-bold mb-4">{title}</h1>
<div className="prose-cms" dangerouslySetInnerHTML={{ __html: content }} />
</article>
)
}