diff --git a/src/App.svelte b/src/App.svelte index c529c2a..0b8c5b5 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -12,17 +12,7 @@ import ItemDetail from "./ItemDetail.svelte" import ItemList from "./ItemList.svelte" import AdvancedSearch from "./AdvancedSearch.svelte" - - let sidebarItems = [ - {text: "Game", link: "#/game", icon: "home"}, - {text: "Topics", link: "#/topics", icon: "home"}, - {text: "Formats", link: "#/formats", icon: "home"}, - {text: "Random item", link: "#/item/1", icon: "home"}, - {text: "Search", link: "#/search", icon: "home"}, - {text: "Want to learn", link: "#/wanttolearn", icon: "home"}, - {text: "Finished learning", link: "#/finishedlearning", icon: "home"}, - {text: "Datasette", link: "/learn", icon: "home"} - ] + import { SearchIcon } from "@rgossiaux/svelte-heroicons/outline"; let currentView = "/topics"; @@ -48,28 +38,63 @@ - - {#if currentView === "/home" || currentView === "/"} - - {:else if currentView === "/game"} - - {:else if currentView === "/topics"} - - {:else if currentView.startsWith("/topic/")} - - {:else if currentView === "/formats"} - - {:else if currentView.startsWith("/format/")} - - {:else if currentView === "/courses"} - - {:else if currentView.startsWith("/item/")} - - {:else if currentView === "/search"} - - {:else if currentView === "/wanttolearn"} - - {:else if currentView === "/finishedlearning"} - - {/if} + + + {#if currentView === "/home" || currentView === "/"} + + {:else if currentView === "/game"} + + {:else if currentView === "/topics"} + + {:else if currentView.startsWith("/topic/")} + + {:else if currentView === "/formats"} + + {:else if currentView.startsWith("/format/")} + + {:else if currentView === "/courses"} + + {:else if currentView.startsWith("/item/")} + + {:else if currentView === "/search"} + + {:else if currentView === "/wanttolearn"} + + {:else if currentView === "/finishedlearning"} + + {/if} + + + + + + Topics + + + + Formats + + + + Random Item + + + + Search + +
+ + + Want to learn + + + + Finished learning + +
+ + + Datasette + +
\ No newline at end of file diff --git a/src/tailwindui/AppShell.svelte b/src/tailwindui/AppShell.svelte index fe19b4c..a53de9c 100644 --- a/src/tailwindui/AppShell.svelte +++ b/src/tailwindui/AppShell.svelte @@ -1,9 +1,6 @@