UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
fix: add testimonial section
Dillion Vermaa06b7816742c
diff --git a/app/(docs)/docs/layout.tsx b/app/(docs)/docs/layout.tsxindex ea5d019d..cd9bd240 100644--- a/app/(docs)/docs/layout.tsx+++ b/app/(docs)/docs/layout.tsx@@ -9,7 +9,7 @@ interface DocsLayoutProps {export default function DocsLayout({ children }: DocsLayoutProps) {return (<div className="border-b">- <div className="container flex-1 items-start md:grid md:grid-cols-[220px_minmax(0,1fr)] md:gap-6 lg:grid-cols-[240px_minmax(0,1fr)] lg:gap-10">+ <div className="container flex-1 items-start md:grid md:grid-cols-[240px_minmax(0,1fr)] md:gap-6 lg:grid-cols-[250px_minmax(0,1fr)] lg:gap-10"><aside className="fixed top-14 z-30 -ml-2 hidden h-[calc(100vh-3.5rem)] w-full shrink-0 md:sticky md:block"><ScrollArea className="h-full py-6 pr-6 lg:py-8"><DocsSidebarNav items={docsConfig.sidebarNav} />diff --git a/config/docs.ts b/config/docs.tsindex 4724f42e..022c7d94 100644--- a/config/docs.ts+++ b/config/docs.ts@@ -86,11 +86,12 @@ export const docsConfig: DocsConfig = {items: [],label: "New",},- // {- // title: "Social Proof Testimonials",- // href: `/docs/sections/social-proof-testimonials`,- // items: [],- // },+ {+ title: "Social Proof Testimonials",+ href: `/docs/sections/social-proof-testimonials`,+ items: [],+ label: "New",+ },// {// title: "Features",// href: `/docs/sections/features`,diff --git a/content/docs/sections/social-proof-testimonials.mdx b/content/docs/sections/social-proof-testimonials.mdxindex 6f7cd02e..86d790f0 100644--- a/content/docs/sections/social-proof-testimonials.mdx+++ b/content/docs/sections/social-proof-testimonials.mdx@@ -1,12 +1,12 @@---title: Social Proof Testimonials-date: 2024-03-11+date: 2024-03-15description: These components are used to build the social proof section of the website.author: dillionvermapublished: true----<BlockPreview name="social-proof-testimonials-1" free />+<BlockPreview name="social-proof-testimonials-1" />{/* <BlockPreview name="social-proof-testimonials-2" free /><BlockPreview name="social-proof-testimonials-3" />diff --git a/registry/blocks/example/social-proof-testimonials-1.tsx b/registry/blocks/example/social-proof-testimonials-1.tsxindex 16c89b11..9d24ce71 100644--- a/registry/blocks/example/social-proof-testimonials-1.tsx+++ b/registry/blocks/example/social-proof-testimonials-1.tsx@@ -1,5 +1,5 @@import { cn } from "@/lib/utils";-import { StarIcon } from "lucide-react";+import { StarFilledIcon } from "@radix-ui/react-icons";export const Highlight = ({children,@@ -11,7 +11,7 @@ export const Highlight = ({return (<spanclassName={cn(- "bg-cyan-600/20 px-1 py-0.5 font-bold text-cyan-600 dark:bg-cyan-600/20 dark:text-cyan-600",+ "bg-cyan-600/20 p-1 py-0.5 font-bold text-cyan-600 dark:bg-cyan-600/20 dark:text-cyan-600",className,)}>@@ -38,87 +38,95 @@ export const TestimonialCard = ({}: TestimonialCardProps) => (<divclassName={cn(- "flex h-96 w-72 shrink-0 cursor-pointer snap-center snap-always flex-col justify-between rounded-xl border border-neutral-200 bg-white p-4 shadow-xl shadow-black/[0.1] md:h-96 md:min-w-96",+ "flex h-64 w-72 shrink-0 cursor-pointer snap-center snap-always flex-col justify-between rounded-xl p-4 shadow-xl shadow-black/[0.1] lg:min-w-96",+ // light styles+ " border border-neutral-200 bg-white",+ // dark styles+ "dark:bg-black dark:[border:1px_solid_rgba(255,255,255,.1)] dark:[box-shadow:0_-20px_80px_-20px_#ffffff1f_inset]",className,)}{...props} // Spread the rest of the props here>- <div className="select-none font-normal text-neutral-700">+ <div className="select-none font-normal text-neutral-700 dark:text-neutral-400">{description}</div><div className="select-none"><div className="flex flex-row py-1">- <StarIcon className="size-4 text-yellow-300" />- <StarIcon className="size-4 text-yellow-300" />- <StarIcon className="size-4 text-yellow-300" />- <StarIcon className="size-4 text-yellow-300" />- <StarIcon className="size-4 text-yellow-300" />+ <StarFilledIcon className="size-4 text-yellow-500" />+ <StarFilledIcon className="size-4 text-yellow-500" />+ <StarFilledIcon className="size-4 text-yellow-500" />+ <StarFilledIcon className="size-4 text-yellow-500" />+ <StarFilledIcon className="size-4 text-yellow-500" /></div><p className="font-medium text-neutral-500">{name}</p>- <p className="font-normal text-neutral-400">{role}</p>+ <p className="text-sm font-normal text-neutral-400">{role}</p></div></div>);-const CARDS = [+const testimonials = [{- name: "John Doe",- role: "Product Manager at Acme Corp",+ name: "Alex Rivera",+ role: "CTO at InnovateTech",description: (<p>- Very impressed with #SectaLabs headshots. After trying many services I- decided to try them.- <Highlight>They provided the best results by far!</Highlight> If you're- looking for headshots, give them a try.+ The AI-driven analytics from #QuantumInsights have revolutionized our+ product development cycle.+ <Highlight>+ Insights are now more accurate and faster than ever.+ </Highlight>{" "}+ A game-changer for tech companies.</p>),},{- name: "John Doe",- role: "Product Manager at Acme Corp",+ name: "Samantha Lee",+ role: "Marketing Director at NextGen Solutions",description: (<p>- Very impressed with #SectaLabs headshots. After trying many services I- decided to try them.- <Highlight>They provided the best results by far!</Highlight> If you're- looking for headshots, give them a try.+ Implementing #AIStream's customer prediction model has drastically+ improved our targeting strategy.+ <Highlight>Seeing a 50% increase in conversion rates!</Highlight> Highly+ recommend their solutions.</p>),},{- name: "John Doe",- role: "Product Manager at Acme Corp",+ name: "Raj Patel",+ role: "Founder & CEO at StartUp Grid",description: (<p>- Very impressed with #SectaLabs headshots. After trying many services I- decided to try them.- <Highlight>They provided the best results by far!</Highlight> If you're- looking for headshots, give them a try.+ As a startup, we need to move fast and stay ahead. #CodeAI's automated+ coding assistant helps us do just that.+ <Highlight>Our development speed has doubled.</Highlight> Essential tool+ for any startup.</p>),},{- name: "John Doe",- role: "Product Manager at Acme Corp",+ name: "Emily Chen",+ role: "Product Manager at Digital Wave",description: (<p>- Very impressed with #SectaLabs headshots. After trying many services I- decided to try them.- <Highlight>They provided the best results by far!</Highlight> If you're- looking for headshots, give them a try.+ #VoiceGen's AI-driven voice synthesis has made creating global products+ a breeze.+ <Highlight>Localization is now seamless and efficient.</Highlight> A+ must-have for global product teams.</p>),},{- name: "John Doe",- role: "Product Manager at Acme Corp",+ name: "Michael Brown",+ role: "Data Scientist at FinTech Innovations",description: (<p>- Very impressed with #SectaLabs headshots. After trying many services I- decided to try them.- <Highlight>They provided the best results by far!</Highlight> If you're- looking for headshots, give them a try.+ Leveraging #DataCrunch's AI for our financial models has given us an+ edge in predictive accuracy.+ <Highlight>+ Our investment strategies are now powered by real-time data analytics.+ </Highlight>{" "}+ Transformative for the finance industry.</p>),},@@ -133,10 +141,17 @@ export default function Testimonial2() {TESTIMONIALS</h3><div className="relative mx-auto mt-6 max-w-[100vw] overflow-hidden">- <div className="no-scrollbar flex w-full snap-x snap-mandatory flex-row gap-6 overflow-x-auto py-14">+ <div+ className={cn(+ "flex w-full snap-x snap-mandatory flex-row gap-6 overflow-x-auto py-14",++ // no scrollbar+ "[-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",+ )}+ >{/* Empty placeholder */}<div className="size-72 shrink-0 md:h-60 md:min-w-96"></div>- {CARDS.map((card, idx) => (+ {testimonials.map((card, idx) => (<TestimonialCard {...card} key={idx} />))}{/* Empty placeholder */}