LoongPanel-Asp/web/layouts/Login.vue

76 lines
1.4 KiB
Vue
Executable File

<script lang="ts" setup>
const colorMode = useColorMode()
const {$gsap} = useNuxtApp()
onMounted(() => {
const tl = $gsap.timeline({defaults: {duration: 0.5}})
})
</script>
<template>
<div class="login-layout">
<div class="art"></div>
<div class="left-content">
<NuxtPage/>
</div>
</div>
</template>
<style lang="scss" scoped>
@import "base";
.login-layout{
height: 100%;
min-height: 100vh;
background: $light-bg-color;
width: 100%;
padding: 32px;
gap: 32px;
background: unset;
display: grid;
grid-template-columns: 1fr minmax(800px,1fr);
grid-template-rows: 1fr;
.dark-mode &{
background: $dark-bg-color;
}
*{
@include SC_Font;
}
>div{
border-radius: $radius;
}
}
.art{
background: url("/bg1.jpg") no-repeat center center / cover;
//border: $border;
box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
.dark-mode &{
background-image: url("/bg2.jpg");
}
}
.left-content{
position: relative;
display: flex;
flex-direction: column;
align-items: center;
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;
}
}
@media screen and (max-width: 1200px){
.login-layout{
grid-template-columns: 1fr;
grid-template-rows: 200px 1fr;
}
}
</style>