Skip to content

design: 로그인 모달 글씨 크기 변경#163

Merged
Yejiin21 merged 3 commits intodevelopfrom
design/#162/login-modal-css
Jun 2, 2025
Merged

design: 로그인 모달 글씨 크기 변경#163
Yejiin21 merged 3 commits intodevelopfrom
design/#162/login-modal-css

Conversation

@Yejiin21
Copy link
Copy Markdown
Contributor

@Yejiin21 Yejiin21 commented Jun 2, 2025

Summary by CodeRabbit

  • 신규 기능

    • 파일 업로드 시 허용되는 최대 파일 크기가 500kB에서 1MB로 상향되었습니다.
  • 스타일

    • 로그인 모달의 제목과 버튼에 반응형 폰트 크기 및 레이아웃이 적용되어 다양한 화면 크기에서 더 나은 가독성을 제공합니다.
    • Tailwind에 19px, 20px, 21px, 23px, 24px 폰트 크기가 추가되었습니다.
  • 기타

    • 페이지 타이틀과 파비콘이 변경되었습니다.

@Yejiin21 Yejiin21 requested a review from m3k0813 June 2, 2025 14:42
@Yejiin21 Yejiin21 self-assigned this Jun 2, 2025
@Yejiin21 Yejiin21 added 🪄 Refactoring 코드 리팩토링 💖 Style 디자인 수정 labels Jun 2, 2025
@Yejiin21 Yejiin21 linked an issue Jun 2, 2025 that may be closed by this pull request
2 tasks
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Jun 2, 2025

Walkthrough

이 변경사항은 파일 업로드 최대 용량을 500KB에서 1MB로 상향하고, 이에 맞춰 UI 안내문구와 파일 유효성 검사 로직을 수정했습니다. 또한, 로그인 모달의 폰트 및 레이아웃이 반응형으로 조정되었고, Tailwind CSS에 새로운 폰트 크기가 추가되었습니다. 파비콘 및 페이지 타이틀도 변경되었습니다.

Changes

파일/경로 변경 요약
index.html 파비콘 경로를 /assets/MainLogo.svg로, 타이틀을 "같이가요"로 변경
src/features/event/ui/FileUpload.tsx 업로드 허용 파일 크기 안내를 "500kB"에서 "1MB"로 수정
src/shared/hooks/useImageUpload.ts 파일 크기 유효성 검사 기준을 500KB→1MB로 상향, 알림 메시지도 1MB로 수정
src/widgets/main/ui/LoginModal.tsx 헤더 폰트 및 레이아웃을 반응형으로 조정, 버튼 컨테이너 간격 및 높이 조정, 불필요한 className="" 제거
tailwind.config.js 19px, 20px, 21px, 23px, 24px 폰트 크기 추가

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant FileUploadUI
    participant useImageUpload

    User->>FileUploadUI: 파일 선택
    FileUploadUI->>useImageUpload: validateFile(file)
    useImageUpload->>FileUploadUI: 파일 크기 1MB 이하 여부 반환
    FileUploadUI->>User: (1MB 초과 시) 알림 표시
Loading

Possibly related PRs

  • fix: 기능/CSS 에러 수정 및 개선 #143: 파일 업로드 관련 동일 컴포넌트(FileUpload.tsx, useImageUpload.ts)를 수정하며, 파일 업로드 로직의 다른 측면(기본 이미지 사용)을 다루는 PR입니다.

Poem

🐰
파일 용량이 커졌어요, 1MB까지 OK!
로그인 창도 반응형, 폰트도 예쁘게.
파비콘 반짝, 타이틀도 새로워,
토끼는 오늘도 코드를 사랑해요!
🥕✨

✨ Finishing Touches
  • 📝 Generate Docstrings

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Copy Markdown
Member

@m3k0813 m3k0813 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
Copy Markdown

github-actions bot commented Jun 2, 2025

Copy link
Copy Markdown

@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 (3)
src/shared/hooks/useImageUpload.ts (1)

27-31: 제한 용량 단위 일관성 제안
현재 1000 * 1024 바이트를 1MB로 간주하고 있으나, 1MB는 명확히 1024 * 1024 바이트입니다. 상수로 분리하여 사용하거나 계산식을 1024 * 1024 로 변경해 보세요.

