UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
feat: add more testimonial sections
Dillion Verma8b132af66b69
diff --git a/content/docs/sections/social-proof-testimonials.mdx b/content/docs/sections/social-proof-testimonials.mdxindex 86d790f0..54629714 100644--- a/content/docs/sections/social-proof-testimonials.mdx+++ b/content/docs/sections/social-proof-testimonials.mdx@@ -8,6 +8,8 @@ published: true<BlockPreview name="social-proof-testimonials-1" />+<BlockPreview name="social-proof-testimonials-2" />+{/* <BlockPreview name="social-proof-testimonials-2" free /><BlockPreview name="social-proof-testimonials-3" /><BlockPreview name="social-proof-testimonials-4" /> */}diff --git a/registry/blocks/example/social-proof-testimonials-1.tsx b/registry/blocks/example/social-proof-testimonials-1.tsxindex 9d24ce71..dc07bc86 100644--- a/registry/blocks/example/social-proof-testimonials-1.tsx+++ b/registry/blocks/example/social-proof-testimonials-1.tsx@@ -132,9 +132,9 @@ const testimonials = [},];-export default function Testimonial2() {+export default function SocialProofTestimonials() {return (- <section id="testimonial">+ <section id="testimonials"><div className="py-14"><div className="mx-auto md:container md:px-8"><h3 className="text-center text-sm font-semibold text-gray-600">diff --git a/registry/blocks/example/social-proof-testimonials-2.tsx b/registry/blocks/example/social-proof-testimonials-2.tsxnew file mode 100644index 00000000..16bb1b21--- /dev/null+++ b/registry/blocks/example/social-proof-testimonials-2.tsx@@ -0,0 +1,277 @@+import { cn } from "@/lib/utils";+import { StarFilledIcon } from "@radix-ui/react-icons";++export const Highlight = ({+ children,+ className,+}: {+ children: React.ReactNode;+ className?: string;+}) => {+ return (+ <span+ className={cn(+ "bg-cyan-600/20 p-1 py-0.5 font-bold text-cyan-600 dark:bg-cyan-600/20 dark:text-cyan-600",+ className,+ )}+ >+ {children}+ </span>+ );+};++export interface TestimonialCardProps {+ name: string;+ role: string;+ img?: string;+ description: React.ReactNode;+ className?: string;+ [key: string]: any;+}++export const TestimonialCard = ({+ description,+ name,+ img,+ role,+ className,+ ...props // Capture the rest of the props+}: TestimonialCardProps) => (+ <div+ className={cn(+ "mb-4 flex w-full cursor-pointer break-inside-avoid flex-col items-center justify-between gap-6 rounded-xl p-4",+ // 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 text-sm font-normal text-neutral-700 dark:text-neutral-400">+ {description}+ <div className="flex flex-row py-1">+ <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>+ </div>++ <div className="select-none">+ <div className="flex items-center justify-center gap-5">+ <img+ src={img}+ className="h-10 w-10 rounded-full ring-1 ring-border ring-offset-4"+ />++ <div>+ <p className="font-medium text-neutral-500">{name}</p>+ <p className="text-xs font-normal text-neutral-400">{role}</p>+ </div>+ </div>+ </div>+ </div>+);++const testimonials = [+ {+ name: "Alex Rivera",+ role: "CTO at InnovateTech",+ img: "https://randomuser.me/api/portraits/men/91.jpg",+ description: (+ <p>+ 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: "Samantha Lee",+ role: "Marketing Director at NextGen Solutions",+ img: "https://randomuser.me/api/portraits/women/12.jpg",+ description: (+ <p>+ 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: "Raj Patel",+ role: "Founder & CEO at StartUp Grid",+ img: "https://randomuser.me/api/portraits/men/45.jpg",+ description: (+ <p>+ 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: "Emily Chen",+ role: "Product Manager at Digital Wave",+ img: "https://randomuser.me/api/portraits/women/83.jpg",+ description: (+ <p>+ #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: "Michael Brown",+ role: "Data Scientist at FinTech Innovations",+ img: "https://randomuser.me/api/portraits/men/1.jpg",+ description: (+ <p>+ 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>+ ),+ },+ {+ name: "Linda Wu",+ role: "VP of Operations at LogiChain Solutions",+ img: "https://randomuser.me/api/portraits/women/5.jpg",+ description: (+ <p>+ #LogiTech's supply chain optimization tools have drastically reduced our+ operational costs.+ <Highlight>+ Efficiency and accuracy in logistics have never been better.+ </Highlight>{" "}+ </p>+ ),+ },+ {+ name: "Carlos Gomez",+ role: "Head of R&D at EcoInnovate",+ img: "https://randomuser.me/api/portraits/men/14.jpg",+ description: (+ <p>+ By integrating #GreenTech's sustainable energy solutions, we've seen a+ significant reduction in carbon footprint.+ <Highlight>+ Leading the way in eco-friendly business practices.+ </Highlight>{" "}+ Pioneering change in the industry.+ </p>+ ),+ },+ {+ name: "Aisha Khan",+ role: "Chief Marketing Officer at Fashion Forward",+ img: "https://randomuser.me/api/portraits/women/56.jpg",+ description: (+ <p>+ #TrendSetter's market analysis AI has transformed how we approach+ fashion trends.+ <Highlight>+ Our campaigns are now data-driven with higher customer engagement.+ </Highlight>{" "}+ Revolutionizing fashion marketing.+ </p>+ ),+ },+ {+ name: "Tom Chen",+ role: "Director of IT at HealthTech Solutions",+ img: "https://randomuser.me/api/portraits/men/18.jpg",+ description: (+ <p>+ Implementing #MediCareAI in our patient care systems has improved+ patient outcomes significantly.+ <Highlight>+ Technology and healthcare working hand in hand for better health.+ </Highlight>{" "}+ A milestone in medical technology.+ </p>+ ),+ },+ // {+ // name: "Sofia Patel",+ // role: "CEO at EduTech Innovations",+ // description: (+ // <p>+ // #LearnSmart's AI-driven personalized learning plans have doubled student+ // performance metrics.+ // <Highlight>Education tailored to every learner's needs.</Highlight>{" "}+ // Transforming the educational landscape.+ // </p>+ // ),+ // },+ // {+ // name: "Jake Morrison",+ // role: "CTO at SecureNet Tech",+ // description: (+ // <p>+ // With #CyberShield's AI-powered security systems, our data protection+ // levels are unmatched.+ // <Highlight>Ensuring safety and trust in digital spaces.</Highlight>{" "}+ // Redefining cybersecurity standards.+ // </p>+ // ),+ // },+ // {+ // name: "Nadia Ali",+ // role: "Product Manager at Creative Solutions",+ // description: (+ // <p>+ // #DesignPro's AI has streamlined our creative process, enhancing+ // productivity and innovation.+ // <Highlight>Bringing creativity and technology together.</Highlight> A+ // game-changer for creative industries.+ // </p>+ // ),+ // },+ // {+ // name: "Omar Farooq",+ // role: "Founder at Startup Hub",+ // description: (+ // <p>+ // #VentureAI's insights into startup ecosystems have been invaluable for+ // our growth and funding strategies.+ // <Highlight>Empowering startups with data-driven decisions.</Highlight> A+ // catalyst for startup success.+ // </p>+ // ),+ // },+];++export default function SocialProofTestimonials() {+ return (+ <section id="testimonials">+ <div className="py-14">+ <div className="container mx-auto px-4 md:px-8">+ <h3 className="text-center text-sm font-semibold text-gray-500">+ TESTIMONIALS+ </h3>+ <div className="relative mt-6 max-h-[700px] overflow-hidden">+ <div className="my-8 gap-4 md:columns-2 xl:columns-3 2xl:columns-4">+ {testimonials.map((card, idx) => (+ <TestimonialCard {...card} key={idx} />+ ))}+ </div>+ <div className="pointer-events-none absolute inset-x-0 bottom-0 h-1/2 w-full bg-gradient-to-t from-white from-20% dark:from-black"></div>+ </div>+ </div>+ </div>+ </section>+ );+}diff --git a/registry/index.tsx b/registry/index.tsxindex d70ceab3..f99ddf8d 100644--- a/registry/index.tsx+++ b/registry/index.tsx@@ -518,6 +518,14 @@ const blocks: Registry = {() => import("@/registry/blocks/example/social-proof-testimonials-1"),),},+ "social-proof-testimonials-2": {+ name: "social-proof-testimonials-2",+ type: "blocks:example",+ files: ["registry/blocks/example/social-proof-testimonials-2.tsx"],+ component: React.lazy(+ () => import("@/registry/blocks/example/social-proof-testimonials-2"),+ ),+ },"features-1": {name: "features-1",type: "blocks:example",