-
Notifications
You must be signed in to change notification settings - Fork 31
[정지원] sprint2 #119
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
[정지원] sprint2 #119
The head ref may contain hidden characters: "Basic-\uC815\uC9C0\uC6D0-sprint2"
Conversation
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.
지원님! 요구 사항도 꼼꼼하게 챙겨주셨고, 코드도 군더더기 없이 깔끔하게 잘 작성해 주셨네요~! 💯
로그인 페이지와 회원가입 페이지를 만들면서 margin-bottom을 통해 간격을 조절해나갔는데 다 만들고 난 생각이 아예 전체를 flex로 감싸고 gap 속성을 통해 간격을 조절했다면 한번에 조절 가능하지 않았을까 하는 생각이 들었습니다. 배치를 할 때 margin을 사용하는 상황과 flex를 사용하는 상황이 어떤 점에서 다른지(어떤 상황에서 주로 사용되는지), margin과 flex를 꼭 사용해야 하는 특별한 상황들이 있는지 궁금합니다.
->
- 여러 요소들간에 일정한 간격, 배치가 필요할 때는 flex!
- 단일 요소만 간격을 주거나 레이아웃 흐름과 관계 없이 공간을 조절할 때는 margin을 쓰시면 좋습니다 :)
일단 잘 구현하셨으니 사실 크게 상관은 없습니다 🤣 지금 마진을 썼을 때 약간 아쉬운 점은, 만약 다른 요소가 추가될 경우 새 요소의 마진도 신경 써야 되겠죠~!
| <form method="post"> | ||
| <div class="input-form"> | ||
| <label for="email">이메일</label> | ||
| <input |
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.
라벨을 잘 적용해 주셨네요! 👍
| name="password" | ||
| placeholder="비밀번호를 입력해주세요" | ||
| /> | ||
| <img |
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.
이미지에 기능이 있다면, button으로 감싸거나 aria-label 등을 활용하시면 접근성에 좋습니다 :)
| } | ||
|
|
||
| h1 { | ||
| span { |
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.
글로벌 스타일은 태그에 스타일을 넣을 때 주의하셔야 합니다~!
적용 범위가 넓어, 예기치 못한 버그가 발생하고 유지 보수가 힘들어져요!
| </div> | ||
| </div> | ||
| <!-- 나중에 페이지 연결 예정 --> | ||
| <a href="#" id="auth-button" class="button btn-round">로그인</a> |
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.
나중에 하시겠지만, 로그인은 a 가 아니라 submit 기능을 가진 버튼이 되겠네요~! :)
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.
전반적으로 깔끔합니다~! 👍
요구사항
기본
- 공통
- 로그인 페이지
- 회원가입 페이지
심화
주요 변경사항
스크린샷
멘토에게
margin-bottom을 통해 간격을 조절해나갔는데 다 만들고 난 생각이 아예 전체를 flex로 감싸고 gap 속성을 통해 간격을 조절했다면 한번에 조절 가능하지 않았을까 하는 생각이 들었습니다. 배치를 할 때 margin을 사용하는 상황과 flex를 사용하는 상황이 어떤 점에서 다른지(어떤 상황에서 주로 사용되는지), margin과 flex를 꼭 사용해야 하는 특별한 상황들이 있는지 궁금합니다.