Dodano sortowanie, lekkie zmiany w wyglądzie

This commit is contained in:
2020-07-15 18:41:48 +02:00
parent f5e385a658
commit 744f645292
10 changed files with 372 additions and 308 deletions
+75
View File
@@ -0,0 +1,75 @@
<template>
<div class="app-bar">
<div class="bar-content flex flex-spaced">
<div class="bar-left">
<Options />
<span class="legend">
<!-- <button class="button">
<img :src="require('@/assets/icon-legend.svg')" alt="icon legend" />
</button>-->
</span>
</div>
<div class="bar-center"></div>
<div class="bar-right">
<span class="counter dispatchers">
<img src="@/assets/icon-dispatcher.svg" alt="icon dispatcher" />
{{stationCount}}
</span>
<span class="counter trains">
{{trainCount}}
<img src="@/assets/icon-train.svg" alt="icon train" />
</span>
</div>
</div>
</div>
</template>
<script lang="ts">
import { Vue, Component, Prop } from "vue-property-decorator";
import Options from "@/components/ui/Options.vue";
@Component({
components: { Options }
})
export default class AppBar extends Vue {
@Prop(Number) trainCount;
@Prop(Number) stationCount;
}
</script>
<style lang="scss">
.app-bar {
display: flex;
justify-content: space-between;
position: sticky;
top: 0;
font-size: 0.3em;
background: #222;
}
.bar {
&-left {
display: flex;
& > .legend {
display: flex;
align-items: center;
img {
width: 1.6em;
}
}
}
&-right {
font-size: 1.35em;
display: flex;
}
}
</style>