factor out top bar to __layout.svelte
This commit is contained in:
parent
675bf6fd07
commit
d91d98cef5
2 changed files with 73 additions and 69 deletions
26
web/pw-server/src/routes/__layout.svelte
Normal file
26
web/pw-server/src/routes/__layout.svelte
Normal file
|
@ -0,0 +1,26 @@
|
|||
<script lang="ts">
|
||||
import "./style.css";
|
||||
</script>
|
||||
|
||||
<div class="outer-container">
|
||||
<div class="top-bar" />
|
||||
<slot />
|
||||
</div>
|
||||
|
||||
<style lang="scss">
|
||||
@import "../lib/variables.scss";
|
||||
|
||||
.outer-container {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.top-bar {
|
||||
height: 40px;
|
||||
background-color: $bg-color;
|
||||
border-bottom: 1px solid;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
</style>
|
|
@ -2,7 +2,6 @@
|
|||
import Visualizer from "$lib/components/Visualizer.svelte";
|
||||
import EditorView from "$lib/components/EditorView.svelte";
|
||||
import { onMount } from "svelte";
|
||||
import "./style.css";
|
||||
|
||||
import { DateTime } from "luxon";
|
||||
|
||||
|
@ -131,8 +130,6 @@
|
|||
}
|
||||
</script>
|
||||
|
||||
<div class="outer-container">
|
||||
<div class="top-bar" />
|
||||
<div class="container">
|
||||
<div class="sidebar-left">
|
||||
<div
|
||||
|
@ -183,24 +180,9 @@
|
|||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style lang="scss">
|
||||
$bg-color: rgb(41, 41, 41);
|
||||
|
||||
.outer-container {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.top-bar {
|
||||
height: 40px;
|
||||
background-color: $bg-color;
|
||||
border-bottom: 1px solid;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
@import "../lib/variables.scss";
|
||||
|
||||
.container {
|
||||
display: flex;
|
||||
|
@ -266,10 +248,6 @@
|
|||
color: #ccc;
|
||||
}
|
||||
|
||||
.match-mapname {
|
||||
padding: 0 0.5em;
|
||||
}
|
||||
|
||||
.match-opponent {
|
||||
padding: 0 0.5em;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue