This repository has been archived by the owner on Jun 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
60 lines (50 loc) · 1.49 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
56
57
58
59
60
<template>
<div :class="$style.container">
<loading v-if="!isLoaded" />
<template v-else>
<nuxt-loading-indicator />
<nuxt-layout>
<nuxt-page />
</nuxt-layout>
</template>
</div>
</template>
<script setup>
const nuxtApp = useNuxtApp()
const { isLoaded } = await useMenu()
nuxtApp.hook("page:finish", () => {
window.scrollTo(0, 0)
})
useHead({
meta: [
{ "name": "viewport", "content": "width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no, minimal-ui, viewport-fit=cover" },
{ "name": "apple-touch-fullscreen", "content": "yes" },
{ "name": "apple-mobile-web-app-capable", "content": "yes" },
{ "name": "apple-mobile-web-app-status-bar-style", "content": "white-translucent" },
{ "name": "mobile-web-app-capable", "content": "yes" },
{ "name": "browsermode", "content": "application" },
{ "name": "full-screen", "content": "yes" },
{ "name": "x5-fullscreen", "content": "true" },
{ "name": "theme-color", "content": "#fff" },
{ "name": "color-scheme", "content": "light" }
],
link: [
{ rel: 'manifest', href: '/_nuxt/manifest.json' }
]
})
</script>
<style module lang="scss">
.container {
display: flex;
min-height: 100vh;
max-width: 512px;
width: 100%;
margin: 0 auto;
padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
:global {
html, body {
font-family: 'Nunito', sans-serif;
}
}
</style>