-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from TEDx-SJEC/sponsor
add: sponsors section
- Loading branch information
Showing
7 changed files
with
200 additions
and
13 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import Image from "next/image"; | ||
import { Card } from "@/components/ui/card"; | ||
|
||
interface SponsorCardProps { | ||
name: string; | ||
logoUrl: string; | ||
} | ||
|
||
export function SponsorCard({ name, logoUrl }: SponsorCardProps) { | ||
return ( | ||
<Card className="w-full max-w-sm overflow-hidden transition-all hover:scale-105"> | ||
<div | ||
className={`aspect-video h-full flex bg-gradient-to-br from-red-500 to-red-900 items-center justify-center m-auto`} | ||
> | ||
<Image | ||
src={logoUrl} | ||
alt={`${name} logo`} | ||
width={200} | ||
height={100} | ||
objectFit="contain" | ||
/> | ||
</div> | ||
</Card> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { SponsorCard } from "./sponsor-card"; | ||
import { tedxsjecAssetsPrefix } from "@/lib/utils"; | ||
import { bronzeSponsors, goldSponsors, platinumSponsors } from "@/constants"; | ||
|
||
export function SponsorSection() { | ||
return ( | ||
<section className="py-12"> | ||
<div className="container mx-auto px-4"> | ||
<h2 className="md:text-8xl text-4xl font-black text-center mb-20 px-10"> | ||
Our Sponsors | ||
</h2> | ||
<h2 className="md:text-4xl text-2xl font-bold text-center mb-8 text-slate-300"> | ||
Platinum Sponsors | ||
</h2> | ||
<div className="flex flex-wrap gap-6 my-10 justify-center"> | ||
{platinumSponsors.map((sponsor) => ( | ||
<SponsorCard | ||
key={sponsor.name} | ||
name={sponsor.name} | ||
logoUrl={sponsor.logoUrl} | ||
/> | ||
))} | ||
</div> | ||
<h2 className="md:text-4xl text-2xl font-bold text-center mb-8 text-yellow-400"> | ||
Gold Sponsors | ||
</h2> | ||
<div className="flex flex-wrap gap-6 my-10 justify-center"> | ||
{goldSponsors.map((sponsor) => ( | ||
<SponsorCard | ||
key={sponsor.name} | ||
name={sponsor.name} | ||
logoUrl={sponsor.logoUrl} | ||
/> | ||
))} | ||
</div> | ||
<h2 className="md:text-4xl text-2xl font-bold text-center mb-8 text-yellow-700"> | ||
Bronze Sponsors | ||
</h2> | ||
<div className="flex flex-wrap gap-6 my-10 justify-center"> | ||
{bronzeSponsors.map((sponsor) => ( | ||
<SponsorCard | ||
key={sponsor.name} | ||
name={sponsor.name} | ||
logoUrl={sponsor.logoUrl} | ||
/> | ||
))} | ||
</div> | ||
</div> | ||
</section> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters