Skip to content

Create Week10 Mission 1#120

Open
hyeok02 wants to merge 1 commit intomainfrom
ysh2002m
Open

Create Week10 Mission 1#120
hyeok02 wants to merge 1 commit intomainfrom
ysh2002m

Conversation

@hyeok02
Copy link
Collaborator

@hyeok02 hyeok02 commented Jun 1, 2025

📝 미션 번호

10주차 Misson 1

📋 구현 사항

  • 영화 사이트 렌더링 최적화

📎 스크린샷

image image image image

✅ 체크리스트

  • Merge 하려는 브랜치가 올바르게 설정되어 있나요?
  • 로컬에서 실행했을 때 에러가 발생하지 않나요?
  • 불필요한 주석이 제거되었나요?
  • 코드 스타일이 일관적인가요?

🤔 질문 사항

Copy link
Member

@hyesngy hyesngy left a comment

Choose a reason for hiding this comment

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

10주차 워크북까지 정말 긴 여정이었습니다.

그동안 모두 고생 많으셨습니다! 👏🏻👏🏻👏🏻 짧지 않은 기간동안 의미 있는 시간이 되었기를 바랍니다.

이제 기본 워크북은 모두 완주하셨지만, 11-12주차 워크북도 도전해보시길 추천드립니다! 11주차에서는 Vercel을 활용한 배포와 CI/CD 구성을 다루고, 12주차에서는 WebSocket을 이용한 실시간 통신과 Cypress를 활용한 E2E 테스트를 다룹니다.

앞으로도 꾸준히 학습하고 성장하시길 응원하며, 데모데이까지 화이팅 입니다! 👍🏻👍🏻👍🏻

Comment on lines +24 to +44
return createPortal(
<div className="fixed inset-0 bg-black/70 z-50 flex items-center justify-center p-4">
<div className="bg-gray-900 text-white max-w-4xl w-full rounded-lg shadow-lg overflow-auto max-h-[90vh] relative">
<button
onClick={() => navigate(-1)}
className="absolute top-3 right-3 text-white text-2xl"
>
&times;
</button>
{isLoading ? (
<p className="text-center my-10">영화 정보를 불러오는 중입니다...</p>
) : error ? (
<p className="text-center my-10 text-red-500">에러가 발생했습니다.</p>
) : (
<MovieDetailContent movie={movie} />
)}
</div>
</div>,
document.body
);
};
Copy link
Member

Choose a reason for hiding this comment

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

미션 1에서 영화 검색 결과로 나온 영화를 클릭하면 모달 형태로 영화의 상세 정보를 불러오도록 해야합니다.
하지만 현재 detail.tsx 에서 createPortal을 사용해 모달처럼 렌더링하고 있지만, 실제로는 useNavigate로 새로운 라우트로 이동하는 방식으로 구현되어 있습니다. 이는 진정한 모달이 아니라 모달 스타일의 페이지 전환이기 때문에, 미션에 맞게 수정이 필요해 보입니다!

Copy link
Member

Choose a reason for hiding this comment

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

🚀Challenge 미션에 따라 프로젝트 전체의 성능 최적화나 UX 개선에도 도전해보세요! 코드 품질 측면에서도 중복 제거, 책임 분리, 예외 처리 개선 등을 통해 가독성과 유지보수성이 좋은 코드로 리팩토링 해보면 어떨까요 😊

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