Skip to content
Brok UI

Loading…

No results

Team

Open source

Team sections — a card grid, a split-lead layout, list rows, a photo grid, a minimal grid and a carousel.

Preview

5 of 9

resources/views/blocks/team-photo-grid.blade.php Blade
@props([
    'eyebrow' => 'Our team',
    'heading' => 'The people building it',
    'subheading' => 'Large portrait tiles for a visual, editorial team page — names and roles sit over each photo, with social links revealed on hover and keyboard focus.',
    'members' => null,
])

@php
    $members ??= [
        [
            'name' => 'Avery Mitchell',
            'role' => 'Co-founder & CEO',
            'initials' => 'AM',
            'links' => [
                'linkedin' => 'https://www.linkedin.com/',
                'x' => 'https://x.com/',
                'github' => 'https://github.com/',
            ],
        ],
        [
            'name' => 'Jordan Lee',
            'role' => 'Head of Engineering',
            'initials' => 'JL',
            'links' => [
                'linkedin' => 'https://www.linkedin.com/',
                'x' => 'https://x.com/',
                'github' => 'https://github.com/',
            ],
        ],
        [
            'name' => 'Priya Nair',
            'role' => 'Lead Designer',
            'initials' => 'PN',
            'links' => [
                'linkedin' => 'https://www.linkedin.com/',
                'x' => 'https://x.com/',
                'github' => 'https://github.com/',
            ],
        ],
        [
            'name' => 'Marcus Bell',
            'role' => 'Developer Advocate',
            'initials' => 'MB',
            'links' => [
                'linkedin' => 'https://www.linkedin.com/',
                'x' => 'https://x.com/',
                'github' => 'https://github.com/',
            ],
        ],
        [
            'name' => 'Sofia Romero',
            'role' => 'Product Manager',
            'initials' => 'SR',
            'links' => [
                'linkedin' => 'https://www.linkedin.com/',
                'x' => 'https://x.com/',
                'github' => 'https://github.com/',
            ],
        ],
        [
            'name' => 'Theo Almeida',
            'role' => 'Staff Engineer',
            'initials' => 'TA',
            'links' => [
                'linkedin' => 'https://www.linkedin.com/',
                'x' => 'https://x.com/',
                'github' => 'https://github.com/',
            ],
        ],
    ];

    // Per-person `links` (network => url) become one social-links row, labelled per person.
    $networkLabels = ['linkedin' => 'LinkedIn', 'x' => 'X', 'github' => 'GitHub'];
    $memberLinks = fn (array $member) => collect($member['links'])
        ->map(fn (string $url, string $network) => [
            'platform' => $network,
            'href' => $url,
            'label' => __(':name on :network', ['name' => $member['name'], 'network' => $networkLabels[$network] ?? ucfirst($network)]),
        ])
        ->values()
        ->all();
@endphp

<x-ui.section data-slot="team-05" space="xl" {{ $attributes }}>
    <x-ui.container gutter="sm">
        <x-ui.section-heading align="center" overline-style="label" :overline="$eyebrow" :title="$heading" :subtitle="$subheading" />

        <ul role="list" class="mt-12 grid grid-cols-1 gap-6 sm:mt-16 sm:grid-cols-2 lg:grid-cols-3">
            @foreach ($members as $member)
                <li>
                    <div class="group relative aspect-[3/4] overflow-hidden rounded-lg bg-muted">
                        {{-- Photo placeholder: large centered initials on a token surface. --}}
                        <div class="flex size-full items-center justify-center" aria-hidden="true">
                            <span class="text-3xl font-bold tracking-tight text-muted-foreground/40">{{ $member['initials'] }}</span>
                        </div>

                        {{-- Bottom gradient overlay (token utility, not raw colour). --}}
                        <div class="pointer-events-none absolute inset-0 bg-gradient-to-t from-foreground/70 via-foreground/20 to-transparent"></div>

                        <div class="absolute inset-x-0 bottom-0 flex items-end justify-between gap-4 p-6">
                            <div class="min-w-0">
                                <h3 class="truncate text-lg font-semibold text-background">{{ __($member['name']) }}</h3>
                                <p class="truncate text-sm text-background/80">{{ __($member['role']) }}</p>
                            </div>

                            @if (! empty($member['links']))
                                <x-ui.social-links :links="$memberLinks($member)" size="md" :label="__('Social links of :name', ['name' => $member['name']])" class="shrink-0 opacity-0 transition-opacity duration-200 group-hover:opacity-100 group-focus-within:opacity-100 motion-reduce:transition-none" />
                            @endif
                        </div>
                    </div>
                </li>
            @endforeach
        </ul>
    </x-ui.container>
</x-ui.section>

Installation

terminal
php artisan ui:add blocks/team-photo-grid

Installs these dependencies automatically:

Registry contract

Install confidence

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

Registry dependencies

container section section-heading social-links

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.

team-photo-grid.md
# Brok UI block: Team 04 (`team-photo-grid`)

