Skip to content

Commit

Permalink
Design: 인기페이지 정렬 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
MEGUMMY1 committed Nov 19, 2024
1 parent 1c78d4f commit f04d79d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 8 deletions.
15 changes: 15 additions & 0 deletions src/components/Lesson/Popular/Popular.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
}

.checkboxContainer {
display: flex;
align-items: center;
justify-content: space-between;
}

.filterContainer {
display: flex;
align-items: center;
gap: 8px;
Expand All @@ -41,6 +47,15 @@
}
}

.sort {
@include C12M;
color: $gray70;
display: flex;
align-items: center;
gap: 2px;
cursor: pointer;
}

.listContainer {
display: flex;
flex-direction: column;
Expand Down
22 changes: 14 additions & 8 deletions src/components/Lesson/Popular/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,20 @@ export default function Popular() {
</div>
<div className={styles.bottomContainer}>
<div className={styles.checkboxContainer}>
<SportsFilter
options={sportsList}
value={selectedSport}
onChange={setSelectedSport}
/>
<div className={styles.totalText}>
<p className={styles.totalTextColor}>{facilities.length}</p>
시설
<div className={styles.filterContainer}>
<SportsFilter
options={sportsList}
value={selectedSport}
onChange={setSelectedSport}
/>
<div className={styles.totalText}>
<p className={styles.totalTextColor}>{facilities.length}</p>
시설
</div>
</div>
<div className={styles.sort}>
인기순
<IconComponent name="down" size="s" alt="sort arrow" />
</div>
</div>
{facilities.length > 0 ? (
Expand Down

0 comments on commit f04d79d

Please sign in to comment.