Skip to content

Commit

Permalink
limit max-height of hero image
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerhutchings committed Sep 5, 2019
1 parent fdd7011 commit 63a016f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@ import ContentBox from '../../../../shared/components/ContentBox'
const StyledContentBox = styled(ContentBox)`
${props => (props.screenSize !== 'small') && `
border-color: transparent;
max-height: 763px;
`}
`

function Hero (props) {
const { className, screenSize, workflows } = props
const { screenSize, workflows } = props

// Default to `small` layout
let component = (
<Box
className={className}
align='stretch'
background={{
dark: 'dark-1',
light: 'light-1'
Expand All @@ -40,7 +41,7 @@ function Hero (props) {

if (screenSize !== 'small') {
component = (
<Grid className={className} columns={['1.618fr', '1fr']} margin={{ bottom: 'medium' }}>
<Grid columns={['1.618fr', '1fr']} margin={{ bottom: 'medium' }}>
<Background />
<StyledContentBox
gap='medium'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import styled from 'styled-components'

const Img = styled.img`
height: 100%;
min-height: 61.8vh;
object-fit: cover;
object-position: 0 50%;
width: 100%;
Expand Down

0 comments on commit 63a016f

Please sign in to comment.