Skip to content

[mission3] 3단계 미션 구현 - 이문희/1팀#50

Open
LEE-FE17 wants to merge 18 commits intoOZ-Coding-School:이문희from
LEE-FE17:mission-3
Open

[mission3] 3단계 미션 구현 - 이문희/1팀#50
LEE-FE17 wants to merge 18 commits intoOZ-Coding-School:이문희from
LEE-FE17:mission-3

Conversation

@LEE-FE17
Copy link
Copy Markdown

@LEE-FE17 LEE-FE17 commented Mar 10, 2026

구현 사항

-TMDB API를 활용하여 인기 영화 데이터 출력
-Tailwind CSS를 적용하여 UI 스타일을 구성하고 카드 hover 효과 추가
-Grid 레이아웃을 사용해 영화 포스터가 한 줄에 일정한 개수로 정렬 구현
-반응형 디자인을 적용하여 모바일, 태블릿, PC 환경에서 각각 다른 열 개수로 영화가 표시되도록 구성
-로그인 페이지와 회원가입 페이지를 생성하고 기본 폼 UI 구현

어려웠던 점

-Tailwind CSS 초기 설정 과정에서 PostCSS 및 설정 파일 구성 과정에서 오류가 발생해 해결하는 데 시간이 걸렸습니다.
-영화 카드의 레이아웃 정렬 및 크기 조정을 통해 포스터가 일정하게 보이도록 스타일을 조정하는 과정이 어려웠습니다.
-검색 기능 구현을 위해 상태 관리와 이벤트 처리 흐름을 이해하는 데 시간이 필요했습니다.
-handleSubmit 이벤트 처리

  • 로그인 및 회원가입 폼에서 submit 이벤트를 처리하기 위해 onSubmittype="submit" 구조를 이해하는 데 어려움이 있었습니다.

구현 이미지

스크린샷 2026-03-10 오후 6 03 54

Comment thread src/api/tmdb.js Outdated
if (!query) return [];

const res = await fetch(
`${BASE_URL}/search/movie?api_key=${API_KEY}&query=${query}&language=ko-KR`
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

현재 API 키를 쿼리 파라미터로 전달하고 계신데요.
URL에 키가 노출될 수 있는데 다른 방식으로 전달할 수 있는 방법은 없을까요?

Copy link
Copy Markdown
Author

@LEE-FE17 LEE-FE17 Mar 11, 2026

Choose a reason for hiding this comment

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

파일을 새로 생성하고 입력할 때 입력을 잘못한거같습니다. 수정하고 다시 커밋하겠습니다 ㅎㅎ

Comment thread src/hooks/useDebounce.js
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

이 훅을 사용하는 부분은 어디인가요-?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

useDebounce.js라는 파일을 직접 만들어서 import를 안했습니다. 수정하고 커밋하겠습니다.

Comment thread src/api/tmdb.js
@@ -0,0 +1,23 @@
const accessToken = import.meta.env.VITE_TMDB_ACCESS_TOKEN;

export const fetchMovies = async (query) => {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

이 함수가 사용되는 곳은 어디인가요-?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

위에 코멘트 하신거 보고 이거도 수정하고 있었습니다 ㅎㅎ tmdb.js파일을 새로 만들다보니 계속 빼먹은거 같아요ㅠㅠ

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