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] 학생용 페이지 모바일 대응 #171

Open
wants to merge 18 commits into
base: dev
Choose a base branch
from

Conversation

SeieunYoo
Copy link
Collaborator

🎉 변경 사항

  • 학생용 페이지에서 모바일용 페이지를 구성합니다.
공지사항 커리큘럼
Image 1 Image 2 Image 3

출석체크 출석체크2 로그인
Image 1 Image 2 Image 3

🚩 관련 이슈

🙏 여기는 꼭 봐주세요!

  • 반응형으로 구성하기에는 모바일과 pc 디자인이 많이 달라 미들웨어쪽에서 user agent 를 확인 후에 /mobile/~ 로 라우팅 해서 대응을 진행합니다.
    • (pc) (mobile) 로 폴더를 구분합니다.
    • my-study 나 auth 페이지에 접근하면 mobile/my-study , mobile/auth 페이지로 라우팅 시킵니다.
  • GDGoc 로 헤더를 바꾸는 작업이 필요합니다. (디자인 시스템 쪽에서)

@SeieunYoo SeieunYoo changed the title Feat/mobile client page [Feat] 학생용 페이지 모바일 대응 Jan 11, 2025

if (!accessToken) {
return NextResponse.redirect(new URL(routePath.auth, req.url));
}

if (isMobile && (url.pathname === "/my-study" || url.pathname === "/auth")) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

P3;
요렇게 코드가 작성되면 왜 my-studyauth만 비교하지..?! 라고 맥락 리소스가 쌓일 것 같아서,
모바일을 허용하는 링크라는 변수로 따로 빼서 include와 같은 메소드로 비교하는 게 좋을 거 같아요!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

isMobileAllowedUrl 이라는 유틸로 분리했습니다! 03098e8

Copy link
Collaborator

@eugene028 eugene028 left a comment

Choose a reason for hiding this comment

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

스크린샷 2025-01-28 오후 11 21 04

수강 중인 강의가 없을 때 위 사진과 같이 공지사항커리큘럼이 빈 화면이에요! ㅠㅠ

Copy link
Collaborator

@eugene028 eugene028 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다!

placeholder="Ex. 0000"
value={attendanceNumber}
textareaProps={{
onKeyDown: handleKeyDown,
Copy link
Collaborator

Choose a reason for hiding this comment

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

P3;
저의 개발환경에서는 출석체크 입력 테스트를 할 수 있는 환경이 아니여서 확인은 못해보았지만,
혹시 onKeyDown 이 모바일에서 제대로 동작하는지 체크해주실 수 있을까용?
simulator를 활용하면 확인 가능할 듯 합니다!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

텍스트 필드 키보드를 number 제한하도록 수정하면서 키보드 이벤트에 대한 처리가 필요하지 않을 거 같아 지웠습니다!! 201e1c0

Copy link
Collaborator

Choose a reason for hiding this comment

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

P3;
커리큘럼 페이지에서 커리큘럼 상세를 클릭하면 PC 화면으로 이동하는데, 모바일에서는 뷰가 깨져 보여용.
그래서 클릭하면 "PC 환경에서 상세 내용을 확인해주세요" 와 같은 alert을 띄운뒤, 모바일에서는 커리큘럼 제목하고 개요만 볼 수 있게끔 아래 화면 유지하는게 어떨까 싶습니다!
스크린샷 2025-01-31 오후 5 18 40

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

image
피그마 댓글 확인했을 때 과제 페이지로 이동할 필요가 없다고 해서 링크로 연결되는 부분 지웠습니다!

@SeieunYoo SeieunYoo requested a review from eugene028 January 31, 2025 12:18
@SeieunYoo
Copy link
Collaborator Author

@eugene028 리뷰 반영했습니다!!

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

Successfully merging this pull request may close these issues.

2 participants