登录页面央视重构

This commit is contained in:
禺狨 2023-03-03 14:37:17 +08:00
parent afaafeba31
commit f922218389
3 changed files with 49 additions and 20 deletions

View File

@ -28,18 +28,36 @@
.left-box {
width: 440px;
height: 100%;
.icon{
box-sizing: border-box;
padding: 80px 10px 80px 30px;
.icon {
width: 400px;
height: 400px;
}
}
.right-box {
width: 440px;
height: 100%;
.captcha {
box-sizing: border-box;
padding: 50px 30px;
display: flex;
flex-direction: column;
.title {
width: 120px;
height: 48px;
margin-left: 10px;
cursor: pointer;
height: auto;
font-size: 30px;
font-weight: 600;
color: #333333;
line-height: 30px;
border-bottom: 4px solid #ff4d4f;
box-sizing: border-box;
padding-bottom: 10px;
}
.captcha {
width: 125px;
height: 54px;
margin-left: 15px;
border: none;
cursor: pointer;
}
}

View File

@ -1,6 +1,6 @@
import React, { useState, useEffect } from "react";
import styles from "./index.module.less";
import { Typography, Spin, Input, Button, message } from "antd";
import { Spin, Input, Button, message } from "antd";
import { login, system } from "../../api/index";
import { setToken } from "../../utils/index";
import { useDispatch } from "react-redux";
@ -91,33 +91,31 @@ export const Login: React.FC = () => {
<img className={styles["icon"]} src={icon} alt="" />
</div>
<div className={styles["right-box"]}>
<div className="d-flex mr-24">
<Typography.Title></Typography.Title>
</div>
<div className="d-flex mb-24">
<div className={styles["title"]}></div>
<div className="d-flex mt-50">
<Input
value={email}
onChange={(e) => {
setEmail(e.target.value);
}}
style={{ width: 300 }}
style={{ width: 400, height: 54 }}
placeholder="请输入账号"
/>
</div>
<div className="d-flex mb-24">
<div className="d-flex mt-50">
<Input.Password
value={password}
onChange={(e) => {
setPassword(e.target.value);
}}
style={{ width: 300 }}
style={{ width: 400, height: 54 }}
placeholder="请输入密码"
/>
</div>
<div className="d-flex mb-24">
<div className="d-flex mt-50">
<Input
value={captcha_val}
style={{ width: 160 }}
style={{ width: 260, height: 54 }}
placeholder="请输入验证码"
onChange={(e) => {
setCaptcha_val(e.target.value);
@ -130,9 +128,14 @@ export const Login: React.FC = () => {
alt=""
/>
</div>
<div className="d-flex">
<Button type="primary" danger onClick={loginSubmit}>
<div className="d-flex mt-50">
<Button
style={{ width: 400, height: 54 }}
type="primary"
danger
onClick={loginSubmit}
>
</Button>
</div>
</div>

View File

@ -46,6 +46,14 @@
margin-right: 24px;
}
.mt-50 {
margin-top: 50px;
}
.mb-50 {
margin-bottom: 50px;
}
.float-left {
width: 100%;
height: auto;
@ -82,7 +90,7 @@
.c-flex {
display: flex;
flex-direction: column;
align-items: center;
align-items: center;
}
.primary {