feat: add logo in login and register view

This commit is contained in:
moonrailgun 2023-11-15 21:42:50 +08:00
parent 10398272c1
commit e0d83e52ba
2 changed files with 12 additions and 2 deletions

View File

@ -26,7 +26,12 @@ export const Login: React.FC = React.memo(() => {
return (
<div className="w-full h-full flex justify-center items-center">
<div className="w-80 -translate-y-1/4">
<Typography.Title level={2}>Tianji</Typography.Title>
<div className="text-center">
<img className="w-24 h-24" src="/icon.svg" />
</div>
<Typography.Title className="text-center" level={2}>
Tianji
</Typography.Title>
<Form layout="vertical" disabled={loading} onFinish={handleLogin}>
<Form.Item
label="Username"

View File

@ -25,7 +25,12 @@ export const Register: React.FC = React.memo(() => {
return (
<div className="w-full h-full flex justify-center items-center">
<div className="w-80 -translate-y-1/4">
<Typography.Title level={2}>Register Account</Typography.Title>
<div className="text-center">
<img className="w-24 h-24" src="/icon.svg" />
</div>
<Typography.Title className="text-center" level={2}>
Register Account
</Typography.Title>
<Form layout="vertical" disabled={loading} onFinish={handleRegister}>
<Form.Item
label="Username"