Skip to content

Commit 3cef06b

Browse files
ui: refine community page styling and alignment
Co-authored-by: Jayam Srivastava <jayamsrivastava99@gmail.com>
1 parent 78555cc commit 3cef06b

1 file changed

Lines changed: 32 additions & 48 deletions

File tree

src/pages/community/community.css

Lines changed: 32 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
.community-layout {
215215
display: grid;
216216
grid-template-columns: 1fr 300px;
217-
gap: 48px;
217+
gap: 40px;
218218
align-items: start;
219219
}
220220

@@ -229,7 +229,7 @@
229229
background: white;
230230
border-radius: 16px;
231231
padding: 24px;
232-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
232+
box-shadow: 0 4px 12px rgb(185 181 187);
233233
border: 1px solid rgba(0, 0, 0, 0.05);
234234
transition: all 0.3s ease;
235235
transition:
@@ -239,22 +239,22 @@
239239

240240
.contribution-section:hover {
241241
transform: translateY(-2px);
242-
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
242+
box-shadow: 0 6px 18px rgb(126 110 196 / 58%);
243243
}
244244

245245
[data-theme="dark"] .contribution-section {
246-
background: #1a1a1a;
246+
background: #1a1a1a80;
247247
border: 1px solid #2d2d2d;
248-
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
248+
box-shadow: 0 8px 25px rgb(124 110 137 / 51%);
249249
}
250250

251251
[data-theme="dark"] .contribution-section:hover {
252-
box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
252+
box-shadow: 0 12px 35px rgb(81 29 143 / 50%);
253253
}
254254

255255
.contribution-section.active {
256256
border: 2px solid #8b5cf6;
257-
box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
257+
box-shadow: 0 0 15px rgb(80 39 172 / 40%);
258258
transition:
259259
box-shadow 0.3s ease,
260260
border 0.3s ease;
@@ -276,15 +276,15 @@
276276
background: white;
277277
border-radius: 16px;
278278
padding: 24px;
279-
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
279+
box-shadow: 0 8px 25px rgb(202 198 205);
280280
border: 1px solid rgba(0, 0, 0, 0.05);
281281
height: fit-content;
282282
}
283283

284284
[data-theme="dark"] .table-of-contents {
285285
background: #1a1a1a;
286286
border: 1px solid #2d2d2d;
287-
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
287+
box-shadow: 0 8px 25px rgb(104 101 101 / 69%);
288288
}
289289

290290
.toc-header {
@@ -339,48 +339,28 @@
339339
}
340340

341341
[data-theme="dark"] .toc-item {
342-
color: #edf2f7;
342+
color: #dae3ec;
343343
}
344344

345345
.toc-item:hover {
346-
background: rgba(0, 0, 0, 0.04);
347-
transform: translateX(4px);
346+
background: rgb(234 230 235 / 45%);
347+
transform: translateX(5px);
348348
}
349349

350350
[data-theme="dark"] .toc-item:hover {
351-
background: rgba(255, 255, 255, 0.08);
351+
background: rgb(44 43 49 / 88%);
352352
}
353353

354354
.toc-item.active {
355355
background: rgba(139, 92, 246, 0.1);
356356
color: #8b5cf6;
357357
font-weight: 600;
358+
border-radius: 8px;
358359
}
359360

360361
[data-theme="dark"] .toc-item.active {
361-
background: rgba(139, 92, 246, 0.2);
362-
color: #a78bfa;
363-
}
364-
365-
.toc-item.active + .toc-item.active {
366-
margin-top: -2px;
367-
/* overlap borders */
368-
border-top: 1px solid rgba(139, 92, 246, 0.3);
369-
/* subtle divider */
370-
border-radius: 0;
371-
/* flatten middle items */
372-
}
373-
374-
/* First active in a block keeps rounded top */
375-
.toc-item.active:first-child,
376-
.toc-item.active:not(:first-child):not(:last-child) {
377-
border-radius: 8px 8px 0 0;
378-
}
379-
380-
/* Last active in a block keeps rounded bottom */
381-
.toc-item.active:last-child,
382-
.toc-item.active + .toc-item:not(.active) {
383-
border-radius: 0 0 8px 8px;
362+
background: rgb(56 43 84 / 65%);
363+
color: #90b0d0;
384364
}
385365

386366
.toc-item-icon {
@@ -395,7 +375,7 @@
395375
.section-header {
396376
display: flex;
397377
align-items: center;
398-
gap: 16px;
378+
gap: 14px;
399379
margin-bottom: 16px;
400380
}
401381

@@ -407,8 +387,8 @@
407387
align-items: center;
408388
justify-content: center;
409389
font-size: 1.5rem;
410-
color: white;
411-
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
390+
color: #ffffff;
391+
box-shadow: 0 6px 16px rgb(0 0 0 / 49%);
412392
flex-shrink: 0;
413393
}
414394

@@ -467,14 +447,14 @@
467447
}
468448

469449
.section-links {
470-
background: linear-gradient(135deg, #f8fafc, #f1f5f9);
450+
background: linear-gradient(135deg, #963dcd12, #f1f5f9);
471451
border-radius: 12px;
472452
padding: 20px;
473453
border: 1px solid #e2e8f0;
474454
}
475455

476456
[data-theme="dark"] .section-links {
477-
background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
457+
background: linear-gradient(135deg, #2d2d2d54, #1a1a1a99);
478458
border: 1px solid #3d3d3d;
479459
}
480460

@@ -484,15 +464,19 @@
484464
gap: 12px;
485465
margin-bottom: 20px;
486466
font-weight: 600;
487-
color: #374151;
467+
color: #2f1d74;
468+
line-height: 1;
488469
}
489470

490471
[data-theme="dark"] .links-header {
491-
color: #edf2f7;
472+
color: #edf2f7a6;
492473
}
493474

494475
.links-icon {
495476
font-size: 1.2rem;
477+
display: flex;
478+
align-items: center;
479+
justify-content: center;
496480
}
497481

498482
.links-container {
@@ -510,23 +494,23 @@
510494
text-decoration: none;
511495
border-radius: 8px;
512496
font-weight: 600;
513-
border: 2px solid var(--link-color, #8b5cf6);
497+
border: 1px solid var(--link-color, #8b5cf6);
514498
transition: all 0.3s ease;
515-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
499+
box-shadow: 0 4px 12px #8b5cf64d;
516500
font-size: 0.9rem;
517501
}
518502

519503
[data-theme="dark"] .resource-link {
520-
background: #1a1a1a;
504+
background: #191919e3;
521505
color: var(--link-color, #8b5cf6);
522-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
506+
box-shadow: 0 4px 12px rgb(118 110 123 / 49%);
523507
}
524508

525509
.resource-link:hover {
526510
background: var(--link-color, #8b5cf6);
527511
color: white;
528512
transform: translateY(-2px);
529-
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
513+
box-shadow: 0 8px 20px rgb(0 0 0 / 50%);
530514
text-decoration: none;
531515
}
532516

0 commit comments

Comments
 (0)