diff --git a/apps/web/app/onboarding/setup/chat-sidebar.tsx b/apps/web/app/onboarding/setup/chat-sidebar.tsx index 774ecdf1..cab3d7ef 100644 --- a/apps/web/app/onboarding/setup/chat-sidebar.tsx +++ b/apps/web/app/onboarding/setup/chat-sidebar.tsx @@ -1,7 +1,7 @@ "use client" import { useState } from "react" -import { motion } from "motion/react" +import { motion, AnimatePresence } from "motion/react" import NovaOrb from "@/components/nova/nova-orb" import { Button } from "@ui/components/button" import { PanelRightCloseIcon, SendIcon } from "lucide-react" @@ -26,92 +26,90 @@ export function ChatSidebar() { setIsChatOpen(!isChatOpen) } - if (!isChatOpen) { - return ( - - + {!isChatOpen ? ( + - Chat with Nova - - - ) - } - - return ( - - - - Close chat - -
-
- - - - Waiting for your input - -
-
- -
-
{ - e.preventDefault() - if (message.trim()) { - handleSend() - } - }} + Chat with Nova + + + ) : ( + - setMessage(e.target.value)} - onKeyDown={handleKeyDown} - placeholder="Chat with your Supermemory" - className="w-full text-foreground placeholder:text-foreground/20 rounded-sm outline-none resize-none text-base leading-relaxed bg-transparent px-2 h-10" - /> -
- + + + Close chat + +
+
+ + + + Waiting for your input + +
- -
-
+ +
+
{ + e.preventDefault() + if (message.trim()) { + handleSend() + } + }} + > + setMessage(e.target.value)} + onKeyDown={handleKeyDown} + placeholder="Chat with your Supermemory" + className="w-full text-foreground placeholder:text-foreground/20 rounded-sm outline-none resize-none text-base leading-relaxed bg-transparent px-2 h-10" + /> +
+ +
+
+
+ + )} + ) } diff --git a/apps/web/app/onboarding/setup/page.tsx b/apps/web/app/onboarding/setup/page.tsx index ce913585..0626122a 100644 --- a/apps/web/app/onboarding/setup/page.tsx +++ b/apps/web/app/onboarding/setup/page.tsx @@ -7,7 +7,7 @@ import { IntegrationsStep } from "./integrations-step" import { ChatSidebar } from "./chat-sidebar" import { useState } from "react" -function AnimatedGradientBackground() { +export function AnimatedGradientBackground() { return (
setName((e.target as HTMLInputElement).value)} style={{ diff --git a/apps/web/app/onboarding/welcome/page.tsx b/apps/web/app/onboarding/welcome/page.tsx index f3d8c7d0..25f35b80 100644 --- a/apps/web/app/onboarding/welcome/page.tsx +++ b/apps/web/app/onboarding/welcome/page.tsx @@ -12,6 +12,7 @@ import { FeaturesStep } from "./features-step" import { Logo } from "@ui/assets/Logo" import NovaOrb from "@/components/nova/nova-orb" import { cn } from "@lib/utils" +import { AnimatedGradientBackground } from "../setup/page" type OnboardStep = "input" | "greeting" | "welcome" | "username" | "features" @@ -80,6 +81,7 @@ export default function OnboardPage() { showUserSupermemory={currentStep === "features"} name={name} /> +
{currentStep === "input" && ( )} - {currentStep === "greeting" && } + {currentStep === "greeting" && ( + + )} - {currentStep === "welcome" && } + {currentStep === "welcome" && } {currentStep === "username" && ( setCurrentStep(step as OnboardStep)} /> )} - {currentStep === "features" && } + {currentStep === "features" && }
diff --git a/apps/web/app/onboarding/welcome/welcome-step.tsx b/apps/web/app/onboarding/welcome/welcome-step.tsx index 5df84e70..a4ef8ed7 100644 --- a/apps/web/app/onboarding/welcome/welcome-step.tsx +++ b/apps/web/app/onboarding/welcome/welcome-step.tsx @@ -3,7 +3,6 @@ import { motion } from "motion/react" export function WelcomeStep() { return ( supermemory Logo );