Fix Homepage
Dieser Commit ist enthalten in:
Ursprung
a2af26a56c
Commit
74a008c715
@ -57,7 +57,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<h1 class="text-3xl mt-4 ml-4">Past</h1>
|
<h1 class="text-3xl mt-4 ml-4">Past</h1>
|
||||||
<div class="grid gap-4 p-4" style="grid-template-columns: repeat(auto-fill, minmax(300px, 1fr))">
|
<div class="grid gap-4 p-4" style="grid-template-columns: repeat(auto-fill, minmax(300px, 1fr))">
|
||||||
{#each data.filter((e) => e.start < millis) as event}
|
{#each data.filter((e) => e.start < millis).reverse() as event}
|
||||||
<EventCard {event} />
|
<EventCard {event} />
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
@ -11,10 +11,11 @@
|
|||||||
<a href="/event/{event.id}" use:link>
|
<a href="/event/{event.id}" use:link>
|
||||||
<Card class="hover:scale-105 transition">
|
<Card class="hover:scale-105 transition">
|
||||||
<h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white">{event.name}</h5>
|
<h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white">{event.name}</h5>
|
||||||
<p>Startet: {new Intl.DateTimeFormat().format(event.start)}</p>
|
|
||||||
{#if !sameDate}
|
{#if !sameDate}
|
||||||
|
<p>Startet: {new Intl.DateTimeFormat().format(event.start)}</p>
|
||||||
<p>Endet: {new Intl.DateTimeFormat().format(event.end)}</p>
|
<p>Endet: {new Intl.DateTimeFormat().format(event.end)}</p>
|
||||||
{:else}
|
{:else}
|
||||||
|
<p>Am: {new Intl.DateTimeFormat().format(event.start)}</p>
|
||||||
<p> </p>
|
<p> </p>
|
||||||
{/if}
|
{/if}
|
||||||
</Card>
|
</Card>
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren