Skip to content

Commit aaddbd2

Browse files
committed
Community UI 개선
1 parent 4270737 commit aaddbd2

1 file changed

Lines changed: 23 additions & 14 deletions

File tree

src/components/community/Community.css

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,14 @@
8888
}
8989

9090
.dark-mode .post-card {
91-
background-color: transparent;
92-
border-bottom: 1px solid #444;
93-
border-top: none;
91+
background-color: #2a2a2a;
92+
border: 1px solid #444;
93+
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
9494
}
9595

96-
.dark-mode .post-card:first-child {
97-
border-top: 1px solid #444;
96+
.dark-mode .post-card:hover {
97+
border-color: #7e4dff;
98+
box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
9899
}
99100
.dark-mode .tabs button.active-tab {
100101
color: #b88eff;
@@ -369,24 +370,32 @@ html {
369370
.post-list {
370371
display: flex;
371372
flex-direction: column;
372-
gap: 12px;
373+
gap: 16px;
373374
max-width: 720px;
374375
margin-left: auto;
375376
margin-right: auto;
376377
}
377378

378379
.post-card {
379380
cursor: pointer;
380-
background-color: transparent;
381-
box-shadow: none;
382-
border-radius: 0;
383-
padding: 12px 0;
384-
border-bottom: 1px solid #eaeaea;
385-
min-width: 720px;
381+
background-color: #ffffff;
382+
border: 1px solid #e5e5e8;
383+
border-radius: 14px;
384+
padding: 20px 24px;
385+
box-shadow: 0 10px 28px rgba(34, 34, 34, 0.06);
386+
transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
387+
width: 100%;
388+
}
389+
390+
.post-card:hover {
391+
transform: translateY(-2px);
392+
border-color: #b88eff;
393+
box-shadow: 0 16px 36px rgba(110, 64, 255, 0.12);
386394
}
387395

388-
.post-card:first-child {
389-
border-top: 1px solid #eaeaea;
396+
.post-card:focus-visible {
397+
outline: 2px solid #b88eff;
398+
outline-offset: 2px;
390399
}
391400

392401

0 commit comments

Comments
 (0)