Skip to content

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

Merged

Conversation

LellowMellow
Copy link
Collaborator

작업 개요

Error 페이지, 강의 종료 페이지 구현 close #24

작업 사항

  • Error 페이지 UI 작업 (반응형)
  • Error 페이지 Redirect 작업
  • Error 페이지 바탕으로 강의 종료 페이지 UI 작업

고민한 점들(필수 X)

Error 페이지와 강의 종료 페이지 역시 모바일에서 접근이 가능하기 때문에 이를 반응형으로 구현하고자 하였습니다. tailwind의 md를 기준으로 하여 반응형 작업을 완료하였습니다. 추가적으로 text 역시 크기가 변경되어야 했기 때문에 tailwind.config에 정의한 내용을 활용하여 이를 구현하였습니다. (global.css에 정의한 custom class 미사용)

특정 페이지에서 올바르지 않은 접근을 시도했을 경우에도 error 페이지로 redirect할 필요가 있었기 때문에, /error로 접근할 경우에 Error 페이지를, 라우팅하지 않은 다른 주소에 접근하였을 경우에는 Navigate를 활용하여 /error로 이동하도록 하였습니다.

<Route path="/error" element={<Error />} />
<Route path="/*" element={<Navigate to="/error" />} />

스크린샷(필수 X)

Error 페이지

2023-12-04.20-30-54.mp4

강의 종료 페이지

2023-12-04.20-30-40.mp4

- 에러 페이지 라우팅 작업을 완료하였습니다.
- 에러 페이지의 UI 작업을 완료하였습니다.
- 모바일을 고려하여 반응형 작업을 완료하였습니다.
- 홈 화면으로 돌아가기 버튼 클릭 시에 Home으로 이동하도록 navigate를
  추가하였습니다.
- 강의 종료 페이지 UI를 구성하였습니다.
@LellowMellow LellowMellow self-assigned this Dec 4, 2023
@LellowMellow LellowMellow added ✨ Feat 기능 개발 FE 프론트엔드 작업 labels Dec 4, 2023
@LellowMellow LellowMellow added this to the 5주차 milestone Dec 4, 2023
Copy link

netlify bot commented Dec 4, 2023

Deploy Preview for boarlog ready!

Name Link
🔨 Latest commit 3f78dcc
🔍 Latest deploy log https://app.netlify.com/sites/boarlog/deploys/656e815f2f258c000961fc3f
😎 Deploy Preview https://deploy-preview-191--boarlog.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Comment on lines +12 to +15
<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" />홈 화면으로 돌아가기
Copy link
Collaborator

Choose a reason for hiding this comment

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

페이지 디자인 너무 귀엽습니다. ㅋㅋㅋㅋㅋ

Copy link
Collaborator

@Byeonjin Byeonjin left a comment

Choose a reason for hiding this comment

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

고생하셨습니다!

Copy link
Collaborator

@Jw705 Jw705 left a comment

Choose a reason for hiding this comment

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

고생 많으셨습니다! 페이지가 너무 귀엽네요 ㅎㅎ

@@ -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";
Copy link
Collaborator

Choose a reason for hiding this comment

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

이름에서 조금 혼동이 올 수 있을 것 같은데 ErrorPage라는 이름은 어떠신가요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

좋습니다! 수정해보겠습니다 :)

- Error 페이지의 이름을 명시적으로 변경하였습니다.
@LellowMellow LellowMellow merged commit 58aa079 into boostcampwm2023:dev Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FE 프론트엔드 작업 ✨ Feat 기능 개발
Projects
None yet
3 participants