Skip to content

Commit 3b4dfd9

Browse files
committed
댓글 UI 수정
1 parent 59b53ab commit 3b4dfd9

File tree

3 files changed

+23
-27
lines changed

3 files changed

+23
-27
lines changed

src/components/posts/[id]/Comments/CommentForm/styles.module.scss

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
.comment_form {
2+
width: 100%;
23
margin-bottom: 24px;
3-
padding: 16px;
4-
background: var(--card-background-color);
5-
border-radius: var(--border-radius);
6-
border: 1px solid rgba(255, 255, 255, 0.1);
74
}
85

96
.comment_form_header {
@@ -94,21 +91,23 @@
9491

9592
.submit_button {
9693
padding: 8px 16px;
97-
background: var(--primary-color);
94+
background: var(--card-background-color);
9895
color: var(--text-color);
99-
border: none;
96+
border: 1px solid rgba(255, 255, 255, 0.15);
10097
border-radius: 6px;
10198
font-size: var(--p);
102-
font-weight: 600;
99+
font-weight: 500;
103100
cursor: pointer;
104101
transition: all 0.2s ease-in-out;
105-
box-shadow: var(--card-shadow-soft);
102+
box-shadow: inset 0 1px 2px var(--card-shadow-color-up),
103+
inset 0 -1px 2px var(--card-shadow-color-down);
106104

107105
&:hover:not(:disabled) {
108-
transform: translateY(-1px);
109-
box-shadow:
110-
var(--card-shadow-soft),
111-
0 0 10px rgba(255, 215, 0, 0.3);
106+
background: rgba(255, 255, 255, 0.05);
107+
border-color: rgba(255, 255, 255, 0.25);
108+
transform: translateY(1px);
109+
box-shadow: inset 0 1px 2px var(--card-shadow-color-down),
110+
inset 0 -1px 2px var(--card-shadow-color-up);
112111
}
113112

114113
&:active:not(:disabled) {
@@ -122,10 +121,7 @@
122121
}
123122

124123
.login_prompt {
125-
padding: 24px;
124+
padding: 24px 0;
126125
text-align: center;
127-
background: var(--card-background-color);
128-
border-radius: var(--border-radius);
129-
border: 1px solid rgba(255, 255, 255, 0.1);
130126
color: var(--secondary-color);
131127
}

src/components/posts/[id]/Comments/CommentItem/styles.module.scss

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
.comment_item {
2+
width: 100%;
23
padding: 16px;
3-
margin-bottom: 16px;
4-
background: var(--card-background-color);
5-
border-radius: var(--border-radius);
6-
border: 1px solid rgba(255, 255, 255, 0.1);
4+
margin-bottom: 12px;
5+
background: rgba(255, 255, 255, 0.02);
6+
border: 1px solid rgba(255, 255, 255, 0.08);
7+
border-radius: 6px;
78
transition: all 0.2s ease-in-out;
89

910
&:hover {
10-
border-color: rgba(255, 215, 0, 0.2);
11-
box-shadow: 0 2px 8px rgba(255, 215, 0, 0.1);
11+
background: rgba(255, 255, 255, 0.04);
12+
border-color: rgba(255, 255, 255, 0.12);
1213
}
1314
}
1415

src/components/posts/[id]/Comments/styles.module.scss

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
.comments_section {
2+
width: 100%;
23
margin-top: 48px;
34
padding: 24px 0;
45
border-top: 1px solid rgba(255, 255, 255, 0.1);
56
}
67

78
.comments_title {
8-
font-size: var(--h4);
9+
font-size: var(--p);
910
font-weight: 600;
1011
margin-bottom: 24px;
1112
color: var(--text-color);
1213
}
1314

1415
.comments_list {
16+
width: 100%;
1517
display: flex;
1618
flex-direction: column;
1719
gap: 0;
@@ -20,12 +22,9 @@
2022
.loading,
2123
.error,
2224
.empty_state {
23-
padding: 24px;
25+
padding: 24px 0;
2426
text-align: center;
2527
color: var(--secondary-color);
26-
background: var(--card-background-color);
27-
border-radius: var(--border-radius);
28-
border: 1px solid rgba(255, 255, 255, 0.1);
2928
}
3029

3130
.error {

0 commit comments

Comments
 (0)