Card 2

src/components/card-2.tsx
import Link from 'next/link'
import { Heading } from '@/components/heading'
export interface CardLink2Data {
name: string
description: string
href: string
icon: string
}
interface Card2Props {
name: string
description: string
href: string
icon: string
backgroundClass?: string
}
export function Card2({
name,
href,
backgroundClass = 'bg-body2',
}: Card2Props) {
return (
<Link
key={name}
href={href}
className="group relative"
aria-label={`Navigate to ${name}`}
prefetch={true}
scroll={true}
>
<div
className={`relative h-[200px] rounded-lg shadow-lg flex items-center justify-center py-8 ${backgroundClass}`}
>
<Heading
as="h3"
color="text-contrast"
textAlign="text-center"
margin="m-0"
className="w-full px-8 whitespace-normal break-words"
>
{name}
</Heading>
</div>
</Link>
)
}

Support

Talk to the developers of this project to learn more

We have been building professional websites for big clients for over 15 years. Gallop templates and blocks is our best foundation for SEO websites and web apps.

© 2026 Web Plant Media, LLC