From d9bc962d72893dbfd430e4338eacfaa32d31df77 Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 8 Feb 2023 20:01:23 +0000 Subject: [PATCH] site: use for web-font loading (so font is always visible) --- src/routes/payday/+page.svelte | 148 ++++++++++++++++++--------------- src/styles/thomaswilson.css | 1 + 2 files changed, 83 insertions(+), 66 deletions(-) diff --git a/src/routes/payday/+page.svelte b/src/routes/payday/+page.svelte index 847c36e..097c6e6 100644 --- a/src/routes/payday/+page.svelte +++ b/src/routes/payday/+page.svelte @@ -1,87 +1,103 @@ - Pay Day + 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} -
+
+ {#if daysUntilPayDay > 0} +

+ Your 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} +
diff --git a/src/styles/thomaswilson.css b/src/styles/thomaswilson.css index 5ec5678..704a666 100644 --- a/src/styles/thomaswilson.css +++ b/src/styles/thomaswilson.css @@ -1,6 +1,7 @@ @font-face { font-family: 'FivoSansModern-Regular'; src: url('/FivoSansModern-Regular.otf'); + font-display: swap; } :root {