Skip to content

Commit bbd46e4

Browse files
Merge branch 'main' into main
2 parents 237cdd3 + 0dba306 commit bbd46e4

File tree

1 file changed

+248
-3
lines changed

1 file changed

+248
-3
lines changed

src/components/dashboard/LeaderBoard/leaderboard.css

Lines changed: 248 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,30 @@
3333
color: #6366f1;
3434
}
3535

36+
@media (max-width: 768px) {
37+
.header {
38+
margin-bottom: 32px;
39+
}
40+
41+
.title {
42+
font-size: 24px;
43+
}
44+
45+
.subtitle {
46+
font-size: 15px;
47+
}
48+
}
49+
50+
@media (max-width: 480px) {
51+
.title {
52+
font-size: 20px;
53+
}
54+
55+
.subtitle {
56+
font-size: 14px;
57+
}
58+
}
59+
3660
.subtitle {
3761
font-size: 17px;
3862
max-width: 600px;
@@ -63,6 +87,17 @@
6387
margin-bottom: 24px;
6488
}
6589

90+
@media (max-width: 768px) {
91+
.title-filter-container {
92+
flex-direction: column;
93+
gap: 12px;
94+
}
95+
96+
.top-performers-title {
97+
font-size: 20px;
98+
}
99+
}
100+
66101
.top-performers-title {
67102
font-size: 24px;
68103
font-weight: 700;
@@ -87,6 +122,40 @@
87122
margin-bottom: 40px;
88123
}
89124

125+
@media (max-width: 1024px) {
126+
.leaderboard-podium {
127+
gap: 40px;
128+
padding: 40px 15px 15px;
129+
}
130+
}
131+
132+
@media (max-width: 768px) {
133+
.leaderboard-podium {
134+
flex-direction: column;
135+
align-items: center;
136+
gap: 20px;
137+
padding: 20px 10px;
138+
}
139+
140+
.podium-card {
141+
width: 100%;
142+
max-width: 280px;
143+
transform: none !important;
144+
}
145+
146+
.first-place,
147+
.second-place,
148+
.third-place {
149+
transform: none !important;
150+
}
151+
152+
.first-place:hover,
153+
.second-place:hover,
154+
.third-place:hover {
155+
transform: translateY(-5px) !important;
156+
}
157+
}
158+
90159
.podium-card {
91160
background-color: white;
92161
padding: 20px;
@@ -173,6 +242,22 @@
173242
border: 4px solid #f0f0f0;
174243
}
175244

245+
@media (max-width: 768px) {
246+
.podium-card .user-photo {
247+
width: 70px;
248+
height: 70px;
249+
border: 3px solid #f0f0f0;
250+
}
251+
}
252+
253+
@media (max-width: 480px) {
254+
.podium-card .user-photo {
255+
width: 60px;
256+
height: 60px;
257+
border: 2px solid #f0f0f0;
258+
}
259+
}
260+
176261
.dark .podium-card .user-photo {
177262
border-color: #444;
178263
}
@@ -232,6 +317,19 @@
232317
gap: 8px;
233318
margin-top: 5px;
234319
justify-content: center;
320+
flex-wrap: wrap;
321+
}
322+
323+
@media (max-width: 768px) {
324+
.podium-card .stats {
325+
gap: 6px;
326+
}
327+
328+
.podium-card .prs,
329+
.podium-card .points {
330+
font-size: 0.75em;
331+
padding: 3px 8px;
332+
}
235333
}
236334

237335
.podium-card .prs,
@@ -648,6 +746,8 @@
648746
flex-wrap: wrap;
649747
cursor: pointer;
650748
transition: all 0.2s ease;
749+
max-width: 100%;
750+
overflow: hidden;
651751
}
652752

653753
.contributor-badges:hover {
@@ -669,8 +769,8 @@
669769
box-shadow 0.2s ease;
670770
cursor: pointer;
671771
background: rgba(255, 255, 255, 0.1);
672-
padding: 0;
673-
margin: 0;
772+
padding: 2px;
773+
flex-shrink: 0;
674774
}
675775

676776
.contributor-badge-icon:hover {
@@ -680,6 +780,36 @@
680780
position: relative;
681781
}
682782

783+
@media (max-width: 1024px) {
784+
.contributor-badge-icon {
785+
width: 40px;
786+
height: 40px;
787+
}
788+
}
789+
790+
@media (max-width: 768px) {
791+
.contributor-badge-icon {
792+
width: 36px;
793+
height: 36px;
794+
}
795+
796+
.contributor-badges {
797+
gap: 6px;
798+
justify-content: center;
799+
}
800+
}
801+
802+
@media (max-width: 480px) {
803+
.contributor-badge-icon {
804+
width: 32px;
805+
height: 32px;
806+
}
807+
808+
.contributor-badges {
809+
gap: 4px;
810+
}
811+
}
812+
683813
.username-with-badges {
684814
display: flex;
685815
flex-direction: column;
@@ -693,17 +823,47 @@
693823
align-items: center;
694824
justify-content: flex-start;
695825
padding: 4px;
826+
overflow: hidden;
827+
}
828+
829+
@media (max-width: 768px) {
830+
.contributor-cell.badges-cell {
831+
justify-content: center;
832+
padding: 8px 0;
833+
width: 100%;
834+
}
696835
}
697836

