-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 로그인, 회원가입 react-hook-form으로 변경
- Loading branch information
Showing
8 changed files
with
568 additions
and
221 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,42 @@ | ||
import styled from 'styled-components'; | ||
import { InputProps } from './Input'; | ||
|
||
const inputSize = { | ||
sm: '28', | ||
md: '40', | ||
lg: '50', | ||
}; | ||
|
||
const InputModal = styled.input<InputProps>` | ||
display: flex; | ||
width: ${({ size }) => inputSize[size]}rem; | ||
padding: 1.8rem 1.5rem; | ||
justify-content: center; | ||
align-items: center; | ||
border-radius: 0.8rem; | ||
border: 1px solid | ||
var(${({ $error }) => ($error ? '--ErrorMessage' : '--Linkbrary-gray20')}); | ||
background: var(--Section-white); | ||
font-size: 1.6rem; | ||
export const InputModal = styled.div<{ | ||
size: 'sm' | 'md' | 'lg'; | ||
$error: boolean; | ||
}>` | ||
input { | ||
display: flex; | ||
width: ${({ size }) => inputSize[size]}rem; | ||
padding: 1.8rem 1.5rem; | ||
justify-content: center; | ||
align-items: center; | ||
border: 0.1rem solid | ||
var(${({ $error }) => ($error ? '--ErrorMessage' : '--Linkbrary-gray20')}); | ||
border-radius: 0.8rem; | ||
background: var(--Section-white); | ||
font-size: 1.6rem; | ||
} | ||
&:focus { | ||
border: 1px solid var(--Primary); | ||
} | ||
`; | ||
|
||
export default InputModal; | ||
export const TextArea = styled.div` | ||
height: 3rem; | ||
width: 100%; | ||
display: flex; | ||
align-items: center; | ||
`; | ||
|
||
export const WarningMessage = styled.p` | ||
color: var(--ErrorMessage); | ||
font-size: 1.4rem; | ||
margin: 0; | ||
`; |
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.