모바일 인증 화면 ui수정

This commit is contained in:
2025-12-17 10:29:43 +09:00
parent f1fb7c868a
commit b3915808f2
10 changed files with 157 additions and 407 deletions

View File

@@ -86,11 +86,11 @@ export function FindIdForm({
}
return (
<form className={cn("flex flex-col gap-4", className)} {...props}>
<form className={cn("flex flex-col gap-3 lg:gap-4", className)} {...props}>
<FieldGroup>
<div className="flex flex-col items-center gap-1 text-center mb-2">
<h1 className="text-2xl font-bold"> </h1>
<p className="text-muted-foreground text-sm text-balance">
<div className="flex flex-col items-center gap-0.5 lg:gap-1 text-center mb-2">
<h1 className="text-lg lg:text-2xl font-bold"> </h1>
<p className="text-muted-foreground text-xs lg:text-sm text-balance">
{step === "email" && "가입 시 등록한 정보를 입력해주세요"}
{step === "verify" && "이메일로 전송된 인증번호를 입력해주세요"}
{step === "result" && "아이디 찾기가 완료되었습니다"}
@@ -100,7 +100,7 @@ export function FindIdForm({
{step === "email" && (
<>
<Field>
<FieldLabel htmlFor="name"></FieldLabel>
<FieldLabel htmlFor="name" className="text-sm lg:text-base"></FieldLabel>
<Input
id="name"
type="text"
@@ -109,12 +109,12 @@ export function FindIdForm({
onChange={(e) => setUserName(e.target.value)}
required
disabled={isLoading}
className="h-11"
className="h-10 lg:h-11"
/>
</Field>
<Field>
<div className="flex items-center justify-between">
<FieldLabel htmlFor="email"></FieldLabel>
<FieldLabel htmlFor="email" className="text-sm lg:text-base"></FieldLabel>
<a href="/findpw" className="text-xs text-primary hover:underline">
</a>
@@ -127,11 +127,11 @@ export function FindIdForm({
onChange={(e) => setUserEmail(e.target.value)}
required
disabled={isLoading}
className="h-11"
className="h-10 lg:h-11"
/>
</Field>
<Field>
<Button type="submit" onClick={handleSendCode} disabled={isLoading} className="w-full h-11">
<Button type="submit" onClick={handleSendCode} disabled={isLoading} className="w-full h-10 lg:h-11">
{isLoading ? "발송 중..." : "인증번호 발송"}
</Button>
</Field>
@@ -141,17 +141,17 @@ export function FindIdForm({
{step === "verify" && (
<>
<Field>
<FieldLabel htmlFor="email"></FieldLabel>
<FieldLabel htmlFor="email" className="text-sm lg:text-base"></FieldLabel>
<Input
id="email"
type="email"
value={userEmail}
disabled
className="h-11"
className="h-10 lg:h-11"
/>
</Field>
<Field>
<FieldLabel htmlFor="code"></FieldLabel>
<FieldLabel htmlFor="code" className="text-sm lg:text-base"></FieldLabel>
<Input
id="code"
type="text"
@@ -161,19 +161,19 @@ export function FindIdForm({
maxLength={6}
required
disabled={isLoading}
className="h-11"
className="h-10 lg:h-11"
/>
<FieldDescription>
{timer > 0 ? "남은 시간: " + formatTime(timer) : "인증번호가 만료되었습니다"}
</FieldDescription>
</Field>
<Field>
<Button type="submit" onClick={handleVerifyCode} disabled={isLoading || timer === 0} className="w-full h-11">
<Button type="submit" onClick={handleVerifyCode} disabled={isLoading || timer === 0} className="w-full h-10 lg:h-11">
{isLoading ? "확인 중..." : "인증번호 확인"}
</Button>
</Field>
<Field>
<Button type="button" variant="outline" onClick={() => setStep("email")} disabled={isLoading} className="w-full h-11">
<Button type="button" variant="outline" onClick={() => setStep("email")} disabled={isLoading} className="w-full h-10 lg:h-11">
</Button>
</Field>
@@ -183,19 +183,19 @@ export function FindIdForm({
{step === "result" && (
<>
<Field>
<div className="bg-muted rounded-lg p-6 text-center">
<p className="text-sm text-muted-foreground mb-2"> </p>
<p className="text-2xl font-bold text-primary">{foundUserId}</p>
<p className="text-sm text-muted-foreground mt-2"></p>
<div className="bg-muted rounded-lg p-4 lg:p-6 text-center">
<p className="text-xs lg:text-sm text-muted-foreground mb-2"> </p>
<p className="text-xl lg:text-2xl font-bold text-primary">{foundUserId}</p>
<p className="text-xs lg:text-sm text-muted-foreground mt-2"></p>
</div>
</Field>
<Field>
<Button type="button" onClick={() => router.push("/login")} className="w-full h-11">
<Button type="button" onClick={() => router.push("/login")} className="w-full h-10 lg:h-11">
</Button>
</Field>
<Field>
<Button type="button" variant="outline" onClick={() => router.push("/findpw")} className="w-full h-11">
<Button type="button" variant="outline" onClick={() => router.push("/findpw")} className="w-full h-10 lg:h-11">
</Button>
</Field>
@@ -210,13 +210,13 @@ export function FindIdForm({
variant="outline"
type="button"
onClick={() => router.push("/login")}
className="w-full h-11 border-2 border-primary text-primary hover:bg-primary hover:text-primary-foreground hover:border-transparent transition-all duration-300"
className="w-full h-10 lg:h-11 border-2 border-primary text-primary hover:bg-primary hover:text-primary-foreground hover:border-transparent transition-all duration-300"
>
</Button>
</Field>
<div className="text-center">
<a href="/signup" className="text-sm text-gray-500 hover:text-primary">
<a href="/signup" className="text-xs lg:text-sm text-gray-500 hover:text-primary">
?
</a>
</div>