698837
/* Badge display in top performer cards */
699838
.top-performer-card .contributor-badges {
700839
margin-top: 0;
701840
justify-content: center;
841+
max-width: 100%;
842+
overflow: hidden;
702843
}
703844

704845
.top-performer-card .contributor-badge-icon {
705846
width: 36px;
706847
height: 36px;
848+
flex-shrink: 0;
849+
}
850+
851+
@media (max-width: 768px) {
852+
.top-performer-card .contributor-badge-icon {
853+
width: 32px;
854+
height: 32px;
855+
}
856+
857+
.top-performer-card .contributor-badges {
858+
gap: 6px;
859+
}
860+
}
861+
862+
@media (max-width: 480px) {
863+
.top-performer-card .contributor-badge-icon {
864+
width: 28px;
865+
height: 28px;
866+
}
707867
}
708868

709869
/* Badge display in podium cards */
@@ -717,11 +877,33 @@
717877
.podium-card .contributor-badges {
718878
margin-top: 0;
719879
justify-content: center;
880+
max-width: 100%;
881+
overflow: hidden;
720882
}
721883

722884
.podium-card .contributor-badge-icon {
723885
width: 32px;
724886
height: 32px;
887+
flex-shrink: 0;
888+
}
889+
890+
@media (max-width: 768px) {
891+
.podium-card .contributor-badge-icon {
892+
width: 28px;
893+
height: 28px;
894+
}
895+
896+
.podium-card .contributor-badges {
897+
gap: 6px;
898+
flex-wrap: wrap;
899+
}
900+
}
901+
902+
@media (max-width: 480px) {
903+
.podium-card .contributor-badge-icon {
904+
width: 24px;
905+
height: 24px;
906+
}
725907
}
726908

727909
/* Position the badge inside the cell */
@@ -1088,10 +1270,11 @@
10881270

10891271
.contributor-row {
10901272
grid-template-columns: 1fr;
1091-
gap: 16px;
1273+
gap: 12px;
10921274
padding: 16px;
10931275
margin-bottom: 12px;
10941276
border-radius: 8px;
1277+
position: relative;
10951278
}
10961279

10971280
.contributor-cell {
@@ -1102,19 +1285,66 @@
11021285
position: absolute;
11031286
top: 8px;
11041287
left: 8px;
1288+
z-index: 1;
11051289
}
11061290

11071291
.avatar-cell {
11081292
justify-self: center;
1293+
margin-top: 8px;
11091294
}
11101295

11111296
.username-cell {
11121297
text-align: center;
1298+
margin-top: 4px;
11131299
}
11141300

11151301
.prs-cell,
11161302
.points-cell {
11171303
justify-self: center;
1304+
margin: 4px 0;
1305+
}
1306+
1307+
.badges-cell {
1308+
justify-self: center;
1309+
width: 100%;
1310+
display: flex;
1311+
justify-content: center;
1312+
padding: 8px 0;
1313+
margin-top: 4px;
1314+
overflow: visible;
1315+
}
1316+
1317+
.contributor-badges {
1318+
justify-content: center;
1319+
max-width: 100%;
1320+
flex-wrap: wrap;
1321+
gap: 6px;
1322+
}
1323+
1324+
.contributor-badge-icon {
1325+
width: 36px;
1326+
height: 36px;
1327+
}
1328+
}
1329+
1330+
@media (max-width: 480px) {
1331+
.contributor-row {
1332+
padding: 12px;
1333+
gap: 10px;
1334+
}
1335+
1336+
.contributor-badge-icon {
1337+
width: 32px;
1338+
height: 32px;
1339+
}
1340+
1341+
.contributor-badges {
1342+
gap: 4px;
1343+
}
1344+
1345+
.podium-card {
1346+
max-width: 100%;
1347+
padding: 16px;
11181348
}
11191349
}
11201350

@@ -1170,6 +1400,20 @@
11701400
.contributors-container .pagination-ellipsis {
11711401
margin: 0 2px;
11721402
}
1403+
1404+
.contributor-badge-icon {
1405+
width: 28px;
1406+
height: 28px;
1407+
}
1408+
1409+
.podium-card .contributor-badge-icon {
1410+
width: 20px;
1411+
height: 20px;
1412+
}
1413+
1414+
.contributor-badges {
1415+
gap: 3px;
1416+
}
11731417
}
11741418

11751419
/* Skeleton Loader Styles */
@@ -2129,3 +2373,4 @@
21292373
font-size: 14px;
21302374
}
21312375
}
2376+

0 commit comments

Comments
 (0)