Globe rising — Hero block

Pro

hero-globe-rising · for home, landing, about pages

Globe rising

A brand whose argument is where it makes or ships, told in few words: the words centred over a large dotted hemisphere rising from the bottom edge, its pins named on hover and listed under it; the merchant’s own places 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-globe-rising

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import HeroGlobeRising from '@/components/trame/blocks/hero/hero-globe-rising.vue'

const props = {
title: "Routes we know by heart, and a local guide on every one",
subtitle: "Groups of twelve at most, trains over planes where we can, and guides who were born where you are going. Turn the globe to see this year’s departures.",
primaryAction: {
label: "See the 2027 departures",
action: "catalog"
},
secondaryAction: {
label: "How our trips work",
action: "about"
},
places: [
{
name: "Lisbon",
lat: 38.72,
lng: -9.14,
label: "Our office"
},
{
name: "Marrakesh",
lat: 31.63,
lng: -7.99,
label: "The night markets"
}
],
options: {
eyebrow: "Far Meridian · small-group travel",
note: "Change your dates for free until 60 days before departure.",
mood: "inverse"
}
}
</script>

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

Props

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

PropTypeDescription
title*stringWordsthe one promise, where the place is the argument (60 to 90 characters at most)
subtitlestringWordswho works where, in one or two sentences
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
places*Place[]Datathe merchant’s own places, the main ones first (workshops, partner makers, depots, team members’ towns); never invented offices
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
PrimaryAction primaryAction · 3 props
PropTypeDescription
label*stringWordswhat happens ("Find a drop-off point", "Visit the workshop")
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 ("Find a drop-off point", "Visit the workshop")
action*stringActiona named action of the page
recordRecord<string, unknown>Datathe record the action opens, if any
Place places[] · 4 props
PropTypeDescription
name*stringWordsthe place as a visitor knows it: a town, a district ("Lyon", "Porto")
lat*numberDataits latitude in degrees, north positive
lng*numberDataits longitude in degrees, east positive
labelstringWordswhat is there, in a few words ("The workshop", "Weaving linen")
Options options · 4 props
PropTypeDescription
eyebrowstringWordsa short chip above the title ("Made between Lyon and Porto")
centrenumberDatathe longitude to face; the middle of the places by default
notestringWordsa line under the globe ("Shipped from our three warehouses")
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
  • Expressive motion, within its budget; still under reduced motion
  • Real buttons and links, a visible focus
  • Asks your app through actions: primaryAction, secondaryAction

A hero section, for home, landing, about 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

  • Float orbit: the title above, the pictures in a gentle arc under it, the middle one largest: 2 to 4 products, a calmer opening.
  • Float scatter: the pictures around the title at different sizes and depths, as if set down on a table: 3 or 4 products that read well alone.
  • Flows workflow tabs: a product explained by its flows: centred words over a tab row, each tab a short chain of steps.
  • Form card: the promise and what the visitor gets on one side, a framed form panel on the other: a quote or a demo that asks a few questions.
  • Image overlay: one strong, wide picture of the shop’s own: the title and the action laid over it on a legible wash, the picture across the whole width.
  • Image quiet: a calm shop or a picture busy with detail: the title centred (or at the start) on the page, the picture under it in a wide frame.
  • Image split: a picture with a subject that must not be covered (a face, a piece in detail): the words in their own column, the picture beside them running to the page’s edge.
  • Marquee columns side: the promise on the start side, beside two or three columns of pictures scrolling slowly up and down in opposite directions (still below the expressive level, a short still grid on a phone): a studio, a maker or a shop whose body of work is the argument and wants its words read first, the pictures as a living gallery beside them (the merchant’s own work or products only).

All 102 hero blocks