Clean up sponsors (#61)

This commit is contained in:
Dessalines 2021-09-08 17:19:27 -04:00 committed by GitHub
parent def397596f
commit b0fc4feb8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 70 additions and 25 deletions

View file

@ -16,6 +16,7 @@
"warnOnUnsupportedTypeScriptVersion": false "warnOnUnsupportedTypeScriptVersion": false
}, },
"rules": { "rules": {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": 0, "@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-module-boundary-types": 0, "@typescript-eslint/explicit-module-boundary-types": 0,
"arrow-body-style": 0, "arrow-body-style": 0,

@ -1 +1 @@
Subproject commit bb4ebe8787df58390f48d1836f3670445d440e9b Subproject commit eb718ef3be97ccb4d38988e2ed28f294e73451c0

@ -1 +1 @@
Subproject commit cf0e5ea14ef2355f0675a16eee74b67242fcccab Subproject commit 3db2dc45f92e8806d668839779f076e795927feb

@ -1 +1 @@
Subproject commit febf8f8d952771b6144bef9ac29c825e7d33376f Subproject commit 881d9ac4e5f060cf14b18c6b8661e8354b87d130

View file

@ -55,3 +55,8 @@ img {
display: inline-block !important; display: inline-block !important;
padding: 0px 6px 0px 6px !important; padding: 0px 6px 0px 6px !important;
} }
.gold {
border-color: #FFD700 !important;
color: #FFD700;
}

View file

@ -7,29 +7,43 @@ import { translators } from "../translations/translators";
import { languagesAll, countries } from "countries-list"; import { languagesAll, countries } from "countries-list";
const title = i18n.t("support_title"); const title = i18n.t("support_title");
const avatarSize = 40;
interface LinkedSponsor { interface LinkedSponsor {
name: string; name: string;
link: string; link: string;
} }
let silverSponsors: LinkedSponsor[] = [ interface GoldSponsor {
{ name: "RedJoker", link: "https://iww.org" }, name: string;
link: string;
avatar: string;
}
let goldSponsors: GoldSponsor[] = [
{
name: "purplerabbit",
link: "https://purplerabbit.gitlab.io",
avatar: "https://purplerabbit.gitlab.io/assets/avatar.jpeg",
},
]; ];
let highlightedSponsors = ["DQW", "Alex Benishek"];
let silverSponsors: LinkedSponsor[] = [];
let highlightedSponsors = ["DQW", "John Knapp"];
let sponsors = [ let sponsors = [
"seahorse", "Anthony",
"Tommaso", "Remi Rampin",
"Jamie Gray", "Cameron C",
"Vegard",
"0ti.me",
"Brendan", "Brendan",
"mexicanhalloween", "mexicanhalloween .",
"William Moore",
"Rachel Schmitz",
"comradeda",
"Jonathan Cremin",
"Arthur Nieuwland", "Arthur Nieuwland",
"Forrest Weghorst", "Forrest Weghorst",
"Andre Vallestero", "Luke Black",
"Brandon Abbott",
"Eon Gattignolo",
]; ];
export interface Coder { export interface Coder {
@ -85,6 +99,29 @@ export class Support extends Component<any, any> {
</div> </div>
<div class="text-center"> <div class="text-center">
<h2>{i18n.t("sponsors")}</h2> <h2>{i18n.t("sponsors")}</h2>
{goldSponsors.length > 0 && (
<div>
<p>{i18n.t("gold_sponsors_desc")}</p>
<div class="row is-horizontal-align">
{goldSponsors.map(s => (
<div class="col">
<a class="button outline gold" href={s.link}>
<img
class="mr-2 is-rounded"
src={s.avatar}
width={avatarSize}
height={avatarSize}
/>
<div>{s.name}</div>
</a>
</div>
))}
</div>
<br />
</div>
)}
{silverSponsors.length > 0 && (
<div>
<p>{i18n.t("silver_sponsors_desc")}</p> <p>{i18n.t("silver_sponsors_desc")}</p>
<div class="row is-horizontal-align"> <div class="row is-horizontal-align">
{silverSponsors.map(s => ( {silverSponsors.map(s => (
@ -96,6 +133,8 @@ export class Support extends Component<any, any> {
))} ))}
</div> </div>
<br /> <br />
</div>
)}
<p>{i18n.t("general_sponsors_desc")}</p> <p>{i18n.t("general_sponsors_desc")}</p>
<div class="row is-horizontal-align"> <div class="row is-horizontal-align">
{highlightedSponsors.map(s => ( {highlightedSponsors.map(s => (