Creator scaffolding

This commit is contained in:
Roman Krček
2025-06-23 18:07:23 +02:00
parent 864c77133e
commit 0fdf77a8c3
9 changed files with 260 additions and 67 deletions

View File

@@ -0,0 +1,17 @@
<script lang="ts">
import { enhance } from '$app/forms';
let { events, new_event } = $props();
</script>
<p class="bg-grey-200">{JSON.stringify(events)}</p>
<form method="POST" action="?/create" use:enhance>
<input type="text" name="name" />
<input type="date" name="date" />
<textarea name="description"></textarea>
<button type="submit">Submit</button>
</form>
<p class="bg-grey-200">{JSON.stringify(new_event)}</p>