Skip to content
Snippets Groups Projects
Sidebar.vue 1.02 KiB
Newer Older
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed
<template>
    <aside class="menu shadow position-fixed">
        <div class="nav_header pb-3 mb-5">
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed
            <nuxt-link :to="localePath('/')" class="d-flex">
                <img src="@/assets/img/logo.png" alt="Accueil" class="logo">
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed
                <div><h1 class="h2">Wotwizard</h1><small class="text-muted">{{ $t('slogan') }}</small></div>
            </nuxt-link>
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed
            <button type="button" class="close position-absolute d-xl-none" aria-label="Close" @click="toggleMenu">
                <span aria-hidden="true">&times;</span>
            </button>
        </div>
            <NavigationMenuGroup v-for="menu in menus" :key="menu.title" :menu="menu"/>
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed
        </nav>
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed
        <div class="version position-absolute p-3 text-muted"><br>v0.01</div>
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed
    </aside>
</template>

<script>
export default {
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed
    props: {
        menus: Array
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed
    },
    methods: {
        toggleMenu() {
            this.$emit('toggleMenu')
        }
    }
}
Pierre-Jean CHANCELLIER's avatar
Pierre-Jean CHANCELLIER committed
</script>

<style lang="scss">
.version {
    bottom: 0;
    right: 0;
}
</style>