From f1a6edd9c3a3f80d13a44dedd37cb7a2c96162c2 Mon Sep 17 00:00:00 2001 From: minbo Date: Sun, 1 Dec 2024 15:12:57 +0900 Subject: [PATCH 1/4] =?UTF-8?q?refactor:=20=ED=95=84=ED=84=B0=EB=A7=81=20?= =?UTF-8?q?=EC=98=81=EC=97=AD=20=EB=84=93=EC=9D=B4=20=EC=A0=9C=ED=95=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/Filter/Filter.module.scss | 26 +++++++++---------- .../components/helpMeLayout.module.scss | 17 ++++++------ .../helpMeLayout/components/helpMeLayout.tsx | 2 +- 3 files changed, 22 insertions(+), 23 deletions(-) diff --git a/src/components/common/Filter/Filter.module.scss b/src/components/common/Filter/Filter.module.scss index 849aaff..d36b343 100644 --- a/src/components/common/Filter/Filter.module.scss +++ b/src/components/common/Filter/Filter.module.scss @@ -1,10 +1,19 @@ .container { - display: flex; - flex-direction: column; - width: 75%; + @include flexSort(column, null, null, null); position: relative; top: 3rem; - z-index: 1; + max-width: 150rem; + text-align: center; + width: 100%; +} + +.prevArrow { + position: absolute; + top: 1rem; + width: 2.3rem; + height: 2.3rem; + transform: rotate(90deg); + cursor: pointer; } .sliderContainer { @@ -53,15 +62,6 @@ border-color: #97b8f9; } -.prevArrow { - position: absolute; - top: 1rem; - width: 2.3rem; - height: 2.3rem; - transform: rotate(90deg); - cursor: pointer; -} - .nextArrow { position: absolute; top: 1rem; diff --git a/src/components/page-layout/helpMeLayout/components/helpMeLayout.module.scss b/src/components/page-layout/helpMeLayout/components/helpMeLayout.module.scss index c307040..259edaa 100644 --- a/src/components/page-layout/helpMeLayout/components/helpMeLayout.module.scss +++ b/src/components/page-layout/helpMeLayout/components/helpMeLayout.module.scss @@ -3,17 +3,16 @@ padding: 5rem 10rem; } +.filterContainer { + width: 100%; + @include flexSort(column, null, center, null); +} + .title { color: black; @include nsnFont(2.8rem, 400, 4.2rem); } -.typeContainer { - text-align: center; - width: 100%; - @include flexSort(column, center, center, null); -} - .cardListContainer { @include flexSort(column, null, center, 4rem); } @@ -31,12 +30,12 @@ .button { z-index: 1; - @include flexSort(null, null, center,1rem); + @include flexSort(null, null, center, 1rem); right: 5%; align-self: flex-end; - border: 0.1rem solid #9D9D9D; + border: 0.1rem solid #9d9d9d; border-radius: 1rem; - color: #9D9D9D; + color: #9d9d9d; position: relative; top: 7rem; @include nsnFont(1.8rem, 400, normal); diff --git a/src/components/page-layout/helpMeLayout/components/helpMeLayout.tsx b/src/components/page-layout/helpMeLayout/components/helpMeLayout.tsx index d084e02..2e5638c 100644 --- a/src/components/page-layout/helpMeLayout/components/helpMeLayout.tsx +++ b/src/components/page-layout/helpMeLayout/components/helpMeLayout.tsx @@ -84,7 +84,7 @@ export default function HelpMeLayout() { return (
-
+

버디브릿지는 일상에서 모두가 서로에게
따뜻한 온정을 전하는 세상을 만듭니다. From c9adb8451135827b7bd549329de4226f480a1aeb Mon Sep 17 00:00:00 2001 From: minbo Date: Sun, 1 Dec 2024 16:13:49 +0900 Subject: [PATCH 2/4] =?UTF-8?q?feat:=20=ED=95=84=ED=84=B0=EB=A7=81=20?= =?UTF-8?q?=EC=A0=84=EC=B2=B4=20=EB=B2=84=ED=8A=BC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/Filter/Filter.module.scss | 36 ++++++++++----- src/components/common/Filter/Filter.tsx | 3 +- .../common/Filter/constants/index.ts | 9 ++-- .../common/Pagenation/apis/getHelpMeList.ts | 5 +- .../helpMeLayout/components/helpMeLayout.tsx | 35 +++++++++++++- .../components/helpYouLayout.tsx | 46 +++++++++++++++---- 6 files changed, 104 insertions(+), 30 deletions(-) diff --git a/src/components/common/Filter/Filter.module.scss b/src/components/common/Filter/Filter.module.scss index d36b343..7ec1499 100644 --- a/src/components/common/Filter/Filter.module.scss +++ b/src/components/common/Filter/Filter.module.scss @@ -26,16 +26,28 @@ margin: auto; } +.allType { + @include nsnFont(1.5rem, 400, normal); + background-color: white; + padding: 1rem 0rem; + border: 0.2rem solid #2825d6; + border-radius: 5rem; + + &.selected { + background-color: #e7efff; + } +} + .disabilityType { @include nsnFont(1.5rem, 400, normal); background-color: white; padding: 1rem 0rem; border: 0.2rem solid #6562e2; border-radius: 5rem; -} -.disabilityType.selected { - background-color: #e7efff; - border-color: #97b8f9; + + &.selected { + background-color: #e7efff; + } } .assistanceType { @@ -44,10 +56,10 @@ padding: 1rem 0rem; border: 0.2rem solid #81c1ee; border-radius: 5rem; -} -.assistanceType.selected { - background-color: #e7efff; - border-color: #97b8f9; + + &.selected { + background-color: #e7efff; + } } .postStatus { @@ -56,10 +68,10 @@ padding: 1rem 0rem; border: 0.2rem solid #b7b7b7; border-radius: 5rem; -} -.postStatus.selected { - background-color: #e7efff; - border-color: #97b8f9; + + &.selected { + background-color: #e7efff; + } } .nextArrow { diff --git a/src/components/common/Filter/Filter.tsx b/src/components/common/Filter/Filter.tsx index 80904d3..cfc7e2e 100644 --- a/src/components/common/Filter/Filter.tsx +++ b/src/components/common/Filter/Filter.tsx @@ -56,8 +56,7 @@ export default function Filter({ searchParams, handleFilter }: FilterProps) {