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

[PR] 메인페이지 컴포넌트 작성 #98

Merged
merged 29 commits into from
Nov 29, 2019
Merged

[PR] 메인페이지 컴포넌트 작성 #98

merged 29 commits into from
Nov 29, 2019

Conversation

yongholeeme
Copy link
Collaborator

@yongholeeme yongholeeme commented Nov 25, 2019

관련 이슈

#60 MainPage Component

변경 사항 및 이유

  • 인피니티 스크롤 적용

PR Point

  • 현재 useFetch 를 사용하지 않고 바로 axios 모듈을 사용하고 있습니다.
    • 중간데모가 끝나면 useFetch로 포팅할 예정
  • 이미지에 대한 레이지 로딩 적용 X

참고 사항

테스트에 대한 코드가 아직 없습니다.
추후에 fetch를 통해서 상태가 정상적으로 변하는 지에 대한 테스트 코드 작성 예정입니다.

Yongho Lee added 6 commits November 25, 2019 16:30
- 메인페이지에서 사용되는 큰 배너
- 이미지를 props로 받을 생각이지만, 정적 파일을 주입할 듯
- 기존에 a태그로 감싸진 것을 Link 태그로 변경
- 스타일링 조정
  - 그림자 색 조정
  - 패딩값을 카드 전체가 아닌 이미지를 제외한 내용에만 적용
- 그리드 형식으로 구현
- Mock 데이터로 구현
- 데이터를 Page 레벨에서 주입하도록 수정
- 라우팅 추가
- 현재는 Mock Data로만 구성, 추후에 API 연결
- 반응형 최소로 대응
@yongholeeme yongholeeme changed the base branch from master to develop November 26, 2019 07:42
@dobest27 dobest27 self-assigned this Nov 26, 2019
Yongho Lee and others added 10 commits November 27, 2019 15:31
- 브런치 병합하는 과정에서 컴포넌트가 이름이 변함에 따라 관련 컴포넌트 수정
client 에서 cors policy 관련 오류가 나서 임시적으로 허용해 줌
- 아직 타입 파일에 대한 컨벤션이 없기 때문에 임의로 설정
- 카드가 보였을 때 이미지 주입
- 추후 이미지 로딩이 걸린 이미지 컴포넌트 제작 예정
- 필요하지만 안쓰는 변수를 _ 로 설정했는데 돌파구 발견
- lazy loading을 위해서 임시 div 생성
- 타입을 외부에서 주입
- intersectionObserver를 사용하기 위한 커스텀 훅 제작
- 리팩토링 매우 필요
- 코드에 대한 이해 필요
- 테스트 코드 필요
Yongho Lee added 2 commits November 29, 2019 08:00
- 카드에 대한 타입이 name으로 돼있어서 title로 수정
- 글씨 크기 변화에 따른 최대 글자 길이 수정
- jest를 돌릴 때 intersectionObserver를 찾지 못함
- 따라서 intersectionObserver에 대한 polyfill 추가
@yongholeeme yongholeeme added this to In progress in Sprint-3 via automation Nov 29, 2019
@yongholeeme yongholeeme added this to the 스프린트 3주차 milestone Nov 29, 2019
Yongho Lee added 2 commits November 29, 2019 09:39
- 병합하는 과정에서 중복된 로직이 지워지지 않음
- 기존에 axios 모듈을 따로 만들어서 쓰고 있었는데 useFetch를 도입하기 전에 러프하게 대체
@yongholeeme yongholeeme marked this pull request as ready for review November 29, 2019 00:44
@yongholeeme yongholeeme changed the title [WIP] 메인페이지 컴포넌트 작성 [PR] 메인페이지 컴포넌트 작성 Nov 29, 2019
Copy link
Collaborator

@doong-jo doong-jo left a comment

Choose a reason for hiding this comment

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

SignUp을 참고하여 상태를 분리해주세요 :)

client/src/pages/Main/index.tsx Show resolved Hide resolved
Yongho Lee added 4 commits November 29, 2019 11:09
@yongholeeme yongholeeme merged commit 0f31544 into develop Nov 29, 2019
Sprint-3 automation moved this from In progress to Done Nov 29, 2019
@yongholeeme yongholeeme mentioned this pull request Nov 29, 2019
9 tasks
@yongholeeme yongholeeme deleted the feature-60 branch December 2, 2019 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Sprint-3
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants