Add linkedinUrl support to TestimonialCardTwo
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user