小小美化
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
<template>
|
||||
<div class="login-container">
|
||||
<!-- 背景视频 -->
|
||||
<video src="../../public/登陆界面背景.mp4" autoplay muted loop class="bg-video"></video>
|
||||
<div class="video-overlay"></div>
|
||||
|
||||
<!-- 登录卡片 -->
|
||||
<el-card class="login-card" shadow="always">
|
||||
<template #header>
|
||||
<div class="card-header">
|
||||
<h2>欢迎登录</h2>
|
||||
<img src="../../public/logo.png" alt="logo" class="login-logo">
|
||||
<h2>蜜雪冰城管理系统</h2>
|
||||
<p class="subtitle">请输入您的账号信息</p>
|
||||
</div>
|
||||
</template>
|
||||
@@ -100,17 +106,58 @@ const handleLogin = async () => {
|
||||
|
||||
<style scoped>
|
||||
.login-container {
|
||||
position: relative;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
padding: 20px 60px 20px 20px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* 背景视频 */
|
||||
.bg-video {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.video-overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* 登录卡片 */
|
||||
.login-card {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
width: 420px;
|
||||
border-radius: 16px;
|
||||
border: none;
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
.login-card :deep(.el-card__header) {
|
||||
border-bottom: 2px solid #E60012;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.login-card {
|
||||
width: 420px;
|
||||
border-radius: 12px;
|
||||
border: none;
|
||||
.login-logo {
|
||||
display: block;
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
margin: 0 auto 12px;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.card-header {
|
||||
@@ -119,7 +166,9 @@ const handleLogin = async () => {
|
||||
|
||||
.card-header h2 {
|
||||
margin: 0 0 8px;
|
||||
color: #303133;
|
||||
color: #E60012;
|
||||
font-size: 22px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
@@ -128,10 +177,33 @@ const handleLogin = async () => {
|
||||
color: #909399;
|
||||
}
|
||||
|
||||
/* 输入框聚焦时红色边框 */
|
||||
.login-card :deep(.el-input__wrapper:focus-within) {
|
||||
box-shadow: 0 0 0 1px #E60012 inset;
|
||||
}
|
||||
|
||||
/* 登录按钮 */
|
||||
.login-btn {
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
width: 75%;
|
||||
background: #E60012;
|
||||
border-color: #E60012;
|
||||
}
|
||||
|
||||
.login-btn:hover {
|
||||
background: #d50010;
|
||||
border-color: #d50010;
|
||||
}
|
||||
|
||||
/* 记住我复选框 */
|
||||
.login-card :deep(.el-checkbox__input.is-checked .el-checkbox__inner) {
|
||||
background-color: #E60012;
|
||||
border-color: #E60012;
|
||||
}
|
||||
|
||||
.login-card :deep(.el-checkbox__input.is-checked + .el-checkbox__label) {
|
||||
color: #E60012;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user