Skip to content

Commit 31cb124

Browse files
committed
refactor: adjust GsocPage text size and improve GsocLoader styling for better responsiveness
1 parent b3ec87e commit 31cb124

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

src/Page/OpportunitiesHub/opensource/gsoc.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -495,14 +495,14 @@ export default function GsocPage() {
495495
</div>
496496
<div className="relative z-10 mx-auto grid max-w-7xl items-center gap-8 sm:gap-10 md:grid-cols-2 md:gap-32">
497497
<div className="space-y-4 text-center md:text-left">
498-
<p className="animate-text-gradient bg-gradient-to-r from-cyan-400 via-blue-500 to-cyan-400 bg-[length:200%_auto] bg-clip-text pb-2 text-xl font-semibold tracking-wide text-transparent sm:text-5xl">
498+
<p className="animate-text-gradient bg-gradient-to-r from-cyan-400 via-blue-500 to-cyan-400 bg-[length:200%_auto] bg-clip-text pb-2 text-3xl font-semibold tracking-wide text-transparent sm:text-5xl">
499499
Everything
500500
</p>
501-
<p className="animate-text-gradient bg-gradient-to-r from-cyan-400 via-blue-500 to-cyan-400 bg-[length:200%_auto] bg-clip-text pb-2 text-xl font-semibold tracking-wide text-transparent sm:text-5xl">
501+
<p className="animate-text-gradient bg-gradient-to-r from-cyan-400 via-blue-500 to-cyan-400 bg-[length:200%_auto] bg-clip-text pb-2 text-3xl font-semibold tracking-wide text-transparent sm:text-5xl">
502502
You Need to Decode:
503503
</p>
504504
<div className="flex justify-center md:justify-start">
505-
<div className="relative max-w-md overflow-hidden rounded-3xl border border-slate-800 bg-slate-900 shadow-2xl">
505+
<div className="relative w-full max-w-md overflow-hidden rounded-3xl border border-slate-800 bg-slate-900 shadow-2xl">
506506
<img
507507
src="/assets/opensourceProgram/GSOC.png"
508508
alt="Google Summer of Code 2026"
@@ -538,7 +538,7 @@ export default function GsocPage() {
538538
</p>
539539
</div>
540540

541-
<div className="grid gap-6 md:grid-cols-2 xl:grid-cols-3">
541+
<div className="grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3">
542542
{proposals.map((entry) => (
543543
<ProposalCard
544544
key={`${entry.name}-${entry.organization}`}

src/components/GsocLoader.jsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@ const GsocLoader = () => {
2222

2323
const StyledWrapper = styled.div`
2424
/* Container to reserve space for the scaled element */
25-
min-height: 240px;
25+
min-height: 150px;
26+
@media (min-width: 480px) {
27+
min-height: 200px;
28+
}
29+
@media (min-width: 768px) {
30+
min-height: 240px;
31+
}
2632
display: flex;
2733
align-items: center;
2834
justify-content: center;
@@ -42,8 +48,11 @@ const StyledWrapper = styled.div`
4248
user-select: none;
4349
color: #fff;
4450
45-
scale: 2;
51+
scale: 1.2;
4652
53+
@media (min-width: 480px) {
54+
scale: 1.8;
55+
}
4756
@media (min-width: 768px) {
4857
scale: 2.5;
4958
}

0 commit comments

Comments
 (0)