dev-audioprocessing/layouts/default.vue

100 lines
1.9 KiB
Vue
Raw Normal View History

2022-12-11 23:55:43 +00:00
<template>
<div>
2022-12-30 19:10:39 +00:00
<div class="">
2022-12-30 18:54:59 +00:00
<client-only>
<Vue3Lottie
v-if="show"
style="position: fixed;background-color: white;z-index: 99999"
:animation-data="anim"
:loop="true"
width="100%"
height="100%"
/>
</client-only>
2022-12-11 23:55:43 +00:00
<slot/>
2022-12-30 18:54:59 +00:00
2022-12-12 03:10:34 +00:00
</div>
2022-12-11 23:55:43 +00:00
</div>
2022-12-16 23:17:37 +00:00
</template>
2022-12-30 18:54:59 +00:00
<script>
import * as animationData from "~/assets/animation.json";
import 'vue3-lottie/dist/style.css'
export default {
data() {
return {
show:true,
anim: animationData.default, // for saving the reference to the animation
lottieOptions: { animationData: animationData.default }
};
},
mounted() {
this.show=false;
}
}
</script>
2022-12-16 23:17:37 +00:00
<script setup>
2022-12-30 18:54:59 +00:00
2022-12-16 23:17:37 +00:00
useHead({
title:'MindBoost',
2023-01-04 22:50:27 +00:00
meta:[
{
name:"viewport",
content:"width=device-width, initial-scale=1.0, viewport-fit=cover"
}
],
2022-12-16 23:17:37 +00:00
link:[
{
href:'https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css',
rel:'stylesheet',
},
2023-01-03 22:38:43 +00:00
{
href: 'favicon.svg',
rel:"icon",
type:"image/x-icon"
}
2022-12-16 23:17:37 +00:00
// { rel: 'stylesheet', href: '../assets/css/style.css' },
],
script:[
{
src:'https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js',
},
{
src:'https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.min.js',
}
]
})
</script>
<style>
2022-12-24 16:36:24 +00:00
@import "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css";
2022-12-20 22:17:12 +00:00
.slide-left-enter-active,
.slide-left-leave-active,
.slide-right-enter-active,
.slide-right-leave-active {
transition: all 0.2s;
}
.slide-left-enter-from {
opacity: 0;
transform: translate(50px, 0);
}
.slide-left-leave-to {
opacity: 0;
transform: translate(-50px, 0);
}
.slide-right-enter-from {
opacity: 0;
transform: translate(-50px, 0);
}
.slide-right-leave-to {
opacity: 0;
transform: translate(50px, 0);
}
2022-12-16 23:17:37 +00:00
</style>