diff --git a/config.js b/config.js index b448d65..d267568 100644 --- a/config.js +++ b/config.js @@ -5,5 +5,10 @@ module.exports = { "payPalMail": "kevin@1in9.net", "siteKeywords": "Kevin Kandlbinder, Kevin, Kandlbinder, Web, Web Developer, Developer, JavaScript, PHP, Java, Photos, Fotos", "iconPath": "src/images/fullbglogo@10x.png", - "languages": ["en", "de"] + "languages": ["en", "de"], + "contactEmail": "kevin@kevink.dev", + "contactPhone": "+4941068068004", + "mapsLink": "https://goo.gl/maps/KVq9z1PVaVP2", + "contactTwitter": "Unkn0wnKevin", + "contactGitHub": "Unkn0wnCat" }; \ No newline at end of file diff --git a/content/images/pplogo.png b/content/images/pplogo.png new file mode 100644 index 0000000..5b0082c Binary files /dev/null and b/content/images/pplogo.png differ diff --git a/gatsby-config.js b/gatsby-config.js index ac28b5e..a40ebdb 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -6,7 +6,12 @@ module.exports = { author: extConfig.siteAuthor, siteUrl: extConfig.siteURL, keywords: extConfig.siteKeywords, - payPalMail: extConfig.payPalMail + payPalMail: extConfig.payPalMail, + contactEmail: extConfig.contactEmail, + contactPhone: extConfig.contactPhone, + mapsLink: extConfig.mapsLink, + contactTwitter: extConfig.contactTwitter, + contactGitHub: extConfig.contactGitHub }, assetPrefix: "/assets", plugins: [ diff --git a/locales/en/translation.json b/locales/en/translation.json index 6299b1a..acd5a0f 100644 --- a/locales/en/translation.json +++ b/locales/en/translation.json @@ -27,5 +27,7 @@ "friends": "Friends", "friendsDescription": "In this list you can find friends of mine and this site. Feel free to check them out for more interesting projects.", "donate": "Donate", - "donateDescription": "Hey! It looks like you're thinking about donating to me. That's nice of you! If you want your donation to go towards a specific project, feel free to write your wishes into the donation comment." + "donateDescription": "Hey! It looks like you're thinking about donating to me. That's nice of you! If you want your donation to go towards a specific project, feel free to write your wishes into the donation comment.", + "donateThanks": "Thanks for donating!", + "donateThanksText": "I really appreciate you appreciating my work and showing it! Feel free to mail me at <1>{{contactEmail}} if you have anything you want to talk about!" } diff --git a/src/components/languageSwitcher.js b/src/components/languageSwitcher.js index addeec8..1c80b28 100644 --- a/src/components/languageSwitcher.js +++ b/src/components/languageSwitcher.js @@ -6,7 +6,7 @@ export default function LanguageSwitcher() { return (
-

Languages (×)

+

Languages (×)

); diff --git a/src/pages/donate.js b/src/pages/donate.js index 999f273..f90f20d 100644 --- a/src/pages/donate.js +++ b/src/pages/donate.js @@ -12,7 +12,7 @@ export default function DonatePage() { const {t} = useI18next(); const {language, path} = React.useContext(I18nextContext); - const { site } = useStaticQuery( + const { site, file } = useStaticQuery( graphql` query { site { @@ -22,6 +22,13 @@ export default function DonatePage() { payPalMail } } + file(relativePath: {eq: "images/pplogo.png"}) { + childImageSharp { + resize(width: 240, height: 240, fit: CONTAIN) { + src + } + } + } } ` ) @@ -40,7 +47,7 @@ export default function DonatePage() {
- Donate using PayPal + Donate using PayPal diff --git a/src/pages/donate/thank-you.js b/src/pages/donate/thank-you.js index f09ef7b..7fd425c 100644 --- a/src/pages/donate/thank-you.js +++ b/src/pages/donate/thank-you.js @@ -1,9 +1,22 @@ import React from "react" import Layout from "../../layouts/default"; import { Trans, Link, useI18next } from "gatsby-plugin-react-i18next" +import {useStaticQuery, graphql} from "gatsby"; export default function ImprintPage() { - + const { site } = useStaticQuery( + graphql` + query { + site { + siteMetadata { + contactEmail + } + } + } + ` + ) + + let contactEmail = site.siteMetadata.contactEmail; const {t} = useI18next(); return ( @@ -11,7 +24,7 @@ export default function ImprintPage() {

donateThanks

-

+

donateThanksText{{contactEmail}}

diff --git a/src/pages/index.js b/src/pages/index.js index e5c4bf5..d847311 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -4,10 +4,27 @@ import Layout from "../layouts/default" import styles from "./index.module.scss" import { Trans, Link } from "gatsby-plugin-react-i18next" +import {graphql} from "gatsby"; + + +export const query = graphql` + query { + site { + siteMetadata { + contactEmail + contactPhone + mapsLink + contactTwitter + contactGitHub + } + } + } +`; -// markup class IndexPage extends React.Component { render() { + let meta = this.props.data.site.siteMetadata; + return (
@@ -20,11 +37,11 @@ class IndexPage extends React.Component { homeMe homeWebDeveloper.
- +49 4106 8068004 - kevin@kevink.dev - homeMyLocation - @Unkn0wnKevin - Unkn0wnCat + {meta.contactPhone} + {meta.contactEmail} + homeMyLocation + @{meta.contactTwitter} + {meta.contactGitHub}