aboutsummaryrefslogtreecommitdiff
path: root/src/routes/+layout.svelte
blob: 7a16a5ce314fad602d67a60bdb4be59a2a3afde4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<script>
  import "../app.css";
  import Navigation from "$lib/components/Navigation.svelte";
    import { onMount } from "svelte";

  // Compute viewport height.
  $: displayHeight = window.innerHeight;

  onMount(() => {
    document.body.style.height = `${displayHeight}px`;
  });
</script>

<div class={'leather min-h-full w-full flex flex-col items-center'}>
  <Navigation class='sticky top-0' />
  <slot />
</div>