Skip to content

[♻️ Refactor/146] 메인페이지 개선 작업 #314

Merged
aahreum merged 6 commits intomainfrom
feature/146/main-refactor
Dec 2, 2025
Merged

[♻️ Refactor/146] 메인페이지 개선 작업 #314
aahreum merged 6 commits intomainfrom
feature/146/main-refactor

Conversation

@aahreum
Copy link
Member

@aahreum aahreum commented Dec 2, 2025

✅ PR 체크리스트

1. 코드 & 기능

  • 변수/함수 이름 이해 가능한지
  • 기능 정상 동작 & 콘솔 에러 없음

2. UI

  • UI 동작 및 레이아웃 확인

3. 컨벤션

  • 팀 컨벤션에 맞게 함수 이름을 정의했는지

🔗 이슈 번호

✨ 작업한 내용

  • 메인페이지 개선 작업 진행했습니다! (레이아웃 시프트 개선)
  • 시연영상도 푸터에 적용했습니다!

💁 리뷰 요청 / 코멘트

💡 참고사항

Summary by CodeRabbit

릴리스 노트

  • UI 개선

    • 영상 콘텐츠 링크를 특정 비디오로 업데이트
    • 홈페이지 이미지 레이아웃 개선 — 중앙 정렬, 너비 제한 및 모서리 둥근 처리
  • Style

    • 모든 글꼴 가중치에 font-display: swap 적용으로 렌더링 일관성 및 성능 향상
  • Chores

    • 불필요한 주석 정리 및 코드 주석 제거

✏️ Tip: You can customize this high-level summary in your review settings.

@aahreum aahreum requested review from jung518 and yujin-fe December 2, 2025 12:34
@aahreum aahreum self-assigned this Dec 2, 2025
@aahreum aahreum added the ♻️ Refactor 코드 리팩토링 label Dec 2, 2025
@coderabbitai
Copy link

coderabbitai bot commented Dec 2, 2025

Walkthrough

홈 페이지 UI 관련 소소한 변경들이 적용되었습니다: 푸터의 YouTube 링크가 특정 동영상으로 변경되고, 히어로 섹션 이미지가 제약된 중앙 컨테이너로 래핑되었으며, 폰트 선언에 font-display: swap이 일관되게 추가되었습니다. 또한 Home 컴포넌트의 내부 TODO 주석이 제거되었습니다.

Changes

