Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Front-End] feat: Fe/PasswordResetPage 추가 #67

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions frontend/src/pages/PasswordResetPage/PasswordResetPage.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { AuthForm, InputBox } from '../../components/AuthForm';
import { useRef } from 'react';
import styles from './PasswordResetPage.module.css';

export default function PasswordResetPage() {
const emailRef = useRef('');
const buttonText = useRef('비밀번호 찾기');
const handleSubmit = () => {
// TODO: 비밀번호 찾기 POST 기능 추가
console.log('비밀번호 찾기', emailRef.current.value);
buttonText.current = '로그인하러 가기';
};
return (
<div className={styles.wrapper}>
<AuthForm
submitFunction={handleSubmit}
title="비밀번호 찾기"
buttonText={buttonText.current}
>
{/* <div className={styles.text}>비밀번호 초기화 이메일을 보냈습니다. 이메일을 확인해주세요</div> */}
<InputBox
title="이메일"
id="email"
type="email"
ref={emailRef}
/>
</AuthForm>
</div>
);
}
12 changes: 12 additions & 0 deletions frontend/src/pages/PasswordResetPage/PasswordResetPage.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.wrapper {
padding-top: 120px;
max-width: 480px;
margin: 0 auto;
}

.text {
text-align: center;
font-size: 20px;
font-weight: 400;
line-height: 1.2;
}