Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
const today = new Date();
let status = 'Current';
if (isBefore(today, new Date(data.event.start_date))) {
status = 'Incoming';
status = 'Mendatang';
} else if (isAfter(today, new Date(data.event.end_date))) {
status = 'Past'
status = ' yang sudah selesai';
}
</script>

Expand Down Expand Up @@ -96,7 +96,11 @@
<h2
class="flex text-sm font-semibold text-zinc-900 dark:text-zinc-100"
>
<span>{status} Event</span>
<span>



Acara {status}</span>
</h2>
<img
class="rounded w-full object-cover object-center mb-6 md:mb-0"
Expand Down