Initial commit from Astro

This commit is contained in:
houston[bot]
2024-09-27 17:16:25 +02:00
committed by h4ckx0r
commit 4668e03fb4
13 changed files with 5886 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<script lang="ts">
let count = 0;
function add() {
count += 1;
}
function subtract() {
count -= 1;
}
</script>
<div class="counter">
<button on:click={subtract}>-</button>
<pre>{count}</pre>
<button on:click={add}>+</button>
</div>
<div class="message">
<slot />
</div>
<style>
.counter {
display: grid;
font-size: 2em;
grid-template-columns: repeat(3, minmax(0, 1fr));
margin-top: 2em;
place-items: center;
}
.message {
text-align: center;
}
</style>