Skip to content

Horizon glow

CTA card on a glowing horizon shader.

Usage

Usage
import { CtaHorizonGlow } from '@/components/blocks/cta-02'


<CtaHorizonGlow />


// Swap in your own copy and the violet preset
<CtaHorizonGlow
  title="Your weekly report, written before Monday"
  description="Numbers pulled, charts drawn and the summary drafted while you sleep."
  ctaLabel="Start free"
  ctaHref="/signup"
  palette="twilight"
  speed={0.6}
/>

Install

pnpm dlx shadcn@latest add @pastaui-pro/cta-02

Source

Props

Horizon glow props
PropTypeDefaultDescription
titlestring= 'Wake up to a sorted inbox, filed receipts and replies ready to send'Headline.
descriptionstring= 'Ovantri works through everything that lands overnight, drafts the answers in your voice and leaves you only the three decisions that need a person.'Supporting line under the headline.
ctaLabelstring= 'Try it for a week'Button text.
ctaHrefstring= '#trial'Where the button links to.
palette'blue' | 'twilight'= 'blue'Preset colour scheme for the Horizon glow shader.
colorsPartial<HorizonGlowColors>= —Hex colours for the shader (base, accent, highlight, core). Overrides single tones of the palette.
speednumber= 1Multiplier for how fast the glow breathes and drifts. 0 freezes it; reduced motion also holds it still.
intensitynumber= 0.9Brightness of the glow.
horizonnumber= 0.9Vertical position of the glowing horizon, from 0 (top) to 1 (bottom). Keep it low so the copy sits on the dark part.
curvaturenumber= 0.45How strongly the glow bends up toward the card edges. 0 gives a flat line.
classNamestring= —Additional classes for the section.
styleCSSProperties= —Inline styles, handy for overriding the --pp-* theme variables.