feat(patreon): Added patreon

This commit is contained in:
Timothy Stewart 2021-10-14 20:45:57 -05:00
parent 8cd8f4caac
commit 502bee07e6
7 changed files with 43 additions and 13 deletions

View File

@ -95,6 +95,7 @@ services:
- STRAVA=https://www.strava.com/
- BUYMEACOFFEE=https://www.buymeacoffee.com/
- GITLAB=https://www.gitlab.com/
- PATREON=https://www.patreon.com/technotim
ports:
- 8080:3000
restart: unless-stopped

View File

@ -61,6 +61,7 @@ services:
- STRAVA=https://www.strava.com/
- BUYMEACOFFEE=https://www.buymeacoffee.com/
- GITLAB=https://www.gitlab.com/
- PATREON=https://www.patreon.com/technotim
ports:
- 8080:3000

View File

@ -422,5 +422,16 @@ button:hover,
}
.button.button-gitlab:hover,
.button.button-gitlab:focus {
filter: brightness(90%) }
filter: brightness(90%)
}
/* Patreon */
.button.button-patreon {
color: #FFFFFF;
background-color: #FF424D;
}
.button.button-patreon:hover,
.button.button-patreon:focus {
filter: brightness(90%)
}

View File

@ -37,6 +37,7 @@ import whatsappLogo from '../../icons/whatsapp.svg';
import stravaLogo from '../../icons/strava.svg';
import buyMeACoffeeLogo from '../../icons/buymeacoffee.svg';
import gitlabLogo from '../../icons/gitlab.svg';
import patreonLogo from '../../icons/patreon.svg';
function Home(props) {
return (
@ -338,6 +339,14 @@ function Home(props) {
logo={gitlabLogo}
/>
)}
{runtimeConfig.PATREON && (
<Button
name="patreon"
href={runtimeConfig.PATREON}
displayName="Patreon"
logo={patreonLogo}
/>
)}
<div>
<p className="footer">{runtimeConfig.FOOTER}</p>
</div>

View File

@ -55,6 +55,7 @@ export const runtimeConfig =
STRAVA: window?.env?.STRAVA,
BUYMEACOFFEE: window?.env?.BUYMEACOFFEE,
GITLAB: window?.env?.GITLAB,
PATREON: window?.env?.PATREON,
}
: {
// server
@ -191,4 +192,7 @@ export const runtimeConfig =
GITLAB: nodeIsProduction
? process.env.GITLAB
: process.env.RAZZLE_GITLAB,
PATREON: nodeIsProduction
? process.env.PATREON
: process.env.RAZZLE_PATREON,
};

4
src/icons/patreon.svg Normal file
View File

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 23.94 22.98">
<path d="M15.38,1.23A8.62,8.62,0,1,0,24,9.86,8.63,8.63,0,0,0,15.38,1.23Z" transform="translate(-0.03 -1.23)" style="fill:#fff;fill-rule:evenodd"/>
<path d="M0,24.21H4.24v-23H0Z" transform="translate(-0.03 -1.23)" style="fill:#fff;fill-rule:evenodd"/>
</svg>

After

Width:  |  Height:  |  Size: 332 B

View File

@ -1411,9 +1411,9 @@
integrity sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==
"@types/node@*":
version "16.10.9"
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.10.9.tgz#8f1cdd517972f76a3b928298f4c0747cd6fef25a"
integrity sha512-H9ReOt+yqIJPCutkTYjFjlyK6WEMQYT9hLZMlWtOjFQY2ItppsWZ6RJf8Aw+jz5qTYceuHvFgPIaKOHtLAEWBw==
version "16.11.0"
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.0.tgz#4b95f2327bacd1ef8f08d8ceda193039c5d7f52e"
integrity sha512-8MLkBIYQMuhRBQzGN9875bYsOhPnf/0rgXGo66S2FemHkhbn9qtsz9ywV1iCG+vbjigE4WUNVvw37Dx+L0qsPg==
"@types/normalize-package-data@^2.4.0":
version "2.4.1"
@ -2585,9 +2585,9 @@ caniuse-api@^3.0.0:
lodash.uniq "^4.5.0"
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001125, caniuse-lite@^1.0.30001264, caniuse-lite@^1.0.30001265:
version "1.0.30001265"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001265.tgz#0613c9e6c922e422792e6fcefdf9a3afeee4f8c3"
integrity sha512-YzBnspggWV5hep1m9Z6sZVLOt7vrju8xWooFAgN6BA5qvy98qPAPb7vNUzypFaoh2pb3vlfzbDO8tB57UPGbtw==
version "1.0.30001267"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001267.tgz#b1cf2937175afc0570e4615fc2d2f9069fa0ed30"
integrity sha512-r1mjTzAuJ9W8cPBGbbus8E0SKcUP7gn03R14Wk8FlAlqhH9hroy9nLqmpuXlfKEw/oILW+FGz47ipXV2O7x8lg==
capture-exit@^2.0.0:
version "2.0.0"
@ -3637,9 +3637,9 @@ ee-first@1.1.1:
integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=
electron-to-chromium@^1.3.564, electron-to-chromium@^1.3.867:
version "1.3.867"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.867.tgz#7cb484db4b57c28da0b65c51e434c3a1f3f9aa0d"
integrity sha512-WbTXOv7hsLhjJyl7jBfDkioaY++iVVZomZ4dU6TMe/SzucV6mUAs2VZn/AehBwuZMiNEQDaPuTGn22YK5o+aDw==
version "1.3.869"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.869.tgz#c319171803d796639b1af3ddbf07a5a087037ccb"
integrity sha512-mcoyZ2jd691yAx0OHqqGw+aPCcRYVDw/bqPy660aBfcQkUcWcfAVsbL4M9WeevflKH4MfpKCtnOngVLM7HzSzA==
elliptic@^6.5.3:
version "6.5.4"
@ -5354,9 +5354,9 @@ is-color-stop@^1.0.0:
rgba-regex "^1.0.0"
is-core-module@^2.2.0, is-core-module@^2.5.0, is-core-module@^2.7.0:
version "2.7.0"
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.7.0.tgz#3c0ef7d31b4acfc574f80c58409d568a836848e3"
integrity sha512-ByY+tjCciCr+9nLryBYcSD50EOGWt95c7tIsKTG1J2ixKKXPvF7Ej3AVd+UfDydAJom3biBGDBALaO79ktwgEQ==
version "2.8.0"
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.8.0.tgz#0321336c3d0925e497fd97f5d95cb114a5ccd548"
integrity sha512-vd15qHsaqrRL7dtH6QNuy0ndJmRDrS9HAM1CAiSifNUFv4x1a0CCVsj18hJ1mShxIG6T2i1sO78MkP56r0nYRw==
dependencies:
has "^1.0.3"