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

feat: 로그인 페이지 ui #24

Merged
merged 11 commits into from
Feb 8, 2025
Merged

feat: 로그인 페이지 ui #24

merged 11 commits into from
Feb 8, 2025

Conversation

perfumeplaylist
Copy link
Collaborator

@perfumeplaylist perfumeplaylist commented Feb 7, 2025

이슈 번호

작업한 목록을 작성해 주세요

  • lint 에러가 난 파일들 수정
  • 로그인 페이지 구현

스크린샷

2025-02-07.1.41.17.mov

pr 포인트나 궁금한 점을 작성해 주세요

연관된 issue: #undefined

Comment on lines +3 to 6
export const LargeClose = ({ className, ...props }: SvgProps) => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
Copy link
Collaborator

Choose a reason for hiding this comment

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

color를 없애면 해당 아이콘의 색을 바꿀수 있는 방법이 있을까요? props를 fill에 적용시킬 수 있는 방법이 있을까요?

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 -1 to 4
export default function DateFormatter(publishedAt: string): string {
export function DateFormatter(publishedAt: string): string {
return new Intl.DateTimeFormat('ko-KR', {
year: 'numeric',
month: '2-digit',
Copy link
Collaborator

Choose a reason for hiding this comment

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

혹시 shared가 아니라 domain에 넣으신 이유를 알 수 있을까요?
figma를 보면 날짜가 필요한 곳이 popular뿐만이 아닌 것 같아서용

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 10 to 13

useEffect(() => {
setFormedQuestions(isTyped ? answers : `${answers}입니다.`);
}, []);
}, [answers, isTyped]);
Copy link
Collaborator

Choose a reason for hiding this comment

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

의존성을 추가하신 이유가 있을까용?
isTyped와 answers가 동적으로 변하게 쓰실 곳이 있을까요?
isTyped가 의존성 배열에 들어가게 되면 userinfo 페이지는 의도데로 돌아가지 않아서요!

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 -4 to 7
const routeMap = {
const _routeMap = {
home: '/',
login: '/login',
setting: '/setting',
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 +1 to 18
import clsx from 'clsx';

const SIZE = {
larage: '16',
large: 'h-20',
medium: 'h-16',
xlsmall: 'h-12',
lsmall: 'h-10',
xsmall: 'h-8',
} as const;

interface SpacingProps {
size: keyof typeof SIZE;
size?: keyof typeof SIZE;
className?: string;
}

export default function Spacing({ size }: SpacingProps) {
return <div className={`h-${SIZE[size]}`} />;
export default function Spacing({ size = 'medium', className }: SpacingProps) {
return <div className={clsx(SIZE[size], className)} />;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

고정 값을 넣으면 다른 화면 크기에 따라 responsive 하게 바뀔 수 있나용?
전 그게 고민이었는데 만약 가능하다면 정말 좋은 방법 같습니다

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

responsive하게 만들기 위해서는 gap으로 조정해서 하는게 젤 좋습니다!
지금은 일단 이렇게 적용하였습니다

@Inoansta Inoansta merged commit e270386 into main Feb 8, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Login 페이지 제작
2 participants