-
Notifications
You must be signed in to change notification settings - Fork 0
Feature(#24): Error 페이지, 강의 종료 페이지 구현 #191
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
Feature(#24): Error 페이지, 강의 종료 페이지 구현 #191
Conversation
- 에러 페이지 라우팅 작업을 완료하였습니다. - 에러 페이지의 UI 작업을 완료하였습니다. - 모바일을 고려하여 반응형 작업을 완료하였습니다.
- 홈 화면으로 돌아가기 버튼 클릭 시에 Home으로 이동하도록 navigate를 추가하였습니다.
- 강의 종료 페이지 UI를 구성하였습니다.
✅ Deploy Preview for boarlog ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
<p className="font-pretendard font-semibold text-size-32 -mt-20 md:-mt-32 md:text-size-64">CLOSED</p> | ||
<p className="semibold-20 text-grayscale-darkgray mt-12 mb-6">강의가 종료되었어요.</p> | ||
<Button type="full" buttonStyle="black" onClick={() => navigate("/")}> | ||
<HomeIcon className="fill-grayscale-white" />홈 화면으로 돌아가기 |
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.
페이지 디자인 너무 귀엽습니다. ㅋㅋㅋㅋㅋ
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.
고생하셨습니다!
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.
고생 많으셨습니다! 페이지가 너무 귀엽네요 ㅎㅎ
frontend/src/App.tsx
Outdated
@@ -12,6 +12,8 @@ import Example from "./pages/Example/Example"; | |||
import ToastContainer from "./components/Toast/ToastContainer"; | |||
import Start from "./pages/Start/Start"; | |||
import MyPage from "./pages/MyPage/MyPage"; | |||
import Error from "./pages/Error/Error"; |
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.
이름에서 조금 혼동이 올 수 있을 것 같은데 ErrorPage라는 이름은 어떠신가요?
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.
좋습니다! 수정해보겠습니다 :)
- Error 페이지의 이름을 명시적으로 변경하였습니다.
작업 개요
Error 페이지, 강의 종료 페이지 구현 close #24
작업 사항
고민한 점들(필수 X)
Error 페이지와 강의 종료 페이지 역시 모바일에서 접근이 가능하기 때문에 이를 반응형으로 구현하고자 하였습니다. tailwind의
md
를 기준으로 하여 반응형 작업을 완료하였습니다. 추가적으로 text 역시 크기가 변경되어야 했기 때문에 tailwind.config에 정의한 내용을 활용하여 이를 구현하였습니다. (global.css에 정의한 custom class 미사용)특정 페이지에서 올바르지 않은 접근을 시도했을 경우에도
error
페이지로 redirect할 필요가 있었기 때문에,/error
로 접근할 경우에Error
페이지를, 라우팅하지 않은 다른 주소에 접근하였을 경우에는Navigate
를 활용하여/error
로 이동하도록 하였습니다.스크린샷(필수 X)
Error 페이지
2023-12-04.20-30-54.mp4
강의 종료 페이지
2023-12-04.20-30-40.mp4