refactor: 홈 랜딩 섹션 파일 구조 개선 및 반복 패턴 추상화#68
Merged
Conversation
MintPansy
approved these changes
May 5, 2026
Contributor
MintPansy
left a comment
There was a problem hiding this comment.
고생하셨습니다! 덕분에 작업 파일 정리가 더 수월해진 거 같아요 😊
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 개요
홈 랜딩 페이지의 관련 파일들을
app/(home)/Route Group으로 이동해 응집도를 높이고, 섹션 간 반복되던 코드를 컴포넌트로 추출했습니다.app/(home)/Route Group 도입:app/루트에 흩어져 있던 홈 랜딩 파일 7개를 하나의 폴더로 묶음. URL 변화 없음HomeSectionHeader컴포넌트 추출: Features · HowItWorks · Showcase 3개 섹션에서 동일하게 반복되던 badge + heading + description 마크업을 단일 컴포넌트로 통일PageContainer공용 컴포넌트 추가:mx-auto w-full max-w-[1200px]반복을shared/components/page-container.tsx로 추출Button asChild패턴 적용:buttonVariants()+cn()으로 직접 스타일링하던Link를<Button asChild>로 교체🔗 관련 이슈
🛠️ 변경 사항 (Checklist)
✅ 아래 내용을 한 번 더 점검해 주세요
1. 의도와 가독성 (Naming & Readability)
2. 타입과 논리 (Type Safety & Logic)
any사용을 지양하고, 모든 함수의 반환 타입을 명시했나요?null/undefined), 에러가 발생할 경우를 처리했나요?3. 코드 다이어트 (Clean-up)
console.log나 사용하지 않는import를 모두 지웠나요?4. 지속 가능성 (Sustainability)
README업데이트가 필요한가요?💭 회고 (Optional)