diff --git a/src/routes/payday.svelte b/src/routes/payday.svelte new file mode 100644 index 0000000..847c36e --- /dev/null +++ b/src/routes/payday.svelte @@ -0,0 +1,87 @@ + + + + Pay Day + + +
+
+ {#if daysUntilPayDay > 0} +

The next Pay Day is

+

In {pluralisedDays}

+

+ The last working day of this month is + {Intl.DateTimeFormat('en-GB', { + weekday: 'long', + month: 'long', + day: 'numeric' + }).format(lastDayOfMonth)} +
+ That's only {prettyPrintDays(daysUntilPayDay - 1)} with Monzo's "get paid now" +

+ {:else} +

PayDay was {pluralisedDays} ago

+ {/if} +
+
+ +