From 83f3cd1d3ce3dfcc9d8eb28edeb4bc4efcc9dc6d Mon Sep 17 00:00:00 2001 From: lKinox <97477925+lKinox@users.noreply.github.com> Date: Mon, 13 Oct 2025 21:18:16 -0400 Subject: [PATCH] feat: New branch and hero section changes --- src/components/chatbot/chatbot.tsx | 8 ++++++-- src/components/layout/HeroChat.module.css | 12 ++++++++++++ src/components/layout/HeroChat.tsx | 2 +- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/components/chatbot/chatbot.tsx b/src/components/chatbot/chatbot.tsx index f433a04..8e3f233 100644 --- a/src/components/chatbot/chatbot.tsx +++ b/src/components/chatbot/chatbot.tsx @@ -218,9 +218,13 @@ const ChatWidget = () => { const [isCoding, setIsCoding] = useState(false); const { contextMessage } = useContext(ChatContext); + const screenWidth = typeof window !== "undefined" ? window.innerWidth : 1024; + useEffect(() => { - setOpen(true); - setUserMessage(contextMessage); + if (screenWidth > 640) { + setOpen(true); + setUserMessage(contextMessage); + } }, [contextMessage]); const SUGGESTED_MESSAGE = "I need help"; diff --git a/src/components/layout/HeroChat.module.css b/src/components/layout/HeroChat.module.css index e4ec4fb..ea30308 100644 --- a/src/components/layout/HeroChat.module.css +++ b/src/components/layout/HeroChat.module.css @@ -57,6 +57,18 @@ } } +@media screen and (max-width: 769px) { + .prompts { + & button { + font-size: 12px; + } + } + + .textarea { + font-size: 14px; + } +} + .send { width: 36px; height: 36px; diff --git a/src/components/layout/HeroChat.tsx b/src/components/layout/HeroChat.tsx index ad94e92..e4c8d2a 100644 --- a/src/components/layout/HeroChat.tsx +++ b/src/components/layout/HeroChat.tsx @@ -35,7 +35,7 @@ export default function HeroChat() {