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/queryinput.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/queryinput.tsx')
| -rw-r--r-- | apps/web/app/home/queryinput.tsx | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/apps/web/app/home/queryinput.tsx b/apps/web/app/home/queryinput.tsx new file mode 100644 index 00000000..41b2934f --- /dev/null +++ b/apps/web/app/home/queryinput.tsx @@ -0,0 +1,43 @@ +import { ArrowRightIcon, MemoriesIcon, SelectIcon } from "@repo/ui/src/icons"; +import Image from "next/image"; +import React from "react"; +import Divider from "@repo/ui/src/shadcn/divider"; + +function QueryInput() { + return ( + <div className="bg-secondary h- [68px] rounded-[24px] w-full mt-40"> + {/* input and action button */} + <div className="flex gap-4 p-3"> + <textarea + name="query-input" + cols={30} + rows={7} + className="bg-transparent pt-2.5 text-base text-[#989EA4] focus:text-foreground duration-200 tracking-[3%] outline-none resize-none w-full p-1" + placeholder="Ask your second brain..." + ></textarea> + + <button className="h-12 w-12 rounded-[14px] bg-[#21303D] all-center shrink-0 hover:brightness-125 duration-200 outline-none focus:outline focus:outline-primary active:scale-90"> + <Image src={ArrowRightIcon} alt="Right arrow icon" /> + </button> + </div> + + <Divider /> + + {/* suggestions */} + <div className="flex items-center gap-6 p-2"> + <button className="bg-[#2B3237] h-9 p-2 px-3 flex items-center gap-2 rounded-full"> + <Image src={MemoriesIcon} alt="Memories icon" className="w-5" /> + <span className="pr-3">Filters</span> + <Image src={SelectIcon} alt="Select icon" className="w-4" /> + </button> + <div className="flex gap-6 brightness-75"> + <p>Nvidia</p> + <p>Open-source</p> + <p>Artificial Intelligence</p> + </div> + </div> + </div> + ); +} + +export default QueryInput; |