Conversation
merrybmc
left a comment
There was a problem hiding this comment.
모건님 첫 pr을 올리신걸 축하드려요. 🎉🎉👍👍👍
앞으로도 저희 열심히 해봐요. 😊
| section { | ||
| max-width: 520px; | ||
| margin: auto auto; |
There was a problem hiding this comment.
피그마의 모달과 웹에 보여지는 너비값이 서로 차이가 있어요.
max-width 대신 width를 넣으면 피그마와 똑같은 너비로 보이고 모달이라 고정값을 주셔도 괜찮을 것 같아요. 😀
🙋♀️ Q. 반응형을 고려하여 max-width 값을 넣어주신 것인지도 궁금해요.
There was a problem hiding this comment.
🤔코드 작성 의도는 반응형을 고려해서 화면이 줄어들어도,
모달이 화면을 넘어가지 않고 너비가 줄어드는 것이 목표였습니다.
병민님 말씀처럼 width 값를 주어도 body 에 display: flex; 속성이 있어서 문제 없이 잘 보여지네요 ! 😁
감사합니다 🙌
| .header button { | ||
| width: 16px; | ||
| height: 16px; | ||
| margin-right: 24px; | ||
| right: 0; | ||
| background: url(./images/close.png) 0 0 no-repeat; | ||
| background-size: cover; | ||
| position: absolute; | ||
| } |
There was a problem hiding this comment.
웹접근성을 고려해서 사용자가 X가 클릭할 수 있는 버튼이란걸 알 수 있게 커서를 포인터로 변경해주면 더 좋을 것 같아요 :)
There was a problem hiding this comment.
와우, 꼭 필요한 기능이네요. 😍
확인하지 못했던 부분이었는데, 닫기(X) 버튼에 cursor: pointer; 적용했습니다! 👍
감사합니다!
| .header button:hover { | ||
| background-color: rgb(239, 237, 237, 0.8); | ||
| } | ||
|
|
||
| .header button:focus { | ||
| background-color: rgb(211, 211, 211, 0.8); | ||
| /* box-shadow: inset 0 0px 2px 0 black; */ | ||
| } |
There was a problem hiding this comment.
X 버튼에 hover나 focus가 되면 배경색이 약간 회색으로 바뀌게 구현을 해주셨네요.
웹접근성을 고려해서 구현하신건지 궁금해요. 😮
There was a problem hiding this comment.
네, 시각적으로 닫기 버튼을 활성화하고 눌렸다는 걸 인식해주려고 색을 넣었습니다. 👍
병민님께서 코멘트 해주신 cursor: pointer; 를 적용해서 더욱 강력해 졌네요 🔥
구글 크롬 최소화 최대화를 보고 참고 했습니다.
| .form .input { | ||
| /* width: 472px; */ | ||
| width: 100%; | ||
| height: 50px; | ||
| color: #767676; | ||
| padding-left: 16px; | ||
| background-color: #fff; | ||
| border: 2px solid #F4492E; | ||
| border-radius: 5px; | ||
| box-sizing: border-box; | ||
| } |
There was a problem hiding this comment.
input border의 컬러가 기본적으로 빨간색인데 input의 기본 값도 함께 보여줄 수 있게 input에 focus가 되었을 때나
버튼을 클릭했을 때 border의 색상이 바뀌면 피그마의 요구사항에 더 가까워질 수 있을 것 같아요.
( 버튼 클릭이나 focus가 되었을 때 input 하단의 경고 메세지도 함께 출력되도록 하면 더 best일 것 같아요. 👍 )
There was a problem hiding this comment.
아래 처럼 input 에 상호작용 하는 효과를 넣었습니다. 🤔
- input:hover > border 빨강색 변화
- input:focus > border 파란색 변화
버튼 클릭이나 focus 시에 적용하는 방법은 다른 분들꺼 참고해서 적용해보겠습니다 ! 😊👌
| .form .member { | ||
| width: 472px; | ||
| width: 100%; | ||
| height: 50px; | ||
| font-size: 18px; | ||
| font-weight: 700; | ||
| margin: 20px 0; | ||
| color: #fff; | ||
| border: none; | ||
| background-color: #2F80ED; | ||
| } |
There was a problem hiding this comment.
웹접근성을 고려해서 button에 마우스를 올렸을 때 사용자가 클릭할 수 있다는걸 알 수 있도록 포인터 커서를
적용해주면 좋을 것 같아요. 😊
There was a problem hiding this comment.
아참, 이 부분도 확인하지 않고 넘어갔던 부분인데 꼼꼼하게 봐주셔서 감사해요! 🤣😍
| .normal-login>div>a:nth-child(1)::after { | ||
| content: "|"; | ||
| margin-left: 12px; | ||
| } |
There was a problem hiding this comment.
회원가입과 아이디/비밀번호 찾기 사이에 있는 | 부분에도 cursor가 포인터로 적용되고 있어요.
이 부분에 cursor를 default로 줘도 되지만 회원가입 부분의 포인터가 컨텐츠 만큼 차지하는게 아니라서
영역 값도 조절해주면 좋을 것 같아요. 👍
There was a problem hiding this comment.
오.... 정말 마우스를 hover 했을 때 전부 cursor: pointer; 로 되어 있으니,
회원가입인지, 아이디/비밀번호 찾기인지 구분이 안되네요 😂
'|' 를 position: absolute; 로 영역을 차지 않도록 해서 회원가입과 영역을 분리했습니다.
'|' 에는 cursor:default; 속성으로 :hover 시 포인터 변화를 없앴습니다. 😁
도움이 많이 되네요 😍 감사합니다!
| /* ~ 최대 765px 까지 스타일 적용 */ | ||
| @media (max-height: 765px) { | ||
| .section { | ||
| max-width: 100vw; | ||
| width: 90vw; | ||
| } | ||
| .form { | ||
| display: grid; | ||
| grid-template-areas: | ||
| "id pw lg lg" | ||
| "idt pwt lb ch" | ||
| ; | ||
| /* grid-template-columns: 1fr 1fr 1fr; */ | ||
| grid-template-columns: 1fr 1fr 0.2fr 1fr; | ||
| } | ||
| .normal-login .form > #input-id { | ||
| width: 95%; | ||
| grid-area: id; | ||
| } | ||
| .normal-login .form > .id-alert { | ||
| grid-area: idt; | ||
| } | ||
| .normal-login .form > #input-pw { | ||
| width: 95%; | ||
| grid-area: pw; | ||
| } | ||
| .normal-login .form > .pw-alert { | ||
| grid-area: pwt; | ||
| } | ||
| .normal-login .form>.member { | ||
| width: 90%; | ||
| height: 90%; | ||
| grid-area: lg; | ||
| margin: auto auto; | ||
| } | ||
| .normal-login .form > .input-hold.hide { | ||
| grid-area: lb; | ||
| } | ||
| .normal-login .form > .label-hold { | ||
| grid-area: ch; | ||
| } | ||
| .sns-login .sns-group { | ||
| width: 100%; | ||
| flex-direction: row; | ||
| justify-content: space-between; | ||
| /* flex-wrap: wrap; */ | ||
| } | ||
| } No newline at end of file |
| <form class="form"> | ||
| <label class="a11y-hidden" for="input-id">아이디</label> | ||
| <input class="input" id="input-id" type="text" placeholder="아이디"> | ||
| <p class="id-alert">아이디를 입력해주세요</p> | ||
| <label class="pw a11y-hidden" for="input-pw">비밀번호</label> |
There was a problem hiding this comment.
웹접근성을 고려해서 a11y-hidden으로 텍스트를 넣어주신 것도 엄청 잘해주셨네요 👍👍👍
|
섬세한 노력이 보이는 코드였습니다!! calc, media쿼리 등 제게는 익숙하지 않은 css들이 많아서 공부하기 좋았습니다 공유해주셔서 감사해요 모건님!! |

로그인/회원가입 첫 번째 레이아웃을 구현하였습니다.
To do