forked from nuxt/movies
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
58 lines (49 loc) · 1.34 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
<script setup lang="ts">
import '@unocss/reset/tailwind.css'
import { AppSetup } from './utils/app'
import { ITheme } from './utils/theme'
AppSetup()
const theme = useState<ITheme>('theme.current')
const locale = useState<string>('locale.setting')
useHead({
htmlAttrs: {
lang: 'en',
},
title: 'Movie Up Next',
titleTemplate: title => title !== 'Movie Up Next' ? `${title} · Movie Up Next` : title,
meta: [
{ name: 'description', content: "Discover the latest news, trailers, and reviews for upcoming movies on MovieUpNext.com. Your ultimate guide to the movies you're excited to see." },
{ property: 'og:image', content: 'https://movies.nuxt.space/social-card.png' },
{ name: 'twitter:card', content: 'summary_large_image' },
{ name: 'twitter:site', content: '@nuxt_js' },
{ name: 'twitter:creator', content: '@nuxt_js' },
],
link: [
{
rel: 'icon', type: 'image/webp', href: '/movies.png',
},
],
})
</script>
<template>
<!DOCTYPE html>
<Html :class="`${theme === 'dark' ? 'dark' : 'dark'}`"
:lang="locale">
<NuxtLayout>
<NuxtLoadingIndicator />
<NuxtPage />
</NuxtLayout>
</Html>
</template>
<style>
html,
body,
#__nuxt {
height: 100vh;
margin: 0;
padding: 0;
background: #111;
color: white;
color-scheme: dark;
}
</style>