Files
import type { TestimonialType } from "@/components/testimonial-list"
import { TestimonialList } from "@/components/testimonial-list"
export function Testimonials02() {
return (
<div className="max-w-screen overflow-x-clip">
<div className="container mx-auto px-4">
<div className="border-x border-line py-8">
<h2 className="screen-line-top screen-line-bottom ml-4 font-heading text-3xl font-medium tracking-tight">
Loved by devs worldwide
</h2>
<p className="p-4 text-base text-balance text-muted-foreground">
See what developers are saying about the components and blocks.
</p>
<div className="screen-line-top screen-line-bottom before:z-11 after:z-11 [&_.rfm-initial-child-container]:items-stretch! [&_.rfm-marquee]:items-stretch!">
<TestimonialList data={TESTIMONIALS_1} />
<div className="screen-line-top screen-line-bottom flex h-4" />
<TestimonialList data={TESTIMONIALS_2} direction="right" />
</div>
</div>
</div>
</div>
)
}
// Demo avatars only. Replace them with your own URLs.
const TESTIMONIALS_1: TestimonialType[] = [
{
authorAvatar: "/brand/avatar.png",
authorName: "Nora Alvarez",
authorTagline: "Design Engineer",
url: "https://x.com/example/status/9",
quote: "The spacing and type scale stay consistent across every block.",
},
{
authorAvatar: "/brand/avatar.png",
authorName: "Ethan Brooks",
authorTagline: "Frontend Engineer",
url: "https://x.com/example/status/10",
quote: "Dark mode was already handled, which saved us a review cycle.",
},
{
authorAvatar: "/brand/avatar.png",
authorName: "Aiko Tanaka",
authorTagline: "UI Designer",
url: "https://x.com/example/status/11",
quote: "Simple APIs and no surprises when I customize a block.",
},
{
authorAvatar: "/brand/avatar.png",
authorName: "Marcus Weber",
authorTagline: "Tech Lead",
url: "https://x.com/example/status/12",
quote: "We run the marquee and glow cards on our marketing pages.",
},
]
const TESTIMONIALS_2: TestimonialType[] = [
{
authorAvatar: "/brand/avatar.png",
authorName: "Sofia Rossi",
authorTagline: "Product Designer",
url: "https://x.com/example/status/13",
quote: "The blocks feel like one system, not a pile of components.",
},
{
authorAvatar: "/brand/avatar.png",
authorName: "Liam Carter",
authorTagline: "Software Engineer",
url: "https://x.com/example/status/14",
quote: "Install scripts worked on the first try.",
},
{
authorAvatar: "/brand/avatar.png",
authorName: "Hana Kim",
authorTagline: "Frontend Engineer",
url: "https://x.com/example/status/15",
quote: "I forked the template for a client and shipped the same week.",
},
{
authorAvatar: "/brand/avatar.png",
authorName: "Noah Bennett",
authorTagline: "Design Lead",
url: "https://x.com/example/status/16",
quote: "Small details, like focus rings, are done right.",
},
]A testimonials section with a lined layout
@yourname/testimonials-02