2024-06-22 10:54:02 +08:00
|
|
|
<script lang="ts" setup>
|
|
|
|
const colorMode = useColorMode()
|
|
|
|
const {$gsap} = useNuxtApp()
|
|
|
|
onMounted(() => {
|
|
|
|
const tl = $gsap.timeline({defaults: {duration: 0.5}})
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2024-07-02 14:28:15 +08:00
|
|
|
<div class="login-layout">
|
|
|
|
<div class="art"></div>
|
|
|
|
<div class="left-content">
|
|
|
|
<NuxtPage/>
|
2024-06-22 10:54:02 +08:00
|
|
|
</div>
|
2024-07-02 14:28:15 +08:00
|
|
|
</div>
|
2024-06-22 10:54:02 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
@import "base";
|
|
|
|
|
2024-07-02 14:28:15 +08:00
|
|
|
.login-layout{
|
2024-06-22 10:54:02 +08:00
|
|
|
height: 100%;
|
2024-07-02 14:28:15 +08:00
|
|
|
min-height: 100vh;
|
2024-07-22 21:05:18 +08:00
|
|
|
background: $light-bg-color;
|
2024-07-02 14:28:15 +08:00
|
|
|
width: 100%;
|
|
|
|
padding: 32px;
|
|
|
|
gap: 32px;
|
2024-07-22 21:05:18 +08:00
|
|
|
background: unset;
|
2024-06-22 10:54:02 +08:00
|
|
|
display: grid;
|
2024-07-02 14:28:15 +08:00
|
|
|
grid-template-columns: 1fr minmax(800px,1fr);
|
|
|
|
grid-template-rows: 1fr;
|
2024-07-22 21:05:18 +08:00
|
|
|
.dark-mode &{
|
|
|
|
background: $dark-bg-color;
|
|
|
|
}
|
2024-07-02 14:28:15 +08:00
|
|
|
*{
|
2024-06-22 10:54:02 +08:00
|
|
|
@include SC_Font;
|
|
|
|
}
|
2024-07-02 14:28:15 +08:00
|
|
|
>div{
|
|
|
|
border-radius: $radius;
|
2024-06-22 10:54:02 +08:00
|
|
|
}
|
|
|
|
}
|
2024-07-02 14:28:15 +08:00
|
|
|
.art{
|
|
|
|
background: url("/bg1.jpg") no-repeat center center / cover;
|
|
|
|
//border: $border;
|
|
|
|
box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
|
2024-07-22 21:05:18 +08:00
|
|
|
.dark-mode &{
|
|
|
|
background-image: url("/bg2.jpg");
|
|
|
|
}
|
2024-06-22 10:54:02 +08:00
|
|
|
}
|
2024-07-02 14:28:15 +08:00
|
|
|
.left-content{
|
|
|
|
position: relative;
|
2024-06-22 10:54:02 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
2024-07-02 14:28:15 +08:00
|
|
|
justify-content: center;
|
|
|
|
.affirm{
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 33%;
|
|
|
|
color: #959CB6;
|
|
|
|
text-align: center;
|
|
|
|
font-feature-settings: 'clig' off, 'liga' off;
|
|
|
|
font-size: 16px;
|
|
|
|
font-style: normal;
|
|
|
|
font-weight: 400;
|
|
|
|
line-height: 100%; /* 16px */
|
|
|
|
letter-spacing: 0.16px;
|
2024-06-22 10:54:02 +08:00
|
|
|
}
|
|
|
|
}
|
2024-07-02 14:28:15 +08:00
|
|
|
@media screen and (max-width: 1200px){
|
|
|
|
.login-layout{
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
grid-template-rows: 200px 1fr;
|
2024-06-22 10:54:02 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|