diff --git a/src/AdvancedSearch.svelte b/src/AdvancedSearch.svelte index 51b5ac5..bc1f763 100644 --- a/src/AdvancedSearch.svelte +++ b/src/AdvancedSearch.svelte @@ -11,6 +11,7 @@ function resetQuery(){ query = ''; + showSearch =false; } $: query && fetch(`/learn/items.json?_shape=array&name__contains=${query}&_size=6`) diff --git a/src/App.svelte b/src/App.svelte index 248a43c..4d2b16d 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -93,7 +93,11 @@ - + @@ -101,17 +105,17 @@ - +

Random Topic

- +

Random Item

- diff --git a/src/ItemList.svelte b/src/ItemList.svelte index 9840051..5e13cf7 100644 --- a/src/ItemList.svelte +++ b/src/ItemList.svelte @@ -16,7 +16,7 @@ {#if format.id == 'book'} -
+
{#each items.filter(x => x.links.includes(format.id + '|')) as item} {/each} diff --git a/src/NavButtonWithLabel.svelte b/src/NavButtonWithLabel.svelte index c662105..31d461f 100644 --- a/src/NavButtonWithLabel.svelte +++ b/src/NavButtonWithLabel.svelte @@ -3,10 +3,13 @@ export let label; export let target; + - +

{label}

diff --git a/src/SearchForm.svelte b/src/SearchForm.svelte index 59fd4c5..2b37902 100644 --- a/src/SearchForm.svelte +++ b/src/SearchForm.svelte @@ -19,7 +19,7 @@ -
+ @@ -32,7 +32,7 @@ {/if} - + Any tag Inspirational Educational @@ -43,7 +43,7 @@ Open (no login or pay) - + Any level Childlike Beginner @@ -52,7 +52,7 @@ Research - + Sort by Rating Sort by Year diff --git a/src/tailwindui/AppShell.svelte b/src/tailwindui/AppShell.svelte index 35d46f9..50f7fe9 100644 --- a/src/tailwindui/AppShell.svelte +++ b/src/tailwindui/AppShell.svelte @@ -8,113 +8,100 @@
- - {#if isNavDrawerOpen} -