-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.vue
101 lines (97 loc) · 1.8 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<script setup>
import { start, done, configure } from 'nprogress'
// import vGrid from './components/Grid.vue'
import vNav from './components/Nav.vue'
configure({ trickle: true, showSpinner: false })
</script>
<template>
<vNav />
<main>
<RouterView v-slot="{ Component, route }">
<Transition name="fade" mode="out-in">
<!-- <KeepAlive> -->
<Suspense @pending="start" @resolve="done">
<Component :is="Component" :key="route.path" />
</Suspense>
<!-- </KeepAlive> -->
</Transition>
</RouterView>
</main>
</template>
<style lang="postcss">
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url(/inter.woff2) format('woff2');
}
:root {
--brand-color: 0 0 0;
--background-color: 255 255 255;
--color: 0 0 0;
--gap: 24px;
--max-width: 1280px;
}
@media (prefers-color-scheme: dark) {
:root {
--color: 255 255 255;
--background-color: 0 0 0;
}
}
*:where(:not(html, iframe, img, svg, video):not(svg *, symbol *)) {
all: unset;
display: revert;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html,
body {
height: 100%;
}
body {
background-color: rgb(var(--background-color));
color: rgb(var(--color));
}
a,
button {
cursor: revert;
}
#app {
font-size: 14px;
font-family: Inter, sans-serif;
line-height: 1.5;
display: grid;
grid-template-rows: 64px auto;
min-height: 100%;
}
.fade-enter-active,
.fade-leave-active {
transition: opacity 128ms ease;
}
.fade-enter-from,
.fade-leave-to {
opacity: 0;
}
#nprogress {
pointer-events: none;
}
[role=bar] {
background: rgb(var(--color));
position: fixed;
z-index: 10;
top: 0;
left: 0;
width: 100%;
height: 4px;
}
pre {
all: revert;
overflow: auto;
font-size: 10px;
line-height: 1.1;
}
</style>