modified: src/App.vue

modified:   src/components/LoginForm.vue
This commit is contained in:
IrisVega 2024-07-11 15:58:29 +08:00
parent 299eaf8088
commit be421cf372
2 changed files with 31 additions and 8 deletions

View File

@ -18,7 +18,20 @@ export default {
<style> <style>
/* 添加一些简单的样式 */ /* 添加一些简单的样式 */
#app { #app {
text-align: center;
font-family: Arial, sans-serif; font-family: Arial, sans-serif;
padding: 20px; margin-top: 0px;
}
body{
margin:0;
padding:0;
border:0
}
#building{
background:url("@/assets/bg.png");
width:100%;
height:100%;
position:fixed;
background-size:100% 100%;
} }
</style> </style>

View File

@ -1,4 +1,5 @@
<template> <template>
<div id='building'>
<el-container class="auth-container"> <el-container class="auth-container">
<el-main class="auth-form"> <el-main class="auth-form">
<el-card class="box-card"> <el-card class="box-card">
@ -33,6 +34,7 @@
</el-card> </el-card>
</el-main> </el-main>
</el-container> </el-container>
</div>
</template> </template>
<script> <script>
@ -95,13 +97,13 @@ export default {
</script> </script>
<style scoped> <style scoped>
.auth-container { /* .auth-container {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
height: calc(100vh-100px); height: calc(100vh);
background-color: #ffe6f2; /* 淡粉色背景 */ background-color: #ffe6f2; 淡粉色背景 */
}
.auth-form { .auth-form {
display: flex; display: flex;
@ -111,12 +113,20 @@ export default {
} }
.box-card { .box-card {
width: 100%; border:1px solid #ff99cc;
max-width: 400px; width: 350px;
margin:180px auto;
padding: 35px 80px 15px 35px;
border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
box-shadow: 0 0 25px #ff99cc;
background-color:rgba(255,255,255,0.4);
/* max-width: 400px;
padding: 20px; padding: 20px;
box-sizing: border-box; box-sizing: border-box;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
border: 1px solid #ff99cc; /* 粉色边框 */ border: 1px solid #ff99cc; 粉色边框 */
} }
.el-button--primary { .el-button--primary {