Globe rising — Hero block
Prohero-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-risingUsage
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.
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe one promise, where the place is the argument (60 to 90 characters at most) |
| subtitle | string | Wordswho works where, in one or two sentences |
| primaryAction* | PrimaryAction | the main button: its words and the page action it runs |
| secondaryAction | SecondaryAction | a 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 |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
PrimaryAction primaryAction · 3 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat happens ("Find a drop-off point", "Visit the workshop") |
| action* | string | Actiona named action of the page |
| record | Record<string, unknown> | Datathe record the action opens, if any |
SecondaryAction secondaryAction · 3 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat happens ("Find a drop-off point", "Visit the workshop") |
| action* | string | Actiona named action of the page |
| record | Record<string, unknown> | Datathe record the action opens, if any |
Place places[] · 4 props
| Prop | Type | Description |
|---|---|---|
| name* | string | Wordsthe place as a visitor knows it: a town, a district ("Lyon", "Porto") |
| lat* | number | Dataits latitude in degrees, north positive |
| lng* | number | Dataits longitude in degrees, east positive |
| label | string | Wordswhat is there, in a few words ("The workshop", "Weaving linen") |
Options options · 4 props
| Prop | Type | Description |
|---|---|---|
| eyebrow | string | Wordsa short chip above the title ("Made between Lyon and Porto") |
| centre | number | Datathe longitude to face; the middle of the places by default |
| note | string | Wordsa line under the globe ("Shipped from our three warehouses") |
| 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 |
| 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
- 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).