mirror of
https://github.com/techno-tim/littlelink-server.git
synced 2024-11-22 05:25:13 +01:00
Add Paypal to the list of brands (#50)
* Add Paypal to the list of brands * Moved Paypal to the EOF
This commit is contained in:
parent
24f6387f4c
commit
94accc5c7d
@ -113,6 +113,7 @@ services:
|
||||
- UMAMI_WEBSITE_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
|
||||
- UMAMI_APP_URL=https://your-umami-app.com
|
||||
- BUTTON_ORDER=YOUTUBE,TWITCH,TWITTER,GITHUB,INSTAGRAM,DISCORD,FACEBOOK,TIKTOK,KIT,PATREON # use ENV variable names for order, listed buttons will be boosted to the top
|
||||
- PAYPAL=https://www.paypal.me/user
|
||||
ports:
|
||||
- 8080:3000
|
||||
restart: unless-stopped
|
||||
|
@ -66,6 +66,7 @@ services:
|
||||
- UMAMI_WEBSITE_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
|
||||
- UMAMI_APP_URL=https://your-umami-app.com
|
||||
- BUTTON_ORDER=YOUTUBE,TWITCH,TWITTER,GITHUB,INSTAGRAM,DISCORD,FACEBOOK,TIKTOK,KIT,PATREON
|
||||
- PAYPAL=https://www.paypal.me/user
|
||||
|
||||
ports:
|
||||
- 8080:3000
|
||||
|
@ -445,3 +445,13 @@ button:hover,
|
||||
filter: brightness(90%);
|
||||
}
|
||||
|
||||
/* Paypal */
|
||||
.button.button-paypal {
|
||||
color: #ffffff;
|
||||
background-color: #1F264F;
|
||||
}
|
||||
.button.button-paypal:hover,
|
||||
.button.button-paypal:focus {
|
||||
filter: brightness(90%);
|
||||
}
|
||||
|
||||
|
@ -40,6 +40,7 @@ import gitlabLogo from '../../icons/gitlab.svg';
|
||||
import patreonLogo from '../../icons/patreon.svg';
|
||||
import devtoLogo from '../../icons/devto.svg';
|
||||
import Sort from '../Sort/Sort';
|
||||
import paypalLogo from '../../icons/paypal.svg';
|
||||
|
||||
function Home(props) {
|
||||
let order = [];
|
||||
@ -404,6 +405,15 @@ function Home(props) {
|
||||
order={buttonOrder('DEVTO')}
|
||||
/>
|
||||
)}
|
||||
{runtimeConfig.PAYPAL && (
|
||||
<Button
|
||||
name="paypal"
|
||||
href={runtimeConfig.PAYPAL}
|
||||
displayName="Paypal"
|
||||
logo={paypalLogo}
|
||||
order={buttonOrder('PAYPAL')}
|
||||
/>
|
||||
)}
|
||||
</Sort>
|
||||
<div>
|
||||
<p className="footer">{runtimeConfig.FOOTER}</p>
|
||||
|
@ -60,6 +60,7 @@ export const runtimeConfig =
|
||||
UMAMI_WEBSITE_ID: window?.env?.UMAMI_WEBSITE_ID,
|
||||
UMAMI_APP_URL: window?.env?.UMAMI_APP_URL,
|
||||
BUTTON_ORDER: window?.env?.BUTTON_ORDER,
|
||||
PAYPAL: window?.env?.PAYPAL,
|
||||
}
|
||||
: {
|
||||
// server
|
||||
@ -209,4 +210,7 @@ export const runtimeConfig =
|
||||
BUTTON_ORDER: nodeIsProduction
|
||||
? process.env.BUTTON_ORDER
|
||||
: process.env.RAZZLE_BUTTON_ORDER,
|
||||
PAYPAL: nodeIsProduction
|
||||
? process.env.PAYPAL
|
||||
: process.env.RAZZLE_PAYPAL,
|
||||
};
|
||||
|
9
src/icons/paypal.svg
Normal file
9
src/icons/paypal.svg
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg width="256px" height="302px" viewBox="0 0 256 302" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
|
||||
<g>
|
||||
<path d="M217.168476,23.5070146 C203.234077,7.62479651 178.045612,0.815753338 145.823355,0.815753338 L52.3030619,0.815753338 C45.7104431,0.815753338 40.1083819,5.6103852 39.0762042,12.1114399 L0.136468302,259.076601 C-0.637664968,263.946149 3.13311322,268.357876 8.06925331,268.357876 L65.804612,268.357876 L80.3050438,176.385849 L79.8555471,179.265958 C80.8877248,172.764903 86.4481659,167.970272 93.0324607,167.970272 L120.46841,167.970272 C174.366398,167.970272 216.569147,146.078116 228.897012,82.7490197 C229.263268,80.8761167 229.579581,79.0531577 229.854273,77.2718188 C228.297683,76.4477414 228.297683,76.4477414 229.854273,77.2718188 C233.525163,53.8646924 229.829301,37.9325302 217.168476,23.5070146" fill="#27346A"></path>
|
||||
<path d="M102.396976,68.8395929 C103.936919,68.1070797 105.651665,67.699203 107.449652,67.699203 L180.767565,67.699203 C189.449511,67.699203 197.548776,68.265236 204.948824,69.4555699 C207.071448,69.7968545 209.127479,70.1880831 211.125242,70.6375799 C213.123006,71.0787526 215.062501,71.5781934 216.943728,72.1275783 C217.884341,72.4022708 218.808307,72.6852872 219.715624,72.9849517 C223.353218,74.2002577 226.741092,75.61534 229.854273,77.2718188 C233.525163,53.8563683 229.829301,37.9325302 217.168476,23.5070146 C203.225753,7.62479651 178.045612,0.815753338 145.823355,0.815753338 L52.2947379,0.815753338 C45.7104431,0.815753338 40.1083819,5.6103852 39.0762042,12.1114399 L0.136468302,259.068277 C-0.637664968,263.946149 3.13311322,268.349552 8.0609293,268.349552 L65.804612,268.349552 L95.8875974,77.5798073 C96.5035744,73.6675208 99.0174265,70.4627756 102.396976,68.8395929 Z" fill="#27346A"></path>
|
||||
<path d="M228.897012,82.7490197 C216.569147,146.069792 174.366398,167.970272 120.46841,167.970272 L93.0241367,167.970272 C86.4398419,167.970272 80.8794007,172.764903 79.8555471,179.265958 L61.8174095,293.621258 C61.1431644,297.883153 64.4394738,301.745495 68.7513129,301.745495 L117.421821,301.745495 C123.182038,301.745495 128.084882,297.550192 128.983876,291.864891 L129.458344,289.384335 L138.631407,231.249423 L139.222412,228.036354 C140.121406,222.351053 145.02425,218.15575 150.784467,218.15575 L158.067979,218.15575 C205.215193,218.15575 242.132193,199.002194 252.920115,143.605884 C257.423406,120.456802 255.092683,101.128442 243.181019,87.5519756 C239.568397,83.4399129 235.081754,80.0437153 229.854273,77.2718188 C229.571257,79.0614817 229.263268,80.8761167 228.897012,82.7490197 L228.897012,82.7490197 Z" fill="#2790C3"></path>
|
||||
<path d="M216.952052,72.1275783 C215.070825,71.5781934 213.13133,71.0787526 211.133566,70.6375799 C209.135803,70.1964071 207.071448,69.8051785 204.957148,69.4638939 C197.548776,68.265236 189.457835,67.699203 180.767565,67.699203 L107.457976,67.699203 C105.651665,67.699203 103.936919,68.1070797 102.4053,68.8479169 C99.0174265,70.4710996 96.5118984,73.6675208 95.8959214,77.5881313 L80.3133678,176.385849 L79.8638711,179.265958 C80.8877248,172.764903 86.4481659,167.970272 93.0324607,167.970272 L120.476734,167.970272 C174.374722,167.970272 216.577471,146.078116 228.905336,82.7490197 C229.271592,80.8761167 229.579581,79.0614817 229.862597,77.2718188 C226.741092,75.623664 223.361542,74.2002577 219.723948,72.9932757 C218.816631,72.6936112 217.892665,72.4022708 216.952052,72.1275783" fill="#1F264F"></path>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 3.5 KiB |
Loading…
Reference in New Issue
Block a user