Skip to content

Commit 2b2a8cc

Browse files
committed
chore: add descriptions for sponsors and change some logos
1 parent a7ec94b commit 2b2a8cc

4 files changed

Lines changed: 42 additions & 39 deletions

File tree

app/(home)/components/Sponsors.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { Container } from '@/components/ui/container';
22
import dynamic from 'next/dynamic';
33
const SponsorsDesktop = dynamic(() => import('./SponsorsDesktop'));
4-
const SponsorsMobile = dynamic(() => import("./SponsorsMobile"));
4+
const SponsorsMobile = dynamic(() => import('./SponsorsMobile'));
55

66
interface SponsorshipProps {
77
name: string;
88
logo: string;
99
logoMobile: string;
10-
testimonial: string;
10+
description: string;
1111
url: string;
1212
}
1313

@@ -17,40 +17,40 @@ export function Sponsors() {
1717
name: 'Mugna Tech',
1818
logo: '/sponsor-logos/mugna-logo.png',
1919
logoMobile: '/sponsor-logos/mugna-logo.png',
20-
testimonial:
21-
'Lorem ipsum dolor sit amet consectetur, adipisicing elit. Reprehenderit, quas possimus. Vitae, officia quia. Doloribus saepe',
20+
description:
21+
'Mugna Tech specializes in Web, Software, and Mobile Development, UI/UX Design, and more, with 75+ projects for diverse businesses.',
2222
url: 'https://mugna.tech',
2323
},
2424
{
2525
name: 'Codev',
2626
logo: '/sponsor-logos/codev-logo.png',
2727
logoMobile: '/sponsor-logos/codev-logo.png',
28-
testimonial:
29-
'Lorem ipsum dolor sit amet consectetur, adipisicing elit. Reprehenderit, quas possimus. Vitae, officia quia. Doloribus saepe',
28+
description:
29+
'Hire top offshore developers with CoDev—skilled professionals dedicated to your success',
3030
url: 'https://codev.com',
3131
},
3232
{
3333
name: 'Ingenuity Software',
3434
logo: '/sponsor-logos/ingenuity-logo.png',
3535
logoMobile: '/sponsor-logos/ingenuity-logo-mobile.png',
36-
testimonial:
37-
'Lorem ipsum dolor sit amet consectetur, adipisicing elit. Reprehenderit, quas possimus. Vitae, officia quia. Doloribus saepe',
36+
description:
37+
'Ingenuity Software is a Davao-based software development company that turns ideas into impactful digital solutions. ',
3838
url: 'https://ingenuity.ph',
3939
},
4040
{
4141
name: 'PythonPH',
4242
logo: '/sponsor-logos/pythonph-logo.png',
4343
logoMobile: '/sponsor-logos/pythonph-logo-mobile.png',
44-
testimonial:
45-
'Lorem ipsum dolor sit amet consectetur, adipisicing elit. Reprehenderit, quas possimus. Vitae, officia quia. Doloribus saepe',
44+
description:
45+
'Python Philippines is a volunteer-run non-profit supporting the growth of the Python community in the country.',
4646
url: 'https://python.ph',
4747
},
4848
{
4949
name: 'Stace',
5050
logo: '/sponsor-logos/stace-logo.svg',
5151
logoMobile: '/sponsor-logos/stace-logo.svg',
52-
testimonial:
53-
'Lorem ipsum dolor sit amet consectetur, adipisicing elit. Reprehenderit, quas possimus. Vitae, officia quia. Doloribus saepe',
52+
description:
53+
'Stace is a comprehensive platform designed to enhance and simplify the rental experience for both renters and landlords.',
5454
url: 'https://www.stace.app',
5555
},
5656
];
@@ -66,7 +66,7 @@ export function Sponsors() {
6666
{/* Mobile View (Below 768px) */}
6767
<section className="md:hidden">
6868
<SponsorsMobile sponsors={sponsors} />
69-
</section>
69+
</section>
7070
</Container>
7171
</section>
7272
);

app/(home)/components/SponsorsDesktop.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ interface SponsorshipProps {
1919
name: string;
2020
logo: string;
2121
logoMobile: string;
22-
testimonial: string;
22+
description: string;
2323
url: string;
2424
}
2525