Cohort / File(s) 변경 사항
홈 컴포넌트 정리
src/pages/Home.tsx
로그인 기반 리다이렉트 관련 TODO 주석 블록 제거
홈 푸터 업데이트
src/components/home/HomeFooter.tsx
YouTube 링크를 제네릭 URL에서 특정 동영상(https://www.youtube.com/watch?v=6mZkO7UfjLE)으로 변경, 선행 TODO 주석 제거
히어로 섹션 레이아웃 개선
src/components/home/HomeHeroSection.tsx
기존 전폭 이미지 래핑을 중앙 정렬된 제약 컨테이너(max-w-[722px])로 변경; overflow-hidden, 둥근 모서리 및 명시적 width/height/object-fit 스타일 추가
폰트 렌더링 최적화
src/styles/base/fonts.css
Medium, Semibold, Bold @font-face 선언에 font-display: swap 추가 (Regular는 이미 적용됨)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • 추가 검토 권장 항목:
    • src/components/home/HomeHeroSection.tsx 변경이 디자인 가이드(정렬/크기)와 일치하는지 시각 검증
    • HomeFooter.tsx의 링크 변경이 의도된 대상(비디오)인지 확인

Possibly related PRs

Suggested reviewers

  • hjiasdq
  • jung518
  • yujin-fe

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed 제목은 리팩토링 작업의 주요 내용인 '메인페이지 개선'을 명확하게 표현하며, 이슈 번호 #146과 함께 규정된 형식을 따르고 있습니다.
Description check ✅ Passed PR 설명은 레포지토리 템플릿의 주요 섹션(체크리스트, 이슈 번호, 작업 내용)을 포함하고 있으며, 완료된 작업과 적용 사항을 명확히 제시하고 있습니다.
Linked Issues check ✅ Passed PR의 변경사항들이 이슈 #146의 목표를 충족합니다: HomeHeroSection의 레이아웃 시프트 개선 [#146], fonts.css에 font-display 추가 [#146], 그리고 FooterVideoLink 추가로 데모 영상 적용 [#146].
Out of Scope Changes check ✅ Passed 모든 변경사항이 이슈 #146의 범위 내에 있습니다: 레이아웃 시프트 개선, 폰트 렌더링 개선, 데모 영상 추가, 그리고 관련 TODO 주석 제거.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/146/main-refactor

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai bot requested a review from hjiasdq December 2, 2025 12:35
@github-actions
Copy link

github-actions bot commented Dec 2, 2025

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
src/components/home/HomeHeroSection.tsx (1)

9-19: 히어로 이미지 래핑 구조는 좋고, alt/패딩만 한 번 점검 부탁드립니다

  • width/height를 명시하고 제한된 max-w 컨테이너 안에 이미지를 넣은 구조는 레이아웃 시프트(CLS) 줄이는 데 잘 맞는 변경 같습니다.
  • 다만 alt=''로 완전히 장식용 처리되어 있어서, 이 이미지가 실제로 정보 전달용(예: 서비스 화면 예시)이라면 짧은 설명 텍스트를 넣는 방향도 검토해 주세요. 순수 장식이면 현재 값이 맞습니다.
  • section과 내부 래퍼 div 모두 px-[40px]가 들어가서 가로 여백이 2배가 되는데, 의도된 디자인이 아니라면 내부 div 쪽 패딩은 제거해도 될 것 같습니다.

예시:

-      <div className='flex w-full justify-center px-[40px]'>
+      <div className='flex w-full justify-center'>
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7996b7b and 76e1cfd.

📒 Files selected for processing (4)
  • src/components/home/HomeFooter.tsx (1 hunks)
  • src/components/home/HomeHeroSection.tsx (1 hunks)
  • src/pages/Home.tsx (0 hunks)
  • src/styles/base/fonts.css (3 hunks)
💤 Files with no reviewable changes (1)
  • src/pages/Home.tsx
🧰 Additional context used
📓 Path-based instructions (1)
**/*.tsx

⚙️ CodeRabbit configuration file

**/*.tsx: reviews:
instructions: |
우리 팀은 다음의 코드 스타일 가이드를 따릅니다:

[기본 규칙]
- 변수는 const 우선 사용
- 파일명은 PascalCase로 작성
- 컴포넌트는 default export를 사용
- 파일명과 컴포넌트명은 반드시 일치 (PascalCase)
- 불필요한 props는 전달하지 않기
- UI 관련 상태는 명확한 이름 사용 (isOpen, isLoading 등)

[함수 네이밍 규칙]
- 모든 함수는 **동사 + 목적어**
- UI 이벤트 핸들러는 handle* 사용 (handleClick, handleToggle 등)
- 내부 로직은 calculate / convert / format 등 의미 기반 네이밍 사용

[디렉토리 & 파일 구조]
- 디렉토리는 kebab-case
- 컴포넌트 파일은 PascalCase
- assets는 index 기반 export (Icons, Images, Logos 등)
- import 시 그룹 단위 import 사용

[상수 / 환경 변수]
- SNAKE_CASE 사용
- 예: PAGE_SIZE, API_URL

[함수 선언 규칙]
- 컴포넌트는 선언식 function Component() 형태
- 컴포넌트 내부의 로직 함수는 화살표 함수 사용
- 유틸성 컴포넌트가 아니면 default export

[주석 & 문서화]
- TODO 주석 사용 (미완성 코드 표시)
- TSDoc을 컴포넌트 단위로 활용
- 예시를 포함한 간단한 설명 추가

Files:

  • src/components/home/HomeFooter.tsx
  • src/components/home/HomeHeroSection.tsx
🔇 Additional comments (2)
src/components/home/HomeFooter.tsx (1)

28-34: 푸터 YouTube 링크 변경 의도에 잘 맞습니다

기존 루트 URL에서 시연 영상 개별 URL로 변경된 부분은 의도와 맞고, aria-label도 이미 잘 지정되어 있어 접근성/UX 측면에서 추가 이슈 없어 보입니다.

src/styles/base/fonts.css (1)

13-36: font-display: swap 추가로 폰트 로딩 전략이 일관돼서 좋습니다

Medium / Semibold / Bold에도 font-display: swap을 맞춰줘서 초기 로딩 시 FOUT/레이아웃 흔들림을 줄이는 데 도움이 될 것 같습니다. 메인 페이지 개선 목적과도 잘 맞는 변경입니다.

@github-actions
Copy link

github-actions bot commented Dec 2, 2025

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 76e1cfd and c27c395.

📒 Files selected for processing (1)
  • src/components/home/HomeHeroSection.tsx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.tsx

⚙️ CodeRabbit configuration file

**/*.tsx: reviews:
instructions: |
우리 팀은 다음의 코드 스타일 가이드를 따릅니다:

[기본 규칙]
- 변수는 const 우선 사용
- 파일명은 PascalCase로 작성
- 컴포넌트는 default export를 사용
- 파일명과 컴포넌트명은 반드시 일치 (PascalCase)
- 불필요한 props는 전달하지 않기
- UI 관련 상태는 명확한 이름 사용 (isOpen, isLoading 등)

[함수 네이밍 규칙]
- 모든 함수는 **동사 + 목적어**
- UI 이벤트 핸들러는 handle* 사용 (handleClick, handleToggle 등)
- 내부 로직은 calculate / convert / format 등 의미 기반 네이밍 사용

[디렉토리 & 파일 구조]
- 디렉토리는 kebab-case
- 컴포넌트 파일은 PascalCase
- assets는 index 기반 export (Icons, Images, Logos 등)
- import 시 그룹 단위 import 사용

[상수 / 환경 변수]
- SNAKE_CASE 사용
- 예: PAGE_SIZE, API_URL

[함수 선언 규칙]
- 컴포넌트는 선언식 function Component() 형태
- 컴포넌트 내부의 로직 함수는 화살표 함수 사용
- 유틸성 컴포넌트가 아니면 default export

[주석 & 문서화]
- TODO 주석 사용 (미완성 코드 표시)
- TSDoc을 컴포넌트 단위로 활용
- 예시를 포함한 간단한 설명 추가

Files:

  • src/components/home/HomeHeroSection.tsx

@aahreum aahreum merged commit d45446d into main Dec 2, 2025
2 checks passed
@aahreum aahreum deleted the feature/146/main-refactor branch December 2, 2025 12:46
yujin-fe added a commit to yujin-fe/Taskify-Frontend that referenced this pull request Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

♻️ Refactor 코드 리팩토링

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[♻️ Refactor] 메인페이지 개선 작업

1 participant