mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-04-29 02:07:39 +02:00
Add GitHub Sponsor Button to Donate Page
This commit is contained in:
parent
e8cf7fa472
commit
c577b841e8
5 changed files with 96 additions and 68 deletions
|
@ -1,35 +1,38 @@
|
||||||
{
|
{
|
||||||
"siteDescription": "Hallo, ich bin Kevin Kandlbinder, ein Entwickler und Hobby-Fotograf aus Norddeutschland.",
|
"siteDescription": "Hallo, ich bin Kevin Kandlbinder, ein Entwickler und Hobby-Fotograf aus Norddeutschland.",
|
||||||
"imprint": "Impressum",
|
"imprint": "Impressum",
|
||||||
"datasec": "Datenschutz",
|
"datasec": "Datenschutz",
|
||||||
"disclaimer": "Disclaimer",
|
"disclaimer": "Disclaimer",
|
||||||
"projects": "Projekte",
|
"projects": "Projekte",
|
||||||
"project": "Projekt",
|
"project": "Projekt",
|
||||||
"social": "Soziales",
|
"social": "Soziales",
|
||||||
"homeHello": "Hallo, ich bin",
|
"homeHello": "Hallo, ich bin",
|
||||||
"homeMe": "Ich bin",
|
"homeMe": "Ich bin",
|
||||||
"homeWebDeveloper": "Web Developer",
|
"homeWebDeveloper": "Web Developer",
|
||||||
"homeMyLocation": "Quickborn, Schleswig-Holstein, Deutschland",
|
"homeMyLocation": "Quickborn, Schleswig-Holstein, Deutschland",
|
||||||
"homeAboutMe": "Über mich",
|
"homeAboutMe": "Über mich",
|
||||||
"homeAboutMeHello": "Hallo!",
|
"homeAboutMeHello": "Hallo!",
|
||||||
"homeAboutMeText": "Ich bin Kevin Kandlbinder, ein Entwickler und Hobby-Fotograf aus Norddeutschland. Ich habe schon früh in meinem Leben gelernt mit Computern umzugehen, da mein Vater mir seinen alten Windows 2000-Tower überließ, als er sich einen neuen holte. Kontakt zur Entwicklung von Webseiten hatte ich einige Jahre darauf zum ersten Mal, als ich mir ein Buch zu HTML, CSS und PHP gekauft habe. Seitdem ist Web Development für mich gleichermaßen ein Hobby und ein Job.",
|
"homeAboutMeText": "Ich bin Kevin Kandlbinder, ein Entwickler und Hobby-Fotograf aus Norddeutschland. Ich habe schon früh in meinem Leben gelernt mit Computern umzugehen, da mein Vater mir seinen alten Windows 2000-Tower überließ, als er sich einen neuen holte. Kontakt zur Entwicklung von Webseiten hatte ich einige Jahre darauf zum ersten Mal, als ich mir ein Buch zu HTML, CSS und PHP gekauft habe. Seitdem ist Web Development für mich gleichermaßen ein Hobby und ein Job.",
|
||||||
"donationCatchphrase": "Gefällt dir was du siehst? Spende doch etwas.",
|
"donationCatchphrase": "Gefällt dir was du siehst? Spende doch etwas.",
|
||||||
"homeImageCredit": "Portrait aufgenommen von Jannik Kiel",
|
"homeImageCredit": "Portrait aufgenommen von Jannik Kiel",
|
||||||
"de": "Deutsch",
|
"de": "Deutsch",
|
||||||
"en": "Englisch",
|
"en": "Englisch",
|
||||||
"projectAboutHeader": "Über {{projectName}}",
|
"projectAboutHeader": "Über {{projectName}}",
|
||||||
"projectViewGitHub": "Auf GitHub anschauen",
|
"projectViewGitHub": "Auf GitHub anschauen",
|
||||||
"projectViewWebsite": "Projekt-Website anschauen",
|
"projectViewWebsite": "Projekt-Website anschauen",
|
||||||
"projectsDescription": "Das ist woran ich grade arbeite oder woran ich gearbeitet habe.",
|
"projectsDescription": "Das ist woran ich grade arbeite oder woran ich gearbeitet habe.",
|
||||||
"projectView": "Anschauen",
|
"projectView": "Anschauen",
|
||||||
"socialDescriptionWithLink": "Finde mich auf anderen Plattformen oder <1>besuche meine Freunde</1>!",
|
"socialDescriptionWithLink": "Finde mich auf anderen Plattformen oder <1>besuche meine Freunde</1>!",
|
||||||
"socialDescription": "Finde mich auf anderen Plattformen!",
|
"socialDescription": "Finde mich auf anderen Plattformen!",
|
||||||
"friends": "Freunde",
|
"friends": "Freunde",
|
||||||
"friendsDescription": "In dieser Liste stehen Freunde von mir und meiner Seite. Schau doch bei ihnen mal rein, wenn du mehr interessante Projekte sehen willst.",
|
"friendsDescription": "In dieser Liste stehen Freunde von mir und meiner Seite. Schau doch bei ihnen mal rein, wenn du mehr interessante Projekte sehen willst.",
|
||||||
"donateThanksText": "Ich finde es schön, dass du meine Arbeit schön findest und das zeigst! Sende mir gerne eine E-Mail an <1>{{contactEmail}}</1> wenn du mit mir über irgendwas reden möchtest!",
|
"donateThanksText": "Ich finde es schön, dass du meine Arbeit schön findest und das zeigst! Sende mir gerne eine E-Mail an <1>{{contactEmail}}</1> wenn du mit mir über irgendwas reden möchtest!",
|
||||||
"donateThanks": "Danke für die Spende!",
|
"donateThanks": "Danke für die Spende!",
|
||||||
"donateDescription": "Hey! Es sieht so aus als würdest du über eine Spende nachdenken. Das ist nett! Wenn du ein bestimmtes Projekt unterstützen willst, schreibe deine Wünsche gerne in den Spendenkommentar.",
|
"donateDescription": "Hey! Es sieht so aus als würdest du über eine Spende nachdenken. Das ist nett! Wenn du ein bestimmtes Projekt unterstützen willst, schreibe deine Wünsche gerne in den Spendenkommentar.",
|
||||||
"donate": "Spenden",
|
"donate": "Spenden",
|
||||||
"featuredProjects": "Vorgestellte Projekte",
|
"featuredProjects": "Vorgestellte Projekte",
|
||||||
"seeMore": "Mehr erkunden"
|
"seeMore": "Mehr erkunden",
|
||||||
|
"donateGitHub": "Du kannst mich mit dem folgenden Button ganz einfach über GitHub Sponsors unterstützen!",
|
||||||
|
"donatePayPal": "Wenn du mich lieber über PayPal unterstützen willst ist hier der Button für dich:",
|
||||||
|
"sponsorGitHub": "Über GitHub unterstützen"
|
||||||
}
|
}
|
|
@ -1,35 +1,38 @@
|
||||||
{
|
{
|
||||||
"siteDescription": "Hello, I am Kevin Kandlbinder, a developer and hobby photographer from northern Germany.",
|
"siteDescription": "Hello, I am Kevin Kandlbinder, a developer and hobby photographer from northern Germany.",
|
||||||
"imprint": "Imprint",
|
"imprint": "Imprint",
|
||||||
"datasec": "Data Protection",
|
"datasec": "Data Protection",
|
||||||
"disclaimer": "Disclaimer",
|
"disclaimer": "Disclaimer",
|
||||||
"projects": "Projects",
|
"projects": "Projects",
|
||||||
"project": "Project",
|
"project": "Project",
|
||||||
"social": "Social",
|
"social": "Social",
|
||||||
"homeHello": "Hello, I am",
|
"homeHello": "Hello, I am",
|
||||||
"homeMe": "I am",
|
"homeMe": "I am",
|
||||||
"homeWebDeveloper": "a web developer",
|
"homeWebDeveloper": "a web developer",
|
||||||
"homeMyLocation": "Quickborn, Schleswig-Holstein, Germany",
|
"homeMyLocation": "Quickborn, Schleswig-Holstein, Germany",
|
||||||
"homeAboutMe": "About me",
|
"homeAboutMe": "About me",
|
||||||
"homeAboutMeHello": "Hello!",
|
"homeAboutMeHello": "Hello!",
|
||||||
"homeAboutMeText": "I am Kevin Kandlbinder, a developer and hobby photographer from northern germany. I've learned operating computers very early in my life with my father giving me his old Windows 2000 tower. Some years later I've had my first contact with web development a few years later when I bought a book about HTML, PHP, JavaScript and CSS from a sale at my local library. From this point onwards web development has been a job and a hobby equally.",
|
"homeAboutMeText": "I am Kevin Kandlbinder, a developer and hobby photographer from northern germany. I've learned operating computers very early in my life with my father giving me his old Windows 2000 tower. Some years later I've had my first contact with web development a few years later when I bought a book about HTML, PHP, JavaScript and CSS from a sale at my local library. From this point onwards web development has been a job and a hobby equally.",
|
||||||
"donationCatchphrase": "Like what you're seeing? Consider donating.",
|
"donationCatchphrase": "Like what you're seeing? Consider donating.",
|
||||||
"homeImageCredit": "Portrait taken by Jannik Kiel",
|
"homeImageCredit": "Portrait taken by Jannik Kiel",
|
||||||
"de": "German",
|
"de": "German",
|
||||||
"en": "English",
|
"en": "English",
|
||||||
"projectAboutHeader": "About {{projectName}}",
|
"projectAboutHeader": "About {{projectName}}",
|
||||||
"projectViewGitHub": "View on GitHub",
|
"projectViewGitHub": "View on GitHub",
|
||||||
"projectViewWebsite": "View Project-Website",
|
"projectViewWebsite": "View Project-Website",
|
||||||
"projectsDescription": "This is what I am working on or have worked on.",
|
"projectsDescription": "This is what I am working on or have worked on.",
|
||||||
"projectView": "View",
|
"projectView": "View",
|
||||||
"socialDescriptionWithLink": "Find me on other platforms or <1>visit my friends</1>!",
|
"socialDescriptionWithLink": "Find me on other platforms or <1>visit my friends</1>!",
|
||||||
"socialDescription": "Find me on other platforms!",
|
"socialDescription": "Find me on other platforms!",
|
||||||
"friends": "Friends",
|
"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.",
|
"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",
|
"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!",
|
"donateThanks": "Thanks for donating!",
|
||||||
"donateThanksText": "I really appreciate you appreciating my work and showing it! Feel free to mail me at <1>{{contactEmail}}</1> if you have anything you want to talk about!",
|
"donateThanksText": "I really appreciate you appreciating my work and showing it! Feel free to mail me at <1>{{contactEmail}}</1> if you have anything you want to talk about!",
|
||||||
"featuredProjects": "Featured Projects",
|
"featuredProjects": "Featured Projects",
|
||||||
"seeMore": "See more"
|
"seeMore": "See more",
|
||||||
|
"donateGitHub": "You can very easily support me via GitHub Sponsors using the following button!",
|
||||||
|
"donatePayPal": "If you'd rather support me via PayPal the following button is for you:",
|
||||||
|
"sponsorGitHub": "Sponsor using GitHub"
|
||||||
}
|
}
|
13
package-lock.json
generated
13
package-lock.json
generated
|
@ -13529,6 +13529,11 @@
|
||||||
"parse-url": "^5.0.0"
|
"parse-url": "^5.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"github-buttons": {
|
||||||
|
"version": "2.15.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/github-buttons/-/github-buttons-2.15.0.tgz",
|
||||||
|
"integrity": "sha512-TqnLqrwYkYbbFmWcRa2LPyh6IRp0krnGkNrY/5LetxVnPYOHQzxmOZC25GtsHN7ay9Q5ZWY3zLWCKti+xz7w3Q=="
|
||||||
|
},
|
||||||
"github-from-package": {
|
"github-from-package": {
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz",
|
||||||
|
@ -20104,6 +20109,14 @@
|
||||||
"resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-3.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-3.2.0.tgz",
|
||||||
"integrity": "sha512-rtGImPZ0YyLrscKI9xTpV8psd6I8VAtjKCzQDlzyDvqJA8XOW78TXYQwNRNd8g8JZnDu8q9Fu/1v4HPAVwVdHA=="
|
"integrity": "sha512-rtGImPZ0YyLrscKI9xTpV8psd6I8VAtjKCzQDlzyDvqJA8XOW78TXYQwNRNd8g8JZnDu8q9Fu/1v4HPAVwVdHA=="
|
||||||
},
|
},
|
||||||
|
"react-github-btn": {
|
||||||
|
"version": "1.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/react-github-btn/-/react-github-btn-1.2.0.tgz",
|
||||||
|
"integrity": "sha512-/b2TGTeek5Ky+KtuP5BxOaXgb1FGhbwgZNI6rkwkGk7+xtCtsNMkdchOcCnC3qU1JGTWPKzYZWpPBIouVhXAoQ==",
|
||||||
|
"requires": {
|
||||||
|
"github-buttons": "^2.8.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"react-helmet": {
|
"react-helmet": {
|
||||||
"version": "6.1.0",
|
"version": "6.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/react-helmet/-/react-helmet-6.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/react-helmet/-/react-helmet-6.1.0.tgz",
|
||||||
|
|
|
@ -44,6 +44,7 @@
|
||||||
"prop-types": "15.7.2",
|
"prop-types": "15.7.2",
|
||||||
"react": "17.0.2",
|
"react": "17.0.2",
|
||||||
"react-dom": "17.0.2",
|
"react-dom": "17.0.2",
|
||||||
|
"react-github-btn": "^1.2.0",
|
||||||
"react-helmet": "6.1.0",
|
"react-helmet": "6.1.0",
|
||||||
"react-i18next": "11.8.12"
|
"react-i18next": "11.8.12"
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,6 +3,7 @@ import Layout from "../layouts/default";
|
||||||
import { graphql } from "gatsby";
|
import { graphql } from "gatsby";
|
||||||
import { Trans, useI18next, I18nextContext } from "gatsby-plugin-react-i18next"
|
import { Trans, useI18next, I18nextContext } from "gatsby-plugin-react-i18next"
|
||||||
import PropTypes from "prop-types"
|
import PropTypes from "prop-types"
|
||||||
|
import GitHubButton from 'react-github-btn'
|
||||||
|
|
||||||
import * as styles from "./donate.module.scss";
|
import * as styles from "./donate.module.scss";
|
||||||
|
|
||||||
|
@ -13,6 +14,7 @@ query ($language: String!) {
|
||||||
title
|
title
|
||||||
siteUrl
|
siteUrl
|
||||||
payPalMail
|
payPalMail
|
||||||
|
contactGitHub
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
file(relativePath: {eq: "images/pplogo.png"}) {
|
file(relativePath: {eq: "images/pplogo.png"}) {
|
||||||
|
@ -49,6 +51,12 @@ function DonatePage(props) {
|
||||||
|
|
||||||
<p><Trans>donateDescription</Trans></p>
|
<p><Trans>donateDescription</Trans></p>
|
||||||
|
|
||||||
|
<p><Trans>donateGitHub</Trans></p>
|
||||||
|
|
||||||
|
<p style={{display: "block", textAlign: "center"}}><GitHubButton href={"https://github.com/sponsors/"+site.siteMetadata.contactGitHub} data-color-scheme="no-preference: light; light: dark; dark: dark;" data-icon="octicon-heart" data-size="large" aria-label="Sponsor @Unkn0wnCat on GitHub"><Trans>sponsorGitHub</Trans></GitHubButton></p>
|
||||||
|
|
||||||
|
<p><Trans>donatePayPal</Trans></p>
|
||||||
|
|
||||||
<div className={styles.priceAmount}>
|
<div className={styles.priceAmount}>
|
||||||
<label htmlFor="priceInput" className={styles.sronly}>Amount</label>
|
<label htmlFor="priceInput" className={styles.sronly}>Amount</label>
|
||||||
<input type="number" min="1" placeholder="10.00" step="1" value={amount} onChange={(ev) => { setAmount(ev.target.value) }} name="priceInput" id="priceInput" />
|
<input type="number" min="1" placeholder="10.00" step="1" value={amount} onChange={(ev) => { setAmount(ev.target.value) }} name="priceInput" id="priceInput" />
|
||||||
|
|
Loading…
Add table
Reference in a new issue