11<script setup lang="ts">
22import { useI18n } from " vue-i18n" ;
33import FancyBackground from " @repo/ui/src/components/misc/FancyBackground.vue" ;
4- import { onMounted } from " vue" ;
54import { getPlatform } from " ../../index.ts" ;
6- import router from " ../../router.ts" ;
7- import { usePageData } from " ../../utils/stores.ts" ;
85
96const t = useI18n ().t ;
10-
11- onMounted (() => {
12- setTimeout (() => {
13- router .push (" /welcome/setup" );
14- }, 3400 );
15- });
167 </script >
178
189<template >
19- <FancyBackground >
20- <div class =" logo" >
21- <img src =" ../../assets/MCSL.png" alt =" " />
22- <div >
23- <h1 >
24- {{ t("shared.app.name.abbr") }} {{ t("shared.app.name.future") }}
25- {{ t(`${getPlatform()}.app.name.suffix`) }}
26- </h1 >
27- <h2 >{{ t("shared.app.desc") }}</h2 >
10+ <div class =" welcome-overlay" >
11+ <FancyBackground >
12+ <div class =" welcome-overlay__logo" >
13+ <img src =" ../../assets/MCSL.png" alt =" " width =" 98" />
14+ <div >
15+ <h1 >
16+ {{ t("shared.app.name.abbr") }} {{ t("shared.app.name.future") }}
17+ {{ t(`${getPlatform()}.app.name.suffix`) }}
18+ </h1 >
19+ <h2 >{{ t("shared.app.desc") }}</h2 >
20+ </div >
2821 </div >
29- </div >
30- </FancyBackground >
22+ </FancyBackground >
23+ </div >
3124</template >
3225
3326<style scoped lang="scss">
34- .logo {
27+ .welcome-overlay {
28+ z-index : 1000 ;
29+ width : 100vw ;
30+ height : 100vh ;
31+ position : fixed ;
32+ top : 0 ;
33+ left : 0 ;
34+ background : var (--mcsl-bg-color-main );
35+ animation : 0.5s ease-in-out 3s both welcome- overlay__out- anim;
36+ }
37+
38+ .welcome-overlay__logo {
3539 display : flex ;
3640 align-items : center ;
3741 justify-content : center ;
3842 gap : var (--mcsl-spacing-xs );
3943
4044 & > img {
4145 width : 7rem ;
42- animation :
43- 0.5s ease-in-out 0.5s both zoomIn,
44- 0.5s ease-in-out 3s fadeOut;
46+ animation : 0.5s ease-in-out 0.5s both zoomIn;
4547 }
4648
4749 & > div {
@@ -72,9 +74,7 @@ onMounted(() => {
7274 overflow : hidden ;
7375 height : 100% ;
7476 max-width : 0 ;
75- animation :
76- 1s ease-in-out 1s both collapseInHorizontal,
77- 0.5s ease-in-out 3s fadeOut;
77+ animation : 1s ease-in-out 1s both collapseInHorizontal;
7878 }
7979 }
8080
@@ -84,17 +84,23 @@ onMounted(() => {
8484 align-items : center ;
8585
8686 & > h1 {
87- animation :
88- 0.5s ease-in-out 1s both fadeInUp,
89- 0.5s ease-in-out 3s fadeOut;
87+ animation : 0.5s ease-in-out 1s both fadeInUp;
9088 }
9189
9290 & > h2 {
93- animation :
94- 0.5s ease-in-out 1.25s both fadeInUp,
95- 0.5s ease-in-out 3s fadeOut;
91+ animation : 0.5s ease-in-out 1.25s both fadeInUp;
9692 }
9793 }
9894 }
9995}
96+
97+ @keyframes welcome-overlay__out-anim {
98+ from {
99+ opacity : 1 ;
100+ }
101+ to {
102+ opacity : 0 ;
103+ pointer-events : none ;
104+ }
105+ }
100106 </style >
0 commit comments