-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
39 lines (37 loc) · 974 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
<script setup lang="ts">
// HACK: SSR の際に vuetify が崩れるときがあるので、mount されるまで待つ
// もし他のとこでやばいことになったら外す
const isLoading = ref(true)
onMounted(() => {
isLoading.value = false
})
const { data: serverHeaders } = await useAsyncData(
'get-request-header',
async () => {
const headers = useRequestHeaders()
await null
return headers
}
)
useHeadersWithDefault(serverHeaders.value)
</script>
<template>
<NuxtLayout v-show="!isLoading">
<Head>
<Html lang="ja" />
</Head>
<NuxtPage />
</NuxtLayout>
</template>
<style lang="scss">
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,400;0,700;1,400;1,700&family=Roboto:ital,wght@0,400;0,700;1,400;1,700&display=swap');
body {
font-family: 'Roboto', sans-serif;
}
.mono,
.mono-inherit input,
.mono-inherit textarea,
.mono-inherit * {
font-family: 'Roboto Mono', monospace;
}
</style>