mirror of
https://github.com/techno-tim/littlelink-server.git
synced 2024-11-25 05:55:21 +01:00
feat(button): Added Buy Me a coffee
This commit is contained in:
parent
81fd3d1bf5
commit
eccbdd275b
@ -52,6 +52,7 @@ services:
|
||||
- MASTODON=https://mastodon.social/
|
||||
- MICRO_BLOG=https://micro.blog/
|
||||
- STRAVA=https://strava.com/
|
||||
- BUYMEACOFFEE=https://www.buymeacoffee.com/
|
||||
|
||||
ports:
|
||||
- 8080:3000
|
||||
|
@ -404,3 +404,14 @@ button:hover,
|
||||
.button.button-strava:focus {
|
||||
filter: brightness(90%);
|
||||
}
|
||||
|
||||
/* Buy Me a Coffee */
|
||||
.button.button-buymeacoffee {
|
||||
color: #000000;
|
||||
background-color: #FFDD00;
|
||||
}
|
||||
.button.button-strava:hover,
|
||||
.button.button-strava:focus {
|
||||
filter: brightness(90%);
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,6 @@ import figmaLogo from '../../icons/figma.svg';
|
||||
import telegramLogo from '../../icons/telegram.svg';
|
||||
import tumblrLogo from '../../icons/tumblr.svg';
|
||||
import steamLogo from '../../icons/steam.svg';
|
||||
import stravaLogo from '../../icons/strava.svg';
|
||||
import vimeoLogo from '../../icons/vimeo.svg';
|
||||
import wordpressLogo from '../../icons/wordpress.svg';
|
||||
import goodreadsLogo from '../../icons/goodreads.svg';
|
||||
@ -35,6 +34,8 @@ import microblogLogo from '../../icons/microblog.svg';
|
||||
import emailLogo from '../../icons/email.svg';
|
||||
import emailAltLogo from '../../icons/email_alt.svg';
|
||||
import whatsappLogo from '../../icons/whatsapp.svg';
|
||||
import stravaLogo from '../../icons/strava.svg';
|
||||
import buyMeACoffeeLogo from '../../icons/buymeacoffee.svg';
|
||||
|
||||
function Home(props) {
|
||||
return (
|
||||
@ -318,6 +319,14 @@ function Home(props) {
|
||||
logo={stravaLogo}
|
||||
/>
|
||||
)}
|
||||
{runtimeConfig.BUYMEACOFFEE && (
|
||||
<Button
|
||||
name="buymeacoffee"
|
||||
href={runtimeConfig.BUYMEACOFFEE}
|
||||
displayName="Buy Me a Coffee"
|
||||
logo={buyMeACoffeeLogo}
|
||||
/>
|
||||
)}
|
||||
<div>
|
||||
<p className="footer">{runtimeConfig.FOOTER}</p>
|
||||
</div>
|
||||
|
@ -50,6 +50,7 @@ export const runtimeConfig =
|
||||
FOOTER: window?.env?.FOOTER,
|
||||
WHATSAPP: window?.env?.WHATSAPP,
|
||||
STRAVA: window?.env?.STRAVA,
|
||||
BUYMEACOFFEE: window?.env?.BUYMEACOFFEE,
|
||||
}
|
||||
: {
|
||||
// server
|
||||
@ -174,4 +175,7 @@ export const runtimeConfig =
|
||||
STRAVA: nodeIsProduction
|
||||
? process.env.STRAVA
|
||||
: process.env.RAZZLE_STRAVA,
|
||||
BUYMEACOFFEE: nodeIsProduction
|
||||
? process.env.BUYMEACOFFEE
|
||||
: process.env.RAZZLE_BUYMEACOFFEE,
|
||||
};
|
||||
|
17
src/icons/buymeacoffee.svg
Normal file
17
src/icons/buymeacoffee.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 7.9 KiB |
Loading…
Reference in New Issue
Block a user