Skip to content

Commit 6e2a4e6

Browse files
authored
Merge pull request #879 from Adez017/Experiment
Fix dashboard text alignement and Giveway page cards
2 parents 44e724d + cc81082 commit 6e2a4e6

File tree

3 files changed

+56
-56
lines changed

3 files changed

+56
-56
lines changed

src/components/dashboard/LeaderBoard/leaderboard.css

Lines changed: 45 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@
239239
width: 48px;
240240
height: 48px;
241241
border-radius: 50%;
242-
color: #fff;
242+
color: #080808;
243243
font-size: 20px;
244244
}
245245

@@ -259,6 +259,9 @@
259259
font-size: 2rem;
260260
font-weight: 800;
261261
margin-bottom: 4px;
262+
text-align: center;
263+
width: 100%;
264+
262265
}
263266

264267
.light .stat-value {
@@ -276,7 +279,7 @@
276279
}
277280

278281
.light .stat-label {
279-
color: #666;
282+
color: #000000 !important;
280283
}
281284

282285
.dark .stat-label {
@@ -347,10 +350,12 @@
347350
border-color: #6366f1;
348351
box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
349352
}
353+
350354
70% {
351355
border-color: #6366f1;
352356
box-shadow: 0 0 0 6px rgba(99, 102, 241, 0);
353357
}
358+
354359
100% {
355360
border-color: inherit;
356361
}
@@ -387,11 +392,9 @@
387392
font-weight: 600;
388393
letter-spacing: 0.3px;
389394
appearance: none;
390-
background: linear-gradient(
391-
to bottom,
392-
rgba(255, 255, 255, 0.05) 0%,
393-
rgba(0, 0, 0, 0.05) 100%
394-
);
395+
background: linear-gradient(to bottom,
396+
rgba(255, 255, 255, 0.05) 0%,
397+
rgba(0, 0, 0, 0.05) 100%);
395398
cursor: pointer;
396399
transition: all 0.25s ease;
397400
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
@@ -834,37 +837,46 @@
834837
.leaderboard-container {
835838
padding: 24px 8px;
836839
}
840+
837841
.top-performers-grid {
838842
grid-template-columns: 1fr;
839843
gap: 20px;
840844
}
845+
841846
.stats-grid {
842847
grid-template-columns: 1fr;
843848
}
849+
844850
.contributors-header {
845851
display: none;
846852
}
853+
847854
.contributor-row {
848855
grid-template-columns: 1fr;
849856
gap: 16px;
850857
padding: 16px;
851858
margin-bottom: 12px;
852859
border-radius: 8px;
853860
}
861+
854862
.contributor-cell {
855863
padding: 0;
856864
}
865+
857866
.rank-cell {
858867
position: absolute;
859868
top: 8px;
860869
left: 8px;
861870
}
871+
862872
.avatar-cell {
863873
justify-self: center;
864874
}
875+
865876
.username-cell {
866877
text-align: center;
867878
}
879+
868880
.prs-cell,
869881
.points-cell {
870882
justify-self: center;
@@ -957,23 +969,19 @@
957969
width: 32px;
958970
height: 32px;
959971
border-radius: 50%;
960-
background: linear-gradient(
961-
90deg,
962-
rgba(0, 0, 0, 0.06) 25%,
963-
rgba(0, 0, 0, 0.12) 50%,
964-
rgba(0, 0, 0, 0.06) 75%
965-
);
972+
background: linear-gradient(90deg,
973+
rgba(0, 0, 0, 0.06) 25%,
974+
rgba(0, 0, 0, 0.12) 50%,
975+
rgba(0, 0, 0, 0.06) 75%);
966976
background-size: 200% 100%;
967977
animation: skeleton-shimmer 2s infinite;
968978
}
969979

970980
.skeleton-loader.dark .skeleton-avatar {
971-
background: linear-gradient(
972-
90deg,
973-
rgba(255, 255, 255, 0.05) 25%,
974-
rgba(255, 255, 255, 0.1) 50%,
975-
rgba(255, 255, 255, 0.05) 75%
976-
);
981+
background: linear-gradient(90deg,
982+
rgba(255, 255, 255, 0.05) 25%,
983+
rgba(255, 255, 255, 0.1) 50%,
984+
rgba(255, 255, 255, 0.05) 75%);
977985
background-size: 200% 100%;
978986
}
979987

@@ -993,23 +1001,19 @@
9931001
height: 16px;
9941002
width: 60%;
9951003
border-radius: 4px;
996-
background: linear-gradient(
997-
90deg,
998-
rgba(0, 0, 0, 0.06) 25%,
999-
rgba(0, 0, 0, 0.12) 50%,
1000-
rgba(0, 0, 0, 0.06) 75%
1001-
);
1004+
background: linear-gradient(90deg,
1005+
rgba(0, 0, 0, 0.06) 25%,
1006+
rgba(0, 0, 0, 0.12) 50%,
1007+
rgba(0, 0, 0, 0.06) 75%);
10021008
background-size: 200% 100%;
10031009
animation: skeleton-shimmer 2s infinite;
10041010
}
10051011

