From fb02f862b23241789f9e1c270537e4dfa66399f5 Mon Sep 17 00:00:00 2001 From: betich Date: Sat, 22 Jun 2024 00:32:08 +0700 Subject: [PATCH] feat: add new sponsors --- src/components/Landing/Sponsor/List.tsx | 31 +++++++++++++++++++++---- src/components/sponsor.ts | 11 +++++++++ 2 files changed, 38 insertions(+), 4 deletions(-) diff --git a/src/components/Landing/Sponsor/List.tsx b/src/components/Landing/Sponsor/List.tsx index aac8025..6ec0fa2 100644 --- a/src/components/Landing/Sponsor/List.tsx +++ b/src/components/Landing/Sponsor/List.tsx @@ -1,21 +1,21 @@ -import type { Sponsor } from "../../sponsor"; +import { individualSponsors, type Sponsor } from "../../sponsor"; export default function SponsorList({ sponsors, }: Readonly<{ sponsors: Sponsor[] }>) { return ( -
+

These people are kind (&rich) AF

thank you for your support!

-
+
{sponsors.map((sponsor: Sponsor) => ( + +

+ Individual sponsors +

+

+ Every help counts! Donate now at{" "} + + this form + +

+
+ {individualSponsors.map((sponsor) => ( +
+
{sponsor.name}
+
+ 💰 ฿{String(sponsor.amount).padStart(2)} +
+
+ ))} +
); } diff --git a/src/components/sponsor.ts b/src/components/sponsor.ts index 4b18133..45eda8d 100644 --- a/src/components/sponsor.ts +++ b/src/components/sponsor.ts @@ -52,6 +52,17 @@ const sponsors: Record = { "Non-Monetary": [], }; +export const individualSponsors = [ + { + name: "bier.bbbb", + amount: 69.69, + }, + { + name: "ChunGPT", + amount: 888, + }, +]; + function getSponsors(type: SponsorType): Sponsor[] { return sponsors[type]; }