chore: styling for login/signup pages

This commit is contained in:
Kyle Gill
2019-04-03 17:10:24 -06:00
parent 4c41094348
commit 4c485619a9
10 changed files with 203 additions and 91 deletions

View File

@@ -0,0 +1,68 @@
import React from "react"
import { withTheme } from "emotion-theming"
import { Link } from "react-router-dom"
import styled from "@emotion/styled"
import { SIZES } from "../../styles/constants"
export const H1 = styled.h1`
display: block;
font-size: ${SIZES.small};
color: ${props => props.color};
`
export const Input = styled.input`
background-color: ${props => props.colors.headerBackground};
border: none;
border-radius: 5px;
max-height: 40px;
outline: none;
padding: 15px;
font-size: ${SIZES.normal};
&:focus {
box-shadow: 0 0 0 3px ${props => props.colors.bodyBackground},
0 0 0 5px ${props => props.colors.hover};
}
&::placeholder {
color: ${props => props.colors.tertiary};
}
&:valid {
border-color: ${props => props.colors.valid} !important;
}
`
export const Button = styled.button`
display: inline;
background-color: ${props => props.colors.headerBackground};
padding: 12px 50px;
min-height: 45px;
border-radius: 5px;
border: 0px solid;
border-color: ${props => props.colors.quarternary};
color: ${props => props.colors.secondary};
font-size: ${SIZES.normal};
font-weight: 700;
outline: none;
&:hover {
cursor: pointer;
background-color: ${props => props.colors.hover};
}
&:focus {
box-shadow: 0 0 0 3px ${props => props.colors.bodyBackground},
0 0 0 5px ${props => props.colors.hover};
}
`
export const P = styled.p`
color: ${props => props.colors.secondary};
`
export const StyledLink = withTheme(styled(Link)`
text-decoration: none;
border-radius: 12px;
outline: none;
&:focus {
box-shadow: 0 0 0 3px ${props => props.theme.colors.bodyBackground},
0 0 0 5px ${props => props.theme.colors.hover};
}
`)