Skip to content
Brok UI

Loading…

No results

Blog Index

Open source

Full blog index pages — a post grid, a featured-plus-recent layout, and a magazine layout.

Preview

resources/views/pages/blog-page-magazine.blade.php Blade
@props([])

<div class="min-h-screen bg-background text-foreground">
    <x-blocks.header-navbar />
    <main>
        <x-blocks.blog-magazine />
        <x-blocks.blog-list />
    </main>
    <x-blocks.footer-minimal />
</div>

Installation

terminal
php artisan ui:add pages/blog-page-magazine

Registry contract

Install confidence

php artisan ui:add pages/blog-page-magazine 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/pages/blog-page-magazine.blade.php

Registry dependencies

blocks/header-navbar blocks/blog-magazine blocks/blog-list blocks/footer-minimal

Package dependencies

composer: jml/brok:^0.2

Use with AI

A brief for your coding agent: what the page is, the install command, how to render it, its props and the rules. Copy it, or open a prompt about this page in an assistant.

blog-page-magazine.md
# Brok UI page: Blog Page 03 (`blog-page-magazine`)

A magazine-style blog index with a navbar, a magazine layout, a dashed list and a minimal footer.

Brok UI is a Laravel Blade registry. `ui:add` copies this page into the app as plain Blade the app owns; it composes installed `<brok:*>` primitives and semantic design tokens.

## Install

```bash
php artisan ui:add pages/blog-page-magazine
```

## Render it

```blade
<x-pages.blog-page-magazine />
```

## Use when

- A magazine-style blog index with a navbar, a magazine layout and a dashed list of posts.
- It composes blocks/header-navbar, blocks/blog-magazine, blocks/blog-list and blocks/footer-minimal.

## Avoid when

- Wanting a newsletter call-to-action or search header; use blog-page-grid or blog-page-featured instead.

## Rules

- Render the installed page with `<x-pages.blog-page-magazine />` 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/pages/blog-page-magazine
- Registry JSON (files, props, contract): https://brokui.dev/r/open/pages/blog-page-magazine.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

  • A magazine-style blog index with a navbar, a magazine layout and a dashed list of posts.
  • It composes blocks/header-navbar, blocks/blog-magazine, blocks/blog-list and blocks/footer-minimal.

Avoid when

  • Wanting a newsletter call-to-action or search header; use blog-page-grid or blog-page-featured instead.

Anti-patterns

  • Do not replace semantic props with conflicting utility classes.
  • Do not remove labels, focus styles, or state attributes.

Usage

Render the page as a component, or wire it to a route. Pass data where useful:

resources/views/welcome.blade.php Blade
<x-pages.blog-page-magazine />

Built from blocks & primitives

This page 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 pages.

resources/views/pages/blog-page-magazine.blade.php Blade
@props([])

<div class="min-h-screen bg-background text-foreground">
    <x-blocks.header-navbar />
    <main>
        <x-blocks.blog-magazine />
        <x-blocks.blog-list />
    </main>
    <x-blocks.footer-minimal />
</div>

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