Created
April 7, 2019 17:24
PageHeading.js
This file contains hidden or 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'; | |
export const PageHeading = styled.h1` | |
background-color: ${props => props.variant === 'secondary' ? '#508aff' : '#282c34'}; | |
min-height: 10vh; | |
display: flex; | |
flex-direction: column; | |
align-items: center; | |
justify-content: center; | |
font-size: calc(10px + 2vmin); | |
color: white; | |
`; | |
export const LargePageHeading = styled(PageHeading)` | |
min-height: 50vh; | |
`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment