Skip to content

Commit

Permalink
Update the sponsors page
Browse files Browse the repository at this point in the history
  • Loading branch information
shalithasuranga committed Sep 26, 2024
1 parent ba97a22 commit df22b92
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions src/components/Sponsors.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ const pastDonators = [
'Jarred',
'Varun Suryawanshi'];

const oneTimeDonators = [
'Paolo Caminiti',
['BayLanka', 'https://baylanka.net']];

function Sponsor({sponsor}) {
return (
<div className={clsx('col col--4', styles.sponsor, 'padding-vert--md')}>
Expand All @@ -63,9 +67,11 @@ function Sponsor({sponsor}) {
);
}

function Donator(props) {
function Donator({info}) {
return (
<li>{props.name}</li>
Array.isArray(info) ?
<li><Link href={info[1]}>{info[0]}</Link></li> :
<li>{info}</li>
);
}

Expand All @@ -88,15 +94,25 @@ export default function Sponsors() {
<div className="row">
<ul>
{currentDonators.map((props, idx) => (
<Donator key={idx} name={props} />
<Donator key={idx} info={props} />
))}
</ul>
</div>
<h2>Past</h2>
<div className="row">
<ul>
{pastDonators.map((props, idx) => (
<Donator key={idx} name={props} />
<Donator key={idx} info={props} />
))}
</ul>
</div>
<h1 className="margin-top--lg">One-Time Donators</h1>
<p>The following sponsors financially supported the founder of the CodeZri
organization via Patreon or another payment channel with a one-time donation.</p>
<div className="row">
<ul>
{oneTimeDonators.map((props, idx) => (
<Donator key={idx} info={props} />
))}
</ul>
</div>
Expand Down

0 comments on commit df22b92

Please sign in to comment.