<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>