-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add router link to product in ProductList * feat: implement ProductDetail component - Separated Tags component as a shared component - Created HeartButton component * feat: implement Inquiry component * feat: implement Comments component - Separated AuthorInfo component into the Product feature * feat: enable edit input field on comment edit button click * feat: add relative titme caculation function * feat: disable button based on textarea content during comment edit * fix: update accept attribute to separate multiple value with comma * chore: remove comments --------- Co-authored-by: naji <jitwona99.gmail.com>
- Loading branch information
Showing
42 changed files
with
968 additions
and
83 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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,13 @@ | ||
import { ReactComponent as HeartIcon } from "assets/images/ic_heart.svg"; | ||
import styles from "./HeartButton.module.css"; | ||
|
||
const HeartButton = ({ favoriteCount }) => { | ||
return ( | ||
<button aria-label="좋아요 버튼" className={styles.heartButton}> | ||
<HeartIcon className={styles.heartIcon} /> | ||
<span>{favoriteCount}</span> | ||
</button> | ||
); | ||
}; | ||
|
||
export default HeartButton; |
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,30 @@ | ||
.heartButton { | ||
display: flex; | ||
align-items: center; | ||
gap: 4px; | ||
padding: 4px 12px 2px; | ||
border-radius: 35px; | ||
border: 1px solid var(--gray200); | ||
font-size: 1rem; | ||
font-weight: 500; | ||
line-height: 1.625rem; | ||
color: var(--gray500); | ||
cursor: pointer; | ||
} | ||
|
||
.heartButton:hover path { | ||
fill: var(--red); | ||
stroke: var(--red); | ||
} | ||
|
||
.heartIcon { | ||
width: 24px; | ||
height: 24px; | ||
} | ||
|
||
@media screen and (min-width: 1200px) { | ||
.heartIcon { | ||
width: 32px; | ||
height: 32px; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import XButton from "./XButton"; | ||
import styles from "./Tags.module.css"; | ||
|
||
const Tags = ({ tags, onRemove, className = "" }) => { | ||
return ( | ||
<> | ||
{tags.length ? ( | ||
<ul className={`${styles.tags} ${className}`}> | ||
{tags.map((tag) => { | ||
return ( | ||
<li key={tag} className={styles.tag}> | ||
<span>#{tag}</span> | ||
{onRemove && ( | ||
<XButton | ||
className={styles.icon} | ||
onClick={(event) => onRemove(event, tag)} | ||
/> | ||
)} | ||
</li> | ||
); | ||
})} | ||
</ul> | ||
) : ( | ||
"" | ||
)} | ||
</> | ||
); | ||
}; | ||
|
||
export default Tags; |
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
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 |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
.label { | ||
font-size: 1.125rem; | ||
font-weight: 700; | ||
line-height: 1.625rem; | ||
} | ||
|
||
.textarea { | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.icon { | ||
margin-right: -4px; | ||
cursor: pointer; | ||
} | ||
|
||
|
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 @@ | ||
export const BASE_URL = "https://panda-market-api.vercel.app/products"; |
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,2 @@ | ||
export const INQUIRY_PLACEHOLDER = | ||
"개인정보를 공유 및 요청하거나, 명예 훼손, 무단 광고, 불법 정보 유포시 모니터링 후 삭제될 수 있으며, 이에 대한 민형사상 책임은 게시자에게 있습니다."; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,9 @@ | |
|
||
.button { | ||
padding: 12px 23px 12px 23px; | ||
line-height: 1.125rem; | ||
} | ||
|
||
.tags { | ||
margin-top: -10px; | ||
} |
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
Oops, something went wrong.