-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
46 lines (42 loc) · 938 Bytes
/
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
<script setup lang="ts">
import { useTheme } from 'vuetify'
useHead({
title: 'pCloud Browser',
link: [
{
rel: 'icon',
type: 'image/png',
href: '/favicon-32x32.ico',
},
],
})
const theme = useTheme()
function toggleTheme() {
theme.global.name.value = theme.global.current.value.dark ? 'light' : 'dark'
}
</script>
<template>
<div>
<VApp>
<VLayout>
<AppMenu />
<VAppBar name="App Bar">
<VAppBarTitle>
<div class="app-bar-title" href="/">
pCloud Browser
</div>
</VAppBarTitle>
<VBtn icon @click="toggleTheme">
<VIcon>mdi-theme-light-dark</VIcon>
</VBtn>
</VAppBar>
<VBottomNavigation class="align-center">
<div>FOOTER</div>
</VBottomNavigation>
<VMain>
<NuxtPage />
</VMain>
</VLayout>
</VApp>
</div>
</template>