]> Untitled Git - lemmy.git/commitdiff
Adding a sponsor.
authorDessalines <tyhou13@gmx.com>
Sun, 17 May 2020 20:49:34 +0000 (16:49 -0400)
committerDessalines <tyhou13@gmx.com>
Sun, 17 May 2020 20:49:34 +0000 (16:49 -0400)
ui/src/components/sponsors.tsx
ui/translations/en.json

index b0b7e5f666751e4693a09b92765085196be01646..95306d3556f9534172cbc814f0703ab8844af8ab 100644 (file)
@@ -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<SilverUser> = [
+  {
+    name: 'Redjoker',
+    link: 'https://redcard.iww.org/user/register',
+  },
+];
 // let gold = [];
 // let latinum = [];
 
@@ -72,6 +82,18 @@ export class Sponsors extends Component<any, any> {
     return (
       <div class="container">
         <h5>{i18n.t('sponsors')}</h5>
+        <p>{i18n.t('silver_sponsors')}</p>
+        <div class="row card-columns">
+          {silver.map(s => (
+            <div class="card col-12 col-md-2">
+              <div>
+                <a href={s.link} target="_blank">
+                  ðŸ’Ž {s.name}
+                </a>
+              </div>
+            </div>
+          ))}
+        </div>
         <p>{i18n.t('general_sponsors')}</p>
         <div class="row card-columns">
           {highlighted.map(s => (
index a880b0c507201b9301ecef396999ada5882eddb2..6509bc64ef359058726480be10098f3ddf7a146e 100644 (file)
     "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",