Skip to content
Brok UI

Loading…

No results

OG Image

Open source

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

4 of 16

resources/views/blocks/og-image-changelog.blade.php Blade
@props([
    'version' => 'v2.4.0',
    'date' => 'June 2026',
    'title' => "What's new this release",
    'items' => [
        'New token-themed Open Graph card templates',
        'Faster registry build with parallel hashing',
        'RTL-safe logical properties across every block',
        'Dark-mode previews in the docs catalog',
    ],
    'brand' => 'ogimagecn',
    'logo' => null,
])

{{--
    Open Graph card — "Changelog". A dark 1200×630 release card: a top row with a
    version badge and date, a large title, then a checklist of up to four items
    (each a circular check icon in a token chip + text), with a brand mark in the
    top-end corner. Adapted from ogimagecn.com to our system: the emerald accent
    maps to the `success` token, the radial corner glow is 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 cards.
--}}
@php
    $entries = array_slice((array) $items, 0, 4);
@endphp
<figure
    data-slot="og-image"
    data-variant="changelog"
    {{ $attributes->merge(['class' => 'relative isolate flex aspect-[1200/630] w-full flex-col overflow-hidden rounded-lg border border-border bg-background p-8 text-foreground sm:p-12 lg:p-20']) }}
>
    {{-- Emerald radial glow in the top-end corner (decorative). --}}
    <div aria-hidden="true" class="pointer-events-none absolute -top-1/4 end-0 -z-10 h-2/3 w-1/2 rounded-full bg-success/20 blur-3xl"></div>

    <div class="flex items-center gap-4 sm:gap-6">
        <x-ui.badge variant="success" size="lg" class="font-bold sm:text-lg lg:text-2xl">
            @if ($logo)
                <img src="{{ $logo }}" alt="" class="size-5 rounded object-contain" />
            @endif
            {{ __($version) }}
        </x-ui.badge>
        <span class="text-base text-muted-foreground sm:text-lg lg:text-2xl">{{ __($date) }}</span>
    </div>

    <p class="mt-6 text-3xl font-bold leading-[1.05] tracking-tight sm:mt-8 sm:text-5xl lg:text-7xl">{{ __($title) }}</p>

    <x-ui.check-list marker="chip" tone="success" size="lg" :items="array_map(fn ($item) => __($item), $entries)" class="mt-8 text-muted-foreground sm:mt-10 sm:gap-6 sm:text-xl lg:text-3xl" />

    <div class="absolute end-8 top-8 flex items-center gap-4 sm:end-12 sm:top-12 lg:end-20 lg:top-20">
        @if ($logo)
            <img src="{{ $logo }}" alt="" class="size-8 rounded-md object-contain sm:size-10" />
        @else
            <span class="size-8 rounded-md bg-success sm:size-10" aria-hidden="true"></span>
        @endif
        <span class="text-lg font-bold text-muted-foreground sm:text-2xl lg:text-3xl">{{ __($brand) }}</span>
    </div>
</figure>

Installation

terminal
php artisan ui:add blocks/og-image-changelog

Installs these dependencies automatically:

Registry contract

Install confidence

php artisan ui:add blocks/og-image-changelog 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/og-image-changelog.blade.php

Registry dependencies

badge check-list

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.

og-image-changelog.md
# Brok UI block: OG Changelog (`og-image-changelog`)

A dark Open Graph release card with a version badge and date, a large title, a checklist of up to four items, and a top-end brand mark.

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-changelog
```

## Render it

```blade
<x-blocks.og-image-changelog />
```

## Props

- `version` (string, default `v2.4.0`) — Version badge shown at the top.
- `date` (string, default `June 2026`) — Release date shown beside the version badge.
- `title` (string, default `What's new this release`) — Large release headline.
- `items` (array, default `[…]`) — Checklist entries rendered via the check-list primitive; only the first four are shown.
- `brand` (string, default `ogimagecn`) — Brand wordmark shown next to the logo mark.
- `logo` (mixed|null, default `null`) — Optional logo image URL; falls back to a solid token square when null.

