mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-28 05:58:48 +01:00
25 lines
495 B
Svelte
25 lines
495 B
Svelte
|
<script lang="ts">
|
||
|
export let price: number;
|
||
|
export let desc: string;
|
||
|
export let click: () => void;
|
||
|
</script>
|
||
|
|
||
|
<button class="donation-option" on:click={click}>
|
||
|
<div class="donation-title">
|
||
|
<slot></slot>
|
||
|
${price}
|
||
|
</div>
|
||
|
<div class="donation-subtitle">{desc}</div>
|
||
|
</button>
|
||
|
|
||
|
<style>
|
||
|
.donation-option .donation-subtitle {
|
||
|
white-space: nowrap;
|
||
|
}
|
||
|
|
||
|
.donation-option :global(svg) {
|
||
|
width: 20px;
|
||
|
height: 20px;
|
||
|
}
|
||
|
</style>
|