Decision log receipts — Portfolio block
Freeportfolio-decision-log-receipts · for landing pages
Decision log receipts
Author supplied research quotations paired with the resulting change; 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/portfolio-decision-log-receiptsUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import PortfolioDecisionLogReceipts from '@/components/trame/blocks/portfolio/portfolio-decision-log-receipts.vue'
const props = {
title: "The choices behind the result",
intro: "A demo editorial notebook: no quotes, no customer metrics, no made-up timeline.",
items: [
{
title: "Put reading first",
text: "A short column of text runs alongside the details without hiding them.",
status: "Editorial direction",
image: "https://images.unsplash.com/photo-1516280440614-37939bbacd81?w=1600&q=80",
alt: "A microphone, illustrating the design notebook",
fields: [
{
label: "Intent",
value: "Make decisions understandable"
}
]
},
{
title: "Tell responsibilities apart",
text: "Each person’s role is explained next to the step it concerns.",
status: "To discuss"
}
]
}
</script>
<template>
<PortfolioDecisionLogReceipts v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe section’s heading |
| intro | string | Wordsa sentence or two under the heading |
| items* | Item[] | the items shown, in order |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Item items[] · 15 props
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe item’s title |
| text* | string | Wordsthe item’s text |
| reference | string | Wordsa reference for it, e.g. a ticket number |
| status | string | Wordsthe item’s status, in the host’s words |
| date | string | Wordsthe date, as the merchant writes it |
| image | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
| alt | string | Wordswhat the picture shows |
| phoneImage | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
| phoneAlt | string | Wordswhat the phone picture shows |
| selected | boolean | true: the direction that was chosen |
| fields | Field[] | the form’s fields, in order |
| quote | string | Wordsa quote about the decision |
| attribution | string | Wordswho said it |
| result | string | Wordswhat it gave, in a line |
| values | Value[] | the measured figures, each before and after |
Field items[].fields[] · 2 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat the value is about |
| value* | string | Wordsthe value, as the merchant states it |
Value items[].values[] · 5 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordsthe value’s name, as shown |
| before* | number | Datathe figure before the change |
| after* | number | Datathe figure after the change |
| unit | string | Wordsthe unit written after the figure |
| method* | string | Wordshow it was measured |
Options options · 1 props
| Prop | Type | Description |
|---|---|---|
| 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 |
| 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
- Subtle motion: one short reveal; still under reduced motion
- Real buttons and links, a visible focus
A portfolio section, for landing pages; it uses clsx, motion, tailwind-merge.
More portfolio blocks
- Exhibitions grid: every status under its own heading with picture cards, the headings in a margin column: a venue with several shows at once to compare.
- Exhibitions poster: what is on shown as a large poster with its text, what comes next as dated rows, the past in a quiet list: a venue with one headline show at a time.
- Exhibitions season: a sideways rail of tall posters ordered from now to the past with a line marking each status: a season to browse from left to right.
- Postmortem event log: Incident sections beside a timestamped event log; the merchant’s own only.
- Project index filterable: a long list of pieces with a search field and category chips showing their count: more than six, in several kinds; the merchant’s own only.
- Project index grid: three to twelve pieces of work as cards with picture, title, one line and tags: a portfolio’s plain, scannable home; the merchant’s own only.
- Project index preview: a typographic index of project names with a large picture that follows the hovered or focused row: a long, confident list where the names lead (a studio, an agency); the merchant’s own only.
- Project index rows: horizontal cards, picture left and text right, in a single column: projects with real descriptions to read; the merchant’s own only.