-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathHeader.vue
28 lines (27 loc) · 1.14 KB
/
Header.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
<script setup lang="ts">
import siteConfig from '~/site.config'
</script>
<template>
<header class="flex items-center justify-between py-10">
<Link href="/" :aria-label="siteConfig.title">
<div class="flex items-center justify-between">
<div class="mr-3">
<Logo />
</div>
<div class="hidden sm:block md:hidden lg:block h-6 text-2xl font-semibold">
{{ siteConfig.title }}
</div>
</div>
</Link>
<div class="flex items-center text-base leading-5">
<div class="hidden md:flex">
<Link v-for="hnItem in siteConfig.headerNavigationItems" :key="hnItem.title" class="p-1 font-medium text-gray-900 sm:p-4 dark:text-gray-100 flex items-center" :class="[typeof hnItem.icon === 'string' ? 'flex items-center' : '']" :href="hnItem.href" :disable-router-link="hnItem.disableRouterLink">
<Icon v-if="typeof hnItem.icon === 'string'" :icon="hnItem.icon" :class="[typeof hnItem.title === 'string' ? 'mr-2' : '']" /><span>{{ hnItem.title }}</span>
</Link>
</div>
<ThemeSwitcher />
<LocaleSwitcher />
<MobileMenu />
</div>
</header>
</template>