Skip to content

Commit

Permalink
Merge pull request #256 from ODOICHON/design/#255
Browse files Browse the repository at this point in the history
Design/#255 ๋Œ“๊ธ€ ๋ฒ„ํŠผ UI ์ˆ˜์ •
  • Loading branch information
sangminlee98 authored May 6, 2024
2 parents 8306574 + df39e30 commit 910bde6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 16 deletions.
10 changes: 7 additions & 3 deletions src/components/Board/Comments/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,15 @@ export default function Comments({
/>
<span>
<p>{content.length}/400</p>
<button type="button" onClick={onClickButton}>
๋“ฑ๋ก
</button>
</span>
</div>
<button
className={styles.commentWrite}
type="button"
onClick={onClickButton}
>
๋“ฑ๋ก
</button>
{comments.map((comment) => (
<CommentDetail
key={comment.commentId}
Expand Down
33 changes: 20 additions & 13 deletions src/components/Board/Comments/styles.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.wrapper {
display: flex;
flex-direction: column;
width: 100%;
margin-bottom: 5rem;
& > h1 {
Expand Down Expand Up @@ -45,18 +47,23 @@
font-size: 1.125rem;
color: #717171;
}
& > button {
width: 6.85rem;
height: 3.125rem;
background-color: transparent;
border: 1px solid black;
border-radius: 25px;
font-size: 1.25rem;
font-weight: bold;
cursor: pointer;
&:hover {
opacity: 0.8;
}
}
}
}

.commentWrite {
font-family: 'Pretendard';
margin-left: auto;
margin-bottom: 1.5rem;
width: 6.75rem;
height: 3.125rem;
border: 1px solid #d9d9d9;
background-color: #d9d9d9;
border-radius: 8px;
font-size: 1.25rem;
cursor: pointer;
&:hover {
opacity: 0.8;
background-color: #4d5256;
color: #f1f5f5;
}
}

0 comments on commit 910bde6

Please sign in to comment.