Skip to content

fix: 회원가입 페이지, 홈 컨테이너 영역 수정#389

Merged
heesunee merged 3 commits intodevelopfrom
fix/#388/design
Sep 8, 2025
Merged

fix: 회원가입 페이지, 홈 컨테이너 영역 수정#389
heesunee merged 3 commits intodevelopfrom
fix/#388/design

Conversation

@heesunee
Copy link
Contributor

@heesunee heesunee commented Sep 8, 2025

#️⃣ Related Issue

Closes #388

☀️ New-insight

  • signup page내부에 불필요하게 존재하던 div를 없앴습니다.
  • 홈 배너이미지 로딩으로 밀리는 현상이 있어서, 기본 컨테이너 영역을 지정해주었습니다.

Summary by CodeRabbit

  • 스타일

    • 홈 상단 섹션에 최소 높이(9.6rem)를 적용해 상단 영역 레이아웃을 안정화했습니다.
    • 회원가입 단계 화면의 외부 컨테이너와 내부 래퍼의 높이 클래스를 조정해 세로 정렬과 스크롤 동작을 개선했습니다.
  • 리팩터

    • 회원가입 페이지의 래퍼 구조에서 불필요한 중첩을 제거해 레이아웃 일관성과 렌더링 체감 성능을 향상했습니다.

@coderabbitai
Copy link

coderabbitai bot commented Sep 8, 2025

Walkthrough

홈 TopSection의 최소 높이 클래스를 추가하고, 회원가입 페이지의 레이아웃 관련 클래스와 불필요한 내부 래퍼를 제거/조정했습니다. 제어 흐름·이벤트·공개 API에는 변경이 없습니다.

Changes

Cohort / File(s) Summary
홈 TopSection 레이아웃 조정
src/pages/home/components/top-section.tsx
<section>min-h-[9.6rem] 추가로 레이아웃 최소 높이 조정. 로직/프로퍼티 미변경.
회원가입 레이아웃/클래스 수정
src/pages/sign-up/components/signup-step.tsx, src/pages/sign-up/sign-up.tsx
컨테이너 높이 클래스 변경(h-svhh-full), 내부에 h-full 추가. sign-up.tsx에서 내부 flex-1 래퍼 제거해 Funnel을 직접 자식으로 배치. 기능·흐름 미변경.

Sequence Diagram(s)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Assessment against linked issues

