-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from thebrandonlucas/master
Wallet Adoption Bubbles
- Loading branch information
Showing
5 changed files
with
109 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<script lang="ts"> | ||
export let href: string; | ||
export let bad = false; | ||
export let text: string; | ||
</script> | ||
|
||
<a | ||
{href} | ||
class={`${ | ||
bad ? 'bg-red-100' : 'bg-green-100' | ||
} no-underline rounded-xl p-2 hover:scale-105 transition-all duration-200 ease-in-out`} | ||
target="_blank" | ||
rel="noreferrer noopener" | ||
> | ||
<span class="text-black">{text}</span> | ||
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<script lang="ts"> | ||
import type { AcceptedWallet } from '$lib/types'; | ||
import LinkTag from '../components/LinkTag.svelte'; | ||
export let bad = false; | ||
export let wallets: AcceptedWallet[] = []; | ||
</script> | ||
|
||
<div class="flex-1"> | ||
<div | ||
class={`flex gap-4 p-4 items-end rounded-3xl flex-wrap ${bad ? 'bg-red-400' : 'bg-green-300'}`} | ||
> | ||
{#each wallets as { name, href }} | ||
<LinkTag {href} {bad} text={name} /> | ||
{/each} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export type AcceptedWallet = { | ||
name: string; | ||
href: string; | ||
sending: boolean; | ||
receiving: boolean; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters