-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from JangAyeon/feat/modal-auth
Feat/modal-auth: 로그인/회원가입 상황에 따른 안내 모달
- Loading branch information
Showing
29 changed files
with
639 additions
and
109 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import styled from "@emotion/styled" | ||
|
||
import Text from "@/components/atoms/typo/Text" | ||
|
||
interface IFormButton { | ||
height: number | ||
width: number | ||
text: string | ||
type?: "submit" | "button" | ||
onClick?: () => void | ||
} | ||
|
||
const FormButton = ({ | ||
height, | ||
width, | ||
text, | ||
type = "submit", | ||
onClick, | ||
}: IFormButton) => { | ||
return ( | ||
<Button width={width} height={height} type={type} onClick={onClick}> | ||
<Text weight="bold" size={1.6} color="--color-yellow-01" text={text} /> | ||
</Button> | ||
) | ||
} | ||
|
||
export default FormButton | ||
|
||
type FormButtonStyle = Pick<IFormButton, "height" | "width"> | ||
|
||
const Button = styled.button<FormButtonStyle>` | ||
width: ${({ width }) => `${width}rem`}; | ||
height: ${({ height }) => `${height}rem`}; | ||
color: var(--color-yellow-01); | ||
background-color: var(--color-green-04); | ||
border-radius: 0 1.5rem 1.5rem 1.5rem; | ||
` |
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
Oops, something went wrong.