feat(web): setup basic svelte-tailwind webapp
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<script lang="ts">
|
||||
let count = $state(0);
|
||||
|
||||
function increment() {
|
||||
count += 1;
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="min-h-screen bg-zinc-950 text-zinc-100 flex items-center justify-center">
|
||||
<div class="text-center">
|
||||
<h1 class="mb-6 text-3xl font-bold">
|
||||
svelte tests
|
||||
</h1>
|
||||
|
||||
<button
|
||||
onclick={increment}
|
||||
class="
|
||||
rounded-lg
|
||||
bg-blue-600
|
||||
px-5 py-2.5
|
||||
font-semibold
|
||||
text-white
|
||||
shadow-lg
|
||||
transition
|
||||
hover:bg-blue-500
|
||||
active:scale-95
|
||||
"
|
||||
>
|
||||
Clicked {count} {count === 1 ? "time" : "times"}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user