Cta 01
A full-width call-to-action section with a gradient heading, a short description, and a pill-shaped "Get Started" link on a faint grid background. Animated light streaks run down both sides on desktop, and the palette follows the app's light or dark theme unless overridden.
Installation
Requires @eldoraui in the registries of your components.json (shadcn adds official directory namespaces automatically).
Usage
import CtaSection from "@/registry/blocks/cta-01/components/cta"export default function Page() { return <CtaSection />}- Closing a landing page with a single strong call to action such as signing up or getting started
- Adding a hero-style CTA band with an animated, developer-tool aesthetic
- Needing a section that adapts to the site's light and dark theme without extra configuration
Examples
Default page usage
Renders the block as shipped. It follows the resolved theme from next-themes after mount and falls back to dark on the server.
import CtaSection from "@/registry/blocks/cta-01/components/cta"export default function CtaPage() { return ( <div className="w-full max-w-full"> <CtaSection /> </div> )}Forcing the light variant
Pins the section to the light palette regardless of the app's current theme.
import CtaSection from "@/registry/blocks/cta-01/components/cta"export default function LightCtaPage() { return <CtaSection variant="light" />}Placed at the bottom of a landing page
Combines the CTA with other sections on a marketing page and pins the dark palette.
import CtaSection from "@/registry/blocks/cta-01/components/cta"function Features() { return <section className="mx-auto max-w-5xl px-4 py-24">Features</section>}export default function LandingPage() { return ( <main> <Features /> <CtaSection variant="dark" /> </main> )}API reference
Accessibility
- The decorative grid layers and the side-line SVG-based animations are marked aria-hidden on the grid layers; the SVG line graphics are purely decorative and carry no meaningful text.
- The heading is rendered as an h1, so the page should contain only one h1. If this block sits under another page title, consider changing the level by editing the source.
- The button is a Next.js Link to the hardcoded href "/dashboard/sites". The visible label is rendered by TextGlitch as three overlapping spans, so screen readers may announce the text more than once; consider adding an aria-label to the link if this matters.
- The gradient heading and subtitle use transparent text with bg-clip-text, so check contrast against the background in both themes.
- The entrance and looping animations do not check prefers-reduced-motion. Consider disabling motion for users who prefer reduced motion if this is critical for your product.
Docs written by anthropic:claude-haiku-5-5 from the registry source.
Use with Coding Agent
Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.
Use the "Cta 01" component (eldoraui/cta-01) from its shadcn registry.1. Install it with: npx shadcn@latest add @eldoraui/cta-012. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.4. Available props: variant.Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport CtaSection from "@/registry/blocks/cta-01/components/cta"export default function Page() { return <CtaSection />}```Files & dependencies
- registry/blocks/cta-01/page.tsx→ app/cta/page.tsx
- registry/blocks/cta-01/components/cta.tsx
Looks similar, elsewhere
There is no screenshot of this item to compare yet.