fix: migrate login page to Ant Design 6 and Tailwind CSS 4 syntax

This commit is contained in:
siujamo
2026-05-11 17:46:20 +08:00
parent 7a0a74bfea
commit 4d009a0195
+4 -4
View File
@@ -29,11 +29,11 @@ export default function LoginPage() {
return (
<div className="min-h-screen bg-gray-100 px-4 py-10 sm:py-16">
<div className="mx-auto max-w-md">
<Card bordered={false} className="shadow-sm">
<Typography.Title level={3} className="!mb-2 text-center">
<Card variant="borderless" className="shadow-sm">
<Typography.Title level={3} className="mb-2! text-center">
</Typography.Title>
<Typography.Paragraph className="!mb-6 text-center !text-gray-500">
<Typography.Paragraph className="mb-6! text-center text-gray-500!">
使
</Typography.Paragraph>
@@ -54,7 +54,7 @@ export default function LoginPage() {
<Input.Password autoComplete="current-password" placeholder="请输入密码" />
</Form.Item>
<Form.Item className="!mb-0">
<Form.Item className="mb-0!">
<Button type="primary" htmlType="submit" loading={loading} block>
</Button>