Skip to content
Brok UI

Loading…

No results

About

Open source

About-us sections — a story column with a values list paired with a card collage and a stat grid.

Preview

resources/views/blocks/about-stats.blade.php Blade
@props([
    'eyebrow'  => 'Our story in numbers',
    'heading'  => 'Built for teams who move fast and care about craft',
    'lead'     => null,
    'stats'    => null,
])

@php
    $lead ??= [
        'We started in 2014 with a single conviction: great software should be the default, not the exception. From a three-person consultancy to a globally distributed product team, every decision has been guided by the people who use what we build.',
        'Today we partner with companies across forty countries, shipping accessible, token-driven interfaces that teams own outright — no lock-in, no runtime dependency, no upgrade anxiety.',
    ];
    $stats ??= [
        ['trend' => 'Est.', 'value' => '2014', 'label' => 'Year founded'],
        ['trend' => '+18% YoY', 'value' => '12k+', 'label' => 'Customers worldwide'],
        ['trend' => 'Fully remote', 'value' => '40+', 'label' => 'Countries represented'],
        ['trend' => 'And growing', 'value' => '180', 'label' => 'Team members'],
    ];
@endphp

<x-ui.section space="xl" {{ $attributes }}>
    <x-ui.container gutter="sm">
        <div class="grid grid-cols-1 items-center gap-12 lg:grid-cols-2 lg:gap-16">
            <div class="max-w-xl">
                @if ($eyebrow)<x-ui.badge variant="secondary" class="mb-6">{{ __($eyebrow) }}</x-ui.badge>@endif
                <h2 class="text-balance text-3xl font-bold tracking-tight sm:text-4xl">{{ __($heading) }}</h2>
                <div class="mt-6 space-y-4 text-pretty text-base leading-relaxed text-muted-foreground">
                    @foreach ($lead as $paragraph)<p>{{ __($paragraph) }}</p>@endforeach
                </div>
            </div>
            <div class="relative aspect-[4/3] overflow-hidden rounded-lg border border-border bg-gradient-to-br from-primary/20 via-muted to-primary/5">
                <div class="absolute inset-0 flex items-center justify-center">
                    <span class="flex size-16 items-center justify-center rounded-lg bg-primary/10 text-primary ring-1 ring-primary/20" aria-hidden="true">
                        <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="size-8" aria-hidden="true"><circle cx="12" cy="8" r="4" /><path d="M4 20c0-4 3.582-7 8-7s8 3 8 7" /></svg>
                    </span>
                </div>
            </div>
        </div>

        <div class="mt-16 grid grid-cols-2 gap-4 sm:gap-6 lg:grid-cols-4">
            @foreach ($stats as $stat)
                <x-ui.card class="flex flex-col gap-4 p-6 sm:p-8">
                    <x-ui.badge variant="secondary" size="sm" class="self-start">{{ __($stat['trend']) }}</x-ui.badge>
                    <p class="text-3xl font-bold tracking-tight text-foreground sm:text-4xl">{{ $stat['value'] }}</p>
                    <p class="text-sm font-medium text-muted-foreground">{{ __($stat['label']) }}</p>
                </x-ui.card>
            @endforeach
        </div>
    </x-ui.container>
</x-ui.section>

Installation

terminal
php artisan ui:add blocks/about-stats

Installs these dependencies automatically:

Registry contract

Install confidence

php artisan ui:add blocks/about-stats 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.4
License
open
Stability
stable
Contract
v1
Foundation
≥ 1.0.0
Type Generated target
blade resources/views/blocks/about-stats.blade.php

Registry dependencies

badge card container 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.

about-stats.md
# Brok UI block: About Stats (`about-stats`)

