friends-best/components/NavBar.vue

36 lines
550 B
Vue
Raw Normal View History

2022-05-22 21:04:20 +00:00
<template>
<nav>
<div v-for="link in links" :key="link">
<NuxtLink :to="link.to" class="nav-button">
<img :src="link.img.name" :alt="link.img.alt" />
</NuxtLink>
</div>
</nav>
</template>
<style lang="scss" scoped>
nav {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 1rem;
}
.nav-button {
padding: .25rem;
margin: .25rem;
}
</style>
<script>
const NavBar = resolveComponent('NavBar');
export default {
props: {
links: {
type: Array,
required: true,
},
},
};
</script>