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

만든 사람들 페이지 #184

Merged
merged 11 commits into from
Feb 27, 2025
Merged

만든 사람들 페이지 #184

merged 11 commits into from
Feb 27, 2025

Conversation

rhehfl
Copy link
Collaborator

@rhehfl rhehfl commented Feb 26, 2025

🔗 관련 이슈

#177

📝작업 내용

만든 사람들(모애8기) 를 소개하는 페이지를 추가

image

반응형

image

🔍 변경 사항

  • 만든 사람들 페이지 추가

💬리뷰 요구사항 (선택사항)

@rhehfl rhehfl added 🎨 Publish 마크업 & 스타일링 ✨ Feature 기능 개발 labels Feb 26, 2025
@rhehfl rhehfl self-assigned this Feb 26, 2025
@rhehfl rhehfl linked an issue Feb 26, 2025 that may be closed by this pull request
3 tasks
document.removeEventListener('wheel', blockScroll);
},
});
const [isPaused, toggleIsPaused] = useToggle(false);
Copy link
Collaborator

Choose a reason for hiding this comment

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

여태 useState + 토글 함수를 따로 만들어서 사용했는데 해당 훅을 사용하면 함수를 따로 만들 필요가 없어서 간편하네요. 😲

if (quizIntroRef.current) {
scrollToElement(quizIntroRef.current, { behavior: 'smooth' });
}
};

return (
<S.IntroWrapper>
<title>코코-자바스크립트 학습 사이트</title>
Copy link
Collaborator

Choose a reason for hiding this comment

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

갑자기 좀 고민되는 게 해당 title 태그 모든 곳에서 동일한 타이틀명으로 두는 게 좋을까요?
아니면 약간 다르게 주는 게 좋을까요? (예시: 코코 - 학습, 코코 - 상점)

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
Collaborator

Choose a reason for hiding this comment

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

넵 저도 찬성입니다!

Comment on lines 389 to 392
export const MEMBER_DETAILS: Record<
string,
{ team: string; description: string; sns: { icon: string; url: string }[] }
> = {
Copy link
Collaborator

@ssi02014 ssi02014 Feb 26, 2025

Choose a reason for hiding this comment

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

상수는 as const 정의해서 사용하는게 어떨까요?
key와 관련된 문제라면 modern-kit objectKeys와 같은 모듈을 사용하면 웬만한 문제는 해결이 가능합니다

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
Collaborator

Choose a reason for hiding this comment

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

@rhehfl 상수와 같이 형식이 정해져있는 값들은 타입이 오히려 더 디테일하게 다뤄지는게 맞다고 생각해요 😄

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

맞는 것 같네요👍👍😊

Comment on lines 16 to 20
const handleSetMember: (value: string) => void = value => {
if (!COKO_TEAM_INFO.some(team => team.label === value)) {
setMember(value);
}
};
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
const handleSetMember: (value: string) => void = value => {
if (!COKO_TEAM_INFO.some(team => team.label === value)) {
setMember(value);
}
};
const handleSetMember = (value: string) => {
if (!COKO_TEAM_INFO.some(team => team.label === value)) {
setMember(value);
}
};

함수 자체 타입 정의는 안해도 될 것 같습니다 :)

@rhehfl rhehfl merged commit 4d1c6cf into develop Feb 27, 2025
@rhehfl rhehfl deleted the issue/#177/creators_page branch February 27, 2025 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature 기능 개발 🎨 Publish 마크업 & 스타일링
Projects
None yet
Development

Successfully merging this pull request may close these issues.

creators page
3 participants