Skip to content
Brok UI

Loading…

No results

CTA Offer

Open source

A two-column call-to-action card pairing a headline and benefit checklist with a tinted offer panel showing price, note and a primary button.

Responsive Dark mode RTL Localized SEO

Preview

resources/views/blocks/closing-cta-offer.blade.php Blade
@props([
    'heading' => 'Transform your workflow',
    'subheading' => 'Experience the power of seamless integrations and watch your team’s productivity soar.',
    'benefits' => null,
    'offerLabel' => 'Starting at',
    'price' => '$0',
    'period' => '/month',
    'offerNote' => 'Free forever for individuals.',
    'cta' => 'Get started free',
    'href' => '#',
])

@php
    $benefits ??= [
        '14-day free trial',
        'No credit card required',
        'Cancel anytime',
        '24/7 support',
    ];
@endphp

<x-ui.section space="xl" {{ $attributes }}>
    <div class="mx-auto max-w-3xl px-4">
        <x-ui.card class="grid gap-8 p-6 sm:p-8 md:grid-cols-2 md:items-center">
            <div>
                <h2 class="text-balance text-3xl font-bold tracking-tight">{{ __($heading) }}</h2>
                <p class="mt-4 text-pretty text-muted-foreground">{{ __($subheading) }}</p>

                <x-ui.check-list class="mt-6 text-muted-foreground">
                    @foreach ($benefits as $benefit)
                        <x-ui.check-list.item>{{ __($benefit) }}</x-ui.check-list.item>
                    @endforeach
                </x-ui.check-list>
            </div>

            <div class="flex flex-col justify-center rounded-lg border border-border bg-muted/50 p-6">
                <p class="text-sm text-muted-foreground">{{ __($offerLabel) }}</p>
                <p class="mt-2 flex items-baseline gap-2">
                    <span class="text-4xl font-bold tracking-tight">{{ $price }}</span>
                    <span class="text-sm text-muted-foreground">{{ __($period) }}</span>
                </p>
                @if ($offerNote)
                    <p class="mt-2 text-sm text-muted-foreground">{{ __($offerNote) }}</p>
                @endif
                <x-ui.button :href="$href" class="mt-6 w-full">
                    {{ __($cta) }}
                    <svg class="ms-2 size-4 shrink-0 rtl:-scale-x-100" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" aria-hidden="true">
                        <path stroke-linecap="round" stroke-linejoin="round" d="M5 12h14M13 6l6 6-6 6" />
                    </svg>
                </x-ui.button>
            </div>
        </x-ui.card>
    </div>
</x-ui.section>

Installation

terminal
php artisan ui:add blocks/closing-cta-offer

Installs these dependencies automatically:

Registry contract

Install confidence

php artisan ui:add blocks/closing-cta-offer writes only the generated targets below. The CLI validates each file hash before writing and prompts before replacing local changes unless --force is used.

Version
1.0.6
License
open
Stability
stable
Contract
v1
Foundation
≥ 1.0.0
Type Generated target
blade resources/views/blocks/closing-cta-offer.blade.php

Registry dependencies

button card check-list section

Package dependencies

composer: jml/brok:^0.2

Use with AI

A brief for your coding agent: what the block is, the install command, how to render it, its props and the rules. Copy it, or open a prompt about this block in an assistant.

closing-cta-offer.md
# Brok UI block: CTA Offer (`closing-cta-offer`)

A two-column call-to-action card pairing a headline and benefit checklist with a tinted offer panel showing price, note and a primary button.

Brok UI is a Laravel Blade registry. `ui:add` copies this block into the app as plain Blade the app owns; it composes installed `<brok:*>` primitives and semantic design tokens.

## Install

```bash
php artisan ui:add blocks/closing-cta-offer
```

## Render it

```blade
<x-blocks.closing-cta-offer />
```

## Props

- `heading` (string, default `Transform your workflow`)
- `subheading` (string, default `Experience the power of seamless integrations and watch your team’s productivity soar.`)
- `benefits` (mixed|null, default `null`)
- `offer-label` (string, default `Starting at`)
- `price` (string, default `$0`)
- `period` (string, default `/month`)
- `offer-note` (string, default `Free forever for individuals.`)
- `cta` (string, default `Get started free`)
- `href` (string, default `#`)

## Use when

- Closing a page with a headline and benefit checklist beside a tinted offer panel showing price, note and a primary button.
- Leading with concrete plan benefits (free trial, no card required) rather than a sign-up form.

