summaryrefslogtreecommitdiff
path: root/src/pages/about.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/about.tsx')
-rw-r--r--src/pages/about.tsx32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/pages/about.tsx b/src/pages/about.tsx
new file mode 100644
index 0000000..15d4c90
--- /dev/null
+++ b/src/pages/about.tsx
@@ -0,0 +1,32 @@
+import { Link } from 'waku';
+
+export default async function AboutPage() {
+ const data = await getData();
+
+ return (
+ <div>
+ <title>{data.title}</title>
+ <h1 className="text-4xl font-bold tracking-tight">{data.headline}</h1>
+ <p>{data.body}</p>
+ <Link to="/" className="mt-4 inline-block underline">
+ Return home
+ </Link>
+ </div>
+ );
+}
+
+const getData = async () => {
+ const data = {
+ title: 'About',
+ headline: 'About Waku',
+ body: 'The minimal React framework',
+ };
+
+ return data;
+};
+
+export const getConfig = async () => {
+ return {
+ render: 'static',
+ } as const;
+};