11"use client" ;
22
33import { Button } from "@/components/ui/button" ;
4- import { Separator } from "@/components/ui/separator" ;
54import { MessageCircle , X } from "lucide-react" ;
65import Image from "next/image" ;
76import { useEffect , useRef , useState } from "react" ;
@@ -207,7 +206,7 @@ export default function LandingAIAgent() {
207206 } ;
208207
209208 return (
210- < div className = "fixed right-4 bottom-4 z-50 flex flex-col items-end gap-3" >
209+ < div className = "fixed right-4 bottom-16 z-50 flex flex-col items-end gap-3" >
211210 { /* Chat window with animation */ }
212211 < AnimatePresence >
213212 { ! closed && (
@@ -216,8 +215,7 @@ export default function LandingAIAgent() {
216215 animate = { { opacity : 1 , y : 0 } }
217216 exit = { { opacity : 0 , y : 50 } }
218217 transition = { { duration : 0.3 , ease : "easeOut" } }
219- className = "w-[90vw] overflow-hidden rounded-md bg-white shadow-xl sm:w-[90vw] lg:max-w-md" >
220- { /* Header */ }
218+ className = "w-[90vw] overflow-hidden rounded-md bg-white shadow-xl lg:max-w-md" >
221219 < div className = "bg-[#101330] px-4 py-5 text-white" >
222220 < p className = "text-lg font-bold" > Hi there! 👋</ p >
223221 < p className = "text-sm" > Start a chat. We are here to help 24/7.</ p >
@@ -251,8 +249,6 @@ export default function LandingAIAgent() {
251249 ) ) }
252250 </ div >
253251
254- { /* <Separator /> */ }
255-
256252 { /* Input */ }
257253 < div className = "bg-[#f2f4f8] p-3 md:bg-white" >
258254 { messages . length === 0 && (
@@ -332,16 +328,16 @@ export default function LandingAIAgent() {
332328 < Button
333329 variant = "default"
334330 onClick = { ( ) => setClosed ( ( prev ) => ! prev ) }
335- className = "!m-0 flex h-12 items-center justify-center rounded-full bg-blue-500 px-4 font-semibold text-white shadow-md hover:bg-blue-500/80" >
331+ className = "md:xp-6 !m-0 flex h-14 w-14 items-center justify-center rounded-full bg-blue-500 font-semibold text-white shadow-md hover:bg-blue-500/80 md:h-12 md:w-auto " >
336332 { closed ? (
337333 < >
338334 < span className = "hidden lg:block" > Ask HyperBot</ span >
339335 < span className = "block lg:hidden" >
340- < MessageCircle className = "h-6 w-6" />
336+ < MessageCircle className = "h-10 w-10 md:h-6 md: w-6" />
341337 </ span >
342338 </ >
343339 ) : (
344- < X className = "h-6 w-6" />
340+ < X className = "h-10 w-10 md:h-6 md: w-6" />
345341 ) }
346342 </ Button >
347343 </ div >
0 commit comments