This commit is contained in:
hamid zarghami
2025-04-17 11:11:44 +03:30
parent 1c314972da
commit 01470f14d6
14 changed files with 67 additions and 44 deletions
+4 -3
View File
@@ -1,5 +1,6 @@
import { Blog } from '@/app/blogs/types/BlogTypes'
import Image from 'next/image'
import Link from 'next/link'
import { FC } from 'react'
interface Props {
@@ -8,7 +9,7 @@ interface Props {
const BlogItem: FC<Props> = ({ item }) => {
return (
<div className='flex-1 w-full min-h-[390px] rounded-4xl overflow-hidden relative'>
<Link href={`/blogs/${item.id}`} className='flex-1 w-full min-h-[390px] rounded-4xl overflow-hidden relative'>
<Image
src={item.imageUrl}
layout='fill'
@@ -25,10 +26,10 @@ const BlogItem: FC<Props> = ({ item }) => {
{item.title}
</h6>
<p className='mt-4 text-sm' dangerouslySetInnerHTML={{ __html: item.previewContent }}>
<p id='blog-preview-content' className='mt-4 text-sm text-white' dangerouslySetInnerHTML={{ __html: item.previewContent }}>
</p>
</div>
</div>
</Link>
)
}
+1 -1
View File
@@ -11,7 +11,7 @@ type Props = {
const ServiceItem: FC<Props> = (props) => {
return (
<Link href={`/products/${props.item.id}`} className='flex-1 bg-white rounded-4xl xl:p-7 p-4'>
<Link href={`/products/${props.item.id}`} className='flex-1 bg-white rounded-4xl xl:p-7 p-4 flex flex-col'>
<div className='flex justify-between'>
<div className='xl:size-[65px] size-[50px] rounded-2xl overflow-hidden'>
<Image src={props.item.icon} className='size-full object-cover' alt={props.item.name} width={65} height={65} />