mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-05 10:46:29 +00:00
36 lines
1.5 KiB
TypeScript
36 lines
1.5 KiB
TypeScript
'use client'
|
|
|
|
// import Image from 'next/image';
|
|
import { FC } from 'react';
|
|
// import { LazyLoadImage } from 'react-lazy-load-image-component';
|
|
|
|
type Props = {
|
|
projectList: {
|
|
id: number
|
|
title: string
|
|
img: string
|
|
cover?: boolean
|
|
dark?: boolean
|
|
}[]
|
|
};
|
|
|
|
const TaskComponent: FC<Props> = ({ projectList }) => {
|
|
return (
|
|
<>
|
|
<div className='grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-5 sm:gap-6 mb-20'>
|
|
{projectList.map(item =>
|
|
<div key={item.id} className='border border-border rounded-2xl shadow overflow-hidden cursor-pointer hover:border-primary duration-500'>
|
|
{/* <Image alt={item.title} height={0} width={0} quality={100} src={item.img} className='h-48 w-full object-cover rounded-t-2xl' /> */}
|
|
<img alt={item.title} src={item.img} className='h-48 w-full rounded-t-2xl hover:scale-90 duration-500' />
|
|
<div className='flex flex-col p-6 overflow-hidden space-y-2 rounded-b-2xl bg-white dark:bg-zinc-900 z-10'>
|
|
<h3 className='text-lg font-semibold'>{item.title}</h3>
|
|
<p className='text-muted-foreground line-clamp-2 sm:line-clamp-3'>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's.</p>
|
|
</div>
|
|
</div>
|
|
)}
|
|
</div>
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default TaskComponent; |