In my Vue/Vuetify application, the navigation bar consists of several elements:
- A hamburger menu
- An SVG logo that is linked to the homepage
- Various navigation links
I am trying to style the elements as follows: left-align the menu, center the logo, and right-align the navigation links. Below is the code snippet I have been working with:
<v-app-bar app>
<!-- hamburger menu --->
<v-menu>
<template #activator="{ on, attrs }">
<v-app-bar-nav-icon v-bind="attrs" v-on="on" />
</template>
<v-list>
<v-list-item v-for="(menuItem, index) in menuItems"
:to="menuItem.route"
:key="index">
{{ menuItem.text }}
</v-list-item>
</v-list>
</v-menu>
<!-- logo --->
<router-link :to="{name: 'home'}">
<v-img src="../assets/logo.svg" width="110px" />
</router-link>
<!-- navigation links --->
<v-spacer />
<router-link v-for="(menuItem, index) in menuItems"
:key="index"
:to="menuItem.route">
{{ menuItem.text }}
</router-link>
</v-app-bar>
I have tried multiple methods to center the logo without success. Any suggestions would be greatly appreciated.