Chaithanya18's picture
Upload 74 files
30eeea4 verified
import { MdOutlineArrowOutward } from "react-icons/md";
import { workItems } from "../data/index";
import Image from "next/image";
export default function Works() {
return (
<section id="works" className="relative flex flex-col w-full h-full bg-black py-20">
<h3 className="text-xl text-white z-50 container pb-5">
Our Works
</h3>
{workItems.map((item) => (
<div key={item.id} className="flex md:flex-row flex-col justify-evenly container py-20 border-b-2 group">
<div className="flex flex-col p-6 gap-2 justify-between">
<div className="mb-12">
<h2 className="text-4xl font-semibold pb-3">{item.title}</h2>
<p className="pb-12">{item.description}</p>
<div className="grid">
<div className="flex gap-10 pb-4 border-b mb-4 w-full md:max-w-[50%]">
<span className="w-[50%]">Category:</span>
<span className="w-[50%]">{item.category}</span>
</div>
<div className="flex gap-10 pb-4 border-b mb-4 w-full md:max-w-[50%]">
<span className="w-[50%]">Tag:</span>
<span className="w-[50%]">{item.tag}</span>
</div>
</div>
</div>
<button
type="button"
className="flex items-end gap-4 group/button">
<span className="text-xl ">Project Details</span> <MdOutlineArrowOutward className="text-3xl group-hover/button:rotate-45 group-hover/button:translate-x-5 duration-500"/>
</button>
</div>
<div className="flex flex-col">
<div className="w-[100vw] md:w-[80vh] h-[50vh] overflow-hidden rounded-3xl relative bg-black">
<Image
src={item.img}
alt={item.title}
fill
className="object-cover group-hover:scale-105 duration-300"
loading="lazy"
quality={75} // Optional: Adjust the quality for better performance
/>
</div>
</div>
</div>
))}
</section>
);
}