-
Notifications
You must be signed in to change notification settings - Fork 157
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 #6 from fbaiodias/adding_design_to_component
Adding design to component
- Loading branch information
Showing
6 changed files
with
66 additions
and
37 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 |
---|---|---|
@@ -1,21 +1,32 @@ | ||
import React from 'react' | ||
import styled from 'styled-components' | ||
|
||
const Button = styled.button` | ||
background: ${props => props.backgroundColor}; | ||
color: ${props => props.color}; | ||
border-radius: 100px; | ||
margin: 5px; | ||
width: 54px; | ||
height: 54px; | ||
border-radius: 50%; | ||
width: 44px; | ||
height: 44px; | ||
background: #e55226; | ||
border: 6px solid white; | ||
outline: none; | ||
border: none; | ||
cursor: pointer; | ||
` | ||
|
||
const DivBorder = styled.div` | ||
border: 6px solid rgba(255, 255, 255, 0.4); | ||
height: 44px; | ||
width: 44px; | ||
border-radius: 50%; | ||
` | ||
|
||
Button.defaultProps = { | ||
color: 'black', | ||
backgroundColor: 'white' | ||
} | ||
|
||
export default Button | ||
export default props => ( | ||
<DivBorder> | ||
<Button {...props} /> | ||
</DivBorder> | ||
) |
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,21 +1,32 @@ | ||
import React from 'react' | ||
import styled from 'styled-components' | ||
|
||
const Button = styled.button` | ||
background: ${props => props.backgroundColor}; | ||
color: ${props => props.color}; | ||
border-radius: 6px; | ||
margin: 5px; | ||
width: 54px; | ||
height: 54px; | ||
border-radius: 4px; | ||
width: 44px; | ||
height: 44px; | ||
background: #e55226; | ||
border: 6px solid white; | ||
outline: none; | ||
border: none; | ||
cursor: pointer; | ||
` | ||
|
||
const DivBorder = styled.div` | ||
border: 6px solid rgba(255, 255, 255, 0.4); | ||
height: 44px; | ||
width: 44px; | ||
border-radius: 10px; | ||
` | ||
|
||
Button.defaultProps = { | ||
color: 'black', | ||
backgroundColor: 'white' | ||
} | ||
|
||
export default Button | ||
export default props => ( | ||
<DivBorder> | ||
<Button {...props} /> | ||
</DivBorder> | ||
) |
Large diffs are not rendered by default.
Oops, something went wrong.
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