diff options
| author | Dhravya <[email protected]> | 2024-05-25 23:02:47 -0500 |
|---|---|---|
| committer | Dhravya <[email protected]> | 2024-05-25 23:02:47 -0500 |
| commit | bbe83ab76f2882ec78c6f2b7db77cedf62b50036 (patch) | |
| tree | 9a1c0ebbefde38d9186b1c3d5cbeeb20085b8717 /apps/web/app/(landing) | |
| parent | re-added license, readme, etc. (diff) | |
| download | supermemory-v2-refactor.tar.xz supermemory-v2-refactor.zip | |
added kartik's codev2-refactor
Diffstat (limited to 'apps/web/app/(landing)')
| -rw-r--r-- | apps/web/app/(landing)/Navbar.tsx | 7 | ||||
| -rw-r--r-- | apps/web/app/(landing)/page.tsx | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/apps/web/app/(landing)/Navbar.tsx b/apps/web/app/(landing)/Navbar.tsx index 7d0e3225..6103af38 100644 --- a/apps/web/app/(landing)/Navbar.tsx +++ b/apps/web/app/(landing)/Navbar.tsx @@ -1,3 +1,4 @@ +import { ArrowRightIcon } from "@radix-ui/react-icons"; import Logo from "../../public/logo.svg"; import { Github } from "@repo/ui/src/components/icons"; import Image from "next/image"; @@ -24,10 +25,10 @@ function Navbar() { </div> <Link href="https://git.new/memory" - className="m-2 flex items-center gap-3 rounded-xl bg-white/20 px-4 text-center text-white" + className="m-2 flex items-center gap-3 rounded-xl bg-white/20 px-4 text-center text-white group" > - <Github className="h-4 w-4" /> - Open source + Login + <ArrowRightIcon className="h-4 w-4 group-hover:translate-x-1 duration-100 ease-in-out" /> </Link> </div> </nav> diff --git a/apps/web/app/(landing)/page.tsx b/apps/web/app/(landing)/page.tsx index 36f0ce8d..e3201912 100644 --- a/apps/web/app/(landing)/page.tsx +++ b/apps/web/app/(landing)/page.tsx @@ -6,6 +6,7 @@ import { Toaster } from "@repo/ui/src/shadcn/toaster"; import Features from "./Features"; import Footer from "./footer"; import { auth } from "../helpers/server/auth"; +import { redirect } from "next/navigation"; export const runtime = "edge"; @@ -14,8 +15,12 @@ export default async function Home() { console.log(user); + if (user) { + // await redirect("/home") + } + return ( - <main className="dark flex min-h-screen flex-col items-center overflow-x-hidden px-2 md:px-0"> + <main className="flex min-h-screen flex-col items-center overflow-x-hidden px-2 md:px-0"> <Navbar /> {/* Background gradients */} |