SSR
All checks were successful
deploy to production / deploy (push) Successful in 1m5s

This commit is contained in:
Robin Grenzdörfer 2023-12-06 20:40:34 +00:00
parent 84b1e85076
commit 583cf9dd46

View File

@ -2,6 +2,7 @@
import { onMount } from "svelte"
import DesktopHeader from "./desktop.svelte"
import MobileHeader from "./mobile.svelte"
import { refresh } from "../../stores"
let background: boolean
let isHomePage: boolean
@ -46,14 +47,15 @@
</script>
<main class="headercontainer">
<nav class="trans" class:bg="{background || show}">
<div class="mobile-header">
<MobileHeader bind:show="{show}" />
</div>
<div class="desktop-header">
<DesktopHeader bind:show="{show}" />
</div>
</nav>
{#key $refresh}
<nav class="trans" class:bg="{background || show}">
<div class="mobile-header">
<MobileHeader bind:show="{show}" />
</div>
<div class="desktop-header">
<DesktopHeader bind:show="{show}" />
</div>
</nav>{/key}
</main>
{#if !isHomePage}
<div class="placeholder"></div>