This repository has been archived on 2025-01-07. You can view files and clone it, but cannot push or open issues or pull requests.
rebuilding-acquia/src/components/Sidebar.vue

32 lines
1 KiB
Vue

<template>
<div class="w-auto lg:w-56 bg-grey-300 text-grey-400 antialiased fixed left-0 h-full overflow-y-scroll z-30">
<div>
<ul class="list-reset">
<li v-for="link in links" :key="link.title">
<a
href="#0"
class="flex items-center no-underline focus:underline px-4 py-2 text-sm"
:class="{
'bg-grey-600 text-white hover:text-white': link.active,
'border-transparent hover:bg-grey-400': !link.active,
'text-grey-500 cursor-not-allowed': link.disabled,
'text-grey-600 hover:text-blue-300': !link.disabled && !link.active,
}"
>
<svg class="h-6 w-6 fill-current" role="presentation"><use :xlink:href="`/img/icons.symbol.svg#${link.icon}`"></use></svg>
<span class="hidden lg:block lg:ml-4">{{ link.title }}</span>
</a>
</li>
</ul>
</div>
</div>
</template>
<script>
export default {
props: {
links: Array,
},
}
</script>