Skip to content

Instantly share code, notes, and snippets.

@LukeMwila
Created May 22, 2019 10:37
Show Gist options
  • Save LukeMwila/4c79a97c0ec09bb782570e5b204b8d22 to your computer and use it in GitHub Desktop.
Save LukeMwila/4c79a97c0ec09bb782570e5b204b8d22 to your computer and use it in GitHub Desktop.
Styled components for React Hooks to-do app exercise
import styled from "styled-components";
export const Wrapper = styled.div`
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
& button {
background: rgba(51, 51, 255, 1) !important;
}
`;
export const ToDoContainer = styled.div`
width: 400px;
`;
export const ToDoItem = styled.div`
text-align: center;
font-weight: bold;
cursor: pointer;
text-decoration: ${(props: { complete?: boolean }) =>
props.complete ? "line-through" : "none"};
`;
export const JokeContainer = styled.div`
padding: 30px;
text-align: center;
`;
export const Header = styled.h4`
text-transform: capitalize;
letter-spacing: 1px;
font-weight: bold;
text-align: center;
`;
export const Input = styled.input`
width: 100%;
border: 1px solid #f2f2f2;
padding: 10px;
margin-bottom: 10px;
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment