src/components/marketing/testimonials.tsx
How to Customize
Customizing the testimonials section involves editing the heading, managing the testimonial data, and adjusting the animation.Editing the Section Heading
The main heading and subheading are hardcoded at the top of the component’s return statement. Find the following code and change the text to match your brand’s voice.src/components/marketing/testimonials.tsx
Managing Testimonial Data
Testimonial content is managed through thetestimonials array at the top of the file. Each object in the array represents one testimonial card and must conform to the Testimonial TypeScript interface.
Understanding the testimonials Array
A unique identifier for the testimonial, used as a
key for React rendering.The name of the person giving the testimonial.
The job title of the person.
The company the person works for.
The URL for the person’s avatar image.
The main body of the testimonial text.
A short, highlighted snippet that appears at the end of the
content.Example: Modifying a Testimonial
src/components/marketing/testimonials.tsx
Customizing the Marquee Animation
The scrolling animation is handled by theMarquee component from Magic UI. You can adjust its speed and the number of columns displayed.
Adjusting Animation Speed
The speed of the marquee is controlled by a CSS custom property--duration. A higher value results in a slower animation. You can change this directly on the Marquee component.
src/components/marketing/testimonials.tsx
Changing Column Distribution
The component displays testimonials across three columns, which are defined by slicing the maintestimonials array. You can change how many testimonials appear in each column by adjusting the .slice() method.
src/components/marketing/testimonials.tsx