diff options
| author | MohamedBassem <me@mbassem.com> | 2024-03-19 19:24:29 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-03-19 19:24:29 +0000 |
| commit | 2c03ee104d06e1be712356efa06a8b3cbe2d09dc (patch) | |
| tree | e11fee36ae95dfc9255e42054b55b048973a2448 /apps/web | |
| parent | eed65a424630be5e7d673c6ac3f19b72b2d79dc7 (diff) | |
| download | karakeep-2c03ee104d06e1be712356efa06a8b3cbe2d09dc.tar.zst | |
refactor: Move landing page to its own app to deploy it separately
Diffstat (limited to '')
| -rw-r--r-- | apps/landing/app/page.tsx (renamed from apps/web/components/landing/LandingPage.tsx) | 5 | ||||
| -rw-r--r-- | apps/web/app/page.tsx | 6 |
2 files changed, 4 insertions, 7 deletions
diff --git a/apps/web/components/landing/LandingPage.tsx b/apps/landing/app/page.tsx index cf8e8abd..d87962bb 100644 --- a/apps/web/components/landing/LandingPage.tsx +++ b/apps/landing/app/page.tsx @@ -1,11 +1,10 @@ import Image from "next/image"; import Link from "next/link"; +import { Button, buttonVariants } from "@/components/ui/button"; import { cn } from "@/lib/utils"; -import screenshot from "@/public/landing/screenshot.png"; +import screenshot from "@/public/screenshot.png"; import { ExternalLink, Github, PackageOpen } from "lucide-react"; -import { Button, buttonVariants } from "../ui/button"; - const GITHUB_LINK = "https://github.com/MohamedBassem/hoarder-app"; function NavBar() { diff --git a/apps/web/app/page.tsx b/apps/web/app/page.tsx index d86c91be..c5d57e8a 100644 --- a/apps/web/app/page.tsx +++ b/apps/web/app/page.tsx @@ -1,13 +1,11 @@ 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("/dashboard/bookmarks"); + } else { + redirect("/signin"); } - - return <LandingPage />; } |
