-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
47 lines (44 loc) · 890 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
40
41
42
43
44
45
46
47
<script setup lang="ts">
// import SilkaRegular from '/fonts/Silka/Silka-Regular.woff2'
useSeoMatrix()
// if (process.server) {
// useHead({
// link: [
// {
// rel: 'preload',
// href: SilkaRegular,
// crossorigin: '',
// as: 'font',
// type: 'font/woff2',
// }
// ]
// })
// }
</script>
<template>
<nu-layout>
<NuxtPage class="page" />
</nu-layout>
</template>
<style>
html, body, #__nuxt {
height: 100%;
width: 100%;
}
.page::before {
@apply bg-cinnabar w-screen h-full fixed top-0 left-0 z-40;
transform: scaleX(0);
transform-origin: right;
transition: transform 0.5s ease-in-out;
content: '';
}
.page-enter-active,
.page-leave-active {
@apply transition-all ease-in-out duration-300
}
.page-enter-from::before,
.page-leave-to::before {
transform: scaleX(1);
transform-origin: left;
}
</style>