Better previewes for creator
This commit is contained in:
@@ -66,21 +66,13 @@
|
||||
>
|
||||
Edit the event
|
||||
</button>
|
||||
{/if}
|
||||
|
||||
{#if !showForm}
|
||||
<div
|
||||
class="rounded border-l-4 border-green-500 p-4 text-green-700"
|
||||
class:bg-gray-100={loading}
|
||||
class:bg-green-100={!loading}
|
||||
>
|
||||
{#if loading}
|
||||
<strong class="text-gray-700">Loading...</strong>
|
||||
{:else if Object.keys(event).length > 0}
|
||||
<ol>
|
||||
<li><strong>{event.name}</strong></li>
|
||||
<li>{event.date}</li>
|
||||
</ol>
|
||||
<div class="rounded border border-gray-300 bg-white p-4">
|
||||
<h2 class="mb-2 text-xl font-bold">Event Preview</h2>
|
||||
{#if Object.keys(event).length > 0}
|
||||
<ul>
|
||||
<li><span class="font-semibold">{event.name}</span></li>
|
||||
<li class="text-gray-700">{event.date}</li>
|
||||
</ul>
|
||||
{:else}
|
||||
<strong class="text-gray-700">No event created yet...</strong>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user