@@ -124,10 +124,10 @@ const SponsorsDesktop = ({ sponsors }: { sponsors: SponsorshipProps[] }) => {
124124
loading="lazy"
125125
fill
126126
className={cn(
127-
'object-contain',
128127
featuredSponsor.name === 'PythonPH'
129-
? 'scale-150' // Increase the size for specific sponsors
130-
: '',
128+
? 'scale-150'
129+
: 'scale-100',
130+
'object-contain',
131131
'w-full',
132132
'h-full',
133133
'p-12'
@@ -156,7 +156,7 @@ const SponsorsDesktop = ({ sponsors }: { sponsors: SponsorshipProps[] }) => {
156156
<div className="w-[440px] h-[1.5px] bg-[#FFFFFF]"></div>
157157
</div>
158158
<p className="lg:text-xl mt-4 text-[12px] max-md:m-5 pr-3 pl-3">
159-
{featuredSponsor.testimonial}
159+
{featuredSponsor.description}
160160
<br></br>
161161
<br></br>{featuredSponsor.name}
162162
</p>

app/(home)/components/SponsorsMobile.tsx

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ import React, { useState, useEffect, useRef } from 'react';
99
import Image from 'next/image';
1010
import Link from 'next/link';
1111
import { Button } from '@/components/ui/button';
12-
12+
import { cn } from '@/lib/utils';
1313

1414
interface SponsorsProps {
1515
name: string;
1616
logoMobile: string;
17-
testimonial: string;
17+
description: string;
1818
url: string;
1919
}
2020

@@ -81,21 +81,21 @@ const SponsorsMobile = ({ sponsors }: { sponsors: SponsorsProps[] }) => {
8181
<span className="text-white">Our</span> Sponsors
8282
</h1>
8383
<p className="text-center text-[12px] mb-10 text-white max-w-[31ch] mx-auto">
84-
A big thank you to our generous sponsors whose support makes our
85-
work possible and helps us create lasting impact.
84+
A big thank you to our generous sponsors whose support makes our work
85+
possible and helps us create lasting impact.
8686
</p>
8787

88-
<div className="flex justify-center items-center mb-4">
89-
<Button
90-
className="w-[150px] py-[4px] flex justify-center items-center text-sm pt-3 pb-3"
91-
variant={'sponsor-be-our-sponsor'}
92-
onClick={() => {
93-
window.location.href = '/404';
94-
}}
95-
>
96-
Be Our Sponsor
97-
</Button>
98-
</div>
88+
<div className="flex justify-center items-center mb-4">
89+
<Button
90+
className="w-[150px] py-[4px] flex justify-center items-center text-sm pt-3 pb-3"
91+
variant={'sponsor-be-our-sponsor'}
92+
onClick={() => {
93+
window.location.href = '/404';
94+
}}
95+
>
96+
Be Our Sponsor
97+
</Button>
98+
</div>
9999

100100
<div className="relative">
101101
{/* Carousel or Full View */}
@@ -135,8 +135,8 @@ const SponsorsMobile = ({ sponsors }: { sponsors: SponsorsProps[] }) => {
135135
showAll
136136
? 'opacity-100 scale-100'
137137
: shouldScale
138-
? `opacity-100 ${scaleSize}`
139-
: 'opacity-50'
138+
? `opacity-100 ${scaleSize}`
139+
: 'opacity-50'
140140
}`}
141141
>
142142
{/* Sponsor Logo */}
@@ -151,7 +151,10 @@ const SponsorsMobile = ({ sponsors }: { sponsors: SponsorsProps[] }) => {
151151
alt={sponsor.name}
152152
width={100}
153153
height={100}
154-
className="max-h-[100px] w-auto object-contain cursor-pointer"
154+
className={cn(
155+
'max-h-[100px] w-auto object-contain cursor-pointer',
156+
sponsor.name === 'Stace' ? 'scale-125' : ''
157+
)}
155158
/>
156159
</Link>
157160
</div>
@@ -179,9 +182,9 @@ const SponsorsMobile = ({ sponsors }: { sponsors: SponsorsProps[] }) => {
179182
<div className="w-[100px] h-[1.5px] bg-[#FFFFFF]"></div>
180183
</div>
181184

182-
{/* Name + testimonial */}
185+
{/* Name + description */}
183186
<p className="relative text-white text-[9px] mt-[1px] px-4 leading-tight text-left max-h-[90px] overflow-hidden pb-4">
184-
{sponsor.testimonial}
187+
{sponsor.description}
185188
<br></br>
186189
<br></br>{sponsor.name}
187190
</p>
@@ -224,4 +227,4 @@ const SponsorsMobile = ({ sponsors }: { sponsors: SponsorsProps[] }) => {
224227
);
225228
};
226229

227-
export default SponsorsMobile;
230+
export default SponsorsMobile;
287 KB
Loading

0 commit comments

Comments
 (0)