-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: 로그인 페이지 ui #24
Changes from all commits
9207d07
4ae60a3
094a3ed
f157f8a
b2c2c1c
5a19a28
59c684d
559f19f
34d2435
fc81e77
3b9c667
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { SvgProps } from './nav/SettingIcon'; | ||
|
||
export const YoutubeIcon = ({ className, ...props }: SvgProps) => { | ||
return ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="24" | ||
height="24" | ||
viewBox="0 0 24 24" | ||
fill="none" | ||
className={className} | ||
{...props} | ||
> | ||
<path | ||
fillRule="evenodd" | ||
clipRule="evenodd" | ||
d="M20.3177 4.99222C21.2336 5.23717 21.9578 5.96137 22.2027 6.87727C22.65 8.53867 22.65 11.9999 22.65 11.9999C22.65 11.9999 22.65 15.4612 22.2027 17.1226C21.9578 18.0385 21.2336 18.7627 20.3177 19.0076C18.6563 19.4549 12 19.4549 12 19.4549C12 19.4549 5.34376 19.4549 3.68236 19.0076C2.76646 18.7627 2.04226 18.0385 1.79731 17.1226C1.35001 15.4612 1.35001 11.9999 1.35001 11.9999C1.35001 11.9999 1.35001 8.53867 1.79731 6.87727C2.04226 5.96137 2.76646 5.23717 3.68236 4.99222C5.34376 4.54492 12 4.54492 12 4.54492C12 4.54492 18.6563 4.54492 20.3177 4.99222ZM9.87006 14.3292C9.87006 14.7141 10.2866 14.9546 10.6199 14.7623L14.6574 12.433C14.9909 12.2406 14.9909 11.7593 14.6574 11.5668L10.6199 9.23754C10.2866 9.04524 9.87006 9.28581 9.87006 9.67064V14.3292Z" | ||
fill="white" | ||
/> | ||
</svg> | ||
); | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import channelLogin from '@/assets/login/channel_login.json'; | ||
import { YoutubeIcon } from '@/assets/svg/YoutubeIcon'; | ||
import { Spacing, Text } from '@/shared/ui'; | ||
import LottieAnimation from '@/shared/ui/components/AnimationLottie'; | ||
|
||
export default function Login() { | ||
return ( | ||
<main className="flex flex-col px-5 pt-5 pb-10 bg-line min-h-[812px]"> | ||
<section className="text-center"> | ||
<Text | ||
as="title" | ||
title="정확한 분석을 위해" | ||
className="text-[24px] font-extrabold" | ||
/> | ||
<Text | ||
as="title" | ||
title="SNS 계정 연동이 필요해요." | ||
className="text-[24px] font-extrabold" | ||
/> | ||
</section> | ||
<Spacing size="lsmall" /> | ||
<LottieAnimation | ||
animationData={channelLogin} | ||
className="rounded-xl overflow-hidden" | ||
/> | ||
<Spacing className="h-[76px]" /> | ||
<div className="flex items-center bg-red1 px-[26px] py-3 rounded-[26px]"> | ||
<YoutubeIcon /> | ||
<button className="text-white text-center w-full"> | ||
Youtube 채널 가지고 오기 | ||
</button> | ||
</div> | ||
<Spacing className="h-[10px]" /> | ||
<Text | ||
as="description" | ||
title="시작함으로써 이용약관 및 개인정보 수집 및 이용에 동의하게 됩니다." | ||
className="text-center text-gray5 px-[26px] text-[11px]" | ||
/> | ||
</main> | ||
); | ||
} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { useCallback } from 'react'; | ||
import { useNavigate } from 'react-router'; | ||
|
||
const routeMap = { | ||
const _routeMap = { | ||
home: '/', | ||
login: '/login', | ||
setting: '/setting', | ||
Comment on lines
-4
to
7
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 오 혹시 이름은 이렇게 변경하신 이유는 뭘까용? |
||
|
@@ -17,7 +17,7 @@ const routeMap = { | |
} as const; | ||
|
||
export interface RouteInfo { | ||
location: (typeof routeMap)[keyof typeof routeMap] | 'back'; | ||
location: (typeof _routeMap)[keyof typeof _routeMap] | 'back'; | ||
} | ||
|
||
export const useMoveLocation = (location: RouteInfo['location']) => { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,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)} />; | ||
} | ||
Comment on lines
+1
to
18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 고정 값을 넣으면 다른 화면 크기에 따라 responsive 하게 바뀔 수 있나용? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. responsive하게 만들기 위해서는 gap으로 조정해서 하는게 젤 좋습니다! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
color를 없애면 해당 아이콘의 색을 바꿀수 있는 방법이 있을까요? props를 fill에 적용시킬 수 있는 방법이 있을까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오 좋습니다! 속성 추가해서 넣어주었습니다.
사용하는 밖에서 선언하시면 적용 가능합니다.