Skip to content

Commit

Permalink
fix image on right
Browse files Browse the repository at this point in the history
  • Loading branch information
anuejn committed Dec 2, 2023
1 parent d6c9338 commit 4cb8e9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,13 @@ function Block({
<div
className={clsx(
'text-center md:text-left items-center md:items-start flex flex-col flex-grow max-w-sm',
!imageOnRight && 'md:order-last'
)}
>
<h2 className="text-4xl font-semibold mb-6 leading-tight px-8 md:px-0">{heading}</h2>
<p className="text-lg leading-6 mb-6">{children}</p>
</div>
<div className={clsx('flex items-center', imageOnRight && 'md:order-first')}>{image}</div>
<div className={clsx('flex items-center')}>{image}</div>
</div>
);
}

0 comments on commit 4cb8e9d

Please sign in to comment.