From 0ad811e15c8e0983a5fd62c7aa3f6b54c92b219e Mon Sep 17 00:00:00 2001 From: Kieran <32241933+KieranRobson@users.noreply.github.com> Date: Tue, 2 Aug 2022 02:03:31 +0100 Subject: [PATCH] Added dockerhub (#194) --- docker-compose.yml | 1 + public/css/brands.css | 6 ++++++ src/components/Home/Home.js | 10 ++++++++++ src/config.js | 4 ++++ src/icons/docker.svg | 1 + 5 files changed, 22 insertions(+) create mode 100644 src/icons/docker.svg diff --git a/docker-compose.yml b/docker-compose.yml index 37b2909..86ebc3f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -102,6 +102,7 @@ services: - LINE=https://line.me/en/ - KAKAOTALK=https://www.kakaocorp.com/page/service/service/KakaoTalk?lang=ko - DESIGNBYHUMANS=https://www.designbyhumans.com/ + - DOCKERHUB=https://hub.docker.com/ - 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 b9d858a..9dacc1e 100644 --- a/public/css/brands.css +++ b/public/css/brands.css @@ -497,3 +497,9 @@ button { background-color: #fff } +/* Dockerhub */ +.button.button-dockerhub { + color: #099cec; + background-color: #fff +} + diff --git a/src/components/Home/Home.js b/src/components/Home/Home.js index 9bdcc17..bdd3f5b 100644 --- a/src/components/Home/Home.js +++ b/src/components/Home/Home.js @@ -74,6 +74,7 @@ import osuLogo from '../../icons/osu.svg'; import lineLogo from '../../icons/linemessenger.svg'; import kakaoLogo from '../../icons/kaokotalk.svg'; import designByHumansLogo from '../../icons/designbyhumans.svg'; +import dockerhubLogo from '../../icons/docker.svg'; function Home(props) { let order = []; @@ -788,6 +789,15 @@ function Home(props) { order={buttonOrder('DESIGNBYHUMANS')} /> )} + {runtimeConfig.DOCKERHUB && ( + + )}
diff --git a/src/config.js b/src/config.js index 638663f..de58aab 100644 --- a/src/config.js +++ b/src/config.js @@ -115,6 +115,7 @@ export const runtimeConfig = LINE: window?.env?.LINE, KAKAOTALK: window?.env?.KAKAOTALK, DESIGNBYHUMANS: window?.env?.DESIGNBYHUMANS, + DOCKERHUB: window?.env?.DOCKERHUB, MATOMO_URL: window?.env?.MATOMO_URL, MATOMO_SITE_ID: window?.env?.MATOMO_SITE_ID, SHARE: window?.env?.SHARE, @@ -416,6 +417,9 @@ export const runtimeConfig = DESIGNBYHUMANS: nodeIsProduction ? process.env.DESIGNBYHUMANS : process.env.RAZZLE_DESIGNBYHUMANS, + DOCKERHUB: nodeIsProduction + ? process.env.DOCKERHUB + : process.env.RAZZLE_DOCKERHUB, MATOMO_URL: nodeIsProduction ? process.env.MATOMO_URL : process.env.RAZZLE_MATOMO_URL, diff --git a/src/icons/docker.svg b/src/icons/docker.svg new file mode 100644 index 0000000..60ef954 --- /dev/null +++ b/src/icons/docker.svg @@ -0,0 +1 @@ + \ No newline at end of file