From 95ca55dcdd3cc783cc8ab99ca9fb1914ce766043 Mon Sep 17 00:00:00 2001 From: Mawoka Date: Fri, 15 Apr 2022 10:46:56 +0200 Subject: [PATCH] :children_crossing: Added redirectTo to not redirect to /overview every time --- frontend/src/lib/navbar.svelte | 4 +- frontend/src/lib/stores.ts | 1 + frontend/src/routes/__layout.svelte | 67 +++++--- frontend/src/routes/account/login.svelte | 206 ++++++++++++----------- frontend/src/routes/create.svelte | 2 +- frontend/src/routes/edit.svelte | 2 +- frontend/src/routes/explore.svelte | 10 ++ frontend/src/routes/import.svelte | 2 +- frontend/src/routes/overview.svelte | 2 +- frontend/src/routes/search.svelte | 106 ++++++------ 10 files changed, 223 insertions(+), 179 deletions(-) diff --git a/frontend/src/lib/navbar.svelte b/frontend/src/lib/navbar.svelte index 2709bc5..9d7a1ad 100644 --- a/frontend/src/lib/navbar.svelte +++ b/frontend/src/lib/navbar.svelte @@ -1,7 +1,7 @@ + + - + + +
-
-
+
+
@@ -70,24 +82,24 @@ {#if resp_data} {#if resp_data.hits.length !== 0} -
+
{#each resp_data.hits as quiz} -
- -
+
+ +
-

+

{@html quiz._formatted.title}

-

+

{@html quiz._formatted.description}

-
+
Made by {@html quiz._formatted.user}
@@ -96,30 +108,30 @@ {/each}
{:else} -
-

There is nothing here...

+
+

There is nothing here...

-
+

Not finding what you are looking for? Search on KAHOOT! - and Import it! + class='underline' + href='https://create.kahoot.it/search?query={search_term}&tags=test&filter=filter%3D1' + target='_blank'>KAHOOT! + and Import it!

{/if} {/if} -