Cta 2
smoothui-registry/cta-2FreeBlock
Split layout CTA block with text and illustration
Install it
npx shadcn@latest add https://www.smoothui.dev/r/cta-2.jsonSource
1"use client";23import SmoothButton from "@/components/smoothui/smooth-button";4import { getImageKitUrl } from "@/lib/smoothui-data";5import { motion, useReducedMotion } from "motion/react";67const SPRING = {8 bounce: 0.1,9 duration: 0.25,10 type: "spring" as const,11};1213export function CtaSplit() {14 const shouldReduceMotion = useReducedMotion();1516 return (17 <section aria-labelledby="cta-split-heading">18 <div className="py-24 md:py-32">19 <div className="mx-auto grid max-w-6xl items-center gap-12 px-6 md:grid-cols-2">20 <motion.div21 initial={22 shouldReduceMotion ? { opacity: 1 } : { opacity: 0, x: -24 }23 }24 transition={shouldReduceMotion ? { duration: 0 } : SPRING}25 viewport={{ once: true }}26 whileInView={27 shouldReduceMotion ? { opacity: 1 } : { opacity: 1, x: 0 }28 }29 >30 <h231 className="text-balance font-bold text-3xl tracking-tight md:text-4xl"32 id="cta-split-heading"33 >34 Ship faster with animated components35 </h2>36 <p className="mt-4 text-foreground/70 text-lg leading-relaxed">37 Stop building UI from scratch. Use production-ready, beautifully38 animated components that work with your existing design system.39 </p>40 <div className="mt-8 flex flex-wrap gap-4">41 <SmoothButton size="lg" variant="candy">42 Browse Components43 </SmoothButton>44 <SmoothButton size="lg" variant="outline">45 View on GitHub46 </SmoothButton>47 </div>48 </motion.div>4950 <motion.div51 className="relative"52 initial={53 shouldReduceMotion ? { opacity: 1 } : { opacity: 0, x: 24 }54 }55 transition={shouldReduceMotion ? { duration: 0 } : SPRING}56 viewport={{ once: true }}57 whileInView={58 shouldReduceMotion ? { opacity: 1 } : { opacity: 1, x: 0 }59 }60 >61 <div className="overflow-hidden rounded-2xl border shadow-lg">62 <img63 alt="Product preview showing animated UI components"64 className="h-auto w-full object-cover"65 draggable={false}66 src={getImageKitUrl("/images/hero-smoothui.png", {67 format: "auto",68 quality: 85,69// … truncated
What it pulls in
npm packages
Other registry items
Files it writes
More from SmoothUI Registry
All 177 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Chat Templatechat-template | SmoothUI Registry | Blocks | Free | 2 deps · 4 files | |
| Cta 1cta-1 | SmoothUI Registry | Blocks | Free | 1 dep | |
| Cta 3cta-3 | SmoothUI Registry | Blocks | Free | 1 dep | |
| Faq 1faq-1 | SmoothUI Registry | Blocks | Free | 2 deps | |
| Faq 2faq-2 | SmoothUI Registry | Blocks | Free | 1 dep | |
| Faq 3faq-3 | SmoothUI Registry | Blocks | Free | 2 deps | |
| Faq 4faq-4 | SmoothUI Registry | Blocks | Free | 2 deps | |
| Features 1features-1 | SmoothUI Registry | Blocks | Free | 1 dep |
