Skip to content

Commit 63daa9e

Browse files
committed
fix: ensure that the design is based on the figma for desktop
1 parent b81ab66 commit 63daa9e

7 files changed

Lines changed: 27 additions & 20 deletions

File tree

app/(home)/components/Sponsors.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function Sponsors() {
3131
},
3232
{
3333
name: 'Ingenuity Software',
34-
logo: '/sponsor-logos/ingenuity-logo-mobile.png',
34+
logo: '/sponsor-logos/ingenuity-logo.png',
3535
logoMobile: '/sponsor-logos/ingenuity-logo-mobile.png',
3636
testimonial:
3737
'Lorem ipsum dolor sit amet consectetur, adipisicing elit. Reprehenderit, quas possimus. Vitae, officia quia. Doloribus saepe',
@@ -40,15 +40,15 @@ export function Sponsors() {
4040
{
4141
name: 'PythonPH',
4242
logo: '/sponsor-logos/pythonph-logo.png',
43-
logoMobile: '/sponsor-logos/pythonph-logo.png',
43+
logoMobile: '/sponsor-logos/pythonph-logo-mobile.png',
4444
testimonial:
4545
'Lorem ipsum dolor sit amet consectetur, adipisicing elit. Reprehenderit, quas possimus. Vitae, officia quia. Doloribus saepe',
4646
url: 'https://python.ph',
4747
},
4848
{
4949
name: 'Stace',
50-
logo: '/sponsor-logos/stace-logo.png',
51-
logoMobile: '/sponsor-logos/stace-logo.png',
50+
logo: '/sponsor-logos/stace-logo.svg',
51+
logoMobile: '/sponsor-logos/stace-logo.svg',
5252
testimonial:
5353
'Lorem ipsum dolor sit amet consectetur, adipisicing elit. Reprehenderit, quas possimus. Vitae, officia quia. Doloribus saepe',
5454
url: 'https://www.stace.app',

app/(home)/components/SponsorsDesktop.tsx

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,14 @@ const SponsorsDesktop = ({ sponsors }: { sponsors: SponsorshipProps[] }) => {
8080
};
8181

8282
return (
83-
<div className="xl:grid xl:grid-cols-[1fr_2fr] lg:flex lg:flex-col lg:h-auto text-white gap-x-8 py-16">
83+
<div className="xl:grid xl:grid-cols-[1fr_2fr] md:flex md:flex-col md:h-auto text-white gap-x-8 py-16 items-center ">
8484
{/* Description Section */}
85-
<div className="space-y-16 xl:mb-28 lg:flex-1 lg:h-auto w-[480px] mt-24">
86-
<div className="space-y-9 max-w-[365px] mx-auto xl:mx-0">
87-
<h1 className="text-primary text-[80px] leading-none font-bold mt-12 mb-12">
85+
<div className="space-y-16 xl:mb-28 lg:flex-1 lg:h-auto md:flex-1 md:h-auto w-[480px]">
86+
<div className="space-y-9 xl:mx-0">
87+
<h1 className="text-primary text-[80px] leading-none font-bold mb-12">
8888
<span className="text-white">Our</span> Sponsors
8989
</h1>
90-
<p className="text-xl text-left mb-12">
90+
<p className="text-xl text-left mb-12 min-w-10">
9191
A big thank you to our generous sponsors whose support makes our
9292
work possible and helps us create lasting impact.
9393
</p>
@@ -108,10 +108,10 @@ const SponsorsDesktop = ({ sponsors }: { sponsors: SponsorshipProps[] }) => {
108108
</div>
109109
</div>
110110

111-
<div className="pb-36 w-[720px]">
111+
<div className="pb-36 w-[633px] xl:ml-16">
112112
{/* Featured Section */}
113113
{featuredSponsor && (
114-
<div className="flex-1 h-3/4 mb-4">
114+
<div className="flex-1 h-[418px] mb-4">
115115
<Link
116116
href={featuredSponsor.url}
117117
target="_blank"
@@ -125,9 +125,7 @@ const SponsorsDesktop = ({ sponsors }: { sponsors: SponsorshipProps[] }) => {
125125
fill
126126
className={cn(
127127
'object-contain',
128-
featuredSponsor.name === 'Ingenuity Software' ||
129-
featuredSponsor.name === 'PythonPH' ||
130-
featuredSponsor.name === 'Stace'
128+
featuredSponsor.name === 'PythonPH'
131129
? 'scale-150' // Increase the size for specific sponsors
132130
: '',
133131
'w-full',
@@ -157,7 +155,7 @@ const SponsorsDesktop = ({ sponsors }: { sponsors: SponsorshipProps[] }) => {
157155
{/* Horizontal Line */}
158156
<div className="w-[440px] h-[1.5px] bg-[#FFFFFF]"></div>
159157
</div>
160-
<p className="text-xl mt-4">
158+
<p className="lg:text-xl mt-4 text-[12px] max-md:m-5">
161159
{featuredSponsor.testimonial}
162160
<br></br>
163161
<br></br>{featuredSponsor.name}
@@ -188,7 +186,7 @@ const SponsorsDesktop = ({ sponsors }: { sponsors: SponsorshipProps[] }) => {
188186
<CarouselItem key={index} className="basis-1/3">
189187
<div
190188
key={index}
191-
className="relative group transition-all duration-500 col-span-3 row-span-4 ease-in-out
189+
className="relative group transition-all duration-500 col-span-3 row-span-4 ease-in-out h-[166px] w-[200px]
192190
"
193191
onClick={() => carouselFeaturedAnimation(sponsor, index)}
194192
>
@@ -200,16 +198,17 @@ const SponsorsDesktop = ({ sponsors }: { sponsors: SponsorshipProps[] }) => {
200198
<div className="min-h-[160px] min-w-[160px] relative flex justify-center items-center transition-transform duration-500 ease-in-out hover:scale-105">
201199
<div className="">
202200
<Image
203-
src={sponsor.logo}
201+
src={sponsor.logoMobile}
204202
alt={sponsor.name}
205203
loading="lazy"
206204
fill
207205
className={cn(
208206
'object-contain',
207+
sponsor.name === 'PythonPH'
208+
? 'scale-75'
209+
: 'scale-100',
209210
'w-full',
210-
'h-full',
211-
'md:scale-[0.80]',
212-
'lg:scale-100'
211+
'h-full'
213212
)}
214213
/>
215214
</div>
59.1 KB
Loading
45.2 KB
Loading
-31.6 KB
Loading
File renamed without changes.
Lines changed: 8 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)