diff --git a/apps/web-next/src/app/about/page.tsx b/apps/web-next/src/app/about/page.tsx new file mode 100644 index 0000000..2f85681 --- /dev/null +++ b/apps/web-next/src/app/about/page.tsx @@ -0,0 +1,31 @@ +import { appRouter } from "@repo/core-api"; +import { bindAllProduction } from "../../server/bind-production"; + +export default async function AboutPage() { + await bindAllProduction(); + const caller = appRouter.createCaller({}); + const page = await caller.marketingPages.pageBySlug({ slug: "about" }); + + if (!page) { + return ( +
+

About

+

This page hasn't been published yet.

+
+ ); + } + + return ( +
+
+
+

{page.hero.heading}

+ {page.hero.subheading ?

{page.hero.subheading}

: null} +
+
+          {JSON.stringify(page.layout, null, 2)}
+        
+
+
+ ); +}