2024-08-06 12:45:25 +02:00
|
|
|
<script lang="ts">
|
|
|
|
export let price: number;
|
|
|
|
export let desc: string;
|
2024-08-06 20:26:53 +02:00
|
|
|
export let send: (amount: number) => void;
|
|
|
|
|
|
|
|
const click = () => send(price * 100);
|
2024-08-06 12:45:25 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<button class="donation-option" on:click={click}>
|
2024-08-09 09:13:48 +02:00
|
|
|
<div class="donate-card-title">
|
2024-08-06 12:45:25 +02:00
|
|
|
<slot></slot>
|
|
|
|
${price}
|
|
|
|
</div>
|
2024-08-09 09:13:48 +02:00
|
|
|
<div class="donate-card-subtitle">{desc}</div>
|
2024-08-06 12:45:25 +02:00
|
|
|
</button>
|
|
|
|
|
|
|
|
<style>
|
2024-08-09 09:13:48 +02:00
|
|
|
.donation-option .donate-card-subtitle {
|
2024-08-06 12:45:25 +02:00
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
.donation-option :global(svg) {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
}
|
2024-08-09 09:13:48 +02:00
|
|
|
|
|
|
|
@media screen and (max-width: 550px) {
|
|
|
|
.donation-option :global(svg) {
|
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
|
|
|
}
|
|
|
|
}
|
2024-08-06 12:45:25 +02:00
|
|
|
</style>
|