feat: simplify joinTitle rendering in Testimonials section

This commit is contained in:
ArraysID
2025-05-10 14:56:07 +07:00
parent c4cf9e4e6c
commit 760ab67ae0
@@ -115,18 +115,7 @@ export function Testimonials(props: TestimonialsSection) {
<div className="grid md:grid-cols-2 gap-8 items-center"> <div className="grid md:grid-cols-2 gap-8 items-center">
<div> <div>
<h3 className="text-2xl md:text-3xl font-bold mb-4"> <h3 className="text-2xl md:text-3xl font-bold mb-4">
{joinTitle.split(' ').map((word, i) => {joinTitle}
i === 1 ? (
<span
key={i}
className="bg-clip-text text-transparent bg-gradient-to-r from-primary to-blue-400"
>
{word}
</span>
) : (
<span key={i}>{word} </span>
)
)}
</h3> </h3>
<p className="text-muted-foreground">{joinText}</p> <p className="text-muted-foreground">{joinText}</p>
</div> </div>