登录页面新设计

pull/59/head
awenes 2023-09-26 15:54:15 +08:00
parent b38b3a8c89
commit 40e69d69ea
2 changed files with 9 additions and 4 deletions

View File

@ -151,8 +151,8 @@ const Login: React.FC = () => {
<Helmet>
<link rel="icon" href={'/favicon.ico'} />
</Helmet>
{showBanner && <Banner />}
<div className={classnames(`${prefixCls}`)}>
{showBanner && <Banner />}
<div
style={{
backgroundColor: 'white',
@ -187,7 +187,7 @@ const Login: React.FC = () => {
},
}}
onFinish={async (values) => {
await run(values);
run(values);
return data;
}}
>

View File

@ -23,7 +23,6 @@ const useStyle = createStyles(({ token, prefixCls }, prefix) => {
return {
main: {
[`${prefixClassName}`]: {
padding: '24px',
[`${prefixClassName}-form-prefix-icon`]: {
color: token.colorPrimary,
fontSize: token.fontSize,
@ -46,12 +45,18 @@ const useStyle = createStyles(({ token, prefixCls }, prefix) => {
},
[`${antCls}-pro-form-login-page-desc`]: {
marginTop: '25px',
marginBottom: '25px',
marginBottom: '40px',
color: 'rgba(0, 0, 0, 0.45)',
fontSize: '14px',
},
[`${antCls}-pro-form-login-page-container`]: {
height: 'auto',
[`${antCls}-pro-form-login-page-top`]: {
marginTop: '25px',
},
},
[`${antCls}-pro-form-login-page-main`]: {
marginBottom: '80px',
},
},
},