## Avoid when

- Use closing-cta-split for an email-capture form instead of a price panel, or closing-cta-media for a screenshot-led closing section.

## Rules

- Render the installed block with `<x-blocks.closing-cta-offer />` and pass data through its props; edit the copied file only for structural changes.
- Keep the semantic design tokens (`bg-background`, `text-muted-foreground`); never swap in raw colour utilities.
- Keep the `data-slot` attributes and the logical (start/end) spacing so the markup still mirrors under `dir="rtl"`.

## Links

- Docs: https://brokui.dev/blocks/closing-cta-offer
- Registry JSON (files, props, contract): https://brokui.dev/r/open/blocks/closing-cta-offer.json

Working in Claude Code, Cursor or Codex? Give the agent the whole registry through the MCP server or the Brok UI skill.

Guidance

Use when

  • Closing a page with a headline and benefit checklist beside a tinted offer panel showing price, note and a primary button.
  • Leading with concrete plan benefits (free trial, no card required) rather than a sign-up form.

Avoid when

  • Use closing-cta-split for an email-capture form instead of a price panel, or closing-cta-media for a screenshot-led closing section.

Anti-patterns

  • Do not replace semantic props with conflicting utility classes.
  • Do not remove labels, focus styles, or state attributes.

Usage

Render the block as a component, passing data where useful:

resources/views/welcome.blade.php Blade
<x-blocks.closing-cta-offer />

Built from primitives

Composes <brok:*> Semantic tokens Re-themeable RTL-ready

This block composes installed <brok:*> primitives and semantic design tokens only — it does not reimplement any primitive. Re-theme it (light, dark, admin, customer) by editing CSS variables; flip the preview to RTL to confirm it mirrors.

Source

The exact, editable file ui:add writes into your app. The preview above renders this same source — there are no preview-only blocks.

resources/views/blocks/closing-cta-offer.blade.php Blade
@props([
    'heading' => 'Transform your workflow',
    'subheading' => 'Experience the power of seamless integrations and watch your team’s productivity soar.',
    'benefits' => null,
    'offerLabel' => 'Starting at',
    'price' => '$0',
    'period' => '/month',
    'offerNote' => 'Free forever for individuals.',
    'cta' => 'Get started free',
    'href' => '#',
])

@php
    $benefits ??= [
        '14-day free trial',
        'No credit card required',
        'Cancel anytime',
        '24/7 support',
    ];
@endphp

<x-ui.section space="xl" {{ $attributes }}>
    <div class="mx-auto max-w-3xl px-4">
        <x-ui.card class="grid gap-8 p-6 sm:p-8 md:grid-cols-2 md:items-center">
            <div>
                <h2 class="text-balance text-3xl font-bold tracking-tight">{{ __($heading) }}</h2>
                <p class="mt-4 text-pretty text-muted-foreground">{{ __($subheading) }}</p>

                <x-ui.check-list class="mt-6 text-muted-foreground">
                    @foreach ($benefits as $benefit)
                        <x-ui.check-list.item>{{ __($benefit) }}</x-ui.check-list.item>
                    @endforeach
                </x-ui.check-list>
            </div>

            <div class="flex flex-col justify-center rounded-lg border border-border bg-muted/50 p-6">
                <p class="text-sm text-muted-foreground">{{ __($offerLabel) }}</p>
                <p class="mt-2 flex items-baseline gap-2">
                    <span class="text-4xl font-bold tracking-tight">{{ $price }}</span>
                    <span class="text-sm text-muted-foreground">{{ __($period) }}</span>
                </p>
                @if ($offerNote)
                    <p class="mt-2 text-sm text-muted-foreground">{{ __($offerNote) }}</p>
                @endif
                <x-ui.button :href="$href" class="mt-6 w-full">
                    {{ __($cta) }}
                    <svg class="ms-2 size-4 shrink-0 rtl:-scale-x-100" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" aria-hidden="true">
                        <path stroke-linecap="round" stroke-linejoin="round" d="M5 12h14M13 6l6 6-6 6" />
                    </svg>
                </x-ui.button>
            </div>
        </x-ui.card>
    </div>
</x-ui.section>

Ownership & lifecycle

Owner, release state, review evidence and adoption for this item.
Owner
Platform UI (@JoshJML)
Current version
1.0.6
Status
Stable
License
open
Deprecation
Not deprecated
Contract
v1
Foundation
≥ 1.0.0