-
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.
์์ฃผ์ฐ์ด๋ ๋ฒํผ ์ถ๊ฐ
- Loading branch information
Showing
6 changed files
with
51 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import styled, { css } from "styled-components"; | ||
import { lightTheme } from "styles/theme"; | ||
|
||
interface styleProps { | ||
visible?: boolean; | ||
width?: string; | ||
} | ||
|
||
export const Button = styled.button<styleProps>` | ||
min-width:60px; | ||
width:${(props) => props.width}; | ||
height:28px; | ||
text-align:center; | ||
border-radius:15px; | ||
box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.1); | ||
font-family: 'Roboto'; | ||
font-style: normal; | ||
font-weight: 500; | ||
font-size: 12px; | ||
line-height: 14px; | ||
cursor:pointer; | ||
${(props) => | ||
props.visible && | ||
css` | ||
background-color:${lightTheme.blue}; | ||
color:#fff; | ||
` | ||
} | ||
` |
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,13 @@ | ||
import React from "react"; | ||
import IButton from "interface/common/button/IButton"; | ||
import * as Btn from "./Button.style"; | ||
|
||
const Button: React.FC<IButton> = ({ visible, children, width }) => { | ||
return ( | ||
<Btn.Button visible={visible} width={width}> | ||
{children} | ||
</Btn.Button> | ||
); | ||
}; | ||
|
||
export default Button; |
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 @@ | ||
export { default } from "./Button" |
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,4 @@ | ||
export default interface IButton { | ||
visible?: boolean; | ||
width?: string; | ||
} |
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