donation-site/index.tsx

85 lines
2.5 KiB
TypeScript
Raw Normal View History

2024-05-31 13:12:53 -04:00
export const title = "Pay Foster Hangdaan";
2024-05-31 13:18:12 -04:00
export const description =
"This site lists payment methods for making payments or donations to Foster Hangdaan.";
2024-05-31 13:12:53 -04:00
export const layout = "layout.tsx";
const crypto = [
{
name: "Monero",
2024-05-31 13:18:12 -04:00
icon:
"https://minio.fosterhangdaan.com/public/images/icons/simple-icons/13.9.0/monero.svg",
2024-05-31 13:12:53 -04:00
qrcode: "images/xmr-address.svg",
2024-05-31 13:18:12 -04:00
address:
"47fQTNLjXUPPmjcB4eU3kuSwyHkpioms77XUjdCKMKPs6jwNNEfFpEYZM4sZi9NwZHHeJD3prgLTC66E2skbvzTm1jiXb1R",
2024-05-31 13:12:53 -04:00
preferred: true,
},
{
name: "Bitcoin",
2024-05-31 13:18:12 -04:00
icon:
"https://minio.fosterhangdaan.com/public/images/icons/simple-icons/13.9.0/bitcoin.svg",
2024-05-31 13:12:53 -04:00
qrcode: "images/btc-address.svg",
address: "bc1q3w9e0zm9ez24c8hhhfyamgchfvf9x85ean5wqr",
2024-05-31 13:18:12 -04:00
},
2024-05-31 13:12:53 -04:00
];
export default function Home(data: Lume.Data, _helpers: Lume.Helpers) {
return (
<div class="home-container">
<h1>{data.title}</h1>
<div class="preamble">
2024-05-31 13:18:12 -04:00
<p>
This site lists the methods for sending payments or donations to{" "}
<a href="https://www.fosterhangdaan.com">Foster Hangdaan</a>.
</p>
2024-05-31 13:12:53 -04:00
<p>
I currently only accept cryptocurrency donations. My wallet addresses
are listed below:
</p>
</div>
<ul>
<li>
<details>
<summary>
<img
class="icon"
src="https://minio.fosterhangdaan.com/public/images/icons/tabler-icons/3.14.0/outline/wallet.svg"
2024-05-31 13:12:53 -04:00
/>
<span>OpenAlias</span>
</summary>
<div class="content">
<p>
If your crypto wallet supports{" "}
<a href="https://openalias.org/">OpenAlias</a>, you can simply
send a payment to the address below:
</p>
<pre>pay.fosterhangdaan.com</pre>
</div>
</details>
</li>
2024-05-31 13:18:12 -04:00
{crypto.sort((a, b) => {
2024-05-31 13:12:53 -04:00
return a.name > b.name ? 1 : -1;
}).map((c) => (
<li>
<details>
<summary>
<img
class="icon"
src={c.icon}
/>
<span>{c.name}</span>
{c.preferred && <div class="tag">preferred</div>}
</summary>
<div class="content">
<img class="qrcode" src={c.qrcode} />
<pre>
{c.address}
</pre>
</div>
</details>
</li>
))}
</ul>
</div>
);
}