Skip to content

Commit

Permalink
Add first sponsor
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirAgassi committed Dec 13, 2024
1 parent 7c45ca8 commit 1b8bdac
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions src/components/sections/Sponsors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ const tiers = [
{
name: "Genesis",
sponsors: [
{ name: "Available" },
{
name: "Fairblock Network",
image: "/sponsors/fairblock.png",
url: "https://www.fairblock.network/"
},
{ name: "Available" },
{ name: "Available" },
{ name: "Available" },
Expand Down Expand Up @@ -118,20 +122,31 @@ export const Sponsors = () => {
whileHover={{ scale: 1.05 }}
className={`relative group w-full ${
tier.name === "Visionary Partner" ? 'aspect-[2/1]' :
tier.name === "Momentum Partners" ? 'aspect-[2/1]' :
tier.name === "Momentum Partners" || tier.name === "Genesis" ? 'aspect-[2/1]' :
'aspect-[3/2]'
} rounded-xl overflow-hidden`}
} rounded-xl overflow-hidden cursor-pointer`}
onClick={() => sponsor.url && window.open(sponsor.url, '_blank', 'noopener noreferrer')}

Check failure on line 128 in src/components/sections/Sponsors.tsx

View workflow job for this annotation

GitHub Actions / deploy

Property 'url' does not exist on type '{ name: string; type: string; } | { name: string; image: string; url: string; } | { name: string; image?: undefined; url?: undefined; }'.

Check failure on line 128 in src/components/sections/Sponsors.tsx

View workflow job for this annotation

GitHub Actions / deploy

Property 'url' does not exist on type '{ name: string; type: string; } | { name: string; image: string; url: string; } | { name: string; image?: undefined; url?: undefined; }'.
>
<div className={`absolute inset-0 bg-gradient-to-br ${getRandomGradient(index)} opacity-50 group-hover:opacity-70 transition-all duration-300`} />
<div className="absolute inset-0 bg-black/20 group-hover:bg-black/10 transition-colors duration-300" />
<div className="absolute inset-[1px] rounded-xl bg-[rgb(var(--color-background))] bg-opacity-90 backdrop-blur-sm border border-white/10" />

<div className="relative h-full flex flex-col items-center justify-center p-4">
{/* Placeholder Design */}
<div className="w-12 h-12 rounded-lg bg-gradient-to-br from-white/10 to-white/5 flex items-center justify-center mb-3">
<div className="w-6 h-6 rounded bg-white/20" />
</div>
<div className="text-center">
{sponsor.image ? (

Check failure on line 135 in src/components/sections/Sponsors.tsx

View workflow job for this annotation

GitHub Actions / deploy

Property 'image' does not exist on type '{ name: string; type: string; } | { name: string; image: string; url: string; } | { name: string; image?: undefined; url?: undefined; }'.
<div className="px-8 py-6 w-full flex items-center justify-center">
<img
src={sponsor.image}

Check failure on line 138 in src/components/sections/Sponsors.tsx

View workflow job for this annotation

GitHub Actions / deploy

Property 'image' does not exist on type '{ name: string; type: string; } | { name: string; image: string; url: string; } | { name: string; image?: undefined; url?: undefined; }'.
alt={sponsor.name}
className="w-full h-auto object-contain max-h-16"
/>
</div>
) : (
/* Placeholder Design */
<div className="w-12 h-12 rounded-lg bg-gradient-to-br from-white/10 to-white/5 flex items-center justify-center mb-3">
<div className="w-6 h-6 rounded bg-white/20" />
</div>
)}
<div className="text-center -mt-2">
<div className="text-white/80 font-medium group-hover:text-white transition-colors duration-300">
{sponsor.name}
</div>
Expand Down

0 comments on commit 1b8bdac

Please sign in to comment.