-
Notifications
You must be signed in to change notification settings - Fork 31
[김승민] Sprint4 #54
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
[김승민] Sprint4 #54
The head ref may contain hidden characters: "Basic-\uAE40\uC2B9\uBBFC-sprint4"
Conversation
add margin-bottom to footer
dongqui
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.
승민님 함수별로 기능을 잘 나눠 주셔서 보기가 편했습니다 👍 함수 목적과 이름을 좀 더 명확히 표현해 주시면 더욱 좋을 거 같아요!
이번 미션도 고생 많으셨습니다 💯
| <meta name="description" content="일상의 모든 물건을 거래해보세요"> | ||
| <meta property="og:title" content="판다마켓"> | ||
| <meta property="og:description" content="일상의 모든 물건을 거래해보세요"> | ||
| <meta property="og:url" content="/"> |
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.
혹시나 싶어 남겨드립니다!
절대 경로 말씀드렸던 것은 og:url 부분이었습니다 🤣
해당 부분은 유저가 공유 카드를 클릭했을 때 이동할 url 입니다. 배포를 아직 안 하셨다면 안 넣으셔도 돼요! 참고만 해주세요 :)
| inputMsg.classList.remove('hide'); | ||
| inputMsg.innerHTML = text; | ||
|
|
||
| checkValidity(); |
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.
언제나 그럴 수는 없지만 함수는 단일 책임을 가지는 것이 좋습니다~! 또한 이름을 명확하게 지어주는 것이 좋아요.
이름만 봤을 때 showInputError 의 역할은 input의 error ui를 보여주는 거 같은데, 실제로는 form 전체 에러 상태와 버튼 상태까지 관리하고 있습니다. 로직이 숨겨지게 되는 거죠!
지금은 충분히 잘하셨고 간단한 코드라 괜찮습니다 :) 참고만 해주세요~!
|
|
||
| confirmPassword.addEventListener('focusout', (e) => { | ||
| const value = e.target.value; | ||
| e.target.classList.add('activated'); |
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.
잘못 들어간 걸까요? 🤔
| email.addEventListener('focusout', (e) => { | ||
| const value = e.target.value; | ||
|
|
||
| if (!value) { showInputError('email', '이메일을 입력해주세요'); } |
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,32 @@ | |||
| const errorClass = 'sign-form__input--error'; | |||
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.
상수는 보통 대문자를 사용합니다!
const ERROR_CLASS = 'sign-form__input--error';| @@ -0,0 +1,32 @@ | |||
| const errorClass = 'sign-form__input--error'; | |||
| export const regEmail = /^[0-9a-zA-Z]([-_.]?[0-9a-zA-Z])*@[0-9a-zA-Z]([-_.]?[0-9a-zA-Z])*\.[a-zA-Z]{2,3}$/i; | |||
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.
정규표현식을 쓰셨군요! 👍
기본 요구사항
체크리스트 [기본]
로그인
회원가입
체크리스트 [심화]
주요 변경사항
스크린샷
멘토에게