Add donation buttons

This commit is contained in:
2021-12-12 22:23:32 +00:00
parent 4a22d71e7f
commit 4efdc25c10
3 changed files with 36 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "parandum", "name": "parandum",
"version": "2.1.3", "version": "2.1.4",
"private": true, "private": true,
"dependencies": { "dependencies": {
"@babel/core": "^7.16.0", "@babel/core": "^7.16.0",

View File

@@ -5,6 +5,7 @@ import Button from "./Button";
import { withRouter } from "react-router-dom"; import { withRouter } from "react-router-dom";
import SettingsContent from "./SettingsContent"; import SettingsContent from "./SettingsContent";
import Footer from "./Footer"; import Footer from "./Footer";
import "./css/Donation.css";
export default withRouter(class Settings extends Component { export default withRouter(class Settings extends Component {
constructor(props) { constructor(props) {
@@ -104,6 +105,23 @@ export default withRouter(class Settings extends Component {
Save for this session Save for this session
</Button> </Button>
</div> </div>
<h1 className="donation-header">Appreciate my work?</h1>
<p>Projects like Parandum take a massive amount of time, effort, and money to run! I'm really grateful for all your support.</p>
<div className="donation-links">
<a href="https://www.buymeacoffee.com/mgrove36" target="_blank" rel="noreferrer">
<img
src="https://cdn.buymeacoffee.com/buttons/v2/default-green.png"
alt="Buy me a coffee"
/>
</a>
<a href="https://www.paypal.com/donate/?hosted_button_id=AW7XJ7KFLC7JG" target="_blank" rel="noreferrer">
<img
src="https://pics.paypal.com/00/s/M2E5OWQyMjItZWU1My00YmEwLTljNmYtYTA2ZTI1OGUzMjA5/file.PNG"
alt="Donate with PayPal"
/>
</a>
</div>
</main> </main>
<Footer showTerms={true} /> <Footer showTerms={true} />
</div> </div>

17
src/css/Donation.css Normal file
View File

@@ -0,0 +1,17 @@
.donation-links {
display: flex;
flex-direction: row;
column-gap: 16px;
row-gap: 8px;
flex-wrap: wrap;
margin-top: 12px;
}
.donation-links img {
width: 100%;
max-width: 210px;
}
.donation-header {
margin-top: 32px;
}