From 3ee1f942063689e4f5479e67faed43de0b51b4eb Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Sun, 27 Apr 2025 17:51:33 -0400 Subject: [PATCH] prettier WIP --- src/lib/components/WIP.svelte | 111 +++++++++++++++++++--------------- 1 file changed, 63 insertions(+), 48 deletions(-) diff --git a/src/lib/components/WIP.svelte b/src/lib/components/WIP.svelte index ef24ecc..68812de 100644 --- a/src/lib/components/WIP.svelte +++ b/src/lib/components/WIP.svelte @@ -1,58 +1,57 @@ -
-
-
-

Under Construction

-

Caution

-

Work In Progress

-

Under Construction

-

Caution

-
-
-

Under Construction

-

Caution

-

Work In Progress

-

Under Construction

-

Caution

+ + +{#snippet Banner(messages: string[], backwards: boolean)} +
+
+
+ {#each messages.sort(() => { + const val = Math.random(); + if (val > 0.66) return 1; + else if (val > 0.33) return 0; + else return -1; + }) as message (message)} + +

{message}

+ {/each} +
+
+ {#each messages as message (message)} + +

{message}

+ {/each} +
-
-
-

Caution

-

Work In Progress

-

Under Construction

-

Caution

-

Work In Progress

-
-
-

Caution

-

Work In Progress

-

Under Construction

-

Caution

-

Work In Progress

-
-
-
-
-

Work In Progress

-

Under Construction

-

Caution

-

Work In Progress

-

Under Construction

-
-
-

Work In Progress

-

Under Construction

-

Caution

-

Work In Progress

-

Under Construction

-
+{/snippet} + +
+
+ {@render Banner(messages, false)} + {@render Banner(messages, true)} + {@render Banner(messages, false)}