diff --git a/components/Input.tsx b/components/Input.tsx index dfee754..2522845 100644 --- a/components/Input.tsx +++ b/components/Input.tsx @@ -39,7 +39,7 @@ const InputField = forwardRef( const [showPassword, setShowPassword] = useState(false); const handleChange = (e: React.ChangeEvent) => { - const newValue = e.target.value.trim(); + const newValue = e.target.value; onChange(e); if (label !== '생일') { const error = validate(newValue); diff --git a/pages/index.tsx b/pages/index.tsx index 0efd348..ff846e7 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -77,7 +77,7 @@ export default function LandingPage() { alt="위키 이미지" width={498} height={590} - className="size-auto object-contain mo:h-auto mo:w-[336px]" + className="h-auto w-auto object-contain mo:h-auto mo:w-[336px]" priority /> @@ -129,7 +129,7 @@ export default function LandingPage() { alt="타이핑 이미지" width={364} height={681} - className="h-[681px] w-[364px] object-contain mo:h-[249px] mo:w-[133px] ta:h-[490px] ta:w-[262px]" + className="h-auto w-auto object-contain mo:h-[160px] mo:w-[133px] ta:h-[310px] ta:w-[262px]" priority /> @@ -140,7 +140,7 @@ export default function LandingPage() { alt="텍스트 이미지" width={520} height={681} - className="size-auto object-contain mo:w-[192px] ta:w-[365px]" + className="h-auto w-auto object-contain mo:w-[192px] ta:w-[365px]" priority /> {' '} @@ -244,7 +244,7 @@ export default function LandingPage() { > 텍스트 이미지 { - router.push('/login'); - }, 2000); + setAccessToken(null); + localStorage.removeItem('refreshToken'); + router.push('/login'); } catch (error) { if (error instanceof AxiosError) { showSnackbar(error.message, 'fail'); @@ -115,10 +114,7 @@ function MyPage(): React.ReactElement { // 이미 프로필이 존재하는 경우 if (errorResponse?.code) { - // 2초 후 해당 프로필로 이동 - setTimeout(async () => { - await router.push(`/wiki/${errorResponse.code}`); - }, 2000); + await router.push(`/wiki/${errorResponse.code}`); return; } } diff --git a/pages/signup/index.tsx b/pages/signup/index.tsx index ae49024..54457ab 100644 --- a/pages/signup/index.tsx +++ b/pages/signup/index.tsx @@ -28,13 +28,20 @@ function SignUp() { }; const handlePasswordChange = (e: React.ChangeEvent) => { - setPassword(e.target.value); + const newPassword = e.target.value; + setPassword(newPassword); + // 비밀번호가 변경될 때마다 비밀번호 확인란의 유효성도 함께 체크 + if (passwordConfirm) { + handleValidation('passwordConfirm', passwordConfirm === newPassword); + } }; const handlePasswordConfirmChange = ( e: React.ChangeEvent ) => { - setPasswordConfirm(e.target.value); + const newPasswordConfirm = e.target.value; + setPasswordConfirm(newPasswordConfirm); + handleValidation('passwordConfirm', newPasswordConfirm === password); }; const handleNameChange = (e: React.ChangeEvent) => { diff --git a/public/images/img-bell.png b/public/images/img-bell.png index a8d63b0..1c9232d 100644 Binary files a/public/images/img-bell.png and b/public/images/img-bell.png differ diff --git a/public/images/img-belt1.png b/public/images/img-belt1.png index be8fbbc..31959e6 100644 Binary files a/public/images/img-belt1.png and b/public/images/img-belt1.png differ diff --git a/public/images/img-belt2.png b/public/images/img-belt2.png index e5d4a08..ba39415 100644 Binary files a/public/images/img-belt2.png and b/public/images/img-belt2.png differ diff --git a/public/images/img-belt3.png b/public/images/img-belt3.png index 3fb77bf..c529a6a 100644 Binary files a/public/images/img-belt3.png and b/public/images/img-belt3.png differ diff --git a/public/images/img-belt4.png b/public/images/img-belt4.png index ff47aec..e192ded 100644 Binary files a/public/images/img-belt4.png and b/public/images/img-belt4.png differ diff --git a/public/images/img-text-dark.png b/public/images/img-text-dark.png index 652c431..ad8d815 100644 Binary files a/public/images/img-text-dark.png and b/public/images/img-text-dark.png differ diff --git a/public/images/img-text-green.png b/public/images/img-text-green.png index 8eebb1d..8ae6048 100644 Binary files a/public/images/img-text-green.png and b/public/images/img-text-green.png differ diff --git a/public/images/img-text-white.png b/public/images/img-text-white.png index c1431cb..9cf3252 100644 Binary files a/public/images/img-text-white.png and b/public/images/img-text-white.png differ diff --git a/public/images/img-wiki.png b/public/images/img-wiki.png index ca534de..b90d46a 100644 Binary files a/public/images/img-wiki.png and b/public/images/img-wiki.png differ diff --git a/public/images/img-write.png b/public/images/img-write.png index 73909ee..461d273 100644 Binary files a/public/images/img-write.png and b/public/images/img-write.png differ