|
|
|
@ -1,34 +1,21 @@
|
|
|
|
|
<template> |
|
|
|
|
<div |
|
|
|
|
:class="prefixCls" |
|
|
|
|
class="relative h-[100%] lt-md:px-10px lt-sm:px-10px lt-xl:px-10px lt-xl:px-10px" |
|
|
|
|
class="relative h-[100%] lt-md:px-10px lt-sm:px-10px lt-xl:px-10px lt-xl:px-10px loginBgCls" |
|
|
|
|
> |
|
|
|
|
<div class="relative mx-auto h-full flex"> |
|
|
|
|
<div |
|
|
|
|
:class="`${prefixCls}__left flex-1 bg-gray-500 bg-opacity-20 relative p-30px lt-xl:hidden overflow-x-hidden overflow-y-auto`" |
|
|
|
|
:class="`${prefixCls}__left flex-1 relative p-30px lt-xl:hidden overflow-x-hidden overflow-y-auto`" |
|
|
|
|
> |
|
|
|
|
<!-- 左上角的 logo + 系统标题 --> |
|
|
|
|
<div class="relative flex items-center text-white"> |
|
|
|
|
<img alt="" class="mr-10px h-48px w-48px" src="@/assets/imgs/logo.png" /> |
|
|
|
|
<span class="text-20px font-bold">{{ underlineToHump(appStore.getTitle) }}</span> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<!-- 左边的背景图 + 欢迎语 --> |
|
|
|
|
<div class="h-[calc(100%-60px)] flex items-center justify-center"> |
|
|
|
|
<TransitionGroup |
|
|
|
|
appear |
|
|
|
|
enter-active-class="animate__animated animate__bounceInLeft" |
|
|
|
|
tag="div" |
|
|
|
|
> |
|
|
|
|
<img key="1" alt="" class="w-350px" src="@/assets/svgs/login-box-bg.svg" /> |
|
|
|
|
<div key="2" class="text-3xl text-white">{{ t('login.welcome') }}</div> |
|
|
|
|
<div key="3" class="mt-5 text-14px font-normal text-white"> |
|
|
|
|
{{ t('login.message') }} |
|
|
|
|
</div> |
|
|
|
|
</TransitionGroup> |
|
|
|
|
<div class="h-[calc(100%-50px)] flex items-center justify-center"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div |
|
|
|
|
class="relative flex-1 p-30px dark:bg-[var(--login-bg-color)] lt-sm:p-10px overflow-x-hidden overflow-y-auto" |
|
|
|
|
class="relative flex-1 bg-#fff bg-opacity-90 p-30px dark:bg-[var(--login-bg-color)] lt-sm:p-10px overflow-x-hidden overflow-y-auto" |
|
|
|
|
> |
|
|
|
|
<!-- 右上角的主题、语言选择 --> |
|
|
|
|
<div |
|
|
|
@ -37,29 +24,20 @@
|
|
|
|
|
> |
|
|
|
|
<div class="flex items-center at-2xl:hidden at-xl:hidden"> |
|
|
|
|
<img alt="" class="mr-10px h-48px w-48px" src="@/assets/imgs/logo.png" /> |
|
|
|
|
<span class="text-20px font-bold" >{{ underlineToHump(appStore.getTitle) }}</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="flex items-center justify-end space-x-10px h-48px"> |
|
|
|
|
<ThemeSwitch /> |
|
|
|
|
<LocaleDropdown /> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<!-- 右边的登录界面 --> |
|
|
|
|
<Transition appear enter-active-class="animate__animated animate__bounceInRight"> |
|
|
|
|
<Transition appear enter-active-class="animate__animated animate__bounceInRight" class="rightLogin"> |
|
|
|
|
<div |
|
|
|
|
class="m-auto h-[calc(100%-60px)] w-[100%] flex items-center at-2xl:max-w-500px at-lg:max-w-500px at-md:max-w-500px at-xl:max-w-500px" |
|
|
|
|
> |
|
|
|
|
<!-- 账号登录 --> |
|
|
|
|
<LoginForm class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 二维码登录 --> |
|
|
|
|
<QrCodeForm class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" /> |
|
|
|
|
<!-- 注册 --> |
|
|
|
|
<RegisterForm class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" /> |
|
|
|
|
<!-- 三方登录 --> |
|
|
|
|
<SSOLoginVue class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" /> |
|
|
|
|
<!-- 忘记密码 --> |
|
|
|
|
<ForgetPasswordForm class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" /> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
</Transition> |
|
|
|
|
</div> |
|
|
|
@ -85,6 +63,17 @@ const prefixCls = getPrefixCls('login')
|
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
|
|
|
|
|
.loginBgCls{ |
|
|
|
|
background-image: url('@/assets/imgs/screen/login-left.jpg'); |
|
|
|
|
background-size: cover; |
|
|
|
|
|
|
|
|
|
background-repeat: no-repeat; |
|
|
|
|
} |
|
|
|
|
.rightLogin{ |
|
|
|
|
transition: all 1s; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$prefix-cls: #{$namespace}-login; |
|
|
|
|
|
|
|
|
|
.#{$prefix-cls} { |
|
|
|
@ -98,7 +87,7 @@ $prefix-cls: #{$namespace}-login;
|
|
|
|
|
z-index: -1; |
|
|
|
|
width: 100%; |
|
|
|
|
height: 100%; |
|
|
|
|
background-image: url('@/assets/svgs/login-bg.svg'); |
|
|
|
|
background-image: url('@/assets/imgs/screen/login-left.png'); |
|
|
|
|
background-position: center; |
|
|
|
|
background-repeat: no-repeat; |
|
|
|
|
content: ''; |
|
|
|
|