From d06dd445d81592af11382314f044ca44a70d3d7d Mon Sep 17 00:00:00 2001 From: chaem03 Date: Sun, 4 Aug 2024 00:03:00 +0900 Subject: [PATCH 1/2] =?UTF-8?q?Design:=20=EB=A7=88=EC=9D=B4=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80=20=EB=A7=88=EC=A7=84=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/MyPage/styled.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/MyPage/styled.js b/src/pages/MyPage/styled.js index 78fc3549..b7e1bfa1 100644 --- a/src/pages/MyPage/styled.js +++ b/src/pages/MyPage/styled.js @@ -6,12 +6,12 @@ export const Layout = styled.div` flex-direction: column; justify-content: space-around; gap: 5px; - margin-bottom: 20rem; + margin-bottom: 30rem; @media (min-height: 720px) { justify-content: flex-start; gap: 40px; height: 640px; - margin-bottom: 20rem; + margin-bottom: 10rem; } .MyStar { From 2e28ede5ef1ee77f3564e54997ef412a87f68db1 Mon Sep 17 00:00:00 2001 From: chaem03 Date: Sun, 4 Aug 2024 00:27:09 +0900 Subject: [PATCH 2/2] =?UTF-8?q?Fix:=20=EB=A7=88=EC=9D=B4=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20patch=20=EC=97=90=EB=9F=AC=ED=94=BD=EC=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/mypage.js | 4 +- src/components/PrivacyContent/styled.js | 11 +- .../RoutineChange/RoutineChange.jsx | 5 +- src/components/RoutineChange/styled.js | 11 +- src/pages/MyPage/MyPage.jsx | 126 +++++++++--------- 5 files changed, 78 insertions(+), 79 deletions(-) diff --git a/src/apis/mypage.js b/src/apis/mypage.js index 84d3011b..088bfa1a 100644 --- a/src/apis/mypage.js +++ b/src/apis/mypage.js @@ -10,10 +10,10 @@ export const getMyPContent = async () => { } }; -export const patchroutineCategory = async (prefer_routine) => { +export const patchroutineCategory = async (preferred_routine_categories) => { try { const response = await instance.patch("/api/accounts/custom-routines/", { - prefer_routine, + preferred_routine_categories, }); if (response.status == 200) { return true; diff --git a/src/components/PrivacyContent/styled.js b/src/components/PrivacyContent/styled.js index 5d275443..d67a972b 100644 --- a/src/components/PrivacyContent/styled.js +++ b/src/components/PrivacyContent/styled.js @@ -1,14 +1,15 @@ import styled from "styled-components"; -import BACKGROUND from "../../assets/background.svg"; export const Wrapper = styled.div` display: flex; flex-direction: column; align-items: center; + align-self: center; justify-content: flex-start; margin-top: 1rem; - background-image: url(${BACKGROUND}); - + padding: 3rem; + background-color: #78a1b5; + margin-bottom: 30rem; width: 100%; .backBtn { @@ -27,10 +28,10 @@ export const Wrapper = styled.div` .title { color: #fff; - align-self: flex-start; + align-self: center; padding: 1rem; font-family: "AppleSDGothicNeoM"; - font-size: 16px; + font-size: 20px; font-style: normal; font-weight: 400; line-height: normal; diff --git a/src/components/RoutineChange/RoutineChange.jsx b/src/components/RoutineChange/RoutineChange.jsx index b9d2814d..09d6607c 100644 --- a/src/components/RoutineChange/RoutineChange.jsx +++ b/src/components/RoutineChange/RoutineChange.jsx @@ -48,6 +48,7 @@ const ChangeRoutine = () => { selectedCategories.push(i + 1); } }); + console.log("patch 값:", selectedCategories); const isSuccess = await patchroutineCategory(selectedCategories); if (isSuccess) { navigate("/mypage"); @@ -59,9 +60,7 @@ const ChangeRoutine = () => { return ( - - {TITLE[0]} - + {TITLE[0]} {ROUTINE_CATEGORY.map((category, index) => ( { const handleBackBtnClick = () => setIsPrivacyVisible(false); return ( - + <> {isPrivacyVisible ? ( { ) : ( <> -
- 마이페이지 -
- - - - -
{myData.nickname}
-
-
-
- -
즐겨찾는 스타
- {myData.celebs.length === 0 ? ( -
챌린지를 시작해보세요!
- ) : ( - myData.celebs.map((item) => ( - - )) + +
+ 마이페이지 +
+ + + + +
{myData.nickname}
+
+
+
+ +
즐겨찾는 스타
+ {myData.celebs.length === 0 ? ( +
챌린지를 시작해보세요!
+ ) : ( + myData.celebs.map((item) => ( + + )) + )} +
+ +
개인정보
+ + + + + +
+ {isLogoutVisible && ( + + + )} -
- -
개인정보
- - - - - -
- {isLogoutVisible && ( - - - - )} - {isSubscribeVisible && ( - - 오픈예정입니다. - - )} + {isSubscribeVisible && ( + + 서비스 준비중입니다. + + )} +
)} - + ); };