Skip to content

Commit

Permalink
fix : 회원가입 디자인,로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
banhogu committed Jun 13, 2024
1 parent ac408a2 commit 4f35930
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
3 changes: 3 additions & 0 deletions public/sign/phase.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 10 additions & 3 deletions src/components/sign/signup/EmailVerification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,16 @@ const EmailVerification = ({ onNext }: EmailVerification) => {
3 단계
</span>
</div>
<div className="w-[152.40px] h-[25.20px] bg-indigo-700 flex justify-center items-center">
<div className="text-center text-white text-sm font-medium font-pretendard">
한번 더 확인이 필요해요.
<div className="flex items-center relative">
<img
src="/sign/phase.svg"
alt="image"
className="absolute -left-[7px] z-50"
/>
<div className=" w-[152.40px] h-[25.20px] bg-space-purple flex justify-center items-center">
<div className="text-center text-white text-sm font-medium font-pretendard">
한번 더 확인이 필요해요.
</div>
</div>
</div>
</div>
Expand Down
14 changes: 8 additions & 6 deletions src/components/sign/signup/PasswordVerification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ const PasswordVerification = ({ onNext, applyValues }: PasswordVerificationProps
}, [selectedJob]);

const handlePasswordChange = (e: React.ChangeEvent<HTMLInputElement>) => {
setPasswordError(false);
const newPassword = e.target.value;
setPassword(newPassword);
checkValidPassword(newPassword);
};

const checkValidPassword = () => {
const checkValidPassword = (password: string) => {
const passwordRegex = /^(?=.*[0-9])(?=.*[a-zA-Z])(?=.*[@#$%^&+=!])(?=\S+$).{8,16}$/;
if (!passwordRegex.test(password)) {
setPasswordError(true);
Expand Down Expand Up @@ -99,9 +99,12 @@ const PasswordVerification = ({ onNext, applyValues }: PasswordVerificationProps
3 단계
</span>
</div>
<div className="w-[152.40px] h-[25.20px] bg-indigo-700 flex justify-center items-center">
<div className="text-center text-white text-sm font-medium font-pretendard">
거의 다 완료되었어요!
<div className="flex items-center relative">
<img src="/sign/phase.svg" alt="image" className="absolute -left-[7px] z-50" />
<div className=" w-[152.40px] h-[25.20px] bg-space-purple flex justify-center items-center">
<div className="text-center text-white text-sm font-medium font-pretendard">
거의 다 완료되었어요!
</div>
</div>
</div>
</div>
Expand Down Expand Up @@ -199,7 +202,6 @@ const PasswordVerification = ({ onNext, applyValues }: PasswordVerificationProps
placeholder="비밀번호를 입력해주세요."
value={password}
onChange={handlePasswordChange}
onBlur={checkValidPassword}
/>
</div>
</div>
Expand Down

0 comments on commit 4f35930

Please sign in to comment.