feat: simplify joinTitle rendering in Testimonials section
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user