diff --git a/src/components/common/Filter/Filter.module.scss b/src/components/common/Filter/Filter.module.scss index 849aaff..47f5816 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 { @@ -17,16 +26,28 @@ margin: auto; } +.all { + @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 { @@ -35,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 { @@ -47,19 +68,10 @@ padding: 1rem 0rem; border: 0.2rem solid #b7b7b7; border-radius: 5rem; -} -.postStatus.selected { - background-color: #e7efff; - border-color: #97b8f9; -} -.prevArrow { - position: absolute; - top: 1rem; - width: 2.3rem; - height: 2.3rem; - transform: rotate(90deg); - cursor: pointer; + &.selected { + background-color: #e7efff; + } } .nextArrow { diff --git a/src/components/common/Filter/Filter.tsx b/src/components/common/Filter/Filter.tsx index 80904d3..0f23573 100644 --- a/src/components/common/Filter/Filter.tsx +++ b/src/components/common/Filter/Filter.tsx @@ -45,7 +45,9 @@ export default function Filter({ searchParams, handleFilter }: FilterProps) { const selectedOptions = searchParams.get(categoryName)?.split(",") || []; const isSelected = selectedOptions.includes(option); const displayOption = - categoryName === "postStatus" + categoryName === "all" + ? "전체" + : categoryName === "postStatus" ? option === "RECRUITING" ? "모집중" : option === "FINISHED" @@ -56,8 +58,7 @@ export default function Filter({ searchParams, handleFilter }: FilterProps) {