An about section led by big company stats — a copy column beside a media panel above a four-up stat-card band.

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/about-stats
```

## Render it

```blade
<x-blocks.about-stats />
```

## Props

- `eyebrow` (string, default `Our story in numbers`)
- `heading` (string, default `Built for teams who move fast and care about craft`)
- `lead` (mixed|null, default `null`)
- `stats` (mixed|null, default `null`)

## Use when

- Leading an About page with a four-up stat band (founded year, customers, countries, team size) beside a two-paragraph copy column.
- Pairing a short company narrative with a decorative media panel rather than a story-and-values list.

## Avoid when

- Use about-split for a story-plus-values narrative or about-timeline for a chronological milestone timeline instead.

## Rules

- Render the installed block with `<x-blocks.about-stats />` 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/about-stats
- Registry JSON (files, props, contract): https://brokui.dev/r/open/blocks/about-stats.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

  • Leading an About page with a four-up stat band (founded year, customers, countries, team size) beside a two-paragraph copy column.
  • Pairing a short company narrative with a decorative media panel rather than a story-and-values list.

Avoid when

  • Use about-split for a story-plus-values narrative or about-timeline for a chronological milestone timeline instead.

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.about-stats />

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/about-stats.blade.php Blade
@props([
    'eyebrow'  => 'Our story in numbers',
    'heading'  => 'Built for teams who move fast and care about craft',
    'lead'     => null,
    'stats'    => null,
])

@php
    $lead ??= [
        'We started in 2014 with a single conviction: great software should be the default, not the exception. From a three-person consultancy to a globally distributed product team, every decision has been guided by the people who use what we build.',
        'Today we partner with companies across forty countries, shipping accessible, token-driven interfaces that teams own outright — no lock-in, no runtime dependency, no upgrade anxiety.',
    ];
    $stats ??= [
        ['trend' => 'Est.', 'value' => '2014', 'label' => 'Year founded'],
        ['trend' => '+18% YoY', 'value' => '12k+', 'label' => 'Customers worldwide'],
        ['trend' => 'Fully remote', 'value' => '40+', 'label' => 'Countries represented'],
        ['trend' => 'And growing', 'value' => '180', 'label' => 'Team members'],
    ];
@endphp

<x-ui.section space="xl" {{ $attributes }}>
    <x-ui.container gutter="sm">
        <div class="grid grid-cols-1 items-center gap-12 lg:grid-cols-2 lg:gap-16">
            <div class="max-w-xl">
                @if ($eyebrow)<x-ui.badge variant="secondary" class="mb-6">{{ __($eyebrow) }}</x-ui.badge>@endif
                <h2 class="text-balance text-3xl font-bold tracking-tight sm:text-4xl">{{ __($heading) }}</h2>
                <div class="mt-6 space-y-4 text-pretty text-base leading-relaxed text-muted-foreground">
                    @foreach ($lead as $paragraph)<p>{{ __($paragraph) }}</p>@endforeach
                </div>
            </div>
            <div class="relative aspect-[4/3] overflow-hidden rounded-lg border border-border bg-gradient-to-br from-primary/20 via-muted to-primary/5">
                <div class="absolute inset-0 flex items-center justify-center">
                    <span class="flex size-16 items-center justify-center rounded-lg bg-primary/10 text-primary ring-1 ring-primary/20" aria-hidden="true">
                        <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="size-8" aria-hidden="true"><circle cx="12" cy="8" r="4" /><path d="M4 20c0-4 3.582-7 8-7s8 3 8 7" /></svg>
                    </span>
                </div>
            </div>
        </div>

        <div class="mt-16 grid grid-cols-2 gap-4 sm:gap-6 lg:grid-cols-4">
            @foreach ($stats as $stat)
                <x-ui.card class="flex flex-col gap-4 p-6 sm:p-8">
                    <x-ui.badge variant="secondary" size="sm" class="self-start">{{ __($stat['trend']) }}</x-ui.badge>
                    <p class="text-3xl font-bold tracking-tight text-foreground sm:text-4xl">{{ $stat['value'] }}</p>
                    <p class="text-sm font-medium text-muted-foreground">{{ __($stat['label']) }}</p>
                </x-ui.card>
            @endforeach
        </div>
    </x-ui.container>
</x-ui.section>

Ownership & lifecycle

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