aboutsummaryrefslogtreecommitdiff
path: root/web/pw-server/src/routes/__layout.svelte
blob: 53eb265949ac51b3bb7cc51a63eda6b13a2322cf (plain)
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
38
39
40
41
42
43
44
45
46
<script lang="ts">
  import UserControls from "$lib/components/navbar/UserControls.svelte";

  import "./style.css";
</script>

<div class="outer-container">
  <div class="navbar">
    <div class="navbar-main">
      <a href="/">PlanetWars</a>
    </div>
    <UserControls />
  </div>
  <slot />
</div>

<style lang="scss" global>
  @import "src/styles/global.scss";

  .outer-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .navbar {
    height: 48px;
    background-color: $bg-color;
    border-bottom: 1px solid;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
  }

  .navbar-main {
    margin: auto 0;
  }

  .navbar-main a {
    font-size: 20px;
    color: #eee;
    text-decoration: none;
  }
</style>