The URL or route to navigate to.
The rendered NavCard component.
export default function NavCard({ href, title, description }: NavCardProps) {
return (
<Link
href={href}
className="rounded-xl bg-slate-100 p-6 transition-colors hover:bg-slate-200 focus:ring-2 focus:ring-slate-500 focus:ring-offset-2 focus:outline-none dark:bg-slate-700 dark:hover:bg-slate-600"
>
<h4 className="mb-2 text-lg font-semibold text-slate-800 dark:text-slate-100">{title}</h4>
<p className="text-sm text-slate-600 dark:text-slate-300">{description}</p>
</Link>
);
}
A navigation card used throughout the portfolio to link to different sections or external resources. It renders a styled link with a title and description.
Example