Skip to content

Commit

Permalink
Donation tiers: tweak headers and add prefilled amount to donate url
Browse files Browse the repository at this point in the history
The ?amount=... param was added to the MeB.org donation page in metabrainz/metabrainz.org#483
  • Loading branch information
MonkeyDo committed Oct 14, 2024
1 parent e75dc15 commit ec9a1fe
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
5 changes: 1 addition & 4 deletions frontend/css/donations.less
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,7 @@
}
.tier-heading {
text-align: center;
min-height: 150px;
margin-bottom: 1em;
padding-bottom: 1em;
border-bottom: 1px solid @gray;
margin-bottom: 1.5em;
}
.perk {
margin-bottom: 0.5em;
Expand Down
21 changes: 15 additions & 6 deletions frontend/js/src/about/donations/Donate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,12 @@ export default function Donate() {
<h2>
<button
type="button"
className="btn btn-primary"
className="btn btn-success btn-lg btn-rounded"
onClick={() =>
window.open("https://metabrainz.org/donate", "_blank")
window.open(
"https://metabrainz.org/donate?amount=5",
"_blank"
)
}
>
Donate $5
Expand Down Expand Up @@ -78,9 +81,12 @@ export default function Donate() {
<h2>
<button
type="button"
className="btn btn-primary"
className="btn btn-success btn-lg btn-rounded"
onClick={() =>
window.open("https://metabrainz.org/donate", "_blank")
window.open(
"https://metabrainz.org/donate?amount=20",
"_blank"
)
}
>
Donate $20
Expand Down Expand Up @@ -123,9 +129,12 @@ export default function Donate() {
<h2>
<button
type="button"
className="btn btn-primary"
className="btn btn-success btn-lg btn-rounded"
onClick={() =>
window.open("https://metabrainz.org/donate", "_blank")
window.open(
"https://metabrainz.org/donate?amount=50",
"_blank"
)
}
>
Donate $50
Expand Down

0 comments on commit ec9a1fe

Please sign in to comment.