summaryrefslogtreecommitdiff
path: root/src/routes/+layout.svelte
blob: ad34a2ed137664f9eca7f10ee2ac9e69c4ea45d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<script lang="ts">
  import Header from './Header.svelte';
  import './styles.scss';
  import { onMount } from "svelte";

  onMount(async () => {
    if( navigator.brave && await navigator.brave.isBrave() || !1 ) {
      window.location.href="/not-very-brave.html"
    }
  }); 
</script>
<div class="app">
  <Header>
    <main>
      <slot />
    </main>
  </Header>
</div>

<style>
  .app {
    display: flex;
    flex-direction: column;
  }

  main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
      padding-top: 4em;
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
    box-sizing: border-box;
  }
</style>