mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-26 11:06:23 +00:00
feat: 调整注册和重置密码页面的布局,优化组件宽度;更新中文翻译以支持“获取”按钮文本
This commit is contained in:
@ -5,7 +5,7 @@ import { RegisterForm } from '@/components/auth/register/register-form'
|
|||||||
function PageContent() {
|
function PageContent() {
|
||||||
return (
|
return (
|
||||||
<div className="bg-muted flex min-h-svh flex-col items-center justify-center gap-6 p-6 md:p-10">
|
<div className="bg-muted flex min-h-svh flex-col items-center justify-center gap-6 p-6 md:p-10">
|
||||||
<div className="flex w-full max-w-md flex-col gap-6">
|
<div className="flex w-full max-w-sm flex-col gap-6">
|
||||||
<AuthHeader />
|
<AuthHeader />
|
||||||
<RegisterForm />
|
<RegisterForm />
|
||||||
</div>
|
</div>
|
||||||
|
@ -3,7 +3,7 @@ import { ResetPasswordForm } from "@/components/auth/reset-password/reset-passwo
|
|||||||
export default function Page() {
|
export default function Page() {
|
||||||
return (
|
return (
|
||||||
<div className="bg-muted flex min-h-svh flex-col items-center justify-center gap-6 p-6 md:p-10">
|
<div className="bg-muted flex min-h-svh flex-col items-center justify-center gap-6 p-6 md:p-10">
|
||||||
<div className="flex w-full max-w-md flex-col gap-6">
|
<div className="flex w-full max-w-sm flex-col gap-6">
|
||||||
<AuthHeader />
|
<AuthHeader />
|
||||||
<ResetPasswordForm />
|
<ResetPasswordForm />
|
||||||
</div>
|
</div>
|
||||||
|
@ -180,7 +180,7 @@ export function RegisterForm({
|
|||||||
onChange={value => setVerifyCode(value)}
|
onChange={value => setVerifyCode(value)}
|
||||||
/>
|
/>
|
||||||
<Button onClick={handleSendVerifyCode} disabled={!email || coolDown > 0 || sendingVerifyCode} variant="outline" className="border-2" type="button">
|
<Button onClick={handleSendVerifyCode} disabled={!email || coolDown > 0 || sendingVerifyCode} variant="outline" className="border-2" type="button">
|
||||||
{commonT("send_verify_code")}{coolDown > 0 ? `(${coolDown})` : ""}
|
{commonT("obtain")}{coolDown > 0 ? `(${coolDown})` : ""}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -95,7 +95,7 @@ export function ResetPasswordForm({
|
|||||||
className="border-2"
|
className="border-2"
|
||||||
type="button"
|
type="button"
|
||||||
onClick={handleSendVerifyCode}>
|
onClick={handleSendVerifyCode}>
|
||||||
{t("send_verify_code")}{coolDown > 0 ? `(${coolDown})` : ""}
|
{commonT("obtain")}{coolDown > 0 ? `(${coolDown})` : ""}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -62,6 +62,7 @@
|
|||||||
"daysAgo": "天前",
|
"daysAgo": "天前",
|
||||||
"hoursAgo": "小时前",
|
"hoursAgo": "小时前",
|
||||||
"minutesAgo": "分钟前",
|
"minutesAgo": "分钟前",
|
||||||
|
"obtain": "获取",
|
||||||
"password": "密码",
|
"password": "密码",
|
||||||
"secondsAgo": "秒前",
|
"secondsAgo": "秒前",
|
||||||
"send_verify_code": "发送验证码",
|
"send_verify_code": "发送验证码",
|
||||||
|
Reference in New Issue
Block a user