the merge project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
904 B

<template>
<div class="row" id="status-bar">
<div class="col-12 pixel-border-static time-display">
<div class="float-end">
{{ $store.state.time.season }}, Week #{{ $store.state.time.week }}
</div>
<div>
{{ weekday }} | {{ $store.state.time.stamp }}
</div>
</div>
</div>
</template>
<script>
import moment from "moment";
import Weekdays from "@/data/weekdays";
export default {
name: "StatusBar",
computed: {
weekday() {
return Weekdays[this.$store.state.time.weekday];
},
time() {
return moment().format('H:mm:ss');
}
}
}
</script>
<style scoped>
#status-bar {
font-family: Pixellari, sans-serif;
margin: 1em 0.5em;
}
.time-display {
text-align: left;
background-color: white;
border-radius: 25px;
}
</style>