Initial commit

This commit is contained in:
fraqtal
2026-07-12 08:15:46 +00:00
commit ee0fec0691
1397 changed files with 127242 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
"use client";
import { usePageBySlug } from "../hooks/use-page-by-slug";
import { PageHero } from "./page-hero";
export type PageContentProps = {
slug: string;
};
export function PageContent({ slug }: PageContentProps) {
const { data: page } = usePageBySlug(slug);
if (!page) return null;
return (
<article className="mx-auto max-w-3xl">
<PageHero hero={page.hero} />
<div className="prose text-foreground">
<pre className="whitespace-pre-wrap text-sm">
{JSON.stringify(page.layout, null, 2)}
</pre>
</div>
</article>
);
}