Feat#5 hyein/calendar#8
Open
hae2ni wants to merge 15 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔥 Related Issues
💙 작업 내용
✅ PR Point
React 캘린더 관련 라이브러리를 사용하지 않고 구현해 보았습니다.
다만, js 날짜 라이브러리인
date fns는 사용했습니다상단에 년, 월을 표기하고 넘기는 로직입니다.
상단 요일 로직입니다.
날짜를 보여주고, 표기하는 로직입니다.
사실 아직, 심화부분은 못 해서,,,
아마 심화부분은 데이터를 더 가공해야 할 것 같아서 pwa 이후 시간 남으면 새로운 이슈 파서 진행할 것 같습니다!
😡 Trouble Shooting
switch문으로 해주었습니다. 나중에 서버에서 랜덤으로 학생마다 부여하는 게 좋을 것 같긴 하더라구요사실, 시간 순으로 보여주기 위해
sort메소드를 썼는데 이게 확실히 맞는 건지는 모르겠습니다. 일단 ui상으로는 시간상으로 보여집니다!처음에 캘린더부분의
styled-component의props를 가공하는 과정이 쉽지 않았습니다ㅠㅠ(구글링,,챗피티 사랑해요 하하)👀 스크린샷 / GIF / 링크
📚 Reference