Objective Addressed Explanation
회원가입, 홈 디자인 수정합니다. (#388)

Possibly related PRs

Suggested reviewers

  • Dubabbi
  • bongtta
  • yeeeww

Poem

폴짝, 폴짝—클래스 깔끔히 정리했네
높이 한 줌 더 담고, 래퍼는 날려 보네
흐름은 고요히, 디자인만 살며시 바꿨지
토끼는 웃으며 코드에 당근 꽂네 🐇✨

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/#388/design

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@github-actions
Copy link

github-actions bot commented Sep 8, 2025

MATEBALL-STORYBOOK
⚾ Storybook 배포가 완료되었습니다!

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

🧹 Nitpick comments (2)
src/pages/home/components/top-section.tsx (1)

13-13: CLS 완화 의도는 적절. 배너 실제 높이와 브레이크포인트별 일치만 확인해주세요.

min-h로 초기 레이아웃 확보는 좋습니다. 다만 CardBanner의 실제 렌더 높이(텍스트/아이콘 포함)와 9.6rem이 모든 해상도에서 일관되게 맞는지 확인 필요합니다. 필요 시 aspect-ratio/고정 height 토큰화로 상수(9.6rem) 의존도를 줄이는 것도 고려해주세요.

src/pages/sign-up/sign-up.tsx (1)

12-19: 래퍼 제거 이후 높이 전파 확인 필요(h-full 자식들이 실제로 늘어나는지).

상위 컨테이너가 viewport 기준 높이를 보장하지 않으면, 하위의 h-full이 기대대로 동작하지 않을 수 있습니다. iOS 주소창 변동 이슈까지 고려하면 min-h-svh가 안전합니다.

선택 적용안:

-    <div className="h-full flex flex-col bg-gray-white">
+    <div className="min-h-svh flex flex-col bg-gray-white">
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c926199 and 47ecd86.

📒 Files selected for processing (3)
  • src/pages/home/components/top-section.tsx (1 hunks)
  • src/pages/sign-up/components/signup-step.tsx (1 hunks)
  • src/pages/sign-up/sign-up.tsx (1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: heesunee
PR: MATEBALL/MATEBALL-CLIENT#78
File: src/pages/sign-up/utils/age-calculate.ts:1-4
Timestamp: 2025-07-09T09:08:46.371Z
Learning: heesunee는 나이 계산 시 한국식 나이 시스템을 사용하므로, 정확한 생일 기반 계산보다는 출생연도 기준의 간단한 계산 방식을 선호합니다.
📚 Learning: 2025-07-09T18:07:41.693Z
Learnt from: heesunee
PR: MATEBALL/MATEBALL-CLIENT#95
File: src/pages/sign-up/components/nickname-step.tsx:28-30
Timestamp: 2025-07-09T18:07:41.693Z
Learning: heesunee는 src/pages/sign-up/components/nickname-step.tsx의 onSubmit 핸들러 API 호출을 쿼리와 함께 통합해서 처리할 예정이므로, 이 부분에 대해 다시 언급하지 않아야 합니다.

Applied to files:

  • src/pages/sign-up/components/signup-step.tsx
🔇 Additional comments (1)
src/pages/sign-up/components/signup-step.tsx (1)

121-121: flex 누락으로 레이아웃 붕괴 가능(버튼 하단 정렬/간격 미적용).

flex-col, justify-between은 display:flex 전제입니다. 현재 두 컨테이너에 flex가 없어 의도한 세로 배치/공간 분배가 동작하지 않을 수 있습니다.

아래 패치 적용 제안:

-      className="h-full w-full flex-col justify-between gap-[4rem] px-[1.6rem] pt-[4rem] pb-[1.6rem]"
+      className="h-full w-full flex flex-col justify-between gap-[4rem] px-[1.6rem] pt-[4rem] pb-[1.6rem]"
...
-      <div className="h-full w-full flex-col gap-[4rem]">
+      <div className="h-full w-full flex flex-col gap-[4rem]">

Also applies to: 123-123

⛔ Skipped due to learnings
Learnt from: heesunee
PR: MATEBALL/MATEBALL-CLIENT#102
File: src/shared/components/bottom-sheet/bottom-sheet-indicator.tsx:5-5
Timestamp: 2025-07-10T09:58:36.134Z
Learning: MATEBALL-CLIENT 프로젝트의 `src/shared/styles/custom-utilities.css`에서 `.flex-col` 클래스는 이미 `apply flex flex-col;`을 포함하고 있어서 별도로 `flex` 클래스를 추가할 필요가 없습니다. CSS 클래스 관련 제안을 하기 전에 반드시 커스텀 유틸리티 클래스 파일을 먼저 확인해야 합니다.
Learnt from: heesunee
PR: MATEBALL/MATEBALL-CLIENT#77
File: src/shared/components/card/match-card/components/card-header.tsx:56-56
Timestamp: 2025-07-08T13:43:15.684Z
Learning: MATEBALL-CLIENT 프로젝트에서는 `src/shared/styles/custom-utilities.css`에 커스텀 유틸리티 클래스들이 정의되어 있습니다. 특히 `.flex-row` 클래스는 이미 `apply flex flex-row;`를 포함하고 있어서 별도로 `flex` 클래스를 추가할 필요가 없습니다.

</Step>
</Funnel>
</div>
<div className="h-fullflex-col bg-gray-white">
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

클래스명 오타: h-fullflex-col → 공백 누락으로 클래스 인식 실패. 또한 flex 미지정.

공백 누락으로 두 유틸이 모두 무효화됩니다. 또 flex-col이 의미를 가지려면 flex가 필요합니다.

권장 패치:

-    <div className="h-fullflex-col bg-gray-white">
+    <div className="h-full flex flex-col bg-gray-white">
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<div className="h-fullflex-col bg-gray-white">
<div className="h-full flex flex-col bg-gray-white">
🤖 Prompt for AI Agents
In src/pages/sign-up/sign-up.tsx around line 11 the div has a typo in className:
"h-fullflex-col bg-gray-white" — insert a space between h-full and flex-col and
add the missing flex utility so the classes read "h-full flex flex-col
bg-gray-white" to ensure height, flex container and column direction are
applied.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Sep 8, 2025

Deploying mateball-client with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0eefe2d
Status: ✅  Deploy successful!
Preview URL: https://75bbdddb.mateball-client.pages.dev
Branch Preview URL: https://fix--388-design.mateball-client.pages.dev

View logs

@heesunee heesunee merged commit e5ff4e3 into develop Sep 8, 2025
6 of 7 checks passed
@heesunee heesunee deleted the fix/#388/design branch September 8, 2025 06:57
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/pages/sign-up/sign-up.tsx (1)

12-19: Funnel 래퍼 제거 이후 높이 전파 검증 필요 (h-full이 안 먹을 수 있음)

flex-1 래퍼 제거로, 내부 SignupSteph-full이 부모 높이 전파를 못 받으면 스크롤/레이아웃 이슈가 생길 수 있습니다. Funnel이 자체적으로 display:flex/높이를 보장하지 않는다면 아래처럼 min-h-0 flex-1을 부여하는 걸 고려해주세요.

-      <Funnel>
+      <Funnel className="min-h-0 flex-1">

참고: FunnelclassName을 받지 않으면 최소한 상위 컨테이너 또는 Funnel 내부 루트에 동일 속성을 부여해 주세요(대안으로 얇은 래퍼 복원).

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 47ecd86 and 0eefe2d.

📒 Files selected for processing (1)
  • src/pages/sign-up/sign-up.tsx (1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: heesunee
PR: MATEBALL/MATEBALL-CLIENT#78
File: src/pages/sign-up/utils/age-calculate.ts:1-4
Timestamp: 2025-07-09T09:08:46.371Z
Learning: heesunee는 나이 계산 시 한국식 나이 시스템을 사용하므로, 정확한 생일 기반 계산보다는 출생연도 기준의 간단한 계산 방식을 선호합니다.
📚 Learning: 2025-07-10T09:58:36.134Z
Learnt from: heesunee
PR: MATEBALL/MATEBALL-CLIENT#102
File: src/shared/components/bottom-sheet/bottom-sheet-indicator.tsx:5-5
Timestamp: 2025-07-10T09:58:36.134Z
Learning: MATEBALL-CLIENT 프로젝트의 `src/shared/styles/custom-utilities.css`에서 `.flex-col` 클래스는 이미 `apply flex flex-col;`을 포함하고 있어서 별도로 `flex` 클래스를 추가할 필요가 없습니다. CSS 클래스 관련 제안을 하기 전에 반드시 커스텀 유틸리티 클래스 파일을 먼저 확인해야 합니다.

Applied to files:

  • src/pages/sign-up/sign-up.tsx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Cloudflare Pages
🔇 Additional comments (2)
src/pages/sign-up/sign-up.tsx (2)

12-19: 이전 ‘flex’ 누락 코멘트는 현재 기준 OK (팀 커스텀 유틸 반영됨)

컨테이너의 className="h-full flex-col bg-gray-white" 구성은 괜찮습니다. 과거 러닝에 따르면 이 프로젝트의 .flex-colflex를 내장하고 있어(apply flex flex-col) 별도 flex 유틸 추가가 불필요합니다. 저는 이 러닝을 참고했습니다.


12-19: Step name 문자열이 SIGNUP_STEPS와 일치하여 추가 조치 불필요
AGREEMENT, INFORMATION이 src/pages/sign-up/constants/validation.ts의 SIGNUP_STEPS 배열 ['AGREEMENT', 'INFORMATION']와 정확히 일치합니다.

This was referenced Sep 8, 2025
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.

fix: 회원가입, 홈 디자인 수정합니다.

1 participant