From 252adbfc2bfcbdd537abb4bcf24428688c5d7f86 Mon Sep 17 00:00:00 2001
From: zhangzhen <525765282@qq.com>
Date: Tue, 20 May 2025 15:15:48 +0800
Subject: [PATCH] 优化首页样式;
---
src/components/login/Login.css | 7 ++++---
src/components/login/Login.js | 19 ++++++-------------
2 files changed, 10 insertions(+), 16 deletions(-)
diff --git a/src/components/login/Login.css b/src/components/login/Login.css
index 9757dfa..91088ac 100644
--- a/src/components/login/Login.css
+++ b/src/components/login/Login.css
@@ -28,6 +28,7 @@
line-height: 36px;
font-weight: 700;
color: #eda716;
+ margin: 0.67em 0 !important;
}
.header .logo h1 span {
@@ -110,7 +111,7 @@
.loginForm_mode{
position: absolute;
width: 330px;
- height: 380px;
+ height: 320px;
padding: 0 27px;
/*top: 2%;*/
right: 5%;
@@ -121,7 +122,7 @@
box-shadow: 2px 2px 3px rgba(214, 214, 214, .9);
}
.loginForm_face{
- height: 487px;
+ height: 437px;
}
.loginForm_face .normalLogin{
@@ -138,7 +139,7 @@
}
.loginMiddle {
- height: 195px;
+ height: 125px;
}
.loginTip {
diff --git a/src/components/login/Login.js b/src/components/login/Login.js
index 1a6eb28..a4c2d1c 100644
--- a/src/components/login/Login.js
+++ b/src/components/login/Login.js
@@ -3,20 +3,14 @@ import { LockOutlined, UserOutlined } from '@ant-design/icons';
import { Form } from '@ant-design/compatible';
import '@ant-design/compatible/assets/index.css';
import { Input, Button, Select, message, Radio } from 'antd-v4';
-import { FloatButton } from 'antd';
-import commonConfig from '../../utils/config';
-import * as commonServices from '../../services/services';
-import * as commonFunc from '../../components/Common/commonFunc';
+import commonConfig from '@/utils/config';
+import * as commonServices from '@/services/services';
+import * as commonFunc from '@/components/Common/commonFunc';
import logo from '@/assets/foot_logo.png';
-import * as commonUtils from '../../utils/utils';
+import * as commonUtils from '@/utils/utils';
import styles from './Login.css';
import FaceDetect from '../FaceDetect';
-
-const AppComponent = () => {
- return