OG Image
Open Graph social-card templates (1200×630) — minimal, editorial, product, profile, stat, quote and more — token-themed and ready to screenshot in an OG route.
Preview
@props([
'name' => 'Avery Quinn',
'role' => 'Product Designer',
'bio' => 'I design calm, accessible interfaces and write about the craft of building for the web.',
'avatar' => null,
'website' => 'avery.example.com',
])
@php
$initials = collect(preg_split('/\s+/', trim((string) $name)))
->filter()
->map(fn ($part) => mb_substr($part, 0, 1))
->take(2)
->implode('');
$initials = mb_strtoupper($initials);
@endphp
{{--
Open Graph card — "Profile". A dark 1200×630 portfolio card: a large circular
avatar beside a name, role, bio and a website pill. Adapted from ogimagecn.com
to our system — the rose accent maps to the `destructive` token, the radial
glow becomes a blurred token overlay, and the card follows the active theme.
Render it inside a 1200×630 viewport in your OG image route (e.g. a Browsershot
screenshot) for pixel-accurate social cards.
--}}
<figure
data-slot="og-image"
data-variant="profile"
{{ $attributes->merge(['class' => 'relative isolate flex aspect-[1200/630] w-full flex-col items-center gap-8 overflow-hidden rounded-lg border border-border bg-background p-8 text-foreground sm:flex-row sm:gap-12 sm:p-12 lg:gap-16 lg:p-20']) }}
>
{{-- Rose accent glow rising from the bottom-start corner (decorative). --}}
<div aria-hidden="true" class="pointer-events-none absolute -bottom-1/3 -start-1/4 -z-10 h-2/3 w-2/3 rounded-full bg-destructive/20 blur-3xl"></div>
<x-ui.avatar
size="xl"
shape="circle"
:src="$avatar"
:fallback="$initials"
:alt="$name"
class="border-4 border-border"
/>
<figcaption class="flex flex-col items-center text-center sm:items-start sm:text-start">
<p class="text-balance text-2xl font-bold leading-[1.05] tracking-tight sm:text-4xl lg:text-6xl">{{ __($name) }}</p>
<p class="mt-2 text-base font-semibold text-destructive sm:mt-4 sm:text-xl lg:text-3xl">{{ __($role) }}</p>
<p class="mt-4 max-w-xl text-pretty text-sm leading-relaxed text-muted-foreground sm:mt-6 sm:text-base lg:text-2xl">{{ __($bio) }}</p>
<x-ui.badge variant="outline" class="mt-6 sm:mt-8">{{ __($website) }}</x-ui.badge>
</figcaption>
</figure>
Installation
php artisan ui:add blocks/og-image-profile
Registry contract
Install confidence
php artisan ui:add blocks/og-image-profile
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.3
- License
- open
- Stability
- stable
- Contract
- v1
- Foundation
- ≥ 1.0.0
| Type | Generated target |
|---|---|
| blade | resources/views/blocks/og-image-profile.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: OG Profile (`og-image-profile`)
A dark Open Graph portfolio card with a large circular avatar, name, role, bio and a website pill.
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/og-image-profile
```
## Render it
```blade
<x-blocks.og-image-profile />
```
## Props
- `name` (string, default `Avery Quinn`) — Person's name shown as the headline.
- `role` (string, default `Product Designer`) — Role or title shown under the name.
- `bio` (string, default `I design calm, accessible interfaces and write about the craft of building for the web.`) — Short bio copy.
- `avatar` (mixed|null, default `null`) — Optional avatar image URL; falls back to initials when null.
- `website` (string, default `avery.example.com`) — Website shown inside the outline badge.
## Use when
- Use for a dark personal or portfolio card with a large circular avatar beside a name, role and bio, closed with a website pill.
- Suited to author bio pages, portfolio sites or personal landing pages that need to introduce a single person.
## Avoid when
- Avoid when introducing an article with a byline rather than a standalone person; use og-image-blog (blog) instead.
## Rules
- Render the installed block with `<x-blocks.og-image-profile />` 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/og-image-profile
- Registry JSON (files, props, contract): https://brokui.dev/r/open/blocks/og-image-profile.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
- Use for a dark personal or portfolio card with a large circular avatar beside a name, role and bio, closed with a website pill.
- Suited to author bio pages, portfolio sites or personal landing pages that need to introduce a single person.
Avoid when
- Avoid when introducing an article with a byline rather than a standalone person; use og-image-blog (blog) instead.
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.og-image-profile />
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([
'name' => 'Avery Quinn',
'role' => 'Product Designer',
'bio' => 'I design calm, accessible interfaces and write about the craft of building for the web.',
'avatar' => null,
'website' => 'avery.example.com',
])
@php
$initials = collect(preg_split('/\s+/', trim((string) $name)))
->filter()
->map(fn ($part) => mb_substr($part, 0, 1))
->take(2)
->implode('');
$initials = mb_strtoupper($initials);
@endphp
{{--
Open Graph card — "Profile". A dark 1200×630 portfolio card: a large circular
avatar beside a name, role, bio and a website pill. Adapted from ogimagecn.com
to our system — the rose accent maps to the `destructive` token, the radial
glow becomes a blurred token overlay, and the card follows the active theme.
Render it inside a 1200×630 viewport in your OG image route (e.g. a Browsershot
screenshot) for pixel-accurate social cards.
--}}
<figure
data-slot="og-image"
data-variant="profile"
{{ $attributes->merge(['class' => 'relative isolate flex aspect-[1200/630] w-full flex-col items-center gap-8 overflow-hidden rounded-lg border border-border bg-background p-8 text-foreground sm:flex-row sm:gap-12 sm:p-12 lg:gap-16 lg:p-20']) }}
>
{{-- Rose accent glow rising from the bottom-start corner (decorative). --}}
<div aria-hidden="true" class="pointer-events-none absolute -bottom-1/3 -start-1/4 -z-10 h-2/3 w-2/3 rounded-full bg-destructive/20 blur-3xl"></div>
<x-ui.avatar
size="xl"
shape="circle"
:src="$avatar"
:fallback="$initials"
:alt="$name"
class="border-4 border-border"
/>
<figcaption class="flex flex-col items-center text-center sm:items-start sm:text-start">
<p class="text-balance text-2xl font-bold leading-[1.05] tracking-tight sm:text-4xl lg:text-6xl">{{ __($name) }}</p>
<p class="mt-2 text-base font-semibold text-destructive sm:mt-4 sm:text-xl lg:text-3xl">{{ __($role) }}</p>
<p class="mt-4 max-w-xl text-pretty text-sm leading-relaxed text-muted-foreground sm:mt-6 sm:text-base lg:text-2xl">{{ __($bio) }}</p>
<x-ui.badge variant="outline" class="mt-6 sm:mt-8">{{ __($website) }}</x-ui.badge>
</figcaption>
</figure>
Ownership & lifecycle
Owner, release state, review evidence and adoption for this item.
- Owner
- Platform UI (@JoshJML)
- Current version
-
1.0.3 - Status
- Stable
- License
-
open - Deprecation
- Not deprecated
- Contract
-
v1 - Foundation
-
≥ 1.0.0