This commit is contained in:
hamid zarghami
2025-04-16 10:53:27 +03:30
parent 6ce2dca701
commit 3fe334d3ad
15 changed files with 770 additions and 157 deletions
+4 -3
View File
@@ -19,7 +19,7 @@ const HeroSection: FC = () => {
alt={item.title}
width={1920}
height={1080}
className='w-full rounded-4xl object-cover xl:mt-14 mt-8 xl:min-h-[210px] min-h-[350px]'
className='w-full rounded-4xl object-cover xl:mt-14 mt-8 xl:min-h-[210px] min-h-[350px] max-h-[450px]'
/>
<div className='absolute bottom-0 h-[140px] modalGlass3 w-full p-6 text-white'>
@@ -27,8 +27,9 @@ const HeroSection: FC = () => {
{item.title}
</h4>
<p dangerouslySetInnerHTML={{ __html: item.previewContent }} className="text-xs xl:text-sm mt-4 leading-7 truncate xl:text-clip xl:whitespace-normal">
</p>
<div className="text-xs xl:text-sm mt-4 leading-7 truncate xl:text-clip xl:whitespace-normal">
{item.previewContent.replace(/<\/?[^>]+(>|$)/g, "")}
</div>
</div>
</div>
)