## Use when

- Use for a dark release or changelog card that pairs a version badge and date with a checklist of up to four release highlights.
- Suited to product update and changelog announcements where the highlights themselves are the content, not a single headline.

## Avoid when

- Avoid when there is no list of discrete items to show, or a single metric is the story; use og-image-simple (simple) or og-image-stat (stat) instead.

## Rules

- Render the installed block with `<x-blocks.og-image-changelog />` 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-changelog
- Registry JSON (files, props, contract): https://brokui.dev/r/open/blocks/og-image-changelog.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 release or changelog card that pairs a version badge and date with a checklist of up to four release highlights.
  • Suited to product update and changelog announcements where the highlights themselves are the content, not a single headline.

Avoid when

  • Avoid when there is no list of discrete items to show, or a single metric is the story; use og-image-simple (simple) or og-image-stat (stat) instead.

Anti-patterns

  • Do not replace semantic props with conflicting utility classes.
  • Do not remove labels, focus styles, or state attributes.
Anatomy
figure root accent glow version badge date title checklist brand mark

Usage

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

resources/views/welcome.blade.php Blade
<x-blocks.og-image-changelog />

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/og-image-changelog.blade.php Blade
@props([
    'version' => 'v2.4.0',
    'date' => 'June 2026',
    'title' => "What's new this release",
    'items' => [
        'New token-themed Open Graph card templates',
        'Faster registry build with parallel hashing',
        'RTL-safe logical properties across every block',
        'Dark-mode previews in the docs catalog',
    ],
    'brand' => 'ogimagecn',
    'logo' => null,
])

{{--
    Open Graph card — "Changelog". A dark 1200×630 release card: a top row with a
    version badge and date, a large title, then a checklist of up to four items
    (each a circular check icon in a token chip + text), with a brand mark in the
    top-end corner. Adapted from ogimagecn.com to our system: the emerald accent
    maps to the `success` token, the radial corner glow is 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 cards.
--}}
@php
    $entries = array_slice((array) $items, 0, 4);
@endphp
<figure
    data-slot="og-image"
    data-variant="changelog"
    {{ $attributes->merge(['class' => 'relative isolate flex aspect-[1200/630] w-full flex-col overflow-hidden rounded-lg border border-border bg-background p-8 text-foreground sm:p-12 lg:p-20']) }}
>
    {{-- Emerald radial glow in the top-end corner (decorative). --}}
    <div aria-hidden="true" class="pointer-events-none absolute -top-1/4 end-0 -z-10 h-2/3 w-1/2 rounded-full bg-success/20 blur-3xl"></div>

    <div class="flex items-center gap-4 sm:gap-6">
        <x-ui.badge variant="success" size="lg" class="font-bold sm:text-lg lg:text-2xl">
            @if ($logo)
                <img src="{{ $logo }}" alt="" class="size-5 rounded object-contain" />
            @endif
            {{ __($version) }}
        </x-ui.badge>
        <span class="text-base text-muted-foreground sm:text-lg lg:text-2xl">{{ __($date) }}</span>
    </div>

    <p class="mt-6 text-3xl font-bold leading-[1.05] tracking-tight sm:mt-8 sm:text-5xl lg:text-7xl">{{ __($title) }}</p>

    <x-ui.check-list marker="chip" tone="success" size="lg" :items="array_map(fn ($item) => __($item), $entries)" class="mt-8 text-muted-foreground sm:mt-10 sm:gap-6 sm:text-xl lg:text-3xl" />

    <div class="absolute end-8 top-8 flex items-center gap-4 sm:end-12 sm:top-12 lg:end-20 lg:top-20">
        @if ($logo)
            <img src="{{ $logo }}" alt="" class="size-8 rounded-md object-contain sm:size-10" />
        @else
            <span class="size-8 rounded-md bg-success sm:size-10" aria-hidden="true"></span>
        @endif
        <span class="text-lg font-bold text-muted-foreground sm:text-2xl lg:text-3xl">{{ __($brand) }}</span>
    </div>
</figure>

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