improve homepage portrait:portrait layout
This commit is contained in:
parent
e62dfb280d
commit
0e258b2f57
@ -127,9 +127,9 @@ const IndexPage = ({
|
|||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className={classnames(
|
className={classnames(
|
||||||
"landscape:flex-auto flex flex-col items-center justify-between",
|
"landscape:flex-auto flex flex-col items-center",
|
||||||
imageIsLandscape
|
imageIsLandscape
|
||||||
? "portrait:items-center landscape:w-screen"
|
? "portrait:items-center landscape:w-screen justify-between"
|
||||||
: "landscape:justify-center portrait:w-screen"
|
: "landscape:justify-center portrait:w-screen"
|
||||||
)}
|
)}
|
||||||
style={{ gridArea: "1/1" }}
|
style={{ gridArea: "1/1" }}
|
||||||
@ -141,9 +141,12 @@ const IndexPage = ({
|
|||||||
]}
|
]}
|
||||||
isClient={isClient}
|
isClient={isClient}
|
||||||
/>
|
/>
|
||||||
|
<div
|
||||||
|
className={classnames("flex flex-col", !imageIsLandscape && "portrait:flex-auto ")}
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
className={classnames(
|
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",
|
isClient ? "cool-border-big" : "bg-gray-50",
|
||||||
!imageIsLandscape && "landscape:mr-4" // text is on left side of image, make some room for drop shadow
|
!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 & Photographer
|
Full Stack Software Engineer & Photographer
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div
|
<div
|
||||||
className={classnames(
|
className={classnames(
|
||||||
"mt-[100px]",
|
imageIsLandscape ? "block portrait:hidden" : ""
|
||||||
imageIsLandscape ? "block portrait:hidden" : "block"
|
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<ActionButtons
|
<ActionButtons
|
||||||
|
Loading…
x
Reference in New Issue
Block a user