<template>
<div class="root">
    <!-- <div class="app-bar theme-primary">
        <div class="app-bar-content">
            <span class="heading1">{{ translations.get("Title") }}</span>
        </div>
    </div> -->

    <main-page class="content" />
</div>
</template>

<style lang="scss">
html, body, #app {
    height: 100%;
    width: 100%;
}

.root {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.app-bar {
    display: flex;
    flex-direction: column;
    gap: 1em;

    background-color: var(--bg-color);
    color: var(--fg-color);
    box-shadow: 0px 0px 4px 3px #6d6d6d;

    padding: 1em;
    margin-bottom: 1em;
}

.app-bar-content {
    display: flex;
    align-items: center;
    gap: 1em;

    width: 100%;

    & :first-child {
        flex-grow: 1;
    }
}

.content {
    padding: 1em;
    flex-grow: 1;
}
</style>

<script>
import { mapState } from "vuex";
import MainPage from "./components/MainPage.vue"

export default {
    name: "App",
    components: {
        MainPage
    },
    computed: {
        ...mapState({
            translations: state => state.translations
        })
    }
}
</script>
