-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: browser Width <768 일 때 Dropdown 추가 (#35)
- Loading branch information
Showing
5 changed files
with
120 additions
and
53 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
src/app/(userpage)/otherpage/[userId]/components/TabButton/TabButton.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@import "@/styles/_index"; | ||
@import "@/styles/_media"; | ||
|
||
.buttonBox { | ||
display: flex; | ||
gap: 40px; | ||
align-items: center; | ||
justify-content: start; | ||
|
||
margin-bottom: 30px; | ||
} | ||
|
||
.selectButton { | ||
all: unset; | ||
color: $gray-100; | ||
cursor: pointer; | ||
} | ||
|
||
.active { | ||
color: $white-100; | ||
} |
48 changes: 48 additions & 0 deletions
48
src/app/(userpage)/otherpage/[userId]/components/TabButton/TabButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import React from "react"; | ||
import cn from "@/utils/classNames"; | ||
import styles from "./TabButton.module.scss"; | ||
|
||
type TabButtonProps = { | ||
button: string; | ||
onSelectButton: (value: string) => void; | ||
}; | ||
|
||
export default function TabButton({ button, onSelectButton }: TabButtonProps) { | ||
return ( | ||
<div> | ||
<div className={cn(styles.buttonBox)}> | ||
<div | ||
className={cn(styles.selectButton, styles[`${button === "reviewed" ? "active" : ""}`])} | ||
onClick={() => onSelectButton("reviewed")} | ||
onKeyDown={() => onSelectButton("reviewed")} | ||
role='button' | ||
tabIndex={0} | ||
> | ||
리뷰 남긴 상품 | ||
</div> | ||
<div | ||
className={cn(styles.selectButton, styles[`${button === "created" ? "active" : ""}`])} | ||
onClick={() => { | ||
onSelectButton("created"); | ||
}} | ||
onKeyDown={() => onSelectButton("created")} | ||
role='button' | ||
tabIndex={0} | ||
> | ||
등록한 상품 | ||
</div> | ||
<div | ||
className={cn(styles.selectButton, styles[`${button === "favorite" ? "active" : ""}`])} | ||
onClick={() => { | ||
onSelectButton("favorite"); | ||
}} | ||
onKeyDown={() => onSelectButton("favorite")} | ||
role='button' | ||
tabIndex={0} | ||
> | ||
찜한 상품 | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 36 additions & 37 deletions
73
src/app/(userpage)/otherpage/[userId]/components/UserActivityList/UserActivityList.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters