-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathapp.vue
60 lines (54 loc) · 1.27 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
<script setup lang="ts">
useHead({
link: [
{
rel: "stylesheet",
href:
"https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap"
},
{ rel: "stylesheet", href: "/chessground.css" },
{ rel: "stylesheet", href: "/standard.css" },
{ rel: "stylesheet", href: "/extensions.css" },
{ rel: "stylesheet", href: "/style.css" },
{ rel: "stylesheet", href: "/site.css" },
{ rel: "stylesheet", href: "/lobby.css" },
{ rel: "stylesheet", href: "/news.css" }
]
});
useSeoMeta({
ogImage: "/lishuuro-tile-wide.png",
twitterImage: "/lishuuro-tile.png",
twitterCard: "summary"
});
const route = useRoute();
function cssVariable(): string {
let c;
if (route == undefined) return "";
else if (route.fullPath.includes("/0")) {
c = "1300px";
return `--main-max-width: ${c};`;
} else if (route.fullPath.startsWith("/shuuro")) {
return "";
} else {
c = "1300px";
}
return `--main-max-width: ${c};`;
}
</script>
<template>
<MainHeader />
<div id="main-wrap" :style="cssVariable()">
<NuxtLayout><NuxtPage /></NuxtLayout>
</div>
<ServerConnection />
</template>
<style>
.list-enter-active,
.list-leave-active {
transition: opacity 0.3s ease;
}
.list-enter-from,
.list-leave-to {
opacity: 0;
}
</style>