Add linkedinUrl support to TestimonialCardTwo
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import { Linkedin } from 'lucide-react';
|
||||||
import { memo } from "react";
|
import { memo } from "react";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import CardStack from "@/components/cardStack/CardStack";
|
import CardStack from "@/components/cardStack/CardStack";
|
||||||
@@ -13,6 +14,7 @@ type Testimonial = {
|
|||||||
id: string;
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
role: string;
|
role: string;
|
||||||
|
linkedinUrl?: string;
|
||||||
testimonial: string;
|
testimonial: string;
|
||||||
imageSrc?: string;
|
imageSrc?: string;
|
||||||
imageAlt?: string;
|
imageAlt?: string;
|
||||||
@@ -99,6 +101,12 @@ const TestimonialCard = memo(({
|
|||||||
)}
|
)}
|
||||||
</div>
|
</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">
|
<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)}>
|
<h3 className={cls("text-2xl font-medium leading-[1.1]", shouldUseLightText ? "text-background" : "text-foreground", nameClassName)}>
|
||||||
{testimonial.name}
|
{testimonial.name}
|
||||||
|
|||||||
Reference in New Issue
Block a user