-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
55 lines (50 loc) · 1.38 KB
/
app.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
53
54
55
<script lang="ts" setup>
//const { navigation } = useContent()
const { data: navigation } = await useAsyncData('navigation', () => fetchContentNavigation())
// const links = computed(() => {
// return navigation.value.map((item) => {
// return {
// label: item.title,
// to: item._path,
// }
// })
// })
</script>
<template>
<UHeader :links="mapContentNavigation(navigation)">
<template #logo>
<div class="flex items-center gap-2">
<img src="@/assets/logo.svg" alt="Jemima Daisy logo" class="h-16 w-16">
<span> Jemima Daisy </span>
</div>
</template>
<template #right>
<div class="hidden lg:block">
<FollowMe />
</div>
<UTooltip class="mr-1 lg:mr-0 lg:ml-2" text="Toggle color mode" placement="bottom">
<UColorModeButton />
</UTooltip>
</template>
<template #panel>
<UAsideLinks :links="mapContentNavigation(navigation)" />
<div class="absolute bottom-8 left-1/2 transform -translate-x-1/2">
<FollowMe />
</div>
</template>
</UHeader>
<UMain>
<NuxtPage />
</UMain>
<UFooter :links="mapContentNavigation(navigation)">
<template #left>
<UFooterLinks :links="mapContentNavigation(navigation)" />
</template>
<template #center>
<span />
</template>
<template #right>
<FollowMe />
</template>
</UFooter>
</template>