diff --git a/frontend/src/lib/navbar.svelte b/frontend/src/lib/navbar.svelte index 63f4cba..f52ad63 100644 --- a/frontend/src/lib/navbar.svelte +++ b/frontend/src/lib/navbar.svelte @@ -70,7 +70,7 @@
  • PlayPlay
  • diff --git a/frontend/src/lib/stores.ts b/frontend/src/lib/stores.ts new file mode 100644 index 0000000..8e27f67 --- /dev/null +++ b/frontend/src/lib/stores.ts @@ -0,0 +1,4 @@ +import { writable } from 'svelte/store'; + + +export const navbarVisible = writable(true); \ No newline at end of file diff --git a/frontend/src/routes/__layout.svelte b/frontend/src/routes/__layout.svelte index e0bdfe4..810566c 100644 --- a/frontend/src/routes/__layout.svelte +++ b/frontend/src/routes/__layout.svelte @@ -1,12 +1,18 @@ - -
    - -
    +{#if $navbarVisible} + +
    + +
    +{:else} + +{/if} +