Reel mosaic — Hero block
Prohero-reel-mosaic · for home, landing pages
Reel mosaic
The promise centred on a quiet pattern that lights up around the pointer (the grid with a few brief light streaks), then a calm bento of short muted clips within the page width: a studio, a tool or a library whose own work is the argument (the host’s own work only)
Documentation
Installation
One command copies the block into your project with the shadcn CLI (the registry is set once: Installation).
pnpm dlx shadcn-vue@latest add @trame/hero-reel-mosaicUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import HeroReelMosaic from '@/components/trame/blocks/hero/hero-reel-mosaic.vue'
const props = {
eyebrow: "Spring reel, nine new films",
title: "Short films for the things people make by hand",
subtitle: "Fieldnote is a two-person studio filming potters, weavers and joiners at work. Every clip below is ours, shot in their workshops.",
primaryAction: {
label: "Book a shoot",
action: "contact"
},
secondaryAction: {
label: "See every film",
action: "films"
},
tiles: [
{
label: "Clay, slowly",
poster: "https://images.unsplash.com/photo-1607556672054-054f3e90363f?w=1360&h=850&fit=crop&q=75",
action: "film",
record: {
id: "clay-slowly"
}
},
{
label: "The joinery shop",
poster: "https://images.unsplash.com/photo-1597960194599-22929afc25b1?w=1360&h=850&fit=crop&q=75",
action: "film",
record: {
id: "joinery-shop"
}
}
]
}
</script>
<template>
<HeroReelMosaic v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| eyebrow | string | Wordsa short chip above the title ("New: the spring release") |
| title* | string | Wordsthe one promise, in a sentence (40 to 80 characters): the page’s h1 |
| subtitle | string | Wordswhat it is and for whom, in one or two sentences |
| primaryAction* | PrimaryAction | the main button: its words and the page action it runs |
| secondaryAction | SecondaryAction | a quieter second action beside the main one: its words and the page action |
| command | string | Wordsa terminal command that installs it, shown as plain text in a pill with a copy button |
| tiles* | Tile[] | 1 to 12 pieces of the host’s own work, in the order they should be seen; the mosaic shows the first 9, side the first 4 |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
PrimaryAction primaryAction · 3 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat happens ("Try for free") |
| action* | string | Actiona named action of the page |
| record | Record<string, unknown> | Datathe record the action opens, if any |
SecondaryAction secondaryAction · 3 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat happens ("Try for free") |
| action* | string | Actiona named action of the page |
| record | Record<string, unknown> | Datathe record the action opens, if any |
Tile tiles[] · 5 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordsthe piece’s name, 1 to 5 words: shown on the tile and the picture’s description |
| poster* | string | Picturea still of the piece, landscape (16:10 reads best, about 1360 px wide): shown first, and the only picture without motion |
| video | string | Picturea short muted clip of the piece (.mp4, a few seconds): fetched only when the tile plays |
| action | string | Actionwhere the tile leads: the piece’s own page, with its record |
| record | Record<string, unknown> | Datathe record the action opens, if any |
Options options · 2 props
| Prop | Type | Description |
|---|---|---|
| background | 'grid' | 'dots' | the quiet pattern behind the words, lit around the pointer: grid (default, with a few brief light streaks on its lines) or dots |
| mood | 'inverse' | 'brand' | 'warm' | 'tint' | string | a band of the page that redefines the theme surfaces inside it |
What it asks your app for
The block never knows your app: it asks it, through one context provided once, where its links lead, what its actions do, how a price reads and which words to say (The host context).
| Member | What it is for |
|---|---|
| href | the address an action leads to, or null to hide what leads there |
| act | runs a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error } |
| can | whether the page has this action |
| asset | a picture’s address as your app serves it |
| Link | your router’s link component |
| cartCount | the cart badge’s number |
| cartDrawer | whether your app has a cart drawer |
| cartOpen | whether the cart drawer is open |
| label | your word for an interface key, or undefined to keep the block’s own |
The words it says itself, in English and French; label(key) replaces any of them:
| Key | English | French |
|---|---|---|
| newsletter.already | You are already subscribed. | Vous êtes déjà inscrit. |
| newsletter.done | Done: you are subscribed. | C’est noté : vous êtes inscrit. |
| newsletter.invalid | Check the email address. | Vérifiez l’adresse e-mail. |
| newsletter.tooMany | Too many attempts, try again in a moment. | Trop de tentatives, réessayez dans un moment. |
Features
- Every word in the server HTML
- Same markup in Vue and React
- Theme tokens only: every theme, light and dark
- Shows what you give it, invents nothing
- Expressive motion, within its budget; still under reduced motion
- Real buttons and links, a visible focus
- Asks your app through actions:
primaryAction,secondaryAction,tiles[]
A hero section, for home, landing pages; it uses @lucide/vue, class-variance-authority, clsx, motion, reka-ui, tailwind-merge.
Built with
The components this block is made of; each one installs on its own too.
More hero blocks
- Projects numbered: a portfolio led by its work: a short intro and a numbered list of projects with their discipline and year — the merchant’s own only.
- Prompt centered: the opening of an AI tool, a generator or a search-first product: a centred promise over a wide prompt field that glows, the example prompts under it.
- Prompt split: the same prompt as a working card beside the promise: a product whose promise needs a longer sentence, or a page whose heroes start on one side.
- Proof panel panels: an agency, a studio or a B2B tool whose proof is its track record: the promise on the left over an atmospheric picture, and on the right two frosted panels, the figures (a lead figure, a share as a bar, a ruled row) above the clients’ logos passing at the expressive level — the merchant’s own figures and clients only.
- Proof panel stacked: the same proof in a quieter, wider opening: the promise centred on top, the figures and the clients’ logos in two frosted panels side by side under it — the merchant’s own figures and clients only.
- Request bar: one to three short fields in a single bar under a centred promise: an address to leave, a quick callback.
- Service side card: someone who sells a service: what is offered, with the one-line scope and the price of each, in a card beside the intro — the merchant’s own only.
- Shopfront facade: the shop’s front edge to edge, the invitation over its foot and the address and hours on a card set like a plaque beside the door: a shop whose street front is its best picture (a bakery, a florist, a bookshop).