- if (file.size > 1000 * 1024) {
-   alert('파일 크기는 1MB를 초과할 수 없습니다.');
+ const MAX_FILE_SIZE = 1024 * 1024; // 1MB
+ if (file.size > MAX_FILE_SIZE) {
+   alert('파일 크기는 1MB를 초과할 수 없습니다.');
src/features/event/ui/FileUpload.tsx (1)

33-33: UI 안내문구 확장자 명시 제안
현재 메시지에 jpeg, png만 표기되어 있지만, .jpg 확장자도 업로드 가능합니다. 사용자 혼동을 줄이기 위해 jpg, jpeg, png로 안내 문구를 확장하는 것을 고려해보세요.

- <h2 className="text-placeholderText text-xs md:text-sm">1MB 이하의 jpeg, png 파일만 등록할 수 있습니다.</h2>
+ <h2 className="text-placeholderText text-xs md:text-sm">1MB 이하의 jpg, jpeg, png 파일만 등록할 수 있습니다.</h2>
src/widgets/main/ui/LoginModal.tsx (1)

15-17: 함수명 오타 수정 제안
gooleLogingoogleLogin 으로 수정하면 가독성이 높아집니다.

- const gooleLogin = () => {
+ const googleLogin = () => {
    window.location.href = `${import.meta.env.VITE_API_BASE_URL}/oauth2/authorization/google`;
  };
...
- onClick={gooleLogin}
+ onClick={googleLogin}
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7f1213d and 9623dc7.

⛔ Files ignored due to path filters (1)
  • public/assets/MainLogo.svg is excluded by !**/*.svg
📒 Files selected for processing (5)
  • index.html (1 hunks)
  • src/features/event/ui/FileUpload.tsx (1 hunks)
  • src/shared/hooks/useImageUpload.ts (1 hunks)
  • src/widgets/main/ui/LoginModal.tsx (1 hunks)
  • tailwind.config.js (1 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
src/widgets/main/ui/LoginModal.tsx (1)
design-system/ui/buttons/HorizontalCardButton.tsx (1)
  • HorizontalCardButton (12-40)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: storybook
🔇 Additional comments (4)
src/shared/hooks/useImageUpload.ts (1)

28-30: 파일 크기 제한 상향 및 안내 문구 일치 확인
변경된 파일 크기 제한(1MB)과 알림 메시지가 일치합니다.

tailwind.config.js (1)

54-60: 새로운 폰트 크기 확장 확인
text-19, text-20, text-21, text-23, text-24 클래스가 tailwind 빌드 후 정상적으로 생성되는지 확인해주세요.

src/widgets/main/ui/LoginModal.tsx (1)

29-30: 반응형 폰트 크기 적용 확인
text-21 md:text-26text-18 md:text-21이 Tailwind 설정과 일치합니다. 모바일(sm)/데스크탑(md) 뷰에서 예상대로 적용되는지 확인해 보세요.

Also applies to: 32-32

index.html (1)

5-7:

Details

✅ Verification successful

파비콘 및 타이틀 존재 여부 확인
/assets/MainLogo.svgpublic/assets에 있는지, <title>이 의도한 대로 출력되는지 검증해주세요.


🏁 Script executed:

#!/bin/bash
# public/assets/MainLogo.svg 존재 확인
if [ ! -f public/assets/MainLogo.svg ]; then
  echo "favicon 파일이 존재하지 않습니다!"
  exit 1
else
  echo "favicon 파일 확인 완료."
fi

Length of output: 88


아래 스크립트로 index.html<title>이 의도대로 설정됐는지 확인해주세요.


🏁 Script executed:

#!/bin/bash
# index.html에서 title 태그 확인
if grep -q '<title>같이가요</title>' index.html; then
  echo "title 확인 완료: $(grep -Eo '<title>.*</title>' index.html)"
else
  echo "title이 의도한 대로 설정되어 있지 않습니다!"
  exit 1
fi

Length of output: 160


파비콘 및 타이틀 확인 완료

  • public/assets/MainLogo.svg가 정상적으로 존재합니다.
  • index.html 5–7행에 <title>같이가요</title>이 의도대로 설정되어 있습니다.

@Yejiin21 Yejiin21 merged commit 79ca2bf into develop Jun 2, 2025
2 checks passed
@Yejiin21 Yejiin21 deleted the design/#162/login-modal-css branch June 2, 2025 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🪄 Refactoring 코드 리팩토링 💖 Style 디자인 수정

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[design] 로그인 모달 글씨 크기 변경

2 participants