{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"marketing-stats-customer-testimonial","type":"registry:block","title":"Customer Testimonial","files":[{"path":"components/blocks/marketing/stats/customer-testimonial.tsx","content":"import { Badge } from '@/components/ui/badge';\nimport { Card, CardContent } from '@/components/ui/card';\nimport { QuoteIcon } from 'lucide-react';\n\ntype CustomerTestimonial = {\n  id: string;\n  quote: string;\n  author: string;\n  role: string;\n  company: string;\n  companyLogo: string;\n  metric: {\n    value: string;\n    label: string;\n  };\n};\n\nconst testimonials: CustomerTestimonial[] = [\n  {\n    id: '1',\n    quote:\n      'Implementing this solution helped us improve our conversion rates dramatically while reducing our customer acquisition costs.',\n    author: 'Sarah Johnson',\n    role: 'VP of Marketing',\n    company: 'TechNova',\n    companyLogo: '/logos/technova.svg',\n    metric: {\n      value: '127%',\n      label: 'conversion increase',\n    },\n  },\n  {\n    id: '2',\n    quote:\n      \"We've seen unprecedented growth in our customer retention metrics since adopting this platform. The ROI has been extraordinary.\",\n    author: 'Michael Rodriguez',\n    role: 'Customer Success Director',\n    company: 'Evergreen Solutions',\n    companyLogo: '/logos/evergreen.svg',\n    metric: {\n      value: '3.5x',\n      label: 'customer retention',\n    },\n  },\n  {\n    id: '3',\n    quote:\n      'This platform streamlined our entire marketing workflow. What used to take us days now takes just hours, with better results.',\n    author: 'Emily Chen',\n    role: 'CMO',\n    company: 'StratoScale',\n    companyLogo: '/logos/stratoscale.svg',\n    metric: {\n      value: '68%',\n      label: 'time saved',\n    },\n  },\n];\n\nconst globalStats = [\n  { value: '10,000+', label: 'Businesses Trusting Us' },\n  { value: '$320M', label: 'Revenue Generated' },\n  { value: '94%', label: 'Customer Satisfaction' },\n  { value: '150+', label: 'Countries Served' },\n];\n\nexport default function CustomerTestimonial() {\n  return (\n    <div className=\"relative container mx-auto overflow-hidden px-4 py-24 md:px-6 lg:py-32 2xl:max-w-[1400px]\">\n      {/* Background decorative elements */}\n      <div className=\"bg-primary/10 absolute top-0 right-0 h-96 w-96 translate-x-1/4 -translate-y-1/4 rounded-full opacity-50 blur-3xl\" />\n      <div className=\"bg-primary/10 absolute bottom-0 left-0 h-96 w-96 -translate-x-1/4 translate-y-1/4 rounded-full opacity-50 blur-3xl\" />\n\n      <div className=\"relative mx-auto max-w-6xl\">\n        <div className=\"mb-16 text-center\">\n          <Badge className=\"mb-4\">Trusted Worldwide</Badge>\n          <h2 className=\"mb-4 text-3xl font-bold md:text-5xl\">\n            Real Results from Real Customers\n          </h2>\n          <p className=\"text-muted-foreground mx-auto max-w-3xl text-lg\">\n            Our platform doesn&apos;t just make promises — it delivers\n            measurable impact for businesses across industries.\n          </p>\n        </div>\n\n        {/* Global Stats */}\n        <div className=\"mb-16 grid grid-cols-2 gap-6 md:grid-cols-4 md:gap-8\">\n          {globalStats.map((stat, i) => (\n            <div key={i} className=\"text-center\">\n              <h3 className=\"text-primary mb-2 text-3xl font-bold md:text-4xl\">\n                {stat.value}\n              </h3>\n              <p className=\"text-muted-foreground font-medium\">{stat.label}</p>\n            </div>\n          ))}\n        </div>\n\n        {/* Featured testimonials */}\n        <div className=\"grid gap-6 md:grid-cols-3 md:gap-8\">\n          {testimonials.map((testimonial) => (\n            <Card key={testimonial.id} className=\"overflow-hidden p-0\">\n              <CardContent className=\"flex h-full flex-col p-6 md:p-8\">\n                {/* Company logo placeholder */}\n                <div className=\"bg-muted/40 mb-4 flex h-8 w-auto items-center rounded px-3\">\n                  <span className=\"text-sm font-medium\">\n                    {testimonial.company}\n                  </span>\n                </div>\n\n                {/* Key metric */}\n                <div className=\"bg-primary/10 mb-6 rounded-lg p-4 text-center\">\n                  <div className=\"text-primary mb-1 text-3xl font-bold md:text-4xl\">\n                    {testimonial.metric.value}\n                  </div>\n                  <div className=\"text-primary/80 text-sm font-medium\">\n                    {testimonial.metric.label}\n                  </div>\n                </div>\n\n                {/* Quote */}\n                <div className=\"relative mb-6 flex-grow\">\n                  <QuoteIcon className=\"text-muted-foreground/20 absolute -top-1 -left-1 h-8 w-8\" />\n                  <blockquote className=\"text-muted-foreground relative pl-6\">\n                    &ldquo;{testimonial.quote}&rdquo;\n                  </blockquote>\n                </div>\n\n                {/* Author info */}\n                <div className=\"mt-auto\">\n                  <div className=\"font-semibold\">{testimonial.author}</div>\n                  <div className=\"text-muted-foreground text-sm\">\n                    {testimonial.role}, {testimonial.company}\n                  </div>\n                </div>\n              </CardContent>\n            </Card>\n          ))}\n        </div>\n\n        {/* CTA */}\n        <div className=\"mt-16 text-center\">\n          <p className=\"text-muted-foreground mx-auto mb-6 max-w-2xl\">\n            Join thousands of forward-thinking businesses already transforming\n            their marketing with our platform.\n          </p>\n          <div className=\"flex flex-wrap justify-center gap-4\">\n            <button className=\"bg-primary text-primary-foreground hover:bg-primary/90 inline-flex h-10 items-center justify-center rounded-md px-8 py-2 text-sm font-medium shadow\">\n              Start Free Trial\n            </button>\n            <button className=\"border-input bg-background hover:bg-accent hover:text-accent-foreground inline-flex h-10 items-center justify-center rounded-md border px-8 py-2 text-sm font-medium shadow-sm\">\n              View Customer Stories\n            </button>\n          </div>\n        </div>\n      </div>\n    </div>\n  );\n}\n","type":"registry:component","target":"components/blocks/marketing/stats/customer-testimonial.tsx"},{"path":"components/ui/badge.tsx","content":"import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { Slot } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst badgeVariants = cva(\n  \"group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!\",\n  {\n    variants: {\n      variant: {\n        default: \"bg-primary text-primary-foreground [a]:hover:bg-primary/80\",\n        secondary:\n          \"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80\",\n        destructive:\n          \"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20\",\n        outline:\n          \"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground\",\n        ghost:\n          \"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50\",\n        link: \"text-primary underline-offset-4 hover:underline\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n    },\n  }\n)\n\nfunction Badge({\n  className,\n  variant = \"default\",\n  asChild = false,\n  ...props\n}: React.ComponentProps<\"span\"> &\n  VariantProps<typeof badgeVariants> & { asChild?: boolean }) {\n  const Comp = asChild ? Slot.Root : \"span\"\n\n  return (\n    <Comp\n      data-slot=\"badge\"\n      data-variant={variant}\n      className={cn(badgeVariants({ variant }), className)}\n      {...props}\n    />\n  )\n}\n\nexport { Badge, badgeVariants }\n","type":"registry:ui","target":"components/ui/badge.tsx"},{"path":"components/ui/card.tsx","content":"import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Card({\n  className,\n  size = \"default\",\n  ...props\n}: React.ComponentProps<\"div\"> & { size?: \"default\" | \"sm\" }) {\n  return (\n    <div\n      data-slot=\"card\"\n      data-size={size}\n      className={cn(\n        \"group/card flex flex-col gap-6 overflow-hidden rounded-xl bg-card py-6 text-sm text-card-foreground shadow-xs ring-1 ring-foreground/10 has-[>img:first-child]:pt-0 data-[size=sm]:gap-4 data-[size=sm]:py-4 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction CardHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-header\"\n      className={cn(\n        \"group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-6 group-data-[size=sm]/card:px-4 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-6 group-data-[size=sm]/card:[.border-b]:pb-4\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction CardTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-title\"\n      className={cn(\n        \"font-heading text-base leading-normal font-medium group-data-[size=sm]/card:text-sm\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction CardDescription({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-description\"\n      className={cn(\"text-sm text-muted-foreground\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction CardAction({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-action\"\n      className={cn(\n        \"col-start-2 row-span-2 row-start-1 self-start justify-self-end\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction CardContent({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-content\"\n      className={cn(\"px-6 group-data-[size=sm]/card:px-4\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction CardFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-footer\"\n      className={cn(\n        \"flex items-center rounded-b-xl px-6 group-data-[size=sm]/card:px-4 [.border-t]:pt-6 group-data-[size=sm]/card:[.border-t]:pt-4\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nexport {\n  Card,\n  CardHeader,\n  CardFooter,\n  CardTitle,\n  CardAction,\n  CardDescription,\n  CardContent,\n}\n","type":"registry:ui","target":"components/ui/card.tsx"}],"description":"A quote from a customer next to the numbers their team reached with you. Use it to pair social proof with hard results on a case study page.","dependencies":["class-variance-authority","lucide-react","radix-ui"]}