commit 6d13d565e08b47bd72f9bc72976f913487331864
parent d37dedc147d7cbf436a883220239e2b65f472464
Author: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Date: Wed, 16 Jul 2025 13:02:34 -0300
content/pay-with-bitcoin.html: use built-in qr code generator
Diffstat:
2 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/assets/css/custom.css b/assets/css/custom.css
@@ -2,7 +2,6 @@
height: 2em; /* Match Font Awesome's fa-2x */
width: 2em; /* Match Font Awesome's fa-2x */
vertical-align: text-bottom; /* Align nicely with inline icons */
- display: inline-block;
}
.colorscheme-light .custom-icon {
@@ -95,12 +94,11 @@
color: #333;
}
-.btc-qr {
+.btc-qr img {
width: 200px;
height: 200px;
margin: 1rem auto;
border-radius: 8px;
- padding: 4px;
border: 1px solid #ccc;
background: white;
}
diff --git a/content/pay-with-bitcoin.html b/content/pay-with-bitcoin.html
@@ -18,11 +18,9 @@
<i class="btc-icon fa-brands fa-bitcoin fa-3x"></i>
</div>
- <img
- src="https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=bitcoin:bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh"
- alt="Bitcoin Address QR Code"
- class="btc-qr"
- >
+ <div class="btc-qr">
+ {{< qr text="bc1q6px9f0tl3r8qf5l304g2plyae5fgvw6yetzvcu" />}}
+ </div>
<div class="btc-address-row">
<p class="btc-address" id="btc-address">bc1q6px9f0tl3r8qf5l304g2plyae5fgvw6yetzvcu</p>