style: login modal

This commit is contained in:
jialin
2025-05-08 15:22:53 +08:00
parent e05b323489
commit f0f4bd8bf2
10 changed files with 65 additions and 31 deletions
+23 -7
View File
@@ -3,6 +3,7 @@ import { initialPasswordAtom, userAtom } from '@/atoms/user';
import LangSelect from '@/components/lang-select';
import SealInput from '@/components/seal-form/seal-input';
import ThemeToggle from '@/components/theme-toggle';
import externalLinks from '@/constants/external-links';
import {
CRYPT_TEXT,
REMEMBER_ME_KEY,
@@ -158,7 +159,7 @@ const LoginForm = () => {
<div>
<Form
form={form}
style={{ width: '400px', margin: '0 auto' }}
style={{ width: '360px', margin: '0 auto' }}
onFinish={handleLogin}
>
{renderWelCome}
@@ -198,12 +199,27 @@ const LoginForm = () => {
/>
</Form.Item>
<Form.Item noStyle name="autoLogin" valuePropName="checked">
<Checkbox style={{ marginLeft: 5, marginBottom: 20 }}>
<span style={{ color: 'var(--ant-color-text-secondary)' }}>
{' '}
{intl.formatMessage({ id: 'common.login.rember' })}
</span>
</Checkbox>
<div
className="flex-center flex-between"
style={{
marginBottom: 24
}}
>
<Checkbox style={{ marginLeft: 5 }}>
<span style={{ color: 'var(--ant-color-text-secondary)' }}>
{intl.formatMessage({ id: 'common.login.rember' })}
</span>
</Checkbox>
<Button
type="link"
size="small"
href={externalLinks.resetPassword}
target="_blank"
style={{ padding: 0 }}
>
{intl.formatMessage({ id: 'common.button.forgotpassword' })}
</Button>
</div>
</Form.Item>
<Button
htmlType="submit"
+1 -1
View File
@@ -52,7 +52,7 @@ const PasswordForm: React.FC = () => {
</div>
<Form
form={form}
style={{ width: '400px', margin: '0 auto' }}
style={{ width: '360px', margin: '0 auto' }}
onFinish={handleSubmit}
>
<h2 className="justify-center m-b-20 flex-column flex-center">
+1 -1
View File
@@ -44,7 +44,7 @@ const FormWrapper = styled.div`
height: max-content;
padding: 40px;
background-color: var(--color-modal-content-bg);
box-shadow: var(--color-modal-box-shadow);
.field-wrapper {
background-color: transparent !important;
}