Skip to content
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

[Feat] Todo List 구현 #2

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

[Feat] Todo List 구현 #2

wants to merge 15 commits into from

Conversation

yoouyeon
Copy link
Member

구현 사항

  • Todo 생성, 조회 기능
  • Todo 수정/수정 중 취소, 삭제 기능
  • Todo 완료 여부 체크/체크해제 기능

Copy link
Contributor

@mike2ox mike2ox left a comment

Choose a reason for hiding this comment

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

참고될 내용이 많아서 좋네요! 고생하셨어요 👍

Comment on lines +7 to +9
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lilita+One&family=Nanum+Gothic&display=swap" rel="stylesheet">
Copy link
Contributor

Choose a reason for hiding this comment

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

폰트 관련해서 link해주셨는데 궁금한게 있어서 질문드립니다!

  1. preconnect 적용하고 안하고의 차이가 궁금합니다.
  2. gstatic에서만 crossorigin을 설정해주셨는데 이유가 있을까요?

Copy link
Member Author

Choose a reason for hiding this comment

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

  1. preconnect를 적용하지 않았을 경우에는 css 파일 로딩을 위한 연결 → css 파일 로드 → 폰트 파일 로딩을 위한 연결 → 폰트 파일 로드 의 과정을 순차적으로 거쳐야 하기 때문에 최종 폰트 파일 로드까지 시간이 걸리지만, preconnect를 적용해서 미리 연결을 위한 초기 설정을 해 두면 최종 폰트 파일 로드까지 걸리는 시간이 preconnect를 적용하지 않았을 때 보다 빨라집니다.
  2. 폰트 파일을 요청하는 css 파일의 도메인과 폰트 파일이 도메인이 다르기 때문에 gstatic에 crossorigin을 설정해주었습니다.

Comment on lines +37 to +41
@media (max-height: 500px) {
#todo-wrapper {
height: 300px;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

미디어쿼리를 사용하셨는데 해당 스타일이 어떤 목적으로 사용되는지 알려주세요

Comment on lines +15 to +23
<div id="todo-wrapper">
<form id="todo-form">
<input id="todo-input" autocomplete="off" placeholder="TODO 추가하기" type="text" required>
</form>
<hr />
<ul id="todo-list">
<!-- Dynamically added -->
</ul>
</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

의도하신건지 모르겠다만 고정적인 부분은 미리 선언하셔서 좋은거 같아요 👍

todo.js Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

구현해야할 기능들에 대해 잘 만들어주신거 같아요!
몇가지 개선해 볼 만한 거 추천해 드릴게요

  • UI와 logic 분리
  • 재사용성을 고려한 구조

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants