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/home/header.tsx | |
| 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/home/header.tsx')
| -rw-r--r-- | apps/web/app/home/header.tsx | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/apps/web/app/home/header.tsx b/apps/web/app/home/header.tsx new file mode 100644 index 00000000..0f84cbe2 --- /dev/null +++ b/apps/web/app/home/header.tsx @@ -0,0 +1,34 @@ +import React from "react"; +import Image from "next/image"; +import Link from "next/link"; +import Logo from "../../public/logo.svg"; +import { AddIcon, ChatIcon } from "@repo/ui/src/icons"; + +function Header() { + return ( + <div> + <div className="flex items-center justify-between relative z-10"> + <Link href="/"> + <Image + src={Logo} + alt="SuperMemory logo" + className="hover:brightness-125 duration-200" + /> + </Link> + + <div className="absolute flex justify-center w-full -z-10"> + <button className="bg-secondary all-center h-11 rounded-full p-2 min-w-14"> + <Image src={AddIcon} alt="Add icon" /> + </button> + </div> + + <button className="flex shrink-0 duration-200 items-center gap-2 px-2 py-1.5 rounded-xl hover:bg-secondary"> + <Image src={ChatIcon} alt="Chat icon" /> + Start new chat + </button> + </div> + </div> + ); +} + +export default Header; |