-
Notifications
You must be signed in to change notification settings - Fork 14
Next 정부광 sprint11 #78
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
base: next-정부광
Are you sure you want to change the base?
Next 정부광 sprint11 #78
The head ref may contain hidden characters: "next-\uC815\uBD80\uAD11-sprint11"
Conversation
aha-hyeong
commented
Sep 10, 2025
- 로그인, 회원가입 페이지는 header, footer 없음
- 로그인 페이지 / 이메일, 비밀번호 유효성 검사
- 유효성 검사 이상 없는 경우 로그인 버튼 활성화
- form 기본 동작 막기
- components/MainLogo.tsx 페이지 마다 사이즈 변경(home, login)
wseungjin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고 많으셨습니다~ 제가 질문한 두가지만 답변을 공부를 잘 해도 많은 공부가 될거예요~
| @@ -0,0 +1,23 @@ | |||
| "use client"; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use client을 어떨떄 써야하고 app router가 pages router랑 뭐가 다른지에 대해서 공부해보시면 좋을꺼같아요~
| import { ReactNode } from "react"; | ||
|
|
||
| export default function ConditionalLayout({ children }: { children: ReactNode }) { | ||
| const pathname = usePathname(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
usePathname을 사용하기 위해 클라이언트 컴포넌트를 사용한건가요?
클라이언트 컴포넌트와 서버 컴포넌트의 차이를 한번 공부해보면 좋을꺼 같아요~
| className={styles.submitForm} | ||
| onSubmit={(e) => { | ||
| if (!isFormValid) { | ||
| e.preventDefault(); // 유효하지 않으면 제출X |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
에러는 안보여주나요?
| passwordEmpty: "비밀번호를 입력해 주세요.", | ||
| passwordInvalid: `비밀번호를 ${PASSWORD_LENGTH}자 이상 입력해 주세요.`, | ||
| passwordMismatch: "비밀번호가 일치하지 않습니다.", | ||
| emailExists: "사용 중인 이메일입니다.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
| @@ -0,0 +1,14 @@ | |||
| import { PASSWORD_LENGTH } from "@/utils/validation"; | |||
|
|
|||
| export const errors = { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
authErrors로 네이밍이 좀 더 명확하면 좋을거 같네요