From 1ce29699f625d6bc744cecd90c3a8e0fd5b5317d Mon Sep 17 00:00:00 2001 From: Bradley Shellnut Date: Tue, 27 Jul 2021 13:28:56 -0700 Subject: [PATCH] Search input transitions on items, styling items on search and hover, exporting search from component. --- src/lib/SearchFilter.svelte | 63 +++++++++++++++++++++++++++++++------ src/routes/index.svelte | 6 ++-- 2 files changed, 56 insertions(+), 13 deletions(-) diff --git a/src/lib/SearchFilter.svelte b/src/lib/SearchFilter.svelte index d86d714..f398178 100644 --- a/src/lib/SearchFilter.svelte +++ b/src/lib/SearchFilter.svelte @@ -1,18 +1,61 @@ - - +
+ + + {#if isFocused} + + {/if} +
+ + diff --git a/src/routes/index.svelte b/src/routes/index.svelte index 87fadaf..9a6357e 100644 --- a/src/routes/index.svelte +++ b/src/routes/index.svelte @@ -3,13 +3,13 @@ // import BetterAccordion from '$lib/BetterAccordion.svelte'; // import Toggle from '$lib/Toggle.svelte'; let isToggled = false; - + let search = ''; let items = ['scott', 'wes', 'landon', 'courtney', 'lucie', 'brooklyn', 'Samson']; -

Welcome to Level Up UI

+

Welcome to Level Up UI {search}

- +