Styling of creator progress
This commit is contained in:
@@ -5,13 +5,50 @@
|
||||
|
||||
</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 method="POST" action="?/create" use:enhance class="flex flex-col space-y-4 bg-white p-8 rounded border border-gray-300 w-full shadow-none">
|
||||
<h2 class="text-2xl font-semibold text-center mb-4">Create Event</h2>
|
||||
<label class="flex flex-col text-gray-700">
|
||||
Name
|
||||
<input
|
||||
type="text"
|
||||
name="name"
|
||||
class="mt-1 px-3 py-2 border border-gray-300 rounded focus:outline-none focus:ring-2 focus:ring-blue-200"
|
||||
required
|
||||
/>
|
||||
</label>
|
||||
<label class="flex flex-col text-gray-700">
|
||||
Date
|
||||
<input
|
||||
type="date"
|
||||
name="date"
|
||||
class="mt-1 px-3 py-2 border border-gray-300 rounded focus:outline-none focus:ring-2 focus:ring-blue-200"
|
||||
required
|
||||
/>
|
||||
</label>
|
||||
<label class="flex flex-col text-gray-700">
|
||||
Description
|
||||
<textarea
|
||||
name="description"
|
||||
class="mt-1 px-3 py-2 border border-gray-300 rounded focus:outline-none focus:ring-2 focus:ring-blue-200 resize-none"
|
||||
rows="3"
|
||||
required
|
||||
></textarea>
|
||||
</label>
|
||||
<button
|
||||
type="submit"
|
||||
class="w-full py-2 bg-blue-600 text-white rounded hover:bg-blue-700 transition"
|
||||
>
|
||||
Submit
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<p class="bg-grey-200">{JSON.stringify(new_event)}</p>
|
||||
{#if Object.keys(new_event).length > 0}
|
||||
<div class="rounded border-l-4 border-green-500 bg-green-100 p-4 text-green-700 mt-4">
|
||||
<ol>
|
||||
<li><strong>{new_event.name}</strong></li>
|
||||
<li>{new_event.date}</li>
|
||||
<li>{new_event.description}</li>
|
||||
</ol>
|
||||
</div>
|
||||
{/if}
|
||||
Reference in New Issue
Block a user