UIPin
ComponentsIconsIllustrationsMotionTemplatesApps
Boards
UIPin

Free, open-source UI components, icons, illustrations, motion, templates and apps, in one search. Every item links to its source and licence.

UIPin is free. If it saved you time, you can keep it running:

Buy me a coffee
ComponentsIconsIllustrationsMotionTemplatesAppsLibrariesCompareNew this weekMCP for agentsBoardsPrivacy

Components, icons and artwork belong to their authors and are shown under their open-source licences.

SmoothUI/Cta 2

Page sections
1 of 3
Compiling

Theme it

Every preview, live

Brand colour

Corner radius

Font

Recolours shadcn’s tokens, Tailwind’s accent colours and colours set in the code. Red, amber and green classes stay, since they usually mean error, warning or success.

3 versions·1 library

  • Cta 2
  • Cta 1
  • Cta 3

Cta 2

Split layout CTA block with text and illustration

npx shadcn@latest add https://smoothui.dev/r/cta-2.json
Open in v0 Docs Repo
Library
SmoothUI
License
MIT
Stack
React · Tailwind CSS · animated · base-ui
Packages
@base-ui/reactclass-variance-authoritymotion
Also adds
index, app-icons, cast, component-meta, people, products, scenes, smoothui-schema
Size
81 lines

Code

components/smoothui/cta-2/index.tsx

"use client";

import SmoothButton from "@/components/smoothui/smooth-button";
import { getImageKitUrl } from "@/lib/smoothui-data";
import { motion, useReducedMotion } from "motion/react";

const SPRING = {
  bounce: 0.1,
  duration: 0.25,
  type: "spring" as const,
};

export function CtaSplit() {
  const shouldReduceMotion = useReducedMotion();

  return (
    <section aria-labelledby="cta-split-heading">
      <div className="py-24 md:py-32">
        <div className="mx-auto grid max-w-6xl items-center gap-12 px-6 md:grid-cols-2">
          <motion.div
            initial={
              shouldReduceMotion ? { opacity: 1 } : { opacity: 0, x: -24 }
            }
            transition={shouldReduceMotion ? { duration: 0 } : SPRING}
            viewport={{ once: true }}
            whileInView={
              shouldReduceMotion ? { opacity: 1 } : { opacity: 1, x: 0 }
            }
          >
            <h2
              className="text-balance font-bold text-3xl tracking-tight md:text-4xl"
              id="cta-split-heading"
            >
              Ship faster with animated components
            </h2>
            <p className="mt-4 text-foreground/70 text-lg leading-relaxed">
              Stop building UI from scratch. Use production-ready, beautifully
              animated components that work with your existing design system.
            </p>
            <div className="mt-8 flex flex-wrap gap-4">
              <SmoothButton size="lg" variant="candy">
                Browse Components
              </SmoothButton>
              <SmoothButton size="lg" variant="outline">
                View on GitHub
              </SmoothButton>
            </div>
          </motion.div>

          <motion.div
            className="relative"
            initial={
              shouldReduceMotion ? { opacity: 1 } : { opacity: 0, x: 24 }
            }
            transition={shouldReduceMotion ? { duration: 0 } : SPRING}
            viewport={{ once: true }}
            whileInView={
              shouldReduceMotion ? { opacity: 1 } : { opacity: 1, x: 0 }
            }
          >
            <div className="overflow-hidden rounded-2xl border shadow-lg">
              <img
                alt="Product preview showing animated UI components"
                className="h-auto w-full object-cover"
                draggable={false}
                src={getImageKitUrl("/images/hero-smoothui.png", {
                  format: "auto",
                  quality: 85,
                  width: 800,
                })}
              />
            </div>
          </motion.div>
        </div>
      </div>
    </section>
  );
}

export default CtaSplit;

More like this

Header 2

SmoothUI·Navigation

Cta 1

SmoothUI·Page sections

Features 3

SmoothUI·Cards

Bento Grid

Magic UI·Cards

Pricing 2

SmoothUI·Cards

Features 1

SmoothUI·Cards

Header 5

SmoothUI·Navigation

Border Beam Button

Cult UI·Backgrounds

Floating 3D Particles

Magic UI·Backgrounds

Team 2

SmoothUI·Page sections

Header 1

SmoothUI·Navigation

Footer 2

SmoothUI·Navigation

Header 4

SmoothUI·Navigation

Shape Hero

Kokonut UI·Page sections

Footer 3

SmoothUI·Navigation