Skip to content

Commit

Permalink
feat: use icon component in donations page
Browse files Browse the repository at this point in the history
  • Loading branch information
madkarmaa committed Dec 15, 2024
1 parent b23509e commit 40d6500
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/routes/donate/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import Snackbar from '$lib/components/Snackbar.svelte';
import Query from '$lib/components/Query.svelte';
import Dialogue from '$lib/components/Dialogue.svelte';
import Icon from '$lib/components/Icon.svelte';
import QRCode from './QRCode.svelte';
import DonateHeartAnimation from './DonateHeartAnimation.svelte';
Expand Down Expand Up @@ -135,7 +136,9 @@

<Dialogue bind:modalOpen={cryptoDialogue}>
<svelte:fragment slot="icon">
<img class="qr-code" src="/icons/coins.svg" alt="Cryptocurrencies" />
<div class="material-icon-container">
<Icon name="toll" size="32px" />
</div>
</svelte:fragment>
<svelte:fragment slot="title">Cryptocurrencies</svelte:fragment>
<svelte:fragment slot="description">
Expand Down Expand Up @@ -174,7 +177,9 @@

<Dialogue bind:modalOpen={qrCodeDialogue}>
<svelte:fragment slot="icon">
<img class="qr-code" src="/icons/wallet.svg" alt="QR Code" />
<div class="material-icon-container">
<Icon name="wallet" size="32px" />
</div>
</svelte:fragment>
<svelte:fragment slot="title">{qrCodeDialogueName} Wallet</svelte:fragment>
<svelte:fragment slot="description">
Expand Down Expand Up @@ -353,4 +358,8 @@
gap: 1rem;
margin-bottom: 4rem;
}
.material-icon-container {
color: var(--surface-six);
}
</style>

0 comments on commit 40d6500

Please sign in to comment.