Demo split — Booking block

Pro

booking-demo-split · for landing, home, pricing, contact pages

Demo split

A B2B landing page’s "book a demo" section: why the call is worth it and who leads it on one side, the booking card (day, time, details) on the other

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-split

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import BookingDemoSplit from '@/components/trame/blocks/booking/booking-demo-split.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>
<BookingDemoSplit v-bind="props" />
</template>

Props

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

PropTypeDescription
eyebrowstringWordswhat this is ("Book a demo")
title*stringWordsthe promise of the call ("See your own data in Fieldnote, live")
introstringWordsone or two sentences under the title
points*Point[]the points shown, in order
presenterPresenterthe person the visitor will meet: the merchant’s own, hidden when absent
durationstringWordshow long the call lasts ("30 min")
timezoneNotestringWordsthe zone the times are in ("Times shown in Eastern Time")
booking*Bookingthe booking form: where it posts and its words
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Point points[] · 3 props
PropTypeDescription
title*stringWordswhat the visitor gets from the call ("A tour built around your team")
textstringWordsone sentence on it
iconstringDesigna 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
PropTypeDescription
idstring | numberDatathe record’s id in the tool that answers it
name*stringWordsthe person’s name
role*stringWordswhat they do ("Solutions engineer")
companystringWordswhere they work
avatarstringPicturea picture: a root-relative path (/media/…) or an absolute URL
urlstringDesigna page about them
altstringWordsthe photo’s alt; the name when absent
notestringWordswhy talk to them, in the merchant’s own words ("30 minutes with someone who has run the setup 200 times")
Booking booking · 3 props
PropTypeDescription
action*stringActionthe 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
slotsQuerystringActionthe 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
PropTypeDescription
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 }
querya live read: a quick search, « see more »
canwhether the page has this action
asseta picture’s address as your app serves it
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: 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 day list: a visitor on a phone, or a few classes a day: one day at a time, each class with room to breathe.
  • 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.

All 25 booking blocks