aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/app
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-03-19 17:45:33 +0000
committerMohamedBassem <me@mbassem.com>2024-03-19 17:45:33 +0000
commitefbec1419ef4920816fb94330c38880b564ca1b1 (patch)
treede877c0584832b3d72bfc55d5ed3bc9a1420fc81 /apps/web/app
parent1b07d6de9c137f9660d83ded2a47b5e79679b74f (diff)
downloadkarakeep-efbec1419ef4920816fb94330c38880b564ca1b1.tar.zst
feature: A new landing page
Diffstat (limited to 'apps/web/app')
-rw-r--r--apps/web/app/page.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/web/app/page.tsx b/apps/web/app/page.tsx
index ca076cbf..d86c91be 100644
--- a/apps/web/app/page.tsx
+++ b/apps/web/app/page.tsx
@@ -1,12 +1,13 @@
import { redirect } from "next/navigation";
+import LandingPage from "@/components/landing/LandingPage";
import { getServerAuthSession } from "@/server/auth";
export default async function Home() {
// TODO: Home currently just redirects between pages until we build a proper landing page
const session = await getServerAuthSession();
- if (!session) {
- redirect("/signin");
+ if (session) {
+ redirect("/dashboard/bookmarks");
}
- redirect("/dashboard/bookmarks");
+ return <LandingPage />;
}