Hero blocks
Centered, split, and editorial hero sections with product previews and full-width images.
Each hero puts something different in charge: the product, the pairing of a sentence and a picture, or the type itself. Headlines run from 40 pixels on a phone to 80 on a desktop, and balance their own line breaks.
Centered hero with wide product preview
The broadly useful one. The text keeps to a narrow measure and the product runs much wider, which is where the change in scale comes from. The preview stands on ribbed glass tinted with your accent color.
import * as React from "react"
import { ActionGroup } from "@/components/marketing/foundation/action-group"
import {
ProductFrame,
ProductStage,
type StageGround,
} from "@/components/marketing/foundation/product-frame"
import {
MarketingContainer,
MarketingSection,
} from "@/components/marketing/foundation/section"
import { MarketingHeading } from "@/components/marketing/foundation/section-heading"
import { StageBackdrop } from "@/components/marketing/foundation/stage-backdrop"
import type { MarketingAction } from "@/components/marketing/foundation/types"
import { DocumentReviewScene } from "@/components/marketing/scenes/document-review"
interface HeroCenteredProductProps {
eyebrow?: React.ReactNode
title?: React.ReactNode
description?: React.ReactNode
actions?: MarketingAction[]
/** What the frame stands on: an image, an element, or null for a flat tint. */
backdrop?: StageGround
/** Your interface, or a picture of it. Sits inside the product frame. */
preview?: React.ReactNode
/** Describes the preview for people who cannot see it. */
previewLabel?: string
/** An anchor for links within the page. */
id?: string
className?: string
}
const DEFAULT_ACTIONS: MarketingAction[] = [
{ label: "Start free", href: "#start" },
{ label: "See how it works", href: "#product" },
]
/** A short message on the center line, and a product shown much wider. */
export function HeroCenteredProduct({
eyebrow = "Document approval for operations teams",
title = "Get to the version everyone signed off.",
description = "Recto puts comments, changes and approvals in one place, so a document moves from draft to done without the email thread.",
actions = DEFAULT_ACTIONS,
backdrop = <StageBackdrop />,
preview,
previewLabel = "A returns policy in Recto. Two edits are tracked in the text. Legal and Finance have approved, and Support is due on Thursday.",
id,
className,
}: HeroCenteredProductProps) {
const titleId = React.useId()
return (
<MarketingSection
aria-labelledby={titleId}
id={id}
className={className}
style={{ paddingTop: "clamp(3rem, 1.8rem + 4.6vw, 6.5rem)" }}
>
<MarketingContainer>
<div className="mx-auto flex max-w-[52rem] flex-col items-center text-center">
{eyebrow && <p className="mkt-enter mkt-meta mb-5 [font-weight:500]">{eyebrow}</p>}
<MarketingHeading
as="h1"
size="product"
id={titleId}
className="mkt-enter max-w-[13.5em]"
>
{title}
</MarketingHeading>
{description && (
<p
className="mkt-enter mkt-lead mt-6 max-w-[36rem]"
style={{ "--mkt-step": 1 } as React.CSSProperties}
>
{description}
</p>
)}
{actions.length > 0 && (
<ActionGroup
actions={actions}
align="center"
className="mkt-enter mt-8"
style={{ "--mkt-step": 2 } as React.CSSProperties}
/>
)}
</div>
</MarketingContainer>
<MarketingContainer
size="wide"
className="mkt-enter mt-[clamp(2.75rem,2rem+2.6vw,4.5rem)]"
style={{ "--mkt-step": 3 } as React.CSSProperties}
>
<ProductStage
backdrop={backdrop}
priority
className="px-3.5 pt-3.5 sm:px-8 sm:pt-8 lg:px-[5.5rem] lg:pt-16"
>
<ProductFrame
label={previewLabel}
className="mx-auto h-[34rem] max-w-[75rem] rounded-b-none sm:h-[32rem] lg:h-[35rem]"
>
{preview ?? <DocumentReviewScene />}
</ProductFrame>
</ProductStage>
</MarketingContainer>
</MarketingSection>
)
}
export type { HeroCenteredProductProps }
Split hero with product preview
Five columns of message beside seven of product. The headline starts on the same line as the panel, so the picture answers the sentence next to it. On a phone the message comes first.
import * as React from "react"
import { ActionGroup } from "@/components/marketing/foundation/action-group"
import {
ProductFrame,
ProductStage,
type StageGround,
} from "@/components/marketing/foundation/product-frame"
import {
MarketingContainer,
MarketingSection,
} from "@/components/marketing/foundation/section"
import { MarketingHeading } from "@/components/marketing/foundation/section-heading"
import { StageBackdrop } from "@/components/marketing/foundation/stage-backdrop"
import type { MarketingAction } from "@/components/marketing/foundation/types"
import { ApprovalPanelScene } from "@/components/marketing/scenes/approval-panel"
interface HeroSplitProductProps {
title?: React.ReactNode
description?: React.ReactNode
actions?: MarketingAction[]
/** One or two short facts under the actions. */
facts?: string[]
/** What the frame stands on: an image, an element, or null for a flat tint. */
backdrop?: StageGround
/** Replaces the default product scene. Positioned inside the stage. */
visual?: React.ReactNode
/** An anchor for links within the page. */
id?: string
className?: string
}
const DEFAULT_ACTIONS: MarketingAction[] = [
{ label: "Start free", href: "#start" },
{ label: "Book a demo", href: "#demo" },
]
/**
* Five columns of message, seven of product. The headline starts on the same
* line as the panel, so the picture answers the sentence beside it.
*/
export function HeroSplitProduct({
title = "Approvals that don’t need chasing.",
description = "Ask once. Recto keeps the version still, shows who has answered, and publishes when the last person says yes.",
actions = DEFAULT_ACTIONS,
facts = ["Reviewers are always free", "No card to start"],
backdrop = <StageBackdrop />,
visual,
id,
className,
}: HeroSplitProductProps) {
const titleId = React.useId()
return (
<MarketingSection
aria-labelledby={titleId}
id={id}
className={className}
style={{ paddingTop: "clamp(2rem, 1.4rem + 1.6vw, 3rem)" }}
>
<MarketingContainer size="wide">
<div className="grid gap-x-[clamp(2rem,1rem+3vw,4rem)] gap-y-11 lg:grid-cols-12">
<div className="flex flex-col lg:col-span-5 lg:pt-[8.25rem]">
<MarketingHeading
as="h1"
size="product"
id={titleId}
className="mkt-enter -ms-[0.04em] pt-6 lg:pt-0"
>
{title}
</MarketingHeading>
<p
className="mkt-enter mkt-lead mt-6 max-w-[30rem]"
style={{ "--mkt-step": 1 } as React.CSSProperties}
>
{description}
</p>
<ActionGroup
actions={actions}
className="mkt-enter mt-8"
style={{ "--mkt-step": 2 } as React.CSSProperties}
/>
{facts.length > 0 && (
<ul className="mkt-meta m-0 mt-5 flex list-none flex-wrap gap-x-6 gap-y-1 p-0">
{facts.map((fact) => (
<li key={fact}>{fact}</li>
))}
</ul>
)}
</div>
<ProductStage
backdrop={backdrop}
priority
className="px-5 py-10 sm:px-12 sm:py-16 lg:col-span-7 lg:h-[46rem] lg:max-h-[calc(100svh-8rem)] lg:min-h-[40rem] lg:px-0 lg:py-0"
>
{visual ?? (
<ProductFrame
label="An approval panel for a returns policy. Legal and Finance have approved. Support is due on Thursday at 17:00."
className="mkt-settle mx-auto w-full max-w-[27rem] lg:absolute lg:start-1/2 lg:top-[7.75rem] lg:-ms-[13.5rem] lg:w-[27rem]"
>
<div className="[zoom:1.08]">
<ApprovalPanelScene />
</div>
</ProductFrame>
)}
</ProductStage>
</div>
</MarketingContainer>
</MarketingSection>
)
}
export type { HeroSplitProductProps }
Editorial statement hero
The headline carries the page. The paragraph sits in the last four columns, on the headline's last line, and one wide image follows. Phones get their own crop.
import * as React from "react"
import { TextLink } from "@/components/marketing/foundation/action-group"
import { MediaFrame } from "@/components/marketing/foundation/media-frame"
import {
MarketingContainer,
MarketingSection,
} from "@/components/marketing/foundation/section"
import { MarketingHeading } from "@/components/marketing/foundation/section-heading"
import type {
MarketingImage,
MarketingLink,
} from "@/components/marketing/foundation/types"
interface HeroEditorialStatementProps {
title?: React.ReactNode
description?: React.ReactNode
links?: MarketingLink[]
image?: MarketingImage
/** Two short facts under the image, such as a project and a year. */
caption?: [React.ReactNode, React.ReactNode?]
/** An anchor for links within the page. */
id?: string
className?: string
}
const DEFAULT_LINKS: MarketingLink[] = [
{ label: "See the work", href: "#work" },
{ label: "Start a project", href: "#contact" },
]
const DEFAULT_IMAGE: MarketingImage = {
src: "https://www.honestui.com/marketing/courtyard.webp",
srcMobile: "https://www.honestui.com/marketing/arcade.webp",
alt: "A pale stone courtyard with a tower, a stair and a row of arches under a blue sky.",
position: "62% 60%",
}
/**
* The headline carries the page. The paragraph sits in the last four columns,
* on the headline's last line, and one wide image follows.
*/
export function HeroEditorialStatement({
title = "A design studio for places people come back to.",
description = "Ferrow makes identities, signs and websites for museums, hotels and towns. Nine people in Porto, a few clients at a time.",
links = DEFAULT_LINKS,
image = DEFAULT_IMAGE,
caption = ["Casa da Vila, Évora. Identity and wayfinding", "2025"],
id,
className,
}: HeroEditorialStatementProps) {
const titleId = React.useId()
return (
<MarketingSection
aria-labelledby={titleId}
id={id}
className={className}
style={{ paddingTop: "clamp(3.5rem, 2rem + 6.4vw, 8.5rem)" }}
>
<MarketingContainer size="wide">
<div className="grid gap-x-(--mkt-column-gap) gap-y-7 lg:grid-cols-12 lg:[align-items:last_baseline]">
<MarketingHeading
as="h1"
size="hero"
id={titleId}
className="mkt-enter -ms-[0.04em] max-w-[14em] lg:col-span-8"
>
{title}
</MarketingHeading>
<div
className="mkt-enter max-w-[30rem] lg:col-span-4 lg:ps-4"
style={{ "--mkt-step": 1 } as React.CSSProperties}
>
<p className="mkt-lead">{description}</p>
{links.length > 0 && (
<div className="mt-6 flex flex-wrap gap-x-7 gap-y-3">
{links.map((link) => (
<TextLink key={link.label} link={link} />
))}
</div>
)}
</div>
</div>
{image && (
<div
className="mkt-enter mt-[clamp(2.5rem,1.5rem+4.5vw,5.5rem)]"
style={{ "--mkt-step": 2 } as React.CSSProperties}
>
<MediaFrame
image={image}
ratio="2 / 1"
ratioMobile="4 / 5"
priority
caption={
caption && (
<span className="flex justify-between gap-6">
<span>{caption[0]}</span>
<span className="tabular-nums">{caption[1]}</span>
</span>
)
}
/>
</div>
)}
</MarketingContainer>
</MarketingSection>
)
}
export type { HeroEditorialStatementProps }
Usage
Every prop has a default, so a block renders as soon as it is installed. Pass your own content to replace it.
import { HeroCenteredProduct } from "@/components/marketing/hero-centered-product"
<HeroCenteredProduct
title="Get to the version everyone signed off."
actions={[{ label: "Start free", href: "/sign-up" }]}
preview={<img src="/product.png" alt="" />}
previewLabel="A returns policy with two approvals."
/>