From e2c488220d1ef73608a932b5812768aa7631c9ad Mon Sep 17 00:00:00 2001 From: Tanner Heffner Date: Mon, 22 Jan 2024 19:26:46 -0800 Subject: [PATCH] fun with emojis --- src/lib/components/Emojis.svelte | 82 +++++++++++++++++++++++++++++ src/lib/components/Slice.svelte | 5 ++ src/routes/(main)/+page.svelte | 20 ++----- src/routes/(main)/blog/+page.svelte | 4 +- src/tailwind.css | 9 ++++ 5 files changed, 102 insertions(+), 18 deletions(-) create mode 100644 src/lib/components/Emojis.svelte diff --git a/src/lib/components/Emojis.svelte b/src/lib/components/Emojis.svelte new file mode 100644 index 0000000..f71f942 --- /dev/null +++ b/src/lib/components/Emojis.svelte @@ -0,0 +1,82 @@ + + +
+ {#each shuffled as f, i} + + + {/each} +
+ +{#if shuffled.length < 50 && shuffled.length > 25} +

keep going...

+{/if} +{#if shuffled.length <= 25 && shuffled.length > 0} +

almost there...

+{/if} +{#if shuffled.length === 0} + + 🎉 {full.length} emojis clicked 🎉 +{/if} diff --git a/src/lib/components/Slice.svelte b/src/lib/components/Slice.svelte index 15f715d..54f85cd 100644 --- a/src/lib/components/Slice.svelte +++ b/src/lib/components/Slice.svelte @@ -2,6 +2,7 @@ export let title = false export let date = false export let prose = true + export let full = false let slotWrapperClasses = 'w-full md:w-2/3 md:ml-4 lg:ml-12' if (title && prose) { @@ -10,6 +11,10 @@ if (title && !prose) { slotWrapperClasses = 'not-prose' } + // nuclear full width + if (full) { + slotWrapperClasses = 'w-full px-8' + }
import Slice from '$lib/components/Slice.svelte' import Card from '$lib/components/Card.svelte' + import Emojis from '$lib/components/Emojis.svelte' import { SITE_URL, SITE_TITLE, @@ -32,11 +33,11 @@
- -

+ +

welcome to my page

- +
@@ -87,16 +88,3 @@

- - diff --git a/src/routes/(main)/blog/+page.svelte b/src/routes/(main)/blog/+page.svelte index 1e24ecd..dbf6401 100644 --- a/src/routes/(main)/blog/+page.svelte +++ b/src/routes/(main)/blog/+page.svelte @@ -121,7 +121,7 @@ Posts

- In total, I've written {items.length} posts on my blog. Use the search below + In total, I've written {items.length} posts on my blog. Use the search below to filter.

@@ -157,7 +157,7 @@
Filter: - +