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/menu.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/menu.tsx')
| -rw-r--r-- | apps/web/app/home/menu.tsx | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/apps/web/app/home/menu.tsx b/apps/web/app/home/menu.tsx new file mode 100644 index 00000000..1ab22543 --- /dev/null +++ b/apps/web/app/home/menu.tsx @@ -0,0 +1,50 @@ +import React from "react"; +import Image from "next/image"; +import Link from "next/link"; +import { MemoriesIcon, ExploreIcon, HistoryIcon } from "@repo/ui/src/icons"; + +function Menu() { + const menuItems = [ + { + icon: MemoriesIcon, + text: "Memories", + url: "/", + }, + { + icon: ExploreIcon, + text: "Explore", + url: "/explore", + }, + { + icon: HistoryIcon, + text: "History", + url: "/history", + }, + ]; + + return ( + <div className="absolute h-full p-4 flex items-center top-0 left-0"> + <div className=""> + <div className="hover:rounded-2x group inline-flex w-14 text-foreground-menu text-[15px] font-medium flex-col items-start gap-6 overflow-hidden rounded-[28px] bg-secondary px-3 py-4 duration-200 hover:w-40"> + {menuItems.map((item) => ( + <div + key={item.url} + className="flex w-full cursor-pointer items-center gap-3 px-1 duration-200 hover:scale-105 hover:brightness-150 active:scale-90" + > + <Image + src={item.icon} + alt={`${item.text} icon`} + className="hover:brightness-125 duration-200" + /> + <p className="opacity-0 duration-200 group-hover:opacity-100"> + {item.text} + </p> + </div> + ))} + </div> + </div> + </div> + ); +} + +export default Menu; |