This commit is contained in:
parent
84b1e85076
commit
583cf9dd46
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user