Skip to content

Commit

Permalink
feat: add new sponsors
Browse files Browse the repository at this point in the history
  • Loading branch information
betich committed Jun 21, 2024
1 parent c589540 commit fb02f86
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 4 deletions.
31 changes: 27 additions & 4 deletions src/components/Landing/Sponsor/List.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import type { Sponsor } from "../../sponsor";
import { individualSponsors, type Sponsor } from "../../sponsor";

export default function SponsorList({
sponsors,
}: Readonly<{ sponsors: Sponsor[] }>) {
return (
<div className="flex flex-col gap-y-8">
<div className="mx-4 flex flex-col gap-y-8">
<h2 className="font-workbench text-2xl font-bold">
These people are kind (&rich) AF
</h2>
<p className="font-arimo text-lg font-light">
thank you for your support!
</p>
<div className="justify-centers grid w-full grid-cols-3 items-center gap-8">
<div className="grid w-full grid-cols-3 items-center justify-center gap-8">
{sponsors.map((sponsor: Sponsor) => (
<div
key={sponsor.id}
className="h-full w-full transition-all duration-500 ease-in-out hover:shadow-lg"
className="h-auto w-full transition-all duration-500 ease-in-out hover:shadow-lg"
>
<a href={sponsor.link} rel="noopener noreferrer">
<img
Expand All @@ -27,6 +27,29 @@ export default function SponsorList({
</div>
))}
</div>

<h2 className="mt-8 font-workbench text-2xl font-bold">
Individual sponsors
</h2>
<p className="font-arimo text-lg font-light">
Every help counts! Donate now at{" "}
<a
className="underline hover:no-underline"
href="https://grtn.org/e/sht8/sponsor_form"
>
this form
</a>
</p>
<div className="grid grid-cols-3 gap-4 font-arimo text-lg sm:grid-cols-5">
{individualSponsors.map((sponsor) => (
<div className="flex flex-col items-center gap-2">
<div className="text-center">{sponsor.name}</div>
<div className="text-center">
💰 ฿{String(sponsor.amount).padStart(2)}
</div>
</div>
))}
</div>
</div>
);
}
11 changes: 11 additions & 0 deletions src/components/sponsor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ const sponsors: Record<SponsorType, Sponsor[]> = {
"Non-Monetary": [],
};

export const individualSponsors = [
{
name: "bier.bbbb",
amount: 69.69,
},
{
name: "ChunGPT",
amount: 888,
},
];

function getSponsors(type: SponsorType): Sponsor[] {
return sponsors[type];
}
Expand Down

0 comments on commit fb02f86

Please sign in to comment.