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

[Feature] 모집 게시글 상세보기 페이지 마크업 #61

Merged
merged 11 commits into from
Nov 24, 2022

Conversation

kong430
Copy link
Collaborator

@kong430 kong430 commented Nov 23, 2022

체크 리스트

  • 적절한 제목으로 수정했나요?
  • 관련된 이슈와 연결 시켰나요?
  • Target Branch를 올바르게 설정했나요?
  • Label을 알맞게 설정했나요?

작업 내역

  • 제외 사항
    • 참가하기 버튼, 댓글은 제외
    • 시간 변환은 다음 이슈에서 처리 예정
    • html 렌더링은 다음 이슈에서 처리 예정
  • Location, Category 관련 enum 및 interface 정의
  • ArticleTag 컴포넌트에서 color를 직접 받도록 변경
    • color 변환 함수 utils/color.ts에 정의
  • 모집 게시글 상세보기 마크업

image

문제 상황과 해결

  • 작업 중 마주한 문제상황 및 해결방법을 남겨주세요.

비고

  • 스타일 로직 파일로 분리하는 것은 고민중입니다.

@kong430 kong430 self-assigned this Nov 23, 2022
@github-actions
Copy link

storybook link -> https://637c707cf24ecaa36bad2e45-kokpfqumhh.chromatic.com/

Comment on lines +7 to +26
const dummyArticlePreview: ArticlePreviewType = {
id: 1,
title: '모집 테스트1',
location: {
id: 2,
name: Location.BUSAN,
},
category: {
id: 1,
name: Category.STUDY,
},
commentCount: 31,
scrapCount: 12,
thumbnail: 'https://avatars.githubusercontent.com/u/90585081?v=4',
maxCapacity: 5,
currentCapacity: 3,
status: ArticleStatus.PROGRESS,
createdAt: '2021-04-03T18:45:19Z',
};

Copy link
Member

Choose a reason for hiding this comment

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

더미 데이터는 constants 폴더에 정의해놓고 사용하고 계시군요~ 좋은 것 같습니다

Comment on lines +163 to +174
const ParticipantButton = styled.button`
display: flex;
gap: 4px;
padding: 0;
height: 1.7rem;
align-items: center;
border: none;
background-color: ${({ theme }) => theme.white};
&:hover {
cursor: pointer;
}
`;
Copy link
Member

Choose a reason for hiding this comment

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

향후에 mantineButton 사용해서 구현해보는 것도 좋을 것 같습니다

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

노력해보겠습니다!

<Badge color={getBadgeColor(id)} size="sm">
{content}
<Badge color={color} size={size} radius="sm">
<BadgeContent>{content}</BadgeContent>
Copy link
Member

Choose a reason for hiding this comment

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

BadgeContent 라는 요소가 필요한 이유가 있을까요? 아니라면 바로 children으로 넣어주는게 더 좋아보여요

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

텍스트 크기를 적용하려고 했던건데 빈 스타일이 됐네요! 제거하겠습니다~

Copy link
Member

@username1103 username1103 left a comment

Choose a reason for hiding this comment

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

고생하셨어요! 상수화가 잘되어있어서 백엔드에서도 활용하면 좋을 것 같아요.

Comment on lines 5 to 8
/**
* 카테고리 id, 지역 id 등 뱃지 옵션의 id를 입력합니다.
* id를 통해 색상이 결정됩니다.
*/
id: number;
color: string;
Copy link
Member

Choose a reason for hiding this comment

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

상위 컴포넌트에서 id 값을 통해 컬러를 골라 전달해주도록 바뀐 게 맞을까요?

id에서 color로 바뀐 것 같은데 주석도 변경되어야할 것 같아요.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

어..? 분명 바꿨었던 것 같은데 꿈이었나봐요...

Article Tag Props description 수정, 불필요한 Wrapper Element 제거
@kong430 kong430 requested a review from sxungchxn November 24, 2022 02:36
@kong430
Copy link
Collaborator Author

kong430 commented Nov 24, 2022

#64
enum 사용 관련한 이슈 등록했습니다.

Copy link
Member

@sxungchxn sxungchxn left a comment

Choose a reason for hiding this comment

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

고생하셨습니다~

@github-actions
Copy link

storybook link -> https://637c707cf24ecaa36bad2e45-hgxwwnpnbv.chromatic.com/

@kong430 kong430 merged commit 4a6f6ba into develop Nov 24, 2022
@kong430 kong430 linked an issue Nov 24, 2022 that may be closed by this pull request
10 tasks
@kong430 kong430 deleted the feature/58-group-article-detail-markup branch November 24, 2022 04:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] 모집 게시글 상세보기 마크업
3 participants