Demo stacked — Booking block
Probooking-demo-stacked · for landing, home, pricing, contact pages
Demo stacked
A dedicated demo page or the closing section of a long landing page: a centred promise, the points in one ruled row, then a wide booking panel with the days down its side
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/booking-demo-stackedUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import BookingDemoStacked from '@/components/trame/blocks/booking/booking-demo-stacked.vue'
const props = {
eyebrow: "Book a demo",
title: "See Corvane run your field operations",
intro: "Pick a time that suits you. We’ll show you scheduling, dispatch and invoicing on a setup that looks like yours.",
points: [
{
icon: "screen",
title: "A tour of your own workflow",
text: "Send us how your crews work today and we walk through it in Corvane, not in a generic sandbox."
},
{
icon: "person",
title: "A product specialist, not a script",
text: "You talk with someone who has rolled Corvane out to field teams like yours."
}
],
presenter: {
name: "Maya Lindqvist",
role: "Solutions engineer",
avatar: "https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?w=1600&q=80",
alt: "Maya Lindqvist, smiling, in a grey blazer by an office window",
note: "30 minutes with someone who has set up Corvane for more than 200 field teams."
},
duration: "30 min",
timezoneNote: "Times shown in Eastern Time (ET)",
booking: {
action: "demo.book",
slotsQuery: "demo.slots",
fields: [
"company",
"teamSize"
]
}
}
</script>
<template>
<BookingDemoStacked v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| eyebrow | string | Wordswhat this is ("Book a demo") |
| title* | string | Wordsthe promise of the call ("See your own data in Fieldnote, live") |
| intro | string | Wordsone or two sentences under the title |
| points* | Point[] | the points shown, in order |
| presenter | Presenter | the person the visitor will meet: the merchant’s own, hidden when absent |
| duration | string | Wordshow long the call lasts ("30 min") |
| timezoneNote | string | Wordsthe zone the times are in ("Times shown in Eastern Time") |
| booking* | Booking | the booking form: where it posts and its words |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Point points[] · 3 props
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordswhat the visitor gets from the call ("A tour built around your team") |
| text | string | Wordsone sentence on it |
| icon | string | Designa sign from the block’s table (parts/icons.ts): screen, clock, person, chat, chart, shield, plug, rocket; a check when absent |
Presenter presenter · 8 props
| Prop | Type | Description |
|---|---|---|
| id | string | number | Datathe record’s id in the tool that answers it |
| name* | string | Wordsthe person’s name |
| role* | string | Wordswhat they do ("Solutions engineer") |
| company | string | Wordswhere they work |
| avatar | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
| url | string | Designa page about them |
| alt | string | Wordsthe photo’s alt; the name when absent |
| note | string | Wordswhy talk to them, in the merchant’s own words ("30 minutes with someone who has run the setup 200 times") |
Booking booking · 3 props
| Prop | Type | Description |
|---|---|---|
| action* | string | Actionthe host’s booking mutation: receives the visitor’s details and the slot they chose (none for a call back); the panel is hidden when the page lacks it |
| slotsQuery | string | Actionthe host’s read of the free slots (a `slots` query: `{ from?, to? }` answers `{ days, timezone? }`). Absent, or no answer: the panel asks for a call back instead |
| fields | ('company' | 'teamSize' | 'phone' | 'message')[] | the optional fields to ask besides name and work e-mail; company and team size when absent |
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 } |
| query | a live read: a quick search, « see more » |
| 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
- Subtle motion: one short reveal; still under reduced motion
- Real buttons and links, a visible focus
- Asks your app through actions:
form.submit,slots
A booking section, for landing, home, pricing, contact pages; it uses @lucide/vue, @vueuse/core, class-variance-authority, clsx, reka-ui, tailwind-merge.
Built with
The components this block is made of; each one installs on its own too.
More booking blocks
- Class schedule week grid: a studio with a full week of classes: every day side by side, the rhythm of the week seen at once.
- Curriculum accordion: a long programme read module by module: real disclosures, the first open, what you will learn and the teacher beside.
- Curriculum columns: a short programme seen at a glance: every module as a card with its lessons visible.
- Curriculum path: a course that is a progression: modules numbered along a path, from the first step to the last.
- Room picker cards: rooms as photo cards, the rate picked inside the card: a small hotel with three or four rooms that sell by the picture.
- Room picker compare: rooms side by side in a table, amenities ticked row by row: a hotel whose rooms differ by surface and comfort.
- Room picker list: each room on a row with its photo, its details and its rates side by side: a hotel with many room types and several rates each.
- Seat plan: a venue drawn as a simple plan: zones to pick, then their tiers: a hall where where you sit matters.