diff --git a/src/App.svelte b/src/App.svelte index 789e591..6f56611 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -53,7 +53,7 @@ - + {#if currentView === "/home" || currentView === "/"} @@ -66,7 +66,7 @@ {:else if currentView === "/formats"} {:else if currentView.startsWith("/format/")} - + {:else if currentView === "/courses"} {:else if currentView.startsWith("/item/")} diff --git a/src/FormatDetail.svelte b/src/FormatDetail.svelte index 9fa3181..14f76d0 100644 --- a/src/FormatDetail.svelte +++ b/src/FormatDetail.svelte @@ -2,7 +2,10 @@ import ItemCard from "./ItemCard.svelte" import VideoCard from "./VideoCard.svelte" + import SearchForm from "./SearchForm.svelte" + export let format; + export let alltopics; let items = []; $: fetch(`/learn/items.json?_shape=array&links__contains=${format}|`) @@ -12,6 +15,8 @@ }); + +

{format}

diff --git a/src/tailwindui/SearchForm.svelte b/src/SearchForm.svelte similarity index 96% rename from src/tailwindui/SearchForm.svelte rename to src/SearchForm.svelte index f4f373e..061a3d8 100644 --- a/src/tailwindui/SearchForm.svelte +++ b/src/SearchForm.svelte @@ -1,6 +1,5 @@ + +