-
Notifications
You must be signed in to change notification settings - Fork 0
modified1 #1
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: master
Are you sure you want to change the base?
modified1 #1
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,7 +71,7 @@ const showList=()=>{ | |
| const delBtnElem = document.createElement('button'); | ||
| delBtnElem.classList.add('delBtn'); | ||
| delBtnElem.addEventListener('click', ()=> deleteTodo(todo.id)); | ||
| delBtnElem.innerHTML='🗑'; | ||
| delBtnElem.innerHTML='❌'; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. checkbox와 삭제버튼은 비슷하게 생긴 UI잖아요? 이를 하나의 reaction같은 div로 묶고 해당 div에 flex 속성을 넣어주면 자동으로 가로배치가 됩니다! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 그리고 지금 전체적으로 코드가 정렬이 일관적으로 안돼있는데 혹시 vscode 사용하고 계시면 |
||
|
|
||
|
|
||
| if(todo.complete){ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,12 +19,9 @@ | |
| <input type="text" class="whattodo" placeholder="해야 할 일을 입력해주세요."> | ||
| </div> | ||
|
|
||
| <ul class="todolist"> | ||
|
|
||
| </ul> | ||
| <div class="todoBottom"> | ||
| <div class="leftItems"> </div> | ||
| </div> | ||
| <ul class="todolist"></ul> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 클래스네임은 어떤 부분은 camelCase고 어떤 부분은 소문자인것보다 형식을 일관성있게 만들면 className실수로 html파일을 왔다갔다 할 일이 줄어들 수 있을 것 같습니다😊 |
||
| <div class="leftItems"> </div> | ||
|
|
||
|
Comment on lines
+23
to
+24
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 공백과 줄바꿈은 모두 컴퓨터가 읽어야하는 리소스입니다. 물론 클린코드를 위한 줄바꿈은 찬성입니다! 전 개인적으로 html 같은 태그로 작성된 html 사이에 줄바꿈은 필요한 이유가 많지 않은 것 같습니다 |
||
|
|
||
| </div> | ||
| </body> | ||
|
|
||

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.
rem과 px를 섞어서 사용하시는 이유가 있을까요?
rem을 사용하면 어떤 부분이 좋을까요?
현재 기준이 되는 rem은 몇px일까요?
기준이 되는 rem을 10px로 바꾸면 계산하기 편하지는 않을까요?
모바일 화면에선 이런 화면을 보게 되는데 어떻게 하면 모바일 화면에서도 보기 좋게 스타일링할 수 있을까요?
이모지를 가운데 배치하기 위해서 사용할 수 있는 여러 방법이 있습니다!
그 중 하나로 박스를 flex 박스로 만들어
justify-content : centeralign-items : center를 사용하실 수 있습니다.