-
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.
Separate styles from auth components (#24)
- Loading branch information
Showing
6 changed files
with
104 additions
and
81 deletions.
There are no files selected for viewing
48 changes: 7 additions & 41 deletions
48
src/components/SignIn.js → src/components/SignIn/SignIn.js
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,42 @@ | ||
import styled from "styled-components"; | ||
import Avatar from "@material-ui/core/Avatar"; | ||
import Button from "@material-ui/core/Button"; | ||
import Paper from "@material-ui/core/Paper"; | ||
|
||
const Base = styled.main` | ||
width: auto; | ||
display: block; | ||
margin-left: ${theme => theme.spacing.unit * 3}px; | ||
margin-right: ${theme => theme.spacing.unit * 3}px; | ||
${theme => theme.breakpoints.up("md")} { | ||
width: 400px; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
`; | ||
|
||
const PaperStyled = styled(Paper)` | ||
margin-top: ${theme => theme.spacing.unit * 8}px; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
padding: ${theme => theme.spacing.unit * 2}px ${theme => | ||
theme.spacing.unit * 3}px ${theme => theme.spacing.unit * 3}px; | ||
}} | ||
`; | ||
|
||
const AvatarStyled = styled(Avatar)` | ||
margin: ${theme => theme.spacing.unit}px; | ||
background-color: ${theme => theme.palette.secondary.main}; | ||
`; | ||
|
||
const Form = styled.form` | ||
width: 100%; | ||
margin-top: ${theme => theme.spacing.unit}px; | ||
`; | ||
|
||
const SubmitButtonStyled = styled(Button)` | ||
margin-top: ${theme => theme.spacing.unit * 3}px; | ||
`; | ||
|
||
export { Base, PaperStyled, AvatarStyled, Form, SubmitButtonStyled }; |
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,3 @@ | ||
import SignIn from "./SignIn"; | ||
|
||
export default SignIn; |
47 changes: 7 additions & 40 deletions
47
src/components/SignUp.js → src/components/SignUp/SignUp.js
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,42 @@ | ||
import styled from "styled-components"; | ||
import Avatar from "@material-ui/core/Avatar"; | ||
import Button from "@material-ui/core/Button"; | ||
import Paper from "@material-ui/core/Paper"; | ||
|
||
const Base = styled.main` | ||
width: auto; | ||
display: block; | ||
margin-left: ${theme => theme.spacing.unit * 3}px; | ||
margin-right: ${theme => theme.spacing.unit * 3}px; | ||
${theme => theme.breakpoints.up("md")} { | ||
width: 400px; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
`; | ||
|
||
const PaperStyled = styled(Paper)` | ||
margin-top: ${theme => theme.spacing.unit * 8}px; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
padding: ${theme => theme.spacing.unit * 2}px ${theme => | ||
theme.spacing.unit * 3}px ${theme => theme.spacing.unit * 3}px; | ||
}} | ||
`; | ||
|
||
const AvatarStyled = styled(Avatar)` | ||
margin: ${theme => theme.spacing.unit}px; | ||
background-color: ${theme => theme.palette.secondary.main}; | ||
`; | ||
|
||
const Form = styled.form` | ||
width: 100%; | ||
margin-top: ${theme => theme.spacing.unit}px; | ||
`; | ||
|
||
const SubmitButtonStyled = styled(Button)` | ||
margin-top: ${theme => theme.spacing.unit * 3}px; | ||
`; | ||
|
||
export { Base, PaperStyled, AvatarStyled, Form, SubmitButtonStyled }; |
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,3 @@ | ||
import SignUp from "./SignUp"; | ||
|
||
export default SignUp; |