jaecoo-kelapagading/components/landing-page/agent.tsx

79 lines
2.1 KiB
TypeScript
Raw Normal View History

2025-07-14 07:31:51 +00:00
"use client";
import Image from "next/image";
import { motion } from "framer-motion";
const agents = [
2025-07-14 11:55:57 +00:00
{
name: "Henny",
title: "Branch Manager Jaecoo Kelapa Gading",
image: "/henny.png",
},
2025-07-14 07:31:51 +00:00
{
name: "Zamroni",
title: "Spv Jaecoo Kelapa Gading",
image: "/zamroni.png",
},
{
name: "Murtiyono",
title: "Spv Jaecoo Kelapa Gading",
image: "/murtiyono.jpg",
},
{
name: "Sutino",
title: "Spv Jaecoo Kelapa Gading",
image: "/sutino.png",
},
2025-10-21 09:22:39 +00:00
// {
// name: "Amendra Ismail",
// title: "Spv Jaecoo Kelapa Gading",
// image: "/amendra.png",
// },
2025-07-14 07:31:51 +00:00
];
export default function Agent() {
return (
2025-07-14 11:55:57 +00:00
<section className="py-16 px-6 md:px-5 bg-[#FAFDFF] text-center mt-0">
2025-07-14 07:31:51 +00:00
<motion.h2
initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }}
transition={{ duration: 0.6 }}
viewport={{ once: true }}
className="text-3xl md:text-6xl font-semibold text-gray-900 mb-2"
>
2025-07-14 11:55:57 +00:00
Our Teams
2025-07-14 07:31:51 +00:00
</motion.h2>
2025-10-21 09:22:39 +00:00
<div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-4 gap-2 place-items-center mt-10">
2025-07-14 07:31:51 +00:00
{agents.map((agent, index) => (
<motion.div
key={index}
initial={{ opacity: 0, y: 40 }}
whileInView={{ opacity: 1, y: 0 }}
transition={{
duration: 0.6,
delay: index * 0.2 + 0.3,
ease: "easeOut",
}}
viewport={{ once: true, amount: 0.3 }}
2025-07-14 11:55:57 +00:00
className="bg-white shadow-md py-4 gap-2 flex flex-col items-center h-[300px] w-[250px]"
2025-07-14 07:31:51 +00:00
>
2025-07-14 11:55:57 +00:00
<div className="relative w-44 h-48 mb-3">
2025-07-14 07:31:51 +00:00
<Image
src={agent.image}
alt={agent.name}
fill
className="rounded-full object-cover"
/>
</div>
2025-07-14 11:55:57 +00:00
<h3 className="text-lg text-gray-900 text-center">{agent.name}</h3>
<p className="text-sm text-gray-600 text-center mt-1">
2025-07-14 07:31:51 +00:00
{agent.title}
</p>
</motion.div>
))}
</div>
</section>
);
}