{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"ecommerce-promo-sections-fading-background-testimonial","type":"registry:block","title":"Fading Background Testimonial","files":[{"path":"components/blocks/ecommerce/promo-sections/fading-background-testimonial.tsx","content":"import { Button } from '@/components/ui/button';\nimport { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar';\n\nexport default function FadingBackgroundTestimonialPromo() {\n  return (\n    <div className=\"bg-background relative\">\n      {/* Background with fading effect */}\n      <div className=\"absolute inset-0 overflow-hidden\">\n        <img\n          src=\"https://images.unsplash.com/photo-1505740420928-5e560c06d30e?q=80&w=2400&auto=format&fit=crop\"\n          alt=\"Premium headphones on a minimalist background\"\n          className=\"h-full w-full object-cover object-center\"\n        />\n        <div\n          className=\"from-background via-background/80 absolute inset-0 bg-gradient-to-t to-transparent\"\n          aria-hidden=\"true\"\n        />\n      </div>\n\n      {/* Content */}\n      <div className=\"relative mx-auto max-w-7xl px-4 py-16 sm:px-6 sm:py-24 lg:px-8\">\n        <div className=\"grid grid-cols-1 gap-y-16 lg:grid-cols-2 lg:gap-x-16\">\n          {/* Promo Content */}\n          <div className=\"flex flex-col justify-center\">\n            <h2 className=\"text-foreground text-3xl font-bold tracking-tight sm:text-4xl\">\n              Immersive Audio Experience\n            </h2>\n            <p className=\"text-muted-foreground mt-4 text-lg\">\n              Discover crystal-clear sound and unparalleled comfort with our\n              latest range of premium headphones. Designed for audiophiles and\n              everyday listeners alike.\n            </p>\n            <div className=\"mt-8 flex flex-col gap-4 sm:flex-row\">\n              <Button size=\"lg\" asChild>\n                <a href=\"#\">Shop Headphones</a>\n              </Button>\n              <Button variant=\"outline\" size=\"lg\" asChild>\n                <a href=\"#\">Explore Features</a>\n              </Button>\n            </div>\n            <div className=\"border-border/50 mt-10 border-t pt-10\">\n              <h3 className=\"text-primary text-sm font-medium\">\n                Featured Collection\n              </h3>\n              <p className=\"text-muted-foreground mt-2 text-sm\">\n                Noise-Cancelling Series\n              </p>\n            </div>\n          </div>\n\n          {/* Testimonials */}\n          <div className=\"space-y-8\">\n            <blockquote className=\"border-border/50 bg-card/50 rounded-lg border p-6 shadow-sm backdrop-blur-sm\">\n              <div className=\"flex items-center gap-4\">\n                <Avatar>\n                  <AvatarImage\n                    src=\"https://github.com/shadcn.png\"\n                    alt=\"@shadcn\"\n                  />\n                  <AvatarFallback>CN</AvatarFallback>\n                </Avatar>\n                <div>\n                  <p className=\"font-semibold\">Sarah Johnson</p>\n                  <p className=\"text-muted-foreground text-xs\">\n                    Verified Buyer\n                  </p>\n                </div>\n              </div>\n              <p className=\"text-muted-foreground mt-4\">\n                &quot;These headphones are incredible! The noise cancellation is\n                top-notch, and they&apos;re so comfortable I forget I&apos;m\n                wearing them. Worth every penny.&quot;\n              </p>\n            </blockquote>\n\n            <blockquote className=\"border-border/50 bg-card/50 rounded-lg border p-6 shadow-sm backdrop-blur-sm\">\n              <div className=\"flex items-center gap-4\">\n                <Avatar>\n                  <AvatarImage\n                    src=\"https://randomuser.me/api/portraits/men/75.jpg\"\n                    alt=\"User 2\"\n                  />\n                  <AvatarFallback>MJ</AvatarFallback>\n                </Avatar>\n                <div>\n                  <p className=\"font-semibold\">Michael Davis</p>\n                  <p className=\"text-muted-foreground text-xs\">\n                    Audio Engineer\n                  </p>\n                </div>\n              </div>\n              <p className=\"text-muted-foreground mt-4\">\n                &quot;As an audio professional, I&apos;m picky about sound\n                quality. These headphones deliver a balanced and detailed audio\n                profile that rivals much more expensive models.&quot;\n              </p>\n            </blockquote>\n\n            <blockquote className=\"border-border/50 bg-card/50 rounded-lg border p-6 shadow-sm backdrop-blur-sm\">\n              <div className=\"flex items-center gap-4\">\n                <Avatar>\n                  <AvatarImage\n                    src=\"https://randomuser.me/api/portraits/women/44.jpg\"\n                    alt=\"User 3\"\n                  />\n                  <AvatarFallback>LP</AvatarFallback>\n                </Avatar>\n                <div>\n                  <p className=\"font-semibold\">Linda Park</p>\n                  <p className=\"text-muted-foreground text-xs\">\n                    Frequent Traveler\n                  </p>\n                </div>\n              </div>\n              <p className=\"text-muted-foreground mt-4\">\n                &quot;Perfect for flights! They block out engine noise\n                completely, and the battery lasts forever. My new essential\n                travel companion.&quot;\n              </p>\n            </blockquote>\n          </div>\n        </div>\n      </div>\n    </div>\n  );\n}\n","type":"registry:component","target":"components/blocks/ecommerce/promo-sections/fading-background-testimonial.tsx"},{"path":"components/ui/button.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 buttonVariants = cva(\n  \"group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n  {\n    variants: {\n      variant: {\n        default: \"bg-primary text-primary-foreground hover:bg-primary/80\",\n        outline:\n          \"border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50\",\n        secondary:\n          \"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground\",\n        ghost:\n          \"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50\",\n        destructive:\n          \"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40\",\n        link: \"text-primary underline-offset-4 hover:underline\",\n      },\n      size: {\n        default:\n          \"h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n        xs: \"h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3\",\n        sm: \"h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5\",\n        lg: \"h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n        icon: \"size-9\",\n        \"icon-xs\":\n          \"size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3\",\n        \"icon-sm\":\n          \"size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md\",\n        \"icon-lg\": \"size-10\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n      size: \"default\",\n    },\n  }\n)\n\nfunction Button({\n  className,\n  variant = \"default\",\n  size = \"default\",\n  asChild = false,\n  ...props\n}: React.ComponentProps<\"button\"> &\n  VariantProps<typeof buttonVariants> & {\n    asChild?: boolean\n  }) {\n  const Comp = asChild ? Slot.Root : \"button\"\n\n  return (\n    <Comp\n      data-slot=\"button\"\n      data-variant={variant}\n      data-size={size}\n      className={cn(buttonVariants({ variant, size, className }))}\n      {...props}\n    />\n  )\n}\n\nexport { Button, buttonVariants }\n","type":"registry:ui","target":"components/ui/button.tsx"},{"path":"components/ui/avatar.tsx","content":"\"use client\"\n\nimport * as React from \"react\"\nimport { Avatar as AvatarPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Avatar({\n  className,\n  size = \"default\",\n  ...props\n}: React.ComponentProps<typeof AvatarPrimitive.Root> & {\n  size?: \"default\" | \"sm\" | \"lg\"\n}) {\n  return (\n    <AvatarPrimitive.Root\n      data-slot=\"avatar\"\n      data-size={size}\n      className={cn(\n        \"group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction AvatarImage({\n  className,\n  ...props\n}: React.ComponentProps<typeof AvatarPrimitive.Image>) {\n  return (\n    <AvatarPrimitive.Image\n      data-slot=\"avatar-image\"\n      className={cn(\n        \"aspect-square size-full rounded-full object-cover\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction AvatarFallback({\n  className,\n  ...props\n}: React.ComponentProps<typeof AvatarPrimitive.Fallback>) {\n  return (\n    <AvatarPrimitive.Fallback\n      data-slot=\"avatar-fallback\"\n      className={cn(\n        \"flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction AvatarBadge({ className, ...props }: React.ComponentProps<\"span\">) {\n  return (\n    <span\n      data-slot=\"avatar-badge\"\n      className={cn(\n        \"absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-primary text-primary-foreground bg-blend-color ring-2 ring-background select-none\",\n        \"group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden\",\n        \"group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2\",\n        \"group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction AvatarGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"avatar-group\"\n      className={cn(\n        \"group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction AvatarGroupCount({\n  className,\n  ...props\n}: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"avatar-group-count\"\n      className={cn(\n        \"relative flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-sm text-muted-foreground ring-2 ring-background group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nexport {\n  Avatar,\n  AvatarImage,\n  AvatarFallback,\n  AvatarGroup,\n  AvatarGroupCount,\n  AvatarBadge,\n}\n","type":"registry:ui","target":"components/ui/avatar.tsx"}],"description":"A testimonial promo with a soft fading background and a customer quote. Builds trust on a product page while reinforcing the offer you are running.","dependencies":["class-variance-authority","radix-ui"]}