Hero
Marketing hero sections: centred, split, search, form, video, stats, screenshot and more; the centred hero takes a switchable backdrop.
Preview
@props([
'eyebrow' => 'Now on iOS & Android',
'heading' => 'Your whole workflow, in your pocket',
'subheading' => 'Track, ship and review from anywhere. A fast, native-feeling app that keeps your team in sync wherever the work happens.',
'primaryCta' => 'Download the app',
'primaryHref' => '#',
'secondaryCta' => 'See features',
'secondaryHref' => '#',
])
<x-ui.section space="none" class="relative isolate overflow-hidden" {{ $attributes }}>
{{-- Brand glow behind the device --}}
<x-ui.glow variant="center" color="accent" />
<div class="relative z-10 mx-auto grid max-w-6xl grid-cols-1 items-center gap-12 px-4 py-20 sm:py-28 lg:grid-cols-2 lg:gap-16">
{{-- Copy --}}
<div class="text-center lg:text-start">
@if ($eyebrow)
<x-ui.badge variant="secondary" class="mb-6">{{ __($eyebrow) }}</x-ui.badge>
@endif
<h1 class="text-balance text-4xl font-bold tracking-tight sm:text-5xl lg:text-6xl">
{{ __($heading) }}
</h1>
<p class="mx-auto mt-6 max-w-xl text-pretty text-lg text-muted-foreground lg:mx-0">
{{ __($subheading) }}
</p>
<div class="mt-10 flex flex-col items-center gap-4 sm:flex-row sm:justify-center lg:justify-start">
<x-ui.button :href="$primaryHref" size="lg" class="w-full sm:w-auto">{{ __($primaryCta) }}</x-ui.button>
@if ($secondaryCta)
<x-ui.button :href="$secondaryHref" size="lg" variant="outline" class="w-full sm:w-auto">{{ __($secondaryCta) }}</x-ui.button>
@endif
</div>
</div>
{{-- Phone mockup with a faux app screen --}}
<div class="flex justify-center lg:justify-end">
<x-ui.iphone-mockup :time="'9:41'" label="Mobile app preview">
<div class="flex h-full flex-col gap-4 px-4 pb-6 pt-2">
<div class="flex items-center justify-between">
<div class="h-5 w-24 rounded-md bg-foreground/10"></div>
<div class="size-8 rounded-full bg-primary/20"></div>
</div>
<div class="rounded-lg bg-primary/10 p-6">
<div class="h-3 w-1/2 rounded-full bg-primary/30"></div>
<div class="mt-4 h-7 w-2/3 rounded-md bg-foreground/15"></div>
</div>
<div class="space-y-4">
@foreach (range(1, 4) as $row)
<div class="flex items-center gap-4 rounded-lg bg-foreground/5 p-6">
<div class="size-9 shrink-0 rounded-full bg-foreground/10"></div>
<div class="flex-1 space-y-2">
<div class="h-2 w-2/3 rounded-full bg-foreground/10"></div>
<div class="h-2 w-1/3 rounded-full bg-foreground/10"></div>
</div>
</div>
@endforeach
</div>
<div class="mt-auto flex items-center justify-around rounded-lg bg-foreground/5 py-6">
<div class="size-6 rounded-md bg-primary/30"></div>
<div class="size-6 rounded-md bg-foreground/10"></div>
<div class="size-6 rounded-md bg-foreground/10"></div>
</div>
</div>
</x-ui.iphone-mockup>
</div>
</div>
</x-ui.section>
Installation
php artisan ui:add blocks/hero-mobile-app
Registry contract
Install confidence
php artisan ui:add blocks/hero-mobile-app
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/hero-mobile-app.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: Hero Mobile App (`hero-mobile-app`)
A split hero pairing copy and dual call-to-action with an iPhone mockup app screen over a brand glow.
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/hero-mobile-app
```
## Render it
```blade
<x-blocks.hero-mobile-app />
```
## Props
- `eyebrow` (string, default `Now on iOS & Android`) — Small label shown above the heading inside a badge; falsy hides the badge.
- `heading` (string, default `Your whole workflow, in your pocket`) — Primary headline.
- `subheading` (string, default `Track, ship and review from anywhere. A fast, native-feeling app that keeps your team in sync wherever the work happens.`) — Supporting copy under the heading.
- `primary-cta` (string, default `Download the app`) — Primary button label.
- `primary-href` (string, default `#`) — Primary button destination.
- `secondary-cta` (string, default `See features`) — Secondary button label; falsy hides the secondary button.
- `secondary-href` (string, default `#`) — Secondary button destination.
## Use when
- Opening a mobile-app landing or download page with copy and dual CTAs on one side and an iPhone-framed app-screen mockup on the other.
- Wanting a centered brand glow behind the device instead of a full switchable decorative backdrop.
## Avoid when
- Needing a browser-window product screenshot instead of a phone frame; use hero-split or hero-screenshot for a desktop mockup.
- Showing a desktop web product; use hero-mockup, one centred column of copy stacked above a full-width browser-window mockup, where this block is a two-column grid with a phone frame.
## Rules
- Render the installed block with `<x-blocks.hero-mobile-app />` 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/hero-mobile-app
- Registry JSON (files, props, contract): https://brokui.dev/r/open/blocks/hero-mobile-app.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
- Opening a mobile-app landing or download page with copy and dual CTAs on one side and an iPhone-framed app-screen mockup on the other.
- Wanting a centered brand glow behind the device instead of a full switchable decorative backdrop.
Avoid when
- Needing a browser-window product screenshot instead of a phone frame; use hero-split or hero-screenshot for a desktop mockup.
- Showing a desktop web product; use hero-mockup, one centred column of copy stacked above a full-width browser-window mockup, where this block is a two-column grid with a phone frame.
Anti-patterns
- Do not replace semantic props with conflicting utility classes.
- Do not remove labels, focus styles, or state attributes.
- Anatomy
Usage
Render the block as a component, passing data where useful:
<x-blocks.hero-mobile-app />
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([
'eyebrow' => 'Now on iOS & Android',
'heading' => 'Your whole workflow, in your pocket',
'subheading' => 'Track, ship and review from anywhere. A fast, native-feeling app that keeps your team in sync wherever the work happens.',
'primaryCta' => 'Download the app',
'primaryHref' => '#',
'secondaryCta' => 'See features',
'secondaryHref' => '#',
])
<x-ui.section space="none" class="relative isolate overflow-hidden" {{ $attributes }}>
{{-- Brand glow behind the device --}}
<x-ui.glow variant="center" color="accent" />
<div class="relative z-10 mx-auto grid max-w-6xl grid-cols-1 items-center gap-12 px-4 py-20 sm:py-28 lg:grid-cols-2 lg:gap-16">
{{-- Copy --}}
<div class="text-center lg:text-start">
@if ($eyebrow)
<x-ui.badge variant="secondary" class="mb-6">{{ __($eyebrow) }}</x-ui.badge>
@endif
<h1 class="text-balance text-4xl font-bold tracking-tight sm:text-5xl lg:text-6xl">
{{ __($heading) }}
</h1>
<p class="mx-auto mt-6 max-w-xl text-pretty text-lg text-muted-foreground lg:mx-0">
{{ __($subheading) }}
</p>
<div class="mt-10 flex flex-col items-center gap-4 sm:flex-row sm:justify-center lg:justify-start">
<x-ui.button :href="$primaryHref" size="lg" class="w-full sm:w-auto">{{ __($primaryCta) }}</x-ui.button>
@if ($secondaryCta)
<x-ui.button :href="$secondaryHref" size="lg" variant="outline" class="w-full sm:w-auto">{{ __($secondaryCta) }}</x-ui.button>
@endif
</div>
</div>
{{-- Phone mockup with a faux app screen --}}
<div class="flex justify-center lg:justify-end">
<x-ui.iphone-mockup :time="'9:41'" label="Mobile app preview">
<div class="flex h-full flex-col gap-4 px-4 pb-6 pt-2">
<div class="flex items-center justify-between">
<div class="h-5 w-24 rounded-md bg-foreground/10"></div>
<div class="size-8 rounded-full bg-primary/20"></div>
</div>
<div class="rounded-lg bg-primary/10 p-6">
<div class="h-3 w-1/2 rounded-full bg-primary/30"></div>
<div class="mt-4 h-7 w-2/3 rounded-md bg-foreground/15"></div>
</div>
<div class="space-y-4">
@foreach (range(1, 4) as $row)
<div class="flex items-center gap-4 rounded-lg bg-foreground/5 p-6">
<div class="size-9 shrink-0 rounded-full bg-foreground/10"></div>
<div class="flex-1 space-y-2">
<div class="h-2 w-2/3 rounded-full bg-foreground/10"></div>
<div class="h-2 w-1/3 rounded-full bg-foreground/10"></div>
</div>
</div>
@endforeach
</div>
<div class="mt-auto flex items-center justify-around rounded-lg bg-foreground/5 py-6">
<div class="size-6 rounded-md bg-primary/30"></div>
<div class="size-6 rounded-md bg-foreground/10"></div>
<div class="size-6 rounded-md bg-foreground/10"></div>
</div>
</div>
</x-ui.iphone-mockup>
</div>
</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