Skip to content

Commit

Permalink
replace the widget with button (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebinSong authored Oct 8, 2024
1 parent a90f709 commit a3b0413
Showing 1 changed file with 52 additions and 14 deletions.
66 changes: 52 additions & 14 deletions src/pages/donate.astro
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,27 @@ import { resolvePath } from '@/utils/helpers.js'
</h2>
<p class="c-main-para">If you want to support our project and get rewards like early access to our development or your name listed on this page, you can back us! Here’s how:</p>
</div>
<section class="container c-grid">

<section class="container c-grid c-mb-6">
<div class="c-direct">
<h2 class="c-sub-title">Direct Cryptocurrency Donation</h2>
<Donate client:load/>
<div class="c-or">or</div>
</div>
<div class="c-credit">
<h2 class="c-sub-title">Credit/Debit Card Donation</h2>
<iframe class="c-donation-box" src="https://donorbox.org/embed/okturtles-donation?language=en" name="donorbox" allowpaymentrequest="allowpaymentrequest" seamless="seamless" frameborder="0" scrolling="no" height="550px" width="100%" style="max-width: 500px; min-width: 250px; max-height:none!important" allow="payment"></iframe>
<div class="c-credit-block">
<h2 class="c-sub-title">Credit/Debit Card Donation</h2>
<a class="button is-success c-link-btn" href="https://donorbox.org/okturtles-donation" target="_blank">Donate with Donorbox</a>
</div>

<div class="c-credit-block">
<h2 class="c-sub-title">Others</h2>
<a class="button is-primary c-link-btn" href={resolvePath("/other-ways-to-support")}>Other ways to Donate</a>
</div>
</div>
</section>
<div class="c-container-center">
<a class="button is-primary" href={resolvePath("/other-ways-to-support")}>Other ways to Donate</a>
</div>
<section class="container c-grid">

<section class="container c-grid c-mb-6">
<div><b>Crypto Donation Receipt</b>
<div class="c-main-para">After you make a crypto donation, email us at <a class="is-link" href="mailto:[email protected]" target="_blank">[email protected]</a> so we can thank you and send you a receipt for your records and tax purposes — and let us know us know if you'd like us to publicly thank you for your donation!</div>
</div>
Expand Down Expand Up @@ -103,6 +109,7 @@ import { resolvePath } from '@/utils/helpers.js'
.c-container-center {
text-align: center;
margin: 6rem auto 0 auto;
padding: 0 1rem;
}

.c-main-title {
Expand All @@ -128,7 +135,7 @@ import { resolvePath } from '@/utils/helpers.js'
}

.c-sub-title {
margin-bottom: 2rem;
margin-bottom: 1.5rem;
font-style: normal;
font-weight: bold;
font-size: 18px;
Expand Down Expand Up @@ -156,6 +163,39 @@ import { resolvePath } from '@/utils/helpers.js'
}
}

.c-credit {
position: relative;
display: flex;
flex-direction: column;
row-gap: 3rem;

@include from ($tablet) {
flex-direction: row;
column-gap: 3rem;
justify-content: flex-start;
}

@include from ($desktop) {
display: flex;
flex-direction: column;
}

&-block {
display: flex;
flex-direction: column;

@include from ($tablet) {
flex-grow: 1;
align-items: stretch;
}

@include from ($desktop) {
flex-grow: unset;
align-items: flex-start;
}
}
}

.c-or {
position: absolute;
display: flex;
Expand Down Expand Up @@ -213,10 +253,6 @@ import { resolvePath } from '@/utils/helpers.js'
}
}

.c-donation-box {
filter: drop-shadow(0px 2px 6px rgba(0,0,0,.2));
}

.dark-container {
background: url('/images/about/blue-background.svg') no-repeat center #fff;
background-size: 100%;
Expand Down Expand Up @@ -262,8 +298,6 @@ import { resolvePath } from '@/utils/helpers.js'
}
}



.c-silver-sponsor {
width: 22rem;
display: flex;
Expand Down Expand Up @@ -315,4 +349,8 @@ import { resolvePath } from '@/utils/helpers.js'
flex-grow: 1;
}
}

.c-mb-6 {
margin-bottom: 6rem;
}
</style>

0 comments on commit a3b0413

Please sign in to comment.