Add linkedinUrl support to TestimonialCardTwo

This commit is contained in:
2026-01-21 17:38:01 +02:00
parent 5fd5e4485e
commit 17ea4507d1

View File

@@ -1,5 +1,6 @@
"use client";
import { Linkedin } from 'lucide-react';
import { memo } from "react";
import Image from "next/image";
import CardStack from "@/components/cardStack/CardStack";
@@ -13,6 +14,7 @@ type Testimonial = {
id: string;
name: string;
role: string;
linkedinUrl?: string;
testimonial: string;
imageSrc?: string;
imageAlt?: string;
@@ -99,6 +101,12 @@ const TestimonialCard = memo(({
)}
</div>
{testimonial.linkedinUrl && (
<a href={testimonial.linkedinUrl} target="_blank" rel="noopener noreferrer">
<Linkedin className="h-5 w-5 text-background" />
</a>
)}
<div className="relative z-1 flex flex-col gap-1 mt-1">
<h3 className={cls("text-2xl font-medium leading-[1.1]", shouldUseLightText ? "text-background" : "text-foreground", nameClassName)}>
{testimonial.name}