diff --git a/src/components/Banner.tsx b/src/components/Banner.tsx index 05d556a..e59ed0a 100644 --- a/src/components/Banner.tsx +++ b/src/components/Banner.tsx @@ -45,7 +45,7 @@ const Banner = () => { }, []); return ( -
+
{ )} > - + {image.description} ))} diff --git a/src/components/CenteredLayout.tsx b/src/components/CenteredLayout.tsx index c454d3b..1d8bfac 100644 --- a/src/components/CenteredLayout.tsx +++ b/src/components/CenteredLayout.tsx @@ -6,7 +6,9 @@ interface CenteredLayoutProps { const CenteredLayout = ({ children }: CenteredLayoutProps) => (
-
{children}
+
+ {children} +
); diff --git a/src/components/ChatActionBar.tsx b/src/components/ChatActionBar.tsx index 627128e..3247782 100644 --- a/src/components/ChatActionBar.tsx +++ b/src/components/ChatActionBar.tsx @@ -1,7 +1,6 @@ import { ChangeEvent, KeyboardEvent } from "react"; import ToggleChatTipsButton from "@/components/button/ToggleChatTipsButton"; import MessageInput from "@/components/input/MessageInput"; -import TipsMenuContainer from "@/components/tips/TipsMenuContainer"; interface ChatActionProps { isOpen: boolean; @@ -21,7 +20,7 @@ const ChatActionBar = ({ onSend }: ChatActionProps) => { return ( -
+
-
+ ); }; diff --git a/src/components/button/ChatStartButton.tsx b/src/components/button/ChatStartButton.tsx index a907dd6..283d97c 100644 --- a/src/components/button/ChatStartButton.tsx +++ b/src/components/button/ChatStartButton.tsx @@ -39,7 +39,7 @@ const ChatStartButton = ({ mode, mbti }: ChatStartButtonProps) => { }; return ( diff --git a/src/components/header/Header.tsx b/src/components/header/Header.tsx index 4f7239c..a0e342a 100644 --- a/src/components/header/Header.tsx +++ b/src/components/header/Header.tsx @@ -1,4 +1,3 @@ -import { ReactNode } from "react"; import { useLocation } from "react-router-dom"; import SubHeader from "@/components/header/SubHeader"; import MainHeader from "@/components/header/MainHeader"; @@ -8,14 +7,12 @@ type HeaderProps = { title?: string; showPreviousIcon?: boolean; showShareIcon?: boolean; - children?: ReactNode; }; const Header = ({ title = "", showPreviousIcon = true, - showShareIcon = true, - children + showShareIcon = true }: HeaderProps) => { const { pathname } = useLocation(); const { isLoggedIn } = useAuthStore(); @@ -23,7 +20,7 @@ const Header = ({ return ( <> -
+
{isHomepage ? ( ) : ( @@ -33,9 +30,7 @@ const Header = ({ showShareIcon={showShareIcon} /> )} -
- -
{children}
+ ); }; diff --git a/src/components/header/MainHeader.tsx b/src/components/header/MainHeader.tsx index b5fa4e2..18b19a9 100644 --- a/src/components/header/MainHeader.tsx +++ b/src/components/header/MainHeader.tsx @@ -11,7 +11,7 @@ const MainHeader = ({ isLoggedIn }: { isLoggedIn: boolean }) => { }; return ( -
+
{ onClick={handleNavigate} /> )} -
+
); }; diff --git a/src/components/header/SubHeader.tsx b/src/components/header/SubHeader.tsx index 325bc49..466fa95 100644 --- a/src/components/header/SubHeader.tsx +++ b/src/components/header/SubHeader.tsx @@ -56,7 +56,7 @@ const SubHeader = ({ return ( <> -
+
{showPreviousIcon && ( )} -
+
{isLeaveChatModalOpen && ( { return ( - <> +
- +
); }; diff --git a/src/index.css b/src/index.css index bb41aa8..8b5d98b 100644 --- a/src/index.css +++ b/src/index.css @@ -29,9 +29,10 @@ body { } main { + margin-top: 54px; background-color: white; font-size: 14px; - width: 100vh; + width: 100vw; max-width: 500px; @media screen and (min-width: 500px) { diff --git a/src/pages/Chat.tsx b/src/pages/Chat.tsx index bae0e00..1f4b026 100644 --- a/src/pages/Chat.tsx +++ b/src/pages/Chat.tsx @@ -143,10 +143,9 @@ const Chat = () => { -
-
- -
+
+
+
{/* 메시지 리스트 */} {messages.map((msg, idx) => ( @@ -173,7 +172,7 @@ const Chat = () => { ))}
-
+
{ /> {isOpen && } -
+ ); }; diff --git a/src/pages/ChatRecommend.tsx b/src/pages/ChatRecommend.tsx index 523a0b4..71447b0 100644 --- a/src/pages/ChatRecommend.tsx +++ b/src/pages/ChatRecommend.tsx @@ -26,22 +26,20 @@ const ChatRecommend = () => { -
-
+
+ mbti 이미지 -
- mbti 이미지 -

{title}

- {description} -
-
+

{title}

+ {description} + ); }; diff --git a/src/pages/ChatTemperature.tsx b/src/pages/ChatTemperature.tsx index 14aa2d3..0aa79d1 100644 --- a/src/pages/ChatTemperature.tsx +++ b/src/pages/ChatTemperature.tsx @@ -39,32 +39,26 @@ const ChatTemperature = () => { -
-
+
+ mbti 온도 이미지 -
- mbti 온도 이미지 -

- 방금까지 나눈 대화로 온도를 측정했어요! -

- {temperature ? ( - - 현재까지 나눈 대화의 온도는 {temperature}도에요 - - ) : ( - - ...대화의 온도를 불러오는 중 - - )} -
-
+

+ 방금까지 나눈 대화로 온도를 측정했어요! +

+ {temperature ? ( + + 현재까지 나눈 대화의 온도는 {temperature}도에요 + + ) : ( + + ...대화의 온도를 불러오는 중 + + )} + ); }; diff --git a/src/pages/ChatTips.tsx b/src/pages/ChatTips.tsx index b18352a..5a87e14 100644 --- a/src/pages/ChatTips.tsx +++ b/src/pages/ChatTips.tsx @@ -26,22 +26,16 @@ const ChatTips = () => { -
-
+
+ mbti 이미지 -
- mbti 이미지 -

{title}

- {description} -
-
+

{title}

+ {description} + ); }; diff --git a/src/pages/Content.tsx b/src/pages/Content.tsx index 515cf2a..9c4d770 100644 --- a/src/pages/Content.tsx +++ b/src/pages/Content.tsx @@ -71,7 +71,7 @@ const Content = () => {
-
+
{/* 상단 배너 */}
@@ -104,7 +104,7 @@ const Content = () => { > 대화 시작하기 -
+
); diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index 2b68975..069ff10 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -47,7 +47,7 @@ const Home = () => {
-
+
@@ -56,7 +56,7 @@ const Home = () => {
-
+
diff --git a/src/pages/Login.tsx b/src/pages/Login.tsx index 96a28cc..0a0b3fd 100644 --- a/src/pages/Login.tsx +++ b/src/pages/Login.tsx @@ -34,7 +34,7 @@ const Login = () => { -
+
로그인 페이지 이미지 { /> -
-
-
- - {content.number}/12 - -

- {content.question} -

- mbti 테스트 과정 이미지 -
- -
-
-
+
+
+ + {content.number}/12 + +

+ {content.question} +

+ mbti 테스트 과정 이미지 +
+ +
+
); } else return ; diff --git a/src/pages/MyInfo.tsx b/src/pages/MyInfo.tsx index 9805ba2..2bd05f9 100644 --- a/src/pages/MyInfo.tsx +++ b/src/pages/MyInfo.tsx @@ -75,39 +75,41 @@ const MyInfo = () => {
-
    - {menuItems.map((item, index) => ( -
  • - - {item.label} - - arrow -
  • - ))} -
+
+
    + {menuItems.map((item, index) => ( +
  • + + {item.label} + + arrow +
  • + ))} +
- {modalType && (modalType === "logout" || modalType === "withdraw") && ( - - )} + {modalType && (modalType === "logout" || modalType === "withdraw") && ( + + )} - {modalType && (modalType === "terms" || modalType === "privacy") && ( - - )} + {modalType && (modalType === "terms" || modalType === "privacy") && ( + + )} +
); }; diff --git a/src/pages/SelectInfo.tsx b/src/pages/SelectInfo.tsx index 8b7ed35..a756669 100644 --- a/src/pages/SelectInfo.tsx +++ b/src/pages/SelectInfo.tsx @@ -250,9 +250,9 @@ const SelectInfo = () => { /> -
-
+
+
{/* MBTI 선택 */}
@@ -397,7 +397,7 @@ const SelectInfo = () => { {confirmButtonText}
-
+
); };