From fc780550a3bbb7bafa8ba485ddf3c2c142674355 Mon Sep 17 00:00:00 2001 From: Kieran <32241933+KieranRobson@users.noreply.github.com> Date: Sun, 10 Jul 2022 02:01:09 +0100 Subject: [PATCH] Added Shazam (#166) * Added Shazam * Fix shazam typo * Fix image --- docker-compose.yml | 1 + public/css/brands.css | 6 ++++++ src/components/Home/Home.js | 10 ++++++++++ src/config.js | 4 ++++ src/icons/shazam.svg | 18 ++++++++++++++++++ 5 files changed, 39 insertions(+) create mode 100644 src/icons/shazam.svg diff --git a/docker-compose.yml b/docker-compose.yml index c92c562..fb2f072 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -95,6 +95,7 @@ services: - MATRIX=https://matrix.to/ - ANILIST=https://anilist.co/ - GITBUCKET=https://gitbucket.github.io/ + - SHAZAM=https://www.shazam.com/myshazam - OG_SITE_NAME=Techno Tim Live (OG) - OG_TITLE=Techno Tim (OG) - OG_DESCRIPTION=Techno Tim Link page (OG) diff --git a/public/css/brands.css b/public/css/brands.css index 8c9b154..dc499e4 100644 --- a/public/css/brands.css +++ b/public/css/brands.css @@ -451,4 +451,10 @@ button { .button.button-gitbucket { color: #000; background-color: #fff +} + +/* Shazam */ +.button.button-shazam { + color: #fff; + background-color: #1f5bfc } \ No newline at end of file diff --git a/src/components/Home/Home.js b/src/components/Home/Home.js index 37e143c..d0f3fb5 100644 --- a/src/components/Home/Home.js +++ b/src/components/Home/Home.js @@ -66,6 +66,7 @@ import statusLogo from '../../icons/status.svg'; import matrixLogo from '../../icons/matrix.svg'; import anilistLogo from '../../icons/anilist.svg'; import gitbucketLogo from '../../icons/gitbucket.svg'; +import shazamLogo from '../../icons/shazam.svg'; function Home(props) { let order = []; @@ -717,6 +718,15 @@ function Home(props) { order={buttonOrder('GITBUCKET')} /> )} + {runtimeConfig.SHAZAM && ( + + )}
{runtimeConfig.FOOTER}
diff --git a/src/config.js b/src/config.js index 4857d9a..9323f3d 100644 --- a/src/config.js +++ b/src/config.js @@ -108,6 +108,7 @@ export const runtimeConfig = MATRIX: window?.env?.MATRIX, ANILIST: window?.env?.ANILIST, GITBUCKET: window?.env?.GITBUCKET, + SHAZAM: window?.env?.SHAZAM, MATOMO_URL: window?.env?.MATOMO_URL, MATOMO_SITE_ID: window?.env?.MATOMO_SITE_ID, } @@ -393,6 +394,9 @@ export const runtimeConfig = GITBUCKET: nodeIsProduction ? process.env.GITBUCKET : process.env.RAZZLE_GITBUCKET, + SHAZAM: nodeIsProduction + ? process.env.SHAZAM + : process.env.RAZZLE_SHAZAM, MATOMO_URL: nodeIsProduction ? process.env.MATOMO_URL : process.env.RAZZLE_MATOMO_URL, diff --git a/src/icons/shazam.svg b/src/icons/shazam.svg new file mode 100644 index 0000000..eec67aa --- /dev/null +++ b/src/icons/shazam.svg @@ -0,0 +1,18 @@ +