10061012
.skeleton-loader.dark .skeleton-bar {
1007-
background: linear-gradient(
1008-
90deg,
1009-
rgba(255, 255, 255, 0.05) 25%,
1010-
rgba(255, 255, 255, 0.1) 50%,
1011-
rgba(255, 255, 255, 0.05) 75%
1012-
);
1013+
background: linear-gradient(90deg,
1014+
rgba(255, 255, 255, 0.05) 25%,
1015+
rgba(255, 255, 255, 0.1) 50%,
1016+
rgba(255, 255, 255, 0.05) 75%);
10131017
background-size: 200% 100%;
10141018
}
10151019

@@ -1022,30 +1026,27 @@
10221026
height: 20px;
10231027
width: 60px;
10241028
border-radius: 12px;
1025-
background: linear-gradient(
1026-
90deg,
1027-
rgba(0, 0, 0, 0.06) 25%,
1028-
rgba(0, 0, 0, 0.12) 50%,
1029-
rgba(0, 0, 0, 0.06) 75%
1030-
);
1029+
background: linear-gradient(90deg,
1030+
rgba(0, 0, 0, 0.06) 25%,
1031+
rgba(0, 0, 0, 0.12) 50%,
1032+
rgba(0, 0, 0, 0.06) 75%);
10311033
background-size: 200% 100%;
10321034
animation: skeleton-shimmer 2s infinite;
10331035
}
10341036

10351037
.skeleton-loader.dark .skeleton-badge {
1036-
background: linear-gradient(
1037-
90deg,
1038-
rgba(255, 255, 255, 0.05) 25%,
1039-
rgba(255, 255, 255, 0.1) 50%,
1040-
rgba(255, 255, 255, 0.05) 75%
1041-
);
1038+
background: linear-gradient(90deg,
1039+
rgba(255, 255, 255, 0.05) 25%,
1040+
rgba(255, 255, 255, 0.1) 50%,
1041+
rgba(255, 255, 255, 0.05) 75%);
10421042
background-size: 200% 100%;
10431043
}
10441044

10451045
@keyframes skeleton-shimmer {
10461046
0% {
10471047
background-position: -200% 0;
10481048
}
1049+
10491050
100% {
10501051
background-position: 200% 0;
10511052
}
@@ -1469,4 +1470,4 @@
14691470
.pr-item-meta {
14701471
gap: 12px;
14711472
}
1472-
}
1473+
}

src/pages/dashboard/dashboard.css

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
z-index: 1051;
6363
}
6464

65-
.dashboard-mobile-menu > div:last-child {
65+
.dashboard-mobile-menu>div:last-child {
6666
position: absolute;
6767
top: 0;
6868
left: 0;
@@ -76,7 +76,7 @@
7676
transition: transform 0.3s ease;
7777
}
7878

79-
.dashboard-mobile-menu.show > div:last-child {
79+
.dashboard-mobile-menu.show>div:last-child {
8080
transform: translateX(0);
8181
}
8282

@@ -295,11 +295,9 @@
295295
left: 0;
296296
right: 0;
297297
height: 4px;
298-
background: linear-gradient(
299-
90deg,
300-
var(--ifm-color-primary),
301-
var(--ifm-color-primary-light)
302-
);
298+
background: linear-gradient(90deg,
299+
var(--ifm-color-primary),
300+
var(--ifm-color-primary-light));
303301
}
304302

305303
.dashboard-stat-card:hover {
@@ -322,9 +320,9 @@
322320
}
323321

324322
.dashboard-stat-title {
325-
font-size: 1.1rem;
323+
font-size: 1.2rem;
326324
font-weight: 600;
327-
margin-bottom: 8px;
325+
margin-bottom: inherit;
328326
color: var(--ifm-color-content-secondary);
329327
}
330328

@@ -343,7 +341,7 @@
343341
font-size: 0.9rem;
344342
color: var(--ifm-color-content-secondary);
345343
line-height: 1.4;
346-
margin: 0;
344+
margin-bottom: 0;
347345
}
348346

349347
.loading-spinner {
@@ -359,6 +357,7 @@
359357
0% {
360358
transform: rotate(0deg);
361359
}
360+
362361
100% {
363362
transform: rotate(360deg);
364363
}
@@ -714,4 +713,4 @@
714713
[data-theme="dark"] .loading-spinner {
715714
border-color: var(--ifm-color-emphasis-300);
716715
border-top-color: var(--ifm-color-primary);
717-
}
716+
}

src/pages/dashboard/giveaway/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ const giveawayStyles = `
419419
.dashboard-stat-value {
420420
font-size: 2.5rem;
421421
font-weight: 800;
422-
margin-bottom: 10px;
422+
margin-bottom: inherit;
423423
color: var(--ifm-color-primary);
424424
min-height: 60px;
425425
display: flex;

0 commit comments

Comments
 (0)