feat(button): Added Instant Gaming (#94) (#95)

This commit is contained in:
Choubakawa 2022-02-18 03:51:58 +01:00 committed by GitHub
parent 7bbe89dcd3
commit ce6a872980
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 32 additions and 3 deletions

View File

@ -148,6 +148,7 @@ services:
- GITEA=https://gitea.io/ - GITEA=https://gitea.io/
- POLYWORK=https://www.polywork.com/ - POLYWORK=https://www.polywork.com/
- SIGNAL=https://signal.org/ - SIGNAL=https://signal.org/
- INSTANTGAMING=https://www.instant-gaming.com/
ports: ports:
- 8080:3000 - 8080:3000
restart: unless-stopped restart: unless-stopped

View File

@ -75,6 +75,7 @@ services:
- SIGNAL=https://signal.org/ - SIGNAL=https://signal.org/
- UNTAPPD=https://untappd.com/ - UNTAPPD=https://untappd.com/
- BUTTON_TARGET=_blank - BUTTON_TARGET=_blank
- INSTANTGAMING=https://www.instant-gaming.com/
ports: ports:
- 8080:3000 - 8080:3000
restart: unless-stopped restart: unless-stopped

View File

@ -525,7 +525,17 @@ button:hover,
color: #000; color: #000;
background-color: #FFCE0D; background-color: #FFCE0D;
} }
.button.button-signal:hover, .button.button-untappd:hover,
.button.button-signal:focus { .button.button-untappd:focus {
filter: brightness(90%)
}
/* Instant Gaming */
.button.button-instantgaming {
color: #f50;
background-color: #000;
}
.button.button-instantgaming:hover,
.button.button-instantgaming:focus {
filter: brightness(90%) filter: brightness(90%)
} }

View File

@ -48,6 +48,7 @@ import giteaLogo from '../../icons/gitea.svg';
import polyworkLogo from '../../icons/polywork.svg'; import polyworkLogo from '../../icons/polywork.svg';
import signalLogo from '../../icons/signal.svg'; import signalLogo from '../../icons/signal.svg';
import untappdLogo from '../../icons/untappd.svg'; import untappdLogo from '../../icons/untappd.svg';
import instantGamingLogo from '../../icons/instantgaming.svg';
function Home(props) { function Home(props) {
let order = []; let order = [];
@ -528,6 +529,15 @@ function Home(props) {
order={buttonOrder('UNTAPPD')} order={buttonOrder('UNTAPPD')}
/> />
)} )}
{runtimeConfig.INSTANTGAMING && (
<Button
name="instantgaming"
href={runtimeConfig.INSTANTGAMING}
displayName="Instant Gaming"
logo={instantGamingLogo}
order={buttonOrder('INSTANTGAMING')}
/>
)}
</Sort> </Sort>
<div> <div>
<p className="footer">{runtimeConfig.FOOTER}</p> <p className="footer">{runtimeConfig.FOOTER}</p>

View File

@ -77,6 +77,7 @@ export const runtimeConfig =
SIGNAL: window?.env?.SIGNAL, SIGNAL: window?.env?.SIGNAL,
UNTAPPD: window?.env?.UNTAPPD, UNTAPPD: window?.env?.UNTAPPD,
BUTTON_TARGET: window?.env?.BUTTON_TARGET, BUTTON_TARGET: window?.env?.BUTTON_TARGET,
INSTANTGAMING: window?.env?.INSTANTGAMING,
} }
: { : {
// server // server
@ -273,4 +274,7 @@ export const runtimeConfig =
BUTTON_TARGET: nodeIsProduction BUTTON_TARGET: nodeIsProduction
? process.env.BUTTON_TARGET ? process.env.BUTTON_TARGET
: process.env.RAZZLE_BUTTON_TARGET, : process.env.RAZZLE_BUTTON_TARGET,
INSTANTGAMING: nodeIsProduction
? process.env.INSTANTGAMING
: process.env.RAZZLE_INSTANTGAMING,
}; };

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 14 KiB