From e07e089785967e9092f57404d9bbc8be66f5fda2 Mon Sep 17 00:00:00 2001 From: Choubakawa Date: Sun, 5 Dec 2021 18:18:48 +0100 Subject: [PATCH] feat(button): Added Stack Overflow (#66) --- README.md | 1 + docker-compose.yml | 3 ++- public/css/brands.css | 17 ++++++++++++++++- src/components/Home/Home.js | 10 ++++++++++ src/config.js | 4 ++++ src/icons/stackoverflow.svg | 6 ++++++ 6 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 src/icons/stackoverflow.svg diff --git a/README.md b/README.md index a9965ee..4c9f63f 100644 --- a/README.md +++ b/README.md @@ -140,6 +140,7 @@ services: - CUSTOM_BUTTON_TEXT_COLOR=#ffffff,#ffffff - CUSTOM_BUTTON_ALT_TEXT=Visit my site!,Visit my OTHER Site! - CUSTOM_BUTTON_NAME=HOMEPAGE,HOMEPAGE2 + - STACKOVERFLOW=https://stackoverflow.com/ ports: - 8080:3000 restart: unless-stopped diff --git a/docker-compose.yml b/docker-compose.yml index 11ed8db..d44a7e1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -45,7 +45,7 @@ services: - EMAIL_TEXT=Email Me! - EMAIL_ALT=you@example.com - EMAIL_ALT_TEXT=Email me! - - SOUND_CLOUD=https://souncloud.com + - SOUND_CLOUD=https://soundcloud.com - FIGMA=https://figma.com - TELEGRAM=https://telegram.org/ - TUMBLR=https://www.tumblr.com/ @@ -68,6 +68,7 @@ services: - BUTTON_ORDER=YOUTUBE,TWITCH,TWITTER,GITHUB,INSTAGRAM,DISCORD,FACEBOOK,TIKTOK,KIT,PATREON - PAYPAL=https://www.paypal.me/user - SLACK=https://slack.com/ + - STACKOVERFLOW=https://stackoverflow.com/ ports: - 8080:3000 diff --git a/public/css/brands.css b/public/css/brands.css index 784ed4d..bda929d 100644 --- a/public/css/brands.css +++ b/public/css/brands.css @@ -463,4 +463,19 @@ button:hover, .button.button-slack:hover, .button.button-slack:focus { filter: brightness(90%) -} \ No newline at end of file +} + +/* Stack Overflow */ +.button.button-stackoverflow { + color: #000; + background-color: #f8f9f9; + font-weight: 100; +} +.button.button-stackoverflow:after { + content: "overflow"; + font-weight: 700; +} +.button.button-stackoverflow:hover, +.button.button-stackoverflow:focus { + filter: brightness(90%) +} diff --git a/src/components/Home/Home.js b/src/components/Home/Home.js index 43c2954..286a8ae 100644 --- a/src/components/Home/Home.js +++ b/src/components/Home/Home.js @@ -42,6 +42,7 @@ import devtoLogo from '../../icons/devto.svg'; import Sort from '../Sort/Sort'; import paypalLogo from '../../icons/paypal.svg'; import slackLogo from '../../icons/slack.svg'; +import stackoverflowLogo from '../../icons/stackoverflow.svg'; function Home(props) { let order = []; @@ -466,6 +467,15 @@ function Home(props) { order={buttonOrder('SLACK')} /> )} + {runtimeConfig.STACKOVERFLOW && ( +