From 6fe3d4304920e52a0d27d71bc1a05fdea4915dc5 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 17 May 2020 16:49:34 -0400 Subject: [PATCH] Adding a sponsor. --- ui/src/components/sponsors.tsx | 24 +++++++++++++++++++++++- ui/translations/en.json | 2 ++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/ui/src/components/sponsors.tsx b/ui/src/components/sponsors.tsx index b0b7e5f66..95306d355 100644 --- a/ui/src/components/sponsors.tsx +++ b/ui/src/components/sponsors.tsx @@ -4,6 +4,11 @@ import { i18n } from '../i18next'; import { T } from 'inferno-i18next'; import { repoUrl } from '../utils'; +interface SilverUser { + name: string; + link: string; +} + let general = [ 'Forrest Weghorst', 'Serge Tarkovski', @@ -13,7 +18,12 @@ let general = [ 'NotTooHighToHack', ]; let highlighted = ['Oskenso Kashi', 'Alex Benishek']; -// let silver = []; +let silver: Array = [ + { + name: 'Redjoker', + link: 'https://redcard.iww.org/user/register', + }, +]; // let gold = []; // let latinum = []; @@ -72,6 +82,18 @@ export class Sponsors extends Component { return (
{i18n.t('sponsors')}
+

{i18n.t('silver_sponsors')}

+
+ {silver.map(s => ( + + ))} +

{i18n.t('general_sponsors')}

{highlighted.map(s => ( diff --git a/ui/translations/en.json b/ui/translations/en.json index a880b0c50..6509bc64e 100644 --- a/ui/translations/en.json +++ b/ui/translations/en.json @@ -195,6 +195,8 @@ "donate": "Donate", "general_sponsors": "General Sponsors are those that pledged $10 to $39 to Lemmy.", + "silver_sponsors": + "Silver Sponsors are those that pledged $40 to Lemmy.", "crypto": "Crypto", "bitcoin": "Bitcoin", "ethereum": "Ethereum",