Skip to content

Commit

Permalink
Add more coffee! (#147)
Browse files Browse the repository at this point in the history
this cup of coffee made from svelte beans
  • Loading branch information
Peterprombutr authored Oct 6, 2022
1 parent b51d9db commit ffab840
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Svelte/peterprombutr.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<script>
let cup = { cupEmpty: false };
function toggle() {
cup.cupEmpty = !cup.cupEmpty;
}
</script>

{#if cup.cupEmpty}
<h1>
Here's your code ( • ∀•)–Ψ
</h1>
<button on:click={toggle}>
Add more coffee?
</button>

{/if}

{#if !cup.cupEmpty}
<button on:click={toggle}>
Drink your coffee ☕︎
</button>
{/if}

0 comments on commit ffab840

Please sign in to comment.