From f7f2577b9021c0b1eabaf88708209d22be778fff Mon Sep 17 00:00:00 2001 From: Chuck Dries Date: Mon, 21 Jun 2021 14:29:30 -0700 Subject: [PATCH] Improve SSR layout --- src/pages/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/index.js b/src/pages/index.js index ae320e3..25c1cab 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -92,14 +92,14 @@ const IndexPage = ({ data: { allFile: { edges } } }) => { {/* WIP: ipad portrait hits md breakpoint, looks bad */}
1 + className={classnames('font-serif hero', ar > 1 || !isClient ? 'landscape:grid portrait:flex portrait:flex-col' : 'portrait:grid landscape:flex landscape:flex-row-reverse')} > {isClient ? 1 ? 'landscape:h-screen portrait:h-two-thirds-vw' : 'h-screen portrait:w-full landscape:w-1/2', + ar > 1 || !isClient ? 'landscape:h-screen portrait:h-two-thirds-vw' : 'h-screen portrait:w-full landscape:w-1/2', )} image={getImage(image)} loading="eager" @@ -107,7 +107,7 @@ const IndexPage = ({ data: { allFile: { edges } } }) => { gridArea: '1/1', }} /> // 67vw = 1/1.49253731 = 1/aspect ratio of my camera lol - :
} + :
}