From 992923bf1512ac4e48064cb37773cdcd22ceb4a3 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Thu, 10 Nov 2022 13:33:24 -0600 Subject: [PATCH] SponsorDialog: make team link inline Also buttons cannot be inside of `

` tags. --- src/sponsor/SponsorDialog.tsx | 34 +++++++++++++++++++------------- src/sponsor/translations/en.json | 6 ++++-- 2 files changed, 24 insertions(+), 16 deletions(-) diff --git a/src/sponsor/SponsorDialog.tsx b/src/sponsor/SponsorDialog.tsx index 64592aee..7e8320df 100644 --- a/src/sponsor/SponsorDialog.tsx +++ b/src/sponsor/SponsorDialog.tsx @@ -30,14 +30,23 @@ const SponsorDialog: React.VoidFunctionComponent = () => {

{i18n.translate('whoAreWe.heading')}

- {i18n.translate('whoAreWe.team')}{' '} - - {i18n.translate('whoAreWe.learnMore')} - - + {i18n.translate('whoAreWe.team.about', { + team: ( + <> + + {i18n.translate('whoAreWe.team.team')} + + + + ), + })}

-

{i18n.translate('whoAreWe.mission')}

+

{i18n.translate('whyDonate.heading')}

{i18n.translate('whyDonate.body')}

@@ -49,10 +58,13 @@ const SponsorDialog: React.VoidFunctionComponent = () => {

  • {i18n.translate('donateReason.supportOthers')}
  • +

    {i18n.translate('donateOptions.heading')}

    {i18n.translate('donateOptions.options')}

    {i18n.translate('donateOptions.thanks')}

    -

    +

    +
    +
    { GitHub Sponsors -

    -

    { Patreon -

    -

    { Paypal -

    -

    { > pybricks.eth -

    +
    ); diff --git a/src/sponsor/translations/en.json b/src/sponsor/translations/en.json index 6a342cd2..fd721ea1 100644 --- a/src/sponsor/translations/en.json +++ b/src/sponsor/translations/en.json @@ -2,8 +2,10 @@ "title": "Sponsor {pybricks}", "whoAreWe": { "heading": "Who are we?", - "team": "Pybricks is run by a small team, supported by a community of open source coding enthusiasts from all around the world.", - "learnMore": "Learn more.", + "team": { + "about": "Pybricks is run by a small {team}, supported by a community of open source coding enthusiasts from all around the world.", + "team": "team" + }, "mission": "Our mission is to make robotics fun and accessible and teach a million people how to code. And you can help!" }, "whyDonate": {