Skip to content

Commit 8203c68

Browse files
committed
fix(#907): Improve sponsors page spacing and responsiveness
1 parent f174f96 commit 8203c68

File tree

1 file changed

+61
-31
lines changed

1 file changed

+61
-31
lines changed

src/pages/our-sponsors/Sponsors.css

Lines changed: 61 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,10 @@
1616

1717
.TitleText {
1818
margin-top: 1rem;
19-
background: linear-gradient(
20-
90deg,
21-
rgb(152 0 255) 0%,
22-
rgb(246 41 41) 50%,
23-
rgb(255 169 8) 100%
24-
);
19+
background: linear-gradient(90deg,
20+
rgb(152 0 255) 0%,
21+
rgb(246 41 41) 50%,
22+
rgb(255 169 8) 100%);
2523
background-clip: text;
2624
-webkit-text-fill-color: transparent;
2725
}
@@ -120,8 +118,8 @@
120118
.sponsor-page .sponsors-list {
121119
display: grid;
122120
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
123-
gap: 20px;
124-
margin-top: 20px;
121+
gap: 2rem;
122+
margin-top: 2rem;
125123
}
126124

127125
.sponsor-page .sponsor-card {
@@ -171,7 +169,7 @@
171169
.sponsor-page .sponsor-card .avatar-wrapper {
172170
width: 110px;
173171
height: 110px;
174-
margin-bottom: 12px;
172+
margin-bottom: 1rem;
175173
border-radius: 50%;
176174
overflow: hidden;
177175
box-shadow: 0 0 0 4px #f9fafb;
@@ -180,7 +178,7 @@
180178
.sponsor-page .sponsor-card .sponsor-name {
181179
font-size: 1.2rem;
182180
font-weight: 600;
183-
margin-bottom: 4px;
181+
margin-bottom: 0.75rem;
184182
color: #111827;
185183
}
186184

@@ -191,8 +189,8 @@
191189
.sponsor-page .sponsor-card .sponsor-desc {
192190
font-size: 0.95rem;
193191
color: #4b5563;
194-
margin-bottom: 10px;
195-
line-height: 1.4;
192+
margin-bottom: 1rem;
193+
line-height: 1.5;
196194
}
197195

198196
[data-theme="dark"] .sponsor-page .sponsor-card .sponsor-desc {
@@ -202,8 +200,8 @@
202200
.sponsor-page .sponsor-card .social-links {
203201
display: flex;
204202
justify-content: center;
205-
gap: 10px;
206-
margin-top: 8px;
203+
gap: 12px;
204+
margin-top: 1rem;
207205
}
208206

209207
.sponsor-page .sponsor-card .social-links a {
@@ -274,12 +272,10 @@
274272
left: -100%;
275273
width: 300%;
276274
height: 100%;
277-
background: linear-gradient(
278-
90deg,
279-
transparent,
280-
rgba(255, 255, 255, 0.4),
281-
transparent
282-
);
275+
background: linear-gradient(90deg,
276+
transparent,
277+
rgba(255, 255, 255, 0.4),
278+
transparent);
283279
transition: 0.5s;
284280
z-index: 1;
285281
}
@@ -355,7 +351,8 @@
355351
.scanner-button {
356352
background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
357353
color: white;
358-
padding: 12px 28px 12px 28px; /* Fixed padding to prevent jumping */
354+
padding: 12px 28px 12px 28px;
355+
/* Fixed padding to prevent jumping */
359356
border-radius: 8px;
360357
cursor: pointer;
361358
border: none;
@@ -384,17 +381,15 @@
384381
left: -100%;
385382
width: 100%;
386383
height: 100%;
387-
background: linear-gradient(
388-
90deg,
389-
transparent,
390-
rgba(255, 255, 255, 0.2),
391-
transparent
392-
);
384+
background: linear-gradient(90deg,
385+
transparent,
386+
rgba(255, 255, 255, 0.2),
387+
transparent);
393388
transition: 0.5s;
394389
z-index: 1;
395390
}
396391

397-
.scanner-button > * {
392+
.scanner-button>* {
398393
position: relative;
399394
z-index: 2;
400395
}
@@ -434,7 +429,42 @@
434429
}
435430

436431
@media (max-width: 600px) {
437-
.sponsor-card {
438-
width: 100%;
432+
.sponsor-page {
433+
padding: 1rem;
439434
}
440-
}
435+
436+
.sponsor-page .sponsors-list {
437+
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
438+
gap: 1.5rem;
439+
}
440+
441+
.sponsor-page .sponsor-card {
442+
padding: 1.5rem;
443+
}
444+
445+
.sponsor-page .sponsor-card .avatar-wrapper {
446+
width: 90px;
447+
height: 90px;
448+
margin-bottom: 0.75rem;
449+
}
450+
451+
.sponsor-page .sponsor-card .sponsor-name {
452+
font-size: 1.1rem;
453+
}
454+
455+
.support-links {
456+
flex-direction: column;
457+
margin-top: 2rem;
458+
}
459+
460+
.tabs {
461+
margin-bottom: 1.5rem;
462+
padding-bottom: 0.25rem;
463+
}
464+
465+
.tab-button {
466+
padding: 0.5rem 1rem;
467+
margin: 0 0.25rem;
468+
font-size: 0.95rem;
469+
}
470+
}

0 commit comments

Comments
 (0)