Skip to content

Instantly share code, notes, and snippets.

@DennyScott
Last active June 21, 2020 23:51
Show Gist options
  • Save DennyScott/64816da87979b87f403fe8572bb54ff7 to your computer and use it in GitHub Desktop.
Save DennyScott/64816da87979b87f403fe8572bb54ff7 to your computer and use it in GitHub Desktop.
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 };
@vedantcj
Copy link

Minor change from export { Form, Input, Button, Logo, Card, Erroer }; to export { Form, Input, Button, Logo, Card, Error };
Lovely tutorial over on Medium!

Copy link

ghost commented Mar 3, 2020

Minor change from export { Form, Input, Button, Logo, Card, Erroer }; to export { Form, Input, Button, Logo, Card, Error };
Lovely tutorial over on Medium!

Thanks for fixing the typo

@DennyScott
Copy link
Author

Minor change from export { Form, Input, Button, Logo, Card, Erroer }; to export { 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