improve homepage portrait:portrait layout

This commit is contained in:
Chuck Dries 2022-07-13 13:25:11 -07:00
parent e62dfb280d
commit 0e258b2f57
No known key found for this signature in database
GPG Key ID: A00B7AEAE1DC5BE6

View File

@ -127,9 +127,9 @@ const IndexPage = ({
>
<div
className={classnames(
"landscape:flex-auto flex flex-col items-center justify-between",
"landscape:flex-auto flex flex-col items-center",
imageIsLandscape
? "portrait:items-center landscape:w-screen"
? "portrait:items-center landscape:w-screen justify-between"
: "landscape:justify-center portrait:w-screen"
)}
style={{ gridArea: "1/1" }}
@ -141,9 +141,12 @@ const IndexPage = ({
]}
isClient={isClient}
/>
<div
className={classnames("flex flex-col", !imageIsLandscape && "portrait:flex-auto ")}
>
<div
className={classnames(
"rounded-[50px] p-3 md:p-5 flex flex-col items-center z-10 border-r-[20px] border-b-[20px] mb-3 mx-2 md:mb-[-90px]",
"rounded-[50px] p-3 md:p-5 flex flex-col items-center z-10 border-r-[20px] border-b-[20px] mb-3 mx-2",
isClient ? "cool-border-big" : "bg-gray-50",
!imageIsLandscape && "landscape:mr-4" // text is on left side of image, make some room for drop shadow
)}
@ -165,11 +168,10 @@ const IndexPage = ({
Full Stack Software Engineer &amp; Photographer
</h2>
</div>
</div>
<div
className={classnames(
"mt-[100px]",
imageIsLandscape ? "block portrait:hidden" : "block"
imageIsLandscape ? "block portrait:hidden" : ""
)}
>
<ActionButtons