From 8f0cdbaa219f5134db95b31fc3576fe57a07a196 Mon Sep 17 00:00:00 2001 From: Felix Schulze Date: Tue, 3 Sep 2024 22:00:14 +0200 Subject: [PATCH] base page --- app/page.tsx | 8 ++------ app/welcome/layout.tsx | 11 +++++++++++ app/welcome/page.tsx | 12 ++++++++++++ 3 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 app/welcome/layout.tsx create mode 100644 app/welcome/page.tsx diff --git a/app/page.tsx b/app/page.tsx index b5ad721..de0eb4e 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,9 +1,5 @@ -import Image from "next/image"; +import { redirect } from "next/navigation"; export default function Home() { - return ( -
-
-
- ); + redirect("/welcome"); } diff --git a/app/welcome/layout.tsx b/app/welcome/layout.tsx new file mode 100644 index 0000000..c1158d0 --- /dev/null +++ b/app/welcome/layout.tsx @@ -0,0 +1,11 @@ +export default function Layout({ + children, +}: Readonly<{ + children: React.ReactNode; +}>) { + return ( +
+
{children}
+
+ ); +} diff --git a/app/welcome/page.tsx b/app/welcome/page.tsx new file mode 100644 index 0000000..63e6378 --- /dev/null +++ b/app/welcome/page.tsx @@ -0,0 +1,12 @@ +export default function Home() { + return ( +
+
+ 📅 Track Every Day + + A web app for logging your habits, vices and activities. + +
+
+ ); +}