From cb658796870abb1fb528579645ebb30f6ea76798 Mon Sep 17 00:00:00 2001 From: Nick Bland Date: Fri, 19 Apr 2024 18:11:09 +1000 Subject: [PATCH] Adjust Responsiveness ~ Countdown timer did not work well on small screens so I adjusted the timer altogether for when using a smaller screen (tailwind md value or less) --- src/components/countdown.svelte | 94 ++++++++++++++++++++------------- 1 file changed, 56 insertions(+), 38 deletions(-) diff --git a/src/components/countdown.svelte b/src/components/countdown.svelte index da7322b..198dd0f 100644 --- a/src/components/countdown.svelte +++ b/src/components/countdown.svelte @@ -1,7 +1,10 @@ -

Time to Graduation

-
-
- - - - years + + + +{#if w >= 768} +

Time to Graduation

+
+
+ + + + years +
+
+ + + + months +
+
+ + + + days +
+
+ + + + hours +
+
+ + + + minutes +
+
+ + + + seconds +
-
- - - - months -
-
- - - - days -
-
- - - - hours -
-
- - - - minutes -
-
- - - - seconds -
-
+{:else} +

Time to Graduation
{FORMATTED}

+ + y + m + d- + : + : + + +{/if}