Skip to content

Conversation

@aha-hyeong
Copy link
Collaborator

  • 로그인, 회원가입 페이지는 header, footer 없음
  • 로그인 페이지 / 이메일, 비밀번호 유효성 검사
  • 유효성 검사 이상 없는 경우 로그인 버튼 활성화
  • form 기본 동작 막기
  • components/MainLogo.tsx 페이지 마다 사이즈 변경(home, login)

Copy link
Collaborator

@wseungjin wseungjin left a 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";
Copy link
Collaborator

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();
Copy link
Collaborator

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
Copy link
Collaborator

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: "사용 중인 이메일입니다.",
Copy link
Collaborator

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 = {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

authErrors로 네이밍이 좀 더 명확하면 좋을거 같네요

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants