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

@@ -5,6 +5,7 @@ import Button from "./Button";
import { withRouter } from "react-router-dom";
import SettingsContent from "./SettingsContent";
import Footer from "./Footer";
import "./css/Donation.css";
export default withRouter(class Settings extends Component {
constructor(props) {
@@ -104,6 +105,23 @@ export default withRouter(class Settings extends Component {
Save for this session
</Button>
</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>
<Footer showTerms={true} />
</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;
}