Skip to content

Commit a02e7ed

Browse files
feat (update): payments page (#25)
* remove: razorpay integration * fix: centre upi page --------- Co-authored-by: Nitin S <28nitin07@gmail.com>
1 parent 88d8d7d commit a02e7ed

2 files changed

Lines changed: 1 addition & 15 deletions

File tree

pages/donate.html

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,6 @@ <h3>where your money goes</h3>
2323
</div>
2424
</div>
2525
</div>
26-
<div class="donate-card">
27-
<div class="donate-card-head"><h3>💳 pay via card / bank</h3><p>secure checkout via Razorpay — cards, net banking, wallets. ~2% processing fee applies.</p></div>
28-
<div class="donate-card-body">
29-
<p style="font-size:0.9rem;color:var(--ink-soft);margin-bottom:1rem;">pick an amount or type your own ↓</p>
30-
<div class="amount-chips">
31-
<button class="chip" onclick="selectChip(this,100)">₹100</button>
32-
<button class="chip" onclick="selectChip(this,250)">₹250</button>
33-
<button class="chip" onclick="selectChip(this,500)">₹500</button>
34-
<button class="chip" onclick="selectChip(this,1000)">₹1000</button>
35-
</div>
36-
<div class="amount-input-row"><span></span><input type="number" id="donationAmt" placeholder="custom amount" min="1"></div>
37-
<button class="rzp-btn" onclick="handleRazorpay()">🔒 donate via Razorpay</button>
38-
<p class="rzp-note">replace YOUR_RAZORPAY_KEY_HERE in js/donate.js with your key from the Razorpay dashboard</p>
39-
</div>
40-
</div>
4126
</div>
4227
</div>
4328
<footer>

styles/main.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,7 @@ nav::after {
700700
.donate-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem;}
701701
.donate-card{background:var(--card);border:2.5px solid var(--border);border-radius:20px;box-shadow:6px 6px 0 var(--sketch);overflow:hidden;transition:transform 0.2s;}
702702
.donate-card:hover{transform:rotate(0.3deg);}
703+
.donate-grid .donate-card:only-child{grid-column:1 / -1;justify-self:center;width:100%;max-width:720px;}
703704
.donate-card-head{padding:1.5rem 1.8rem 1.2rem;border-bottom:2px dashed var(--border);}
704705
.donate-card:nth-child(1) .donate-card-head{background:linear-gradient(135deg,#fff3d8,#ffe8a8);}
705706
.donate-card:nth-child(2) .donate-card-head{background:linear-gradient(135deg,#d8edf8,#c0d8f0);}

0 commit comments

Comments
 (0)