From 2c03ee104d06e1be712356efa06a8b3cbe2d09dc Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Tue, 19 Mar 2024 19:24:29 +0000 Subject: refactor: Move landing page to its own app to deploy it separately --- apps/web/app/page.tsx | 6 +- apps/web/components/landing/LandingPage.tsx | 91 ----------------------------- 2 files changed, 2 insertions(+), 95 deletions(-) delete mode 100644 apps/web/components/landing/LandingPage.tsx (limited to 'apps/web') 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 ; } diff --git a/apps/web/components/landing/LandingPage.tsx b/apps/web/components/landing/LandingPage.tsx deleted file mode 100644 index cf8e8abd..00000000 --- a/apps/web/components/landing/LandingPage.tsx +++ /dev/null @@ -1,91 +0,0 @@ -import Image from "next/image"; -import Link from "next/link"; -import { cn } from "@/lib/utils"; -import screenshot from "@/public/landing/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() { - return ( -
-
- -

Hoarder

-
-
- - Docs - - - Github - -
-
- ); -} - -function Hero() { - return ( -
-
-

- The{" "} - - Bookmark Everything - {" "} - App -

-
-

- Quickly save links, notes, and images and hoarder will automatically - tag them for you using AI for faster retrieval. Built for the data - hoarders out there! -

-

- Open source, and self hostable! -

-
-
-
- - - Github - -
-
- ); -} - -function Screenshots() { - return ( -
- screenshot -
- ); -} - -export default function LandingPage() { - return ( -
-
- - -
- -
- ); -} -- cgit v1.2.3-70-g09d2