Make Text with Image responsive
This commit is contained in:
@@ -15,14 +15,17 @@ const imageSize = () => {
|
|||||||
}
|
}
|
||||||
---
|
---
|
||||||
|
|
||||||
<div id={`textwithimage-${textWithImage.id}`} class={`flex ${textWithImage.imageSide === "right" ? "flex-row" : "flex-row-reverse"} justify-between items-center py-12 px-12 container mx-auto gap-y-8 gap-x-18`}>
|
<div
|
||||||
<div class="flex flex-col gap-2.5 w-[50%]">
|
id={`textwithimage-${textWithImage.id}`}
|
||||||
|
class={`flex ${textWithImage.imageSide === "right" ? "lg:flex-row flex-col" : "lg:flex-row-reverse flex-col"} justify-between items-center py-12 px-12 lg:container mx-auto gap-y-8 gap-x-18`}
|
||||||
|
>
|
||||||
|
<div class="flex flex-col gap-2.5 lg:w-[50%] w-full">
|
||||||
<h2 class="text-5xl font-bold">{textWithImage.title}</h2>
|
<h2 class="text-5xl font-bold">{textWithImage.title}</h2>
|
||||||
{ textWithImage.text !== null && (
|
{ textWithImage.text !== null && (
|
||||||
<div set:html={markdownToHtml(textWithImage.text)}></div>
|
<div set:html={markdownToHtml(textWithImage.text)}></div>
|
||||||
) }
|
) }
|
||||||
</div>
|
</div>
|
||||||
<div class="w-[50%]">
|
<div class="lg:w-[50%] w-full">
|
||||||
<Image
|
<Image
|
||||||
src={textWithImage.image.url}
|
src={textWithImage.image.url}
|
||||||
width={textWithImage.image.width}
|
width={textWithImage.image.width}
|
||||||
|
|||||||
Reference in New Issue
Block a user