"use client";

import Image from "next/image";

export default function HeaderFeaturedHomes() {
  const images = [
    "/images/home1.jpg",
    "/images/home2.jpg",
    "/images/home3.jpg",
  ];

  return (
    <div className="p-2">
      <div className="grid grid-cols-1 gap-1">
        {images.map((src, index) => (
          <div
            key={index}
            className="overflow-hidden rounded-lg shadow hover:shadow-lg transition-shadow duration-300 relative h-[150px]"
          >
            <Image
              src={src}
              alt={`Gallery image ${index + 1}`}
              className="object-cover transform transition-transform duration-300 hover:scale-105 cursor-pointer"
              fill
            />
          </div>
        ))}
      </div>
    </div>
  );
}
