diff --git a/src/components/Support/Support.jsx b/src/components/Support/Support.jsx index 5a1e82b5474d..84b0892db897 100644 --- a/src/components/Support/Support.jsx +++ b/src/components/Support/Support.jsx @@ -9,9 +9,6 @@ import Additional from "./AdditionalSupporters.mjs"; /* eslint import/no-unresolved: ["error", { ignore: ["_supporters\.json$"] }] */ import Backers from "./_supporters.json"; -// Load Styling -import "./Support.scss"; - const SUPPORTERS = [...Backers]; // Merge or add additional backers/sponsors @@ -88,6 +85,16 @@ function formatMoney(number) { return Math.round(number).toLocaleString("en-US"); } +const AVATAR_CLASSES = { + backer: + "inline-block w-[31px] h-[31px] rounded-full border border-white shadow-[0_0_0_1px_rgb(112,202,10)] overflow-hidden align-middle", + latest: "max-h-16 max-w-48 align-middle", + bronze: "max-h-8 max-w-24 align-middle", + silver: "max-h-16 max-w-48 align-middle", + gold: "max-h-24 max-w-72 align-middle", + platinum: "max-h-32 max-w-full min-[400px]:max-w-96 align-middle", +}; + export default class Support extends Component { static propTypes = { rank: PropTypes.string, @@ -198,8 +205,11 @@ export default class Support extends Component { type === "monthly" ? "Monthly " : "" }Sponsors`} -
The following Backers are individuals who have @@ -216,7 +226,7 @@ export default class Support extends Component {
) : (
-
+
{type === "monthly" ? `${rank} monthly` : rank} sponsors
{type === "monthly" ? (
@@ -246,7 +256,7 @@ export default class Support extends Component {
} ($${formatMoney(supporter.monthlyDonations / 100)} monthly)`}
>
{
))}
-