use portrait/landscape to flip hero layout
This commit is contained in:
parent
c7f25ca856
commit
4e7fd5cc9d
@ -90,14 +90,15 @@ const IndexPage = ({ data: { allFile: { edges } } }) => {
|
|||||||
style={getVibrantToHelmetSafeBodyStyle(vibrant)}
|
style={getVibrantToHelmetSafeBodyStyle(vibrant)}
|
||||||
/>
|
/>
|
||||||
</Helmet>
|
</Helmet>
|
||||||
|
{/* WIP: ipad portrait hits md breakpoint, looks bad */}
|
||||||
<main
|
<main
|
||||||
className={classnames('font-serif hero', ar > 1 ? 'flex md:grid flex-col' : 'grid md:flex md:flex-row-reverse')}
|
className={classnames('font-serif hero', ar > 1 ? 'landscape:grid portrait:flex portrait:flex-col' : 'portrait:grid landscape:flex landscape:flex-row-reverse')}
|
||||||
>
|
>
|
||||||
{isClient ?
|
{isClient ?
|
||||||
<GatsbyImage
|
<GatsbyImage
|
||||||
alt=""
|
alt=""
|
||||||
className={classnames(
|
className={classnames(
|
||||||
ar > 1 ? 'md:h-screen h-two-thirds-vw' : 'h-screen w-full md:w-1/2',
|
ar > 1 ? 'landscape:h-screen portrait:h-two-thirds-vw' : 'h-screen portrait:w-full landscape:w-1/2',
|
||||||
)}
|
)}
|
||||||
image={getImage(image)}
|
image={getImage(image)}
|
||||||
loading="eager"
|
loading="eager"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user