Closing / CTA
Closing call-to-action sections — a centred band with a switchable backdrop, a screenshot-strip media CTA and a split card.
Preview
@props([
'badge' => 'Limited time',
'heading' => 'Start building something remarkable',
'subheading' => 'Join thousands of teams who ship faster with our platform. First 14 days free, no credit card required.',
'primaryLabel' => 'Get started',
'secondaryLabel' => 'Book a demo',
'shots' => 5,
])
@php
$shotLabels = ['Dashboard', 'Analytics', 'Reports', 'Settings', 'Integrations'];
$shotsCount = max(1, (int) $shots);
@endphp
<section {{ $attributes->merge(['class' => 'bg-background py-20 text-foreground sm:py-28']) }}>
{{-- CTA copy + actions --}}
<div class="mx-auto max-w-2xl px-4 text-center">
<div class="mb-6 flex justify-center">
<x-ui.badge variant="secondary">{{ __($badge) }}</x-ui.badge>
</div>
<h2 class="text-balance text-3xl font-bold tracking-tight sm:text-4xl lg:text-5xl">
{{ __($heading) }}
</h2>
<p class="mx-auto mt-6 max-w-xl text-lg text-muted-foreground">
{{ __($subheading) }}
</p>
<div class="mt-8 flex flex-wrap items-center justify-center gap-4">
<x-ui.button variant="default" href="#" :withArrow="true">
{{ __($primaryLabel) }}
</x-ui.button>
<x-ui.button variant="outline" href="#">
{{ __($secondaryLabel) }}
</x-ui.button>
</div>
</div>
{{-- Horizontally-scrollable screenshot strip --}}
<div class="relative mt-14">
{{-- Start fade mask --}}
<div
class="pointer-events-none absolute inset-y-0 start-0 z-10 w-24 bg-gradient-to-r from-background to-transparent rtl:bg-gradient-to-l"
aria-hidden="true"
></div>
{{-- End fade mask --}}
<div
class="pointer-events-none absolute inset-y-0 end-0 z-10 w-24 bg-gradient-to-l from-background to-transparent rtl:bg-gradient-to-r"
aria-hidden="true"
></div>
{{-- Scrollable row --}}
<div
class="flex snap-x snap-mandatory gap-4 overflow-x-auto px-8 pb-4 [scrollbar-width:none]"
role="list"
aria-label="{{ __('Product screenshots') }}"
tabindex="0"
>
@for ($i = 0; $i < $shotsCount; $i++)
<div
class="relative w-72 shrink-0 snap-center overflow-hidden rounded-lg border border-border bg-muted aspect-video"
role="listitem"
>
{{-- Placeholder app screenshot --}}
<div class="flex h-full w-full items-center justify-center" aria-hidden="true">
<svg class="size-10 text-muted-foreground/30" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" d="M9 17.25v1.007a3 3 0 0 1-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0 1 15 18.257V17.25m6-12V15a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 15V5.25m18 0A2.25 2.25 0 0 0 18.75 3H5.25A2.25 2.25 0 0 0 3 5.25m18 0H3" />
</svg>
</div>
{{-- Label chip --}}
@if (isset($shotLabels[$i]))
<div class="absolute bottom-2 start-2">
<span class="rounded-md bg-background/80 px-2 py-0.5 text-xs font-medium text-foreground backdrop-blur-sm ring-1 ring-border">
{{ __($shotLabels[$i]) }}
</span>
</div>
@endif
</div>
@endfor
</div>
</div>
</section>
Installation
php artisan ui:add blocks/closing-cta-media
Registry contract
Install confidence
php artisan ui:add blocks/closing-cta-media
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.5
- License
- open
- Stability
- stable
- Contract
- v1
- Foundation
- ≥ 1.0.0
| Type | Generated target |
|---|---|
| blade | resources/views/blocks/closing-cta-media.blade.php |
Registry dependencies
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.
# Brok UI block: CTA Media (`closing-cta-media`)
Bottom-of-page conversion CTA with urgency badge, bold headline, dual action buttons, and a horizontally scrollable screenshot strip with edge fade masks.
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-media
```
## Render it
```blade
<x-blocks.closing-cta-media />
```
## Props
- `badge` (string, default `Limited time`)
- `heading` (string, default `Start building something remarkable`)
- `subheading` (string, default `Join thousands of teams who ship faster with our platform. First 14 days free, no credit card required.`)
- `primary-label` (string, default `Get started`)
- `secondary-label` (string, default `Book a demo`)
- `shots` (int, default `5`)
## Use when
- Closing a marketing page with an urgency badge, a bold headline, dual action buttons and a scrollable screenshot strip.
- Fading the edges of the horizontally scrollable strip so partially visible screenshots read as intentional.
## Avoid when
- Use closing-cta-split for a split sign-up-form layout, or closing-cta-offer for a benefit-checklist-plus-price-panel layout.
## Rules
- Render the installed block with `<x-blocks.closing-cta-media />` 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-media
- Registry JSON (files, props, contract): https://brokui.dev/r/open/blocks/closing-cta-media.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 marketing page with an urgency badge, a bold headline, dual action buttons and a scrollable screenshot strip.
- Fading the edges of the horizontally scrollable strip so partially visible screenshots read as intentional.
Avoid when
- Use closing-cta-split for a split sign-up-form layout, or closing-cta-offer for a benefit-checklist-plus-price-panel layout.
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:
<x-blocks.closing-cta-media />
Built from primitives
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.
@props([
'badge' => 'Limited time',
'heading' => 'Start building something remarkable',
'subheading' => 'Join thousands of teams who ship faster with our platform. First 14 days free, no credit card required.',
'primaryLabel' => 'Get started',
'secondaryLabel' => 'Book a demo',
'shots' => 5,
])
@php
$shotLabels = ['Dashboard', 'Analytics', 'Reports', 'Settings', 'Integrations'];
$shotsCount = max(1, (int) $shots);
@endphp
<section {{ $attributes->merge(['class' => 'bg-background py-20 text-foreground sm:py-28']) }}>
{{-- CTA copy + actions --}}
<div class="mx-auto max-w-2xl px-4 text-center">
<div class="mb-6 flex justify-center">
<x-ui.badge variant="secondary">{{ __($badge) }}</x-ui.badge>
</div>
<h2 class="text-balance text-3xl font-bold tracking-tight sm:text-4xl lg:text-5xl">
{{ __($heading) }}
</h2>
<p class="mx-auto mt-6 max-w-xl text-lg text-muted-foreground">
{{ __($subheading) }}
</p>
<div class="mt-8 flex flex-wrap items-center justify-center gap-4">
<x-ui.button variant="default" href="#" :withArrow="true">
{{ __($primaryLabel) }}
</x-ui.button>
<x-ui.button variant="outline" href="#">
{{ __($secondaryLabel) }}
</x-ui.button>
</div>
</div>
{{-- Horizontally-scrollable screenshot strip --}}
<div class="relative mt-14">
{{-- Start fade mask --}}
<div
class="pointer-events-none absolute inset-y-0 start-0 z-10 w-24 bg-gradient-to-r from-background to-transparent rtl:bg-gradient-to-l"
aria-hidden="true"
></div>
{{-- End fade mask --}}
<div
class="pointer-events-none absolute inset-y-0 end-0 z-10 w-24 bg-gradient-to-l from-background to-transparent rtl:bg-gradient-to-r"
aria-hidden="true"
></div>
{{-- Scrollable row --}}
<div
class="flex snap-x snap-mandatory gap-4 overflow-x-auto px-8 pb-4 [scrollbar-width:none]"
role="list"
aria-label="{{ __('Product screenshots') }}"
tabindex="0"
>
@for ($i = 0; $i < $shotsCount; $i++)
<div
class="relative w-72 shrink-0 snap-center overflow-hidden rounded-lg border border-border bg-muted aspect-video"
role="listitem"
>
{{-- Placeholder app screenshot --}}
<div class="flex h-full w-full items-center justify-center" aria-hidden="true">
<svg class="size-10 text-muted-foreground/30" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" d="M9 17.25v1.007a3 3 0 0 1-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0 1 15 18.257V17.25m6-12V15a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 15V5.25m18 0A2.25 2.25 0 0 0 18.75 3H5.25A2.25 2.25 0 0 0 3 5.25m18 0H3" />
</svg>
</div>
{{-- Label chip --}}
@if (isset($shotLabels[$i]))
<div class="absolute bottom-2 start-2">
<span class="rounded-md bg-background/80 px-2 py-0.5 text-xs font-medium text-foreground backdrop-blur-sm ring-1 ring-border">
{{ __($shotLabels[$i]) }}
</span>
</div>
@endif
</div>
@endfor
</div>
</div>
</section>
Ownership & lifecycle
Owner, release state, review evidence and adoption for this item.
- Owner
- Platform UI (@JoshJML)
- Current version
-
1.0.5 - Status
- Stable
- License
-
open - Deprecation
- Not deprecated
- Contract
-
v1 - Foundation
-
≥ 1.0.0