Add Dev.to to the list of brands (#43)

* Add Dev.to to the list of brands

* Move new changes to the end of files

* Oneliner
This commit is contained in:
Thomas Jaskiewicz 2021-10-16 20:44:28 +02:00 committed by GitHub
parent fc0341ba38
commit 85047c4edb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 31 additions and 4 deletions

View File

@ -96,6 +96,7 @@ services:
- BUYMEACOFFEE=https://www.buymeacoffee.com/
- GITLAB=https://www.gitlab.com/
- PATREON=https://www.patreon.com/technotim
- DEVTO=https://dev.to/
ports:
- 8080:3000
restart: unless-stopped

View File

@ -62,6 +62,7 @@ services:
- BUYMEACOFFEE=https://www.buymeacoffee.com/
- GITLAB=https://www.gitlab.com/
- PATREON=https://www.patreon.com/technotim
- DEVTO=https://dev.to/
ports:
- 8080:3000

View File

@ -435,3 +435,13 @@ button:hover,
filter: brightness(90%)
}
/* Dev.to */
.button.button-devto {
color: #000;
background-color: #fff;
}
.button.button-devto:hover,
.button.button-devto:focus {
filter: brightness(90%);
}

View File

@ -38,6 +38,7 @@ import stravaLogo from '../../icons/strava.svg';
import buyMeACoffeeLogo from '../../icons/buymeacoffee.svg';
import gitlabLogo from '../../icons/gitlab.svg';
import patreonLogo from '../../icons/patreon.svg';
import devtoLogo from '../../icons/devto.svg';
function Home(props) {
return (
@ -347,6 +348,14 @@ function Home(props) {
logo={patreonLogo}
/>
)}
{runtimeConfig.DEVTO && (
<Button
name="devto"
href={runtimeConfig.DEVTO}
displayName="Dev.to"
logo={devtoLogo}
/>
)}
<div>
<p className="footer">{runtimeConfig.FOOTER}</p>
</div>

View File

@ -56,6 +56,7 @@ export const runtimeConfig =
BUYMEACOFFEE: window?.env?.BUYMEACOFFEE,
GITLAB: window?.env?.GITLAB,
PATREON: window?.env?.PATREON,
DEVTO: window?.env?.DEVTO,
}
: {
// server
@ -195,4 +196,5 @@ export const runtimeConfig =
PATREON: nodeIsProduction
? process.env.PATREON
: process.env.RAZZLE_PATREON,
DEVTO: nodeIsProduction ? process.env.DEVTO : process.env.RAZZLE_DEVTO,
};

4
src/icons/devto.svg Normal file
View File

@ -0,0 +1,4 @@
<svg width="50" height="40" viewBox="0 0 50 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="50" height="40" rx="3" style="fill: currentColor;"/>
<path d="M19.099 23.508c0 1.31-.423 2.388-1.27 3.234-.838.839-1.942 1.258-3.312 1.258h-4.403V12.277h4.492c1.31 0 2.385.423 3.224 1.27.846.838 1.269 1.912 1.269 3.223v6.738zm-2.808 0V16.77c0-.562-.187-.981-.562-1.258-.374-.285-.748-.427-1.122-.427h-1.685v10.107h1.684c.375 0 .75-.138 1.123-.415.375-.285.562-.708.562-1.27zM28.185 28h-5.896c-.562 0-1.03-.187-1.404-.561-.375-.375-.562-.843-.562-1.404V14.243c0-.562.187-1.03.562-1.404.374-.375.842-.562 1.404-.562h5.896v2.808H23.13v3.65h3.088v2.808h-3.088v3.65h5.054V28zm7.12 0c-.936 0-1.684-.655-2.246-1.965l-3.65-13.758h3.089l2.807 10.804 2.808-10.804H41.2l-3.65 13.758C36.99 27.345 36.241 28 35.305 28z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 838 B