-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(site): demo styling with terminal containers and demo buttons
- Loading branch information
Showing
7 changed files
with
46 additions
and
14 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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
<button class="bg-red-500 px-4" on:click on:focus on:submit {...$$restProps}> | ||
<button | ||
class="px-4 py-2 border-2 border-accent text-accent font-jetbrains" | ||
on:click | ||
on:focus | ||
on:submit | ||
{...$$restProps} | ||
> | ||
<slot /> | ||
</button> |
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,9 @@ | ||
<a | ||
class="px-4 py-2 border-2 border-accent text-accent font-jetbrains" | ||
on:click | ||
on:focus | ||
on:submit | ||
{...$$restProps} | ||
> | ||
<slot /> | ||
</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,3 @@ | ||
<div class="my-4 p-4 md:shadow-2xl bg-black text-xs sm:text-lg font-jetbrains md:rounded-xl"> | ||
<slot /> | ||
</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
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
<script lang="ts"> | ||
import DemoButton from "$lib/DemoButton.svelte"; | ||
import TerminalContainer from "$lib/TerminalContainer.svelte"; | ||
import { getUnoFromFaucet } from "$lib/transferDemo"; | ||
</script> | ||
|
||
<DemoButton on:click={getUnoFromFaucet}>Get UNO from faucet</DemoButton> | ||
|
||
<TerminalContainer> | ||
<DemoButton on:click={getUnoFromFaucet}>Get UNO from faucet</DemoButton> | ||
</TerminalContainer> |
8 changes: 5 additions & 3 deletions
8
site/src/routes/blog/start-of-the-endgame/TransferUnoToEthereum.svelte
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
<script lang="ts"> | ||
import DemoButton from "$lib/DemoButton.svelte"; | ||
import { sendUnoToEthereum } from "$lib/transferDemo"; | ||
import TerminalContainer from "$lib/TerminalContainer.svelte"; | ||
</script> | ||
<DemoButton on:click={sendUnoToEthereum}>Send UNO to Ethereum</DemoButton> | ||
|
||
<TerminalContainer> | ||
<DemoButton on:click={sendUnoToEthereum}>Send UNO to Ethereum</DemoButton> | ||
</TerminalContainer> |