chore: footer icon

This commit is contained in:
胡鑫 2023-05-19 19:24:58 +08:00
parent 66732e133a
commit 46f86d4620
3 changed files with 6 additions and 2 deletions

View File

@ -16,8 +16,8 @@ const footer = useFoot()
{{ $t(col.title) }}
</h5>
<LocaleNuxtLink v-for="(item, i) in col.child" :key="i" class="font-bold" :href="item.link.href">
{{ $t(item.link.name) }}
<LocaleNuxtLink v-for="(item, i) in col.child" :key="i" class="flex gap-2 font-bold" :href="item.link.href">
<span :class="item.icon" />{{ $t(item.link.name) }}
</LocaleNuxtLink>
</div>
</div>

View File

@ -58,12 +58,14 @@ export function useFoot() {
title: 'foot.links[2].group',
child: [
{
icon: 'i-ic-sharp-wechat',
link: {
name: 'foot.links[2].link[0]',
href: '#',
},
},
{
icon: 'i-ri-twitter-fill',
link: {
name: 'foot.links[2].link[1]',
href: '#',

View File

@ -66,6 +66,8 @@ export default defineConfig({
'i-tabler-3d-cube-sphere',
'i-tabler-api-app',
'i-tabler-apple',
'i-ic-sharp-wechat',
'i-ri-twitter-fill',
],
presets: [
presetAnu(),