Projects numbered — Hero block

Pro

hero-projects-numbered · for home, landing pages

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.

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-projects-numbered

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import HeroProjectsNumbered from '@/components/trame/blocks/hero/hero-projects-numbered.vue'

const props = {
eyebrow: "Garden design, Portland",
title: "Gardens that look better every year",
subtitle: "Planting plans, terraces and small courtyards for people who would rather watch a garden grow than mow a lawn. A team of four, and one designer from the first walk-round to the first spring.",
facts: [
{
label: "Based in",
value: "Portland, Sellwood"
},
{
label: "Response time",
value: "Within two business days"
}
],
projects: [
{
id: 1,
title: "The Okafor courtyard",
discipline: "Courtyard",
year: "2025"
},
{
id: 2,
title: "A hillside meadow",
discipline: "Planting plan",
year: "2025"
}
],
primaryAction: {
label: "Start a project",
action: "contact"
},
secondaryAction: {
label: "See our gardens",
action: "work"
},
open: "project",
archive: "work",
options: {
availability: "Available from January"
}
}
</script>

<template>
<HeroProjectsNumbered v-bind="props" />
</template>

Props

Each prop says who changes it: Words, Picture, Action, Design, Data.* required.

PropTypeDescription
eyebrowstringWordswho and where, in a few words ("Design studio, Lyon")
title*stringWordsthe name or the statement, in a sentence
subtitle*stringWordsone paragraph: what is done, for whom, how
factsFact[]the facts shown, in order
projects*Project[]Datathe owner’s projects for the index, most recent first
primaryAction*PrimaryActionthe main button: its words and the page action it runs
secondaryActionSecondaryActiona quieter second action beside the main one: its words and the page action
openstringActionthe page action a project of the index opens; it receives the project
archivestringActionthe page action of the "see all" link under the index
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Fact facts[] · 2 props
PropTypeDescription
label*stringWordswhat the fact is ("Based in")
value*stringWordsits value, as the owner states it
Project projects[] · 4 props
PropTypeDescription
id*string | numberthe project’s id
title*stringWordsthe project’s name
disciplinestringWordswhat kind of work it was ("Visual identity")
yearstringWordsthe year as the owner writes it
PrimaryAction primaryAction · 3 props
PropTypeDescription
label*stringWordswhat happens ("Start a project")
action*stringActiona named action of the page
recordRecord<string, unknown>Datathe record the action opens, if any
SecondaryAction secondaryAction · 3 props
PropTypeDescription
label*stringWordswhat happens ("Start a project")
action*stringActiona named action of the page
recordRecord<string, unknown>Datathe record the action opens, if any
Options options · 2 props
PropTypeDescription
availabilitystringWordsthe owner’s availability, in their words ("Available from January")
mood'inverse' | 'brand' | 'warm' | 'tint' | stringa 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).

MemberWhat it is for
hrefthe address an action leads to, or null to hide what leads there
actruns a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error }
canwhether the page has this action
Linkyour router’s link component
cartCountthe cart badge’s number
cartDrawerwhether your app has a cart drawer
cartOpenwhether the cart drawer is open
labelyour 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:

KeyEnglishFrench
newsletter.alreadyYou are already subscribed.Vous êtes déjà inscrit.
newsletter.doneDone: you are subscribed.C’est noté : vous êtes inscrit.
newsletter.invalidCheck the email address.Vérifiez l’adresse e-mail.
newsletter.tooManyToo 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
  • Subtle motion: one short reveal; still under reduced motion
  • Real buttons and links, a visible focus
  • Asks your app through actions: primaryAction, secondaryAction, open, archive
  • Reads projects from your app

A hero section, for home, landing pages; it uses @lucide/vue, @vueuse/core, 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

  • Product slides framed card: a rounded frame inside the page’s margins, the words at its top left and the product card floating at the bottom right with the arrows beside it: a quieter shop, or a header that never overlays.
  • Product slides fullbleed card: pictures edge to edge, the words on the calm side and the campaign’s product on a card at the other, arrows at the edges: a shop whose scenes sell and whose first click should land on a product.
  • Profile facts: a studio or freelancer opening: who, what and a few key facts, with the recognitions they earned in a card beside — the merchant’s own only.
  • Project inquiry split form: someone who wants to be written to: the key facts on one side, a short contact form on the other — 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.

All 102 hero blocks