-
Notifications
You must be signed in to change notification settings - Fork 152
/
AsideBottom.vue
52 lines (50 loc) · 1.33 KB
/
AsideBottom.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<template>
<div>
<h5 class="py-2 text-base font-semibold text-gray-900 cursor-pointer dark:text-gray-100">Resources</h5>
<ul>
<li v-for="resource of resources" :key="resource.title">
<a
:href="resource.url"
target="_blank"
rel="noopener nofollow"
class="flex items-center py-1.5 group dark:hover:text-gray-100 hover:text-gray-900"
>
<Component :is="resource.icon" v-if="resource.icon" class="w-5 h-5 mr-2" :class="resource.iconClass" />
<span>{{ resource.title }}</span>
<IconExternalLink class="w-4 h-4 ml-2 text-gray-400 opacity-0 group-hover:opacity-100" />
</a>
</li>
</ul>
</div>
</template>
<script>
import { defineComponent } from '@nuxtjs/composition-api'
export default defineComponent({
setup() {
return {
resources: [
{
title: 'NuxtJS',
url: 'https://nuxtjs.org',
icon: 'IconNuxt'
},
{
title: 'Vue',
url: 'https://vuejs.org',
icon: 'IconVue'
},
{
title: 'Windi CSS',
url: 'https://windicss.org',
icon: 'IconWindi'
},
{
title: 'Nuxt Content',
url: 'https://content.nuxtjs.org',
icon: 'IconNuxtContent'
}
]
}
}
})
</script>