aboutsummaryrefslogtreecommitdiff
path: root/web/pw-server/src/routes/__layout.svelte
blob: 2267491591b2e507b3c99558f3b58865cdc75675 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<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-left">
      <div class="navbar-header">
        <a href="/">PlanetWars</a>
      </div>
      <div class="navbar-item">
        <a href="/editor">Editor</a>
      </div>
    </div>
    <div class="navbar-right">
      <UserControls />
    </div>
  </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-left {
    display: flex;
  }

  .navbar-right {
    display: flex;
  }

  .navbar-header {
    margin: auto 0;
    padding-right: 24px;
  }

  .navbar-header a {
    font-size: 20px;
    color: #fff;
    text-decoration: none;
  }
  .navbar-item {
    margin: auto 0;
    padding: 0 8px;
  }

  .navbar-item a {
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
  }
</style>