From 9a063555e1320a1861114d35f307bba5a124f02e Mon Sep 17 00:00:00 2001 From: yeonddori Date: Sat, 20 Jul 2024 19:31:28 +0900 Subject: [PATCH 1/3] =?UTF-8?q?design:=20=EC=B1=97=EB=B4=87=20=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80=20=EB=94=94=EC=9E=90=EC=9D=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #88 --- src/app/chatbot/page.tsx | 95 ++++++++++++----------------- src/components/ChatInput.tsx | 5 +- src/components/ChatbotContainer.tsx | 3 +- src/mocks/chatIntro.ts | 3 +- 4 files changed, 44 insertions(+), 62 deletions(-) diff --git a/src/app/chatbot/page.tsx b/src/app/chatbot/page.tsx index a0e8fa7..5fce5b3 100644 --- a/src/app/chatbot/page.tsx +++ b/src/app/chatbot/page.tsx @@ -69,55 +69,54 @@ const Page = () => { - - + + AI 산지니에 대해서 궁금해? - - - {chatbotIntro} - - + + {chatbotIntro} + + + { display: 'flex', flexDirection: 'column', alignItems: 'center', - justifyContent: 'center', - height: 'calc(100vh - 100px)', + px: '1rem', }} > - - + + AI 산지니야 반가워~ { alignItems: 'center', justifyContent: 'flex-start', width: '100%', - height: '100%', + minHeight: '70%', overflowY: 'auto', - padding: '0 2rem', }} > - ); diff --git a/src/components/ChatInput.tsx b/src/components/ChatInput.tsx index b6cf327..6155962 100644 --- a/src/components/ChatInput.tsx +++ b/src/components/ChatInput.tsx @@ -34,9 +34,8 @@ const ChatInput = ({ onSendMessage }: ChatInputProps) => { sx={{ display: 'flex', width: '100%', - maxWidth: '600px', + maxWidth: '80%', borderRadius: '20px', - boxShadow: '0px 4px 12px rgba(0, 0, 0, 0.1)', }} > { disabled={userMessage.trim() === ''} placeholder="AI 산지니에게 대화를 요청해보세요!" sx={{ + boxShadow: '0px 4px 12px rgba(0, 0, 0, 0.1)', marginRight: '1rem', backgroundColor: 'rgba(255, 255, 255, 0.8)', borderRadius: '20px', @@ -61,6 +61,7 @@ const ChatInput = ({ onSendMessage }: ChatInputProps) => {