Skip to content
Merged
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
14 changes: 2 additions & 12 deletions src/lib/components/EndMessage.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script>
import { END_DATE } from "$lib/defs";
import relativeDate from "tiny-relative-date";
</script>

<div
Expand All @@ -9,12 +8,7 @@
{#if END_DATE > new Date()}
<h2 class="text-xl font-bold text-primary-400">It's almost the end!</h2>
<p>
Construct will be ending <abbr
title={`${END_DATE.toLocaleDateString()} ${END_DATE.toLocaleTimeString()}`}
class="font-bold"
>
{relativeDate(END_DATE)}
</abbr>, at 00:00 EST on April 20th ({END_DATE.toLocaleDateString()}
Construct will be ending at 00:00 EST on April 20th ({END_DATE.toLocaleDateString()}
{END_DATE.toLocaleTimeString()} in your timezone)
</p>
<p>
Expand All @@ -25,11 +19,7 @@
{:else}
<h2 class="text-xl font-bold text-primary-400">Construct has ended!</h2>
<p>
Construct has ended <abbr
title={`${END_DATE.toLocaleDateString()} ${END_DATE.toLocaleTimeString()}`}
>
{relativeDate(END_DATE)}
</abbr>.
Construct has ended.
</p>
<p>
The market is still open and you can still re-ship rejected projects, however you can't ship
Expand Down
Loading