-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Design] Mobile ver. - 로그인, 비밀번호 페이지 구현 (#354)
* chore: PC미지원 주석 처리 * fix: Header, Layout min-width 제거 * feat: react-responsive 설치 및 useDevice 훅 추가 * chore: useDevice return 값 수정 * design: Callout 반응형 * fix: Callout 기존 디자인 자잘한 수정 * design: TextBox 반응형 * design: InputLine 반응형 * design: InputButton 반응형 * design: Description 반응형 * design: Timer 반응형 * design: InputTheme success 반응형 * design: Heading(Title) 반응형 * design: SignInPage 반응형 * design: PasswordPage 반응형 * design: Callout white-space 수정
- Loading branch information
Showing
33 changed files
with
399 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 7 additions & 4 deletions
11
src/common/components/Input/components/Description/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
import { TextBoxProps } from '@components/Input/types'; | ||
import { useDevice } from '@hooks/useDevice'; | ||
|
||
import { descriptionVar } from './style.css'; | ||
import { descriptionFontVar, descriptionVar } from './style.css'; | ||
|
||
// TextBox 내부 Input 하단의 부가텍스트 | ||
const Description = ({ children, styleType = 'default' }: Pick<TextBoxProps, 'children' | 'styleType'>) => ( | ||
<div className={descriptionVar[styleType]}>{children}</div> | ||
); | ||
const Description = ({ children, styleType = 'default' }: Pick<TextBoxProps, 'children' | 'styleType'>) => { | ||
const DEVICE_TYPE = useDevice(); | ||
|
||
return <div className={`${descriptionVar[styleType]} ${descriptionFontVar[DEVICE_TYPE]}`}>{children}</div>; | ||
}; | ||
|
||
export default Description; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 22 additions & 3 deletions
25
src/common/components/Input/components/InputButton/style.css.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,26 @@ | ||
import { style } from '@vanilla-extract/css'; | ||
import { style, styleVariants } from '@vanilla-extract/css'; | ||
|
||
export const textWidth = style({ | ||
width: 148, | ||
export const button = style({ | ||
paddingLeft: 0, | ||
paddingRight: 0, | ||
}); | ||
export const buttonVar = styleVariants({ | ||
DESK: [ | ||
button, | ||
{ | ||
width: 148, | ||
}, | ||
], | ||
TAB: [ | ||
button, | ||
{ | ||
width: 116, | ||
}, | ||
], | ||
MOB: [ | ||
button, | ||
{ | ||
width: 99, | ||
}, | ||
], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.