登录页面新设计

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

View File

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