A photo-grid team section: tall rounded portrait tiles in a responsive 2-to-3-column grid, each with a token photo placeholder, a bottom gradient overlay carrying the member name and role, and aria-labelled social icon buttons revealed on hover and keyboard focus.

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/team-photo-grid
```

## Render it

```blade
<x-blocks.team-photo-grid />
```

## Props

- `eyebrow` (string, default `Our team`) — Small label shown above the heading.
- `heading` (string, default `The people building it`) — Section heading.
- `subheading` (string, default `Large portrait tiles for a visual, editorial team page — names and roles sit over each photo, with social links revealed on hover and keyboard focus.`) — Supporting copy under the heading.
- `members` (mixed|null, default `null`) — Team member entries with name, role, initials and social links; null falls back to sample data.

## Use when

- Showing the team as a photo-grid of tall portrait tiles with name and role overlaid on each image.
- Letting photography carry the section on a visual, editorial team page.

## Avoid when

- Not having real portrait photography to fill the tiles; use team-grid or team-minimal instead.

## Rules

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

  • Showing the team as a photo-grid of tall portrait tiles with name and role overlaid on each image.
  • Letting photography carry the section on a visual, editorial team page.

Avoid when

  • Not having real portrait photography to fill the tiles; use team-grid or team-minimal instead.

Anti-patterns

  • Do not replace semantic props with conflicting utility classes.
  • Do not remove labels, focus styles, or state attributes.
Anatomy
root team-05

Usage

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

resources/views/welcome.blade.php Blade
<x-blocks.team-photo-grid />

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/team-photo-grid.blade.php Blade
@props([
    'eyebrow' => 'Our team',
    'heading' => 'The people building it',
    'subheading' => 'Large portrait tiles for a visual, editorial team page — names and roles sit over each photo, with social links revealed on hover and keyboard focus.',
    'members' => null,
])

@php
    $members ??= [
        [
            'name' => 'Avery Mitchell',
            'role' => 'Co-founder & CEO',
            'initials' => 'AM',
            'links' => [
                'linkedin' => 'https://www.linkedin.com/',
                'x' => 'https://x.com/',
                'github' => 'https://github.com/',
            ],
        ],
        [
            'name' => 'Jordan Lee',
            'role' => 'Head of Engineering',
            'initials' => 'JL',
            'links' => [
                'linkedin' => 'https://www.linkedin.com/',
                'x' => 'https://x.com/',
                'github' => 'https://github.com/',
            ],
        ],
        [
            'name' => 'Priya Nair',
            'role' => 'Lead Designer',
            'initials' => 'PN',
            'links' => [
                'linkedin' => 'https://www.linkedin.com/',
                'x' => 'https://x.com/',
                'github' => 'https://github.com/',
            ],
        ],
        [
            'name' => 'Marcus Bell',
            'role' => 'Developer Advocate',
            'initials' => 'MB',
            'links' => [
                'linkedin' => 'https://www.linkedin.com/',
                'x' => 'https://x.com/',
                'github' => 'https://github.com/',
            ],
        ],
        [
            'name' => 'Sofia Romero',
            'role' => 'Product Manager',
            'initials' => 'SR',
            'links' => [
                'linkedin' => 'https://www.linkedin.com/',
                'x' => 'https://x.com/',
                'github' => 'https://github.com/',
            ],
        ],
        [
            'name' => 'Theo Almeida',
            'role' => 'Staff Engineer',
            'initials' => 'TA',
            'links' => [
                'linkedin' => 'https://www.linkedin.com/',
                'x' => 'https://x.com/',
                'github' => 'https://github.com/',
            ],
        ],
    ];

    // Per-person `links` (network => url) become one social-links row, labelled per person.
    $networkLabels = ['linkedin' => 'LinkedIn', 'x' => 'X', 'github' => 'GitHub'];
    $memberLinks = fn (array $member) => collect($member['links'])
        ->map(fn (string $url, string $network) => [
            'platform' => $network,
            'href' => $url,
            'label' => __(':name on :network', ['name' => $member['name'], 'network' => $networkLabels[$network] ?? ucfirst($network)]),
        ])
        ->values()
        ->all();
@endphp

<x-ui.section data-slot="team-05" space="xl" {{ $attributes }}>
    <x-ui.container gutter="sm">
        <x-ui.section-heading align="center" overline-style="label" :overline="$eyebrow" :title="$heading" :subtitle="$subheading" />

        <ul role="list" class="mt-12 grid grid-cols-1 gap-6 sm:mt-16 sm:grid-cols-2 lg:grid-cols-3">
            @foreach ($members as $member)
                <li>
                    <div class="group relative aspect-[3/4] overflow-hidden rounded-lg bg-muted">
                        {{-- Photo placeholder: large centered initials on a token surface. --}}
                        <div class="flex size-full items-center justify-center" aria-hidden="true">
                            <span class="text-3xl font-bold tracking-tight text-muted-foreground/40">{{ $member['initials'] }}</span>
                        </div>

                        {{-- Bottom gradient overlay (token utility, not raw colour). --}}
                        <div class="pointer-events-none absolute inset-0 bg-gradient-to-t from-foreground/70 via-foreground/20 to-transparent"></div>

                        <div class="absolute inset-x-0 bottom-0 flex items-end justify-between gap-4 p-6">
                            <div class="min-w-0">
                                <h3 class="truncate text-lg font-semibold text-background">{{ __($member['name']) }}</h3>
                                <p class="truncate text-sm text-background/80">{{ __($member['role']) }}</p>
                            </div>

                            @if (! empty($member['links']))
                                <x-ui.social-links :links="$memberLinks($member)" size="md" :label="__('Social links of :name', ['name' => $member['name']])" class="shrink-0 opacity-0 transition-opacity duration-200 group-hover:opacity-100 group-focus-within:opacity-100 motion-reduce:transition-none" />
                            @endif
                        </div>
                    </div>
                </li>
            @endforeach
        </ul>
    </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.1.3
Status
Stable
License
open
Deprecation
Not deprecated
Contract
v1
Foundation
≥ 1.0.0