policeSecurity/superManagement/src/views/login.vue

237 lines
4.9 KiB
Vue
Raw Normal View History

2024-08-29 17:06:00 +08:00
<template>
<div class="root">
<div class="header">
<img src="@/assets/vue.svg" alt="Logo" height="33" width="33"/>
<div class="logo-text">超级后台</div>
</div>
<div class="container">
<div class="left-banner"></div>
<div class="login-card">
<div class="title">
欢迎来到超级后台
</div>
<a-tabs class="account-tab" v-model:active-key="activeKey">
<a-tab-pane :key="0" tab="账号登录">
<TelephoneLogin/>
</a-tab-pane>
</a-tabs>
<div class="oauth">
<a-divider class="text" orientation="center">其他登录方式</a-divider>
<div class="idps">
<a-button class="app" type="link" shape="circle" disabled>
<QqOutlined/>
</a-button>
<a-button class="app" type="link" shape="circle" disabled>
<WechatOutlined/>
</a-button>
</div>
</div>
</div>
</div>
<div class="footer">
<div class="beian">
<div class="below text" v-html="'...'"></div>
</div>
</div>
</div>
</template>
<script lang="ts" setup>
import {QqOutlined, WechatOutlined} from '@ant-design/icons-vue'
import TelephoneLogin from '@/components/login/TelephoneLogin.vue';
import {ref} from "vue";
const activeKey = ref(0)
</script>
<style lang="scss" scoped>
.root {
background-image: url('@/assets/images/login/bg.jpg');
background-repeat: no-repeat;
background-size: cover;
min-height: 100vh;
a {
color: #3370ff;
cursor: pointer !important;
text-decoration: none;
}
a:hover {
color: #6694ff;
}
.header {
padding: 32px 40px 10px;
img {
vertical-align: middle;
}
.logo-text {
display: inline-block;
margin-right: 4px;
margin-left: 4px;
color: rgba(29, 33, 41);
font-size: 24px;
vertical-align: middle;
}
}
.container {
align-items: center;
box-sizing: border-box;
display: flex;
height: calc(100vh - 100px);
justify-content: center;
margin: 0 auto;
max-width: 1200px;
min-height: 650px;
.left-banner {
flex: 1 1;
height: 100%;
max-height: 700px;
position: relative;
img {
height: 100%;
left: 0;
max-height: 350px;
max-width: 500px;
object-fit: contain;
position: absolute;
top: 4.5%;
width: 100%;
}
}
.login-card {
display: flex;
background: #fff;
border-radius: 20px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
box-sizing: border-box;
min-height: 500px;
position: relative;
width: 450px;
min-width: 434px;
flex-direction: column;
margin-bottom: 53px;
padding: 48px 43px 32px;
.title {
color: #020814;
font-size: 24px;
font-weight: 500;
letter-spacing: 0.003em;
line-height: 32px;
padding: 0 5px;
}
.account-tab {
margin-top: 36px;
:deep(.ant-tabs-nav) {
margin-bottom: 0;
}
:deep(.ant-tabs-content) {
padding-top: 16px;
}
:deep(.ant-tabs-nav::before) {
display: none;
}
:deep(.ant-tabs-tab-btn) {
font-size: 16px;
font-weight: 500;
line-height: 22px;
display: inline-block;
padding: 1px 0;
position: relative;
}
:deep(.ant-tabs-tab-btn:before) {
display: none;
}
:deep(.ant-tabs-tab) {
margin: 0 30px 0 6px;
}
}
.oauth {
margin-top: 20px;
padding: 0 5px;
:deep(.ant-divider-inner-text) {
color: #80838a;
font-size: 12px;
font-weight: 400;
line-height: 20px;
}
:deep(.ant-divider) {
margin-bottom: 25px;
}
.idps {
align-items: center;
display: flex;
justify-content: center;
width: 100%;
.app {
margin-right: 12px;
align-items: center;
border: 1px solid #eaedf1;
border-radius: 32px;
box-sizing: border-box;
display: flex;
height: 32px;
justify-content: center;
width: 32px;
.icon {
width: 21px;
height: 20px;
}
}
.app:hover {
background: #f3f7ff;
border: 1px solid #97bcff;
}
}
}
}
}
.footer {
align-items: center;
box-sizing: border-box;
display: flex;
justify-content: center;
.beian {
.text {
color: #41464f;
font-size: 12px;
font-weight: 400;
letter-spacing: 0.2px;
line-height: 20px;
text-align: center;
}
.below {
align-items: center;
display: flex;
}
}
}
}
</style>