import {
ArrowRight,
Award,
Building2,
HeartHandshake,
Leaf,
Lightbulb,
Trophy,
} from "lucide-react";
import React from "react";
import { Button } from "@/components/ui/button";
import { Separator } from "@/components/ui/separator";
interface ListItem {
icon: React.ReactNode;
title: string;
category: string;
description: string;
link: string;
}
interface List2Props {
heading?: string;
items?: ListItem[];
}
const List2 = ({
heading = "Our Achievements & Recognition",
items = [
{
icon: <Trophy />,
title: "Industry Recognition",
category: "Achievement",
description: "Outstanding Performance Award.",
link: "#",
},
{
icon: <Award />,
title: "Excellence Award",
category: "Recognition",
description: "Best in Category Winner.",
link: "#",
},
{
icon: <Lightbulb />,
title: "Innovation Prize",
category: "Technology",
description: "Breakthrough Solution of the Year.",
link: "#",
},
{
icon: <HeartHandshake />,
title: "Customer Success",
category: "Service",
description: "Top-Rated Solution Provider.",
link: "#",
},
{
icon: <Building2 />,
title: "Global Leadership",
category: "Management",
description: "Executive Team of the Year.",
link: "#",
},
{
icon: <Leaf />,
title: "Sustainability Impact",
category: "Environmental",
description: "Green Initiative Excellence.",
link: "#",
},
],
}: List2Props) => {
return (
<section className="py-32">
<div className="container px-0 md:px-8">
<h1 className="mb-10 px-4 text-3xl font-semibold md:mb-14 md:text-4xl">
{heading}
</h1>
<div className="flex flex-col">
<Separator />
{items.map((item, index) => (
<React.Fragment key={index}>
<div className="grid items-center gap-4 px-4 py-5 md:grid-cols-4">
<div className="order-2 flex items-center gap-2 md:order-none">
<span className="flex h-14 w-16 shrink-0 items-center justify-center rounded-md bg-muted">
{item.icon}
</span>
<div className="flex flex-col gap-1">
<h3 className="font-semibold">{item.title}</h3>
<p className="text-sm text-muted-foreground">
{item.category}
</p>
</div>
</div>
<p className="order-1 text-2xl font-semibold md:order-none md:col-span-2">
{item.description}
</p>
<Button variant="outline" asChild>
<a
className="order-3 ml-auto w-fit gap-2 md:order-none"
href={item.link}
>
<span>View project</span>
<ArrowRight className="h-4 w-4" />
</a>
</Button>
</div>
<Separator />
</React.Fragment>
))}
</div>
</div>
</section>
);
};
export { List2 };