Last active
June 21, 2020 23:51
-
-
Save DennyScott/64816da87979b87f403fe8572bb54ff7 to your computer and use it in GitHub Desktop.
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
import styled from 'styled-components'; | |
const Card = styled.div` | |
box-sizing: border-box; | |
max-width: 410px; | |
margin: 0 auto; | |
padding: 0 2rem; | |
display: flex; | |
flex-direction: column; | |
align-items: center; | |
`; | |
const Form = styled.div` | |
display: flex; | |
flex-direction: column; | |
width: 100%; | |
`; | |
const Input = styled.input` | |
padding: 1rem; | |
border: 1px solid #999; | |
margin-bottom: 1rem; | |
font-size: 0.8rem; | |
`; | |
const Button = styled.button` | |
background: linear-gradient(to bottom, #6371c7, #5563c1); | |
border-color: #3f4eae; | |
border-radius: 3px; | |
padding: 1rem; | |
color: white; | |
font-weight: 700; | |
width: 100%; | |
margin-bottom: 1rem; | |
font-size: 0.8rem; | |
`; | |
const Logo = styled.img` | |
width: 50%; | |
margin-bottom: 1rem; | |
`; | |
const Error = styled.div` | |
background-color: red; | |
`; | |
export { Form, Input, Button, Logo, Card, Error }; |
Minor change from
export { Form, Input, Button, Logo, Card, Erroer };
toexport { Form, Input, Button, Logo, Card, Error };
Lovely tutorial over on Medium!
Thanks for fixing the typo
Minor change from
export { Form, Input, Button, Logo, Card, Erroer };
toexport { Form, Input, Button, Logo, Card, Error };
Lovely tutorial over on Medium!
Thanks @vendantcj, finally getting around to looking at some of these blogs, need a bit of updating! 👏
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Minor change from
export { Form, Input, Button, Logo, Card, Erroer };
toexport { Form, Input, Button, Logo, Card, Error };
Lovely tutorial over on Medium!