-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
51 lines (48 loc) · 1.58 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
<template>
<Title>Obapelumi</Title>
<header class="fw-screen sticky top-0 backdrop-blur-xl">
<div
class="flex items-center justify-between py-4 mx-10 xl:max-w-6xl xl:mx-auto"
>
<NuxtLink to="/"
><img src="/images/obapelumi.jpg" class="h-10 w-10 rounded-full" />
</NuxtLink>
<div class="flex space-x-8">
<NuxtLink
v-for="link in links"
:to="link.to"
activeClass="underline underline-offset-2"
class="font-semibold text-sm text-gray-500 hover:text-gray-600 hover:underline hover:underline-offset-2"
>{{ link.title }}</NuxtLink
>
</div>
</div>
</header>
<NuxtPage />
<footer
class="flex flex-col space-y-2 pb-2 pt-4 max-w-xs mx-auto rounded-t-xl shadow-2xl justify-center sm:sticky bottom-0 backdrop-blur-xl"
>
<div class="items-center justify-center space-x-8 flex">
<a href="https://github.com/obapelumi" target="__blank">
<IconsGithub
class="h-6 text-gray-400 fill-gray-400 hover:fill-gray-500 hover:text-gray-500"
/>
</a>
<a href="https://twitter.com/0bapelumi" target="__blank">
<IconsTwitter
class="h-6 text-gray-400 fill-gray-400 hover:fill-gray-500 hover:text-gray-500"
/>
</a>
</div>
<span class="text-center text-gray-600 text-xs"
>Copyright © {{ currentYear }} · All rights reserved</span
>
</footer>
</template>
<script setup lang="ts">
const links = [
{ to: '/work', title: 'Work' },
{ to: '/articles', title: 'Articles' }
]
const currentYear = useYear()
</script>