From c3a1581713fbc89110b7fc717bdf20dff0c13f22 Mon Sep 17 00:00:00 2001 From: Foster Hangdaan Date: Sun, 23 Jul 2023 16:44:56 -0400 Subject: [PATCH] Add home page and main layout --- _includes/layouts/main.tsx | 13 +++++++++++++ index.tsx | 11 +++++++++++ 2 files changed, 24 insertions(+) create mode 100644 _includes/layouts/main.tsx create mode 100644 index.tsx diff --git a/_includes/layouts/main.tsx b/_includes/layouts/main.tsx new file mode 100644 index 0000000..b1505d0 --- /dev/null +++ b/_includes/layouts/main.tsx @@ -0,0 +1,13 @@ +export default function({ title, children }) { + return ( + + + + { title } + + + { children } + + + ); +} diff --git a/index.tsx b/index.tsx new file mode 100644 index 0000000..7bab8cd --- /dev/null +++ b/index.tsx @@ -0,0 +1,11 @@ +export const title = "My website"; +export const layout = "layouts/main.tsx"; + +export default function() { + return ( + <> +

Foster Hangdaan

+

Welcome!

+ + ); +}