Add home and CMS page routes
This commit is contained in:
13
frontend/src/components/page-view.tsx
Normal file
13
frontend/src/components/page-view.tsx
Normal 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>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user