From efbec1419ef4920816fb94330c38880b564ca1b1 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Tue, 19 Mar 2024 17:45:33 +0000 Subject: feature: A new landing page --- apps/web/app/page.tsx | 7 ++- apps/web/components/landing/LandingPage.tsx | 91 ++++++++++++++++++++++++++++ apps/web/public/landing/app-store-badge.png | Bin 0 -> 16782 bytes apps/web/public/landing/extension-badge.png | Bin 0 -> 9171 bytes apps/web/public/landing/screenshot.png | Bin 0 -> 3196208 bytes 5 files changed, 95 insertions(+), 3 deletions(-) create mode 100644 apps/web/components/landing/LandingPage.tsx create mode 100644 apps/web/public/landing/app-store-badge.png create mode 100644 apps/web/public/landing/extension-badge.png create mode 100644 apps/web/public/landing/screenshot.png (limited to 'apps') 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 ; } diff --git a/apps/web/components/landing/LandingPage.tsx b/apps/web/components/landing/LandingPage.tsx new file mode 100644 index 00000000..cf8e8abd --- /dev/null +++ b/apps/web/components/landing/LandingPage.tsx @@ -0,0 +1,91 @@ +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 ( +
+
+ + +
+ +
+ ); +} diff --git a/apps/web/public/landing/app-store-badge.png b/apps/web/public/landing/app-store-badge.png new file mode 100644 index 00000000..059e2133 Binary files /dev/null and b/apps/web/public/landing/app-store-badge.png differ diff --git a/apps/web/public/landing/extension-badge.png b/apps/web/public/landing/extension-badge.png new file mode 100644 index 00000000..224c12bf Binary files /dev/null and b/apps/web/public/landing/extension-badge.png differ diff --git a/apps/web/public/landing/screenshot.png b/apps/web/public/landing/screenshot.png new file mode 100644 index 00000000..d4403659 Binary files /dev/null and b/apps/web/public/landing/screenshot.png differ -- cgit v1.2.3-70-g09d2