From 39ba65431d51964355d4075ad9cdbb50deeb8d5f Mon Sep 17 00:00:00 2001 From: Kartik Date: Sun, 16 Jun 2024 13:14:28 +0530 Subject: improve: /home page --- apps/web/app/(dash)/dynamicisland.tsx | 2 +- apps/web/app/(dash)/header.tsx | 27 +++++++++++++++++++-------- apps/web/app/(dash)/home/page.tsx | 2 +- apps/web/app/(dash)/home/queryinput.tsx | 3 ++- apps/web/app/(dash)/layout.tsx | 11 ++++++++--- apps/web/app/(dash)/menu.tsx | 4 ++-- 6 files changed, 33 insertions(+), 16 deletions(-) (limited to 'apps/web/app') diff --git a/apps/web/app/(dash)/dynamicisland.tsx b/apps/web/app/(dash)/dynamicisland.tsx index 31f76fda..c08f883a 100644 --- a/apps/web/app/(dash)/dynamicisland.tsx +++ b/apps/web/app/(dash)/dynamicisland.tsx @@ -38,7 +38,7 @@ export function DynamicIsland() { }); return ( -
+
-
- +
+ +
+ SuperMemory logo - +
+ {/* */} + +
-
+
); } diff --git a/apps/web/app/(dash)/home/page.tsx b/apps/web/app/(dash)/home/page.tsx index b4bafb38..c539673d 100644 --- a/apps/web/app/(dash)/home/page.tsx +++ b/apps/web/app/(dash)/home/page.tsx @@ -25,7 +25,7 @@ async function Page({ {/* all content goes here */} {/*
hi {firstTime ? 'first time' : ''}
*/} -
+
diff --git a/apps/web/app/(dash)/home/queryinput.tsx b/apps/web/app/(dash)/home/queryinput.tsx index d0c27b8d..fbd537e3 100644 --- a/apps/web/app/(dash)/home/queryinput.tsx +++ b/apps/web/app/(dash)/home/queryinput.tsx @@ -63,7 +63,7 @@ function QueryInput({ name="q" cols={30} rows={4} - className="bg-transparent pt-2.5 text-base text-[#989EA4] focus:text-foreground duration-200 tracking-[3%] outline-none resize-none w-full p-4" + className="bg-transparent pt-2.5 text-base placeholder:text-[#5D6165] text-[#9DA0A4] focus:text-white duration-200 tracking-[3%] outline-none resize-none w-full p-4" placeholder="Ask your second brain..." onKeyDown={(e) => { if (e.key === "Enter") { @@ -78,6 +78,7 @@ function QueryInput({ +
+ + {/* section content */} + {/* collection of memories */} +
+ {/* related memory */} + {Array.from({ length: 3 }).map((_, i) => ( +
+ +

Webpage

+

What is RAG? - Retrieval-Augmented Generation Explained - AWS

+
+ ))} +
+
+ + {/* summary */} +
+ {/* section header */} +
+

Summary

+ +
+ + {/* section content */} +
+

+ Retrieval-Augmented Generation is crucial because it combines the strengths of retrieval-based methods, ensuring relevance and accuracy, with generation-based models, enabling creativity and flexibility. By integrating retrieval mechanisms, it addresses data sparsity issues, improves content relevance, offers fine-tuned control over output, handles ambiguity, and allows for continual learning, making it highly adaptable and effective across various natural language processing tasks and domains. +

+ + {/* response actions */} +
+ {/* speak response */} + + {/* copy response */} + +
+
+ +
+ +
+ + + + + + ); } export default Page; -- cgit v1.2.3 From 62c4d88320fbcdf15c1e410874467d73af49632b Mon Sep 17 00:00:00 2001 From: Kartik Date: Mon, 17 Jun 2024 00:07:40 +0530 Subject: add: animated query input --- apps/web/app/(dash)/chat/page.tsx | 123 +++++++++++++++++++++----------------- apps/web/app/(dash)/header.tsx | 2 +- 2 files changed, 68 insertions(+), 57 deletions(-) (limited to 'apps/web/app') diff --git a/apps/web/app/(dash)/chat/page.tsx b/apps/web/app/(dash)/chat/page.tsx index f98c761f..12b1bd2a 100644 --- a/apps/web/app/(dash)/chat/page.tsx +++ b/apps/web/app/(dash)/chat/page.tsx @@ -1,6 +1,9 @@ import ChatWindow from "./chatWindow"; import { chatSearchParamsCache } from "../../helpers/lib/searchParams"; import { ChevronDownIcon, ClipboardIcon, SpeakerWaveIcon } from '@heroicons/react/24/outline' +import Image from "next/image"; +import { ArrowRightIcon } from "@repo/ui/icons"; +import QueryInput from "@repo/ui/components/QueryInput"; // @ts-expect-error await import("katex/dist/katex.min.css"); @@ -14,80 +17,88 @@ function Page({ console.log(spaces); return ( -
+
{/* */} -
+
{/* single q&A */} -
+ {Array.from({ length: 1 }).map((_, i) => ( - {/* header */} -
- {/* query */} -

Why is Retrieval-Augmented Generation important?

-
+
- {/* response */} -
- - {/* related memories */} -
- {/* section header */} -
-

Related memories

- -
+ {/* header */} +
+ {/* query */} +

Why is Retrieval-Augmented Generation important?

+
- {/* section content */} - {/* collection of memories */} -
- {/* related memory */} - {Array.from({ length: 3 }).map((_, i) => ( -
+ {/* response */} +
-

Webpage

-

What is RAG? - Retrieval-Augmented Generation Explained - AWS

-
- ))} -
-
+ {/* related memories */} +
+ {/* section header */} +
+

Related memories

+ +
- {/* summary */} -
- {/* section header */} -
-

Summary

- + {/* section content */} + {/* collection of memories */} +
+ {/* related memory */} + {Array.from({ length: 3 }).map((_, i) => ( +
+ +

Webpage

+

What is RAG? - Retrieval-Augmented Generation Explained - AWS

+
+ ))} +
- {/* section content */} -
-

- Retrieval-Augmented Generation is crucial because it combines the strengths of retrieval-based methods, ensuring relevance and accuracy, with generation-based models, enabling creativity and flexibility. By integrating retrieval mechanisms, it addresses data sparsity issues, improves content relevance, offers fine-tuned control over output, handles ambiguity, and allows for continual learning, making it highly adaptable and effective across various natural language processing tasks and domains. -

- - {/* response actions */} -
- {/* speak response */} - - {/* copy response */} -
+ + {/* section content */} +
+

+ Retrieval-Augmented Generation is crucial because it combines the strengths of retrieval-based methods, ensuring relevance and accuracy, with generation-based models, enabling creativity and flexibility. By integrating retrieval mechanisms, it addresses data sparsity issues, improves content relevance, offers fine-tuned control over output, handles ambiguity, and allows for continual learning, making it highly adaptable and effective across various natural language processing tasks and domains. +

+ + {/* response actions */} +
+ {/* speak response */} + + {/* copy response */} + +
+
+
+ ))} + +
-
+
+
diff --git a/apps/web/app/(dash)/header.tsx b/apps/web/app/(dash)/header.tsx index 4af5c569..040097fa 100644 --- a/apps/web/app/(dash)/header.tsx +++ b/apps/web/app/(dash)/header.tsx @@ -8,7 +8,7 @@ import DynamicIsland from "./dynamicisland"; function Header() { return ( -
+
-- cgit v1.2.3