-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
48 lines (43 loc) · 1.21 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
<script setup>
const route = useRoute()
const colorMode = useColorMode()
const isDark = computed({
get() {
return colorMode.value === 'dark'
},
set() {
colorMode.preference = colorMode.value === 'dark' ? 'light' : 'dark'
},
})
const links = [[
{ label: 'TodayRandTokyo', to: '/' },
{ label: "Home", to: '/', icon: 'i-heroicons-home-16-solid' },
{ label: "About", to: '/about' },
{ label: "Destination", to: '/destination' },
{ label: "Package", to: '/package' },
{ label: "Contact", to: '/contact' },
],
[
{ label: "SignUp", to: '/signup' },
{ label: "Login", to: '/login' },
{
icon: isDark ? 'i-heroicons-moon-20-solid' : 'i-heroicons-sun-20-solid',
click: () => colorMode.preference = isDark.value == true ? 'light' : 'dark'
}
]
]
const handler = () => {
console.log('hi');
}
</script>
<template>
<div>
<UHorizontalNavigation :links="links" class="border-b border-gray-200 dark:border-gray-800" />
<div class="h-screen items-center justify-center">
<div class="">
<UButton @click="handler">Find out Today random place in Tokyo!</UButton>
<UButton @click="handler">Find out Today random place in Tokyo!</UButton>
</div>
</div>
</div>
</template>