<template>
    <div class="row" id="status-bar">
        <div class="col-12 pixel-border-static status-bar-inner">
            <div class="float-end time-display">
                {{ $store.state.time.season }}, Week #{{ $store.state.time.week }}<br/>
                {{ $store.state.time.stamp }} | {{ weekday }}
            </div>

            <div>
                Money: {{ $store.state.player.money.toLocaleString() }}$
            </div>
        </div>
    </div>
</template>

<script>
import Weekdays from "@/data/Weekdays";

export default {
    name: "StatusBar",
    computed: {
        weekday() {
            return Weekdays[this.$store.state.time.weekday];
        }
    }
}
</script>

<style scoped>
#status-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    font-family: Pixellari, sans-serif;
    margin: 0;
}

.time-display {
    text-align: right;
}

.status-bar-inner {
    border-top: none;
    text-align: left;
    background-color: white;
    border-radius: 0 0 25px 25px;
    padding-top: 0.5em;
}
</style>