Skip to content
All blocks

[04] Marketing

Split Hero

The headline, buttons and three perks beside a product screen, with the screen moving under the text below 1024px.

1280px

Copy the code

One file with one component and its sample data. It needs @vaneui/ui and its stylesheet, set up as in the installation guide.

hero-split.tsx

import { Badge, Button, Card, Col, Container, PageTitle, Row, Section, Text, Title } from "@vaneui/ui";
const perks = ["Free for 5 people", "No credit card", "Cancel any time"];
const bars = [38, 52, 45, 60, 58, 72, 66, 80, 76, 88];
const deals = [
{ name: "Northwind", stage: "Won", amount: "$8,420", tone: { success: true } },
{ name: "Globex", stage: "Proposal", amount: "$6,105", tone: { info: true } },
{ name: "Initech", stage: "Review", amount: "$4,880", tone: { warning: true } },
];
function Check() {
return (
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
<path d="M20 6 9 17l-5-5" />
</svg>
);
}
/** The product, drawn with real components: a revenue card with a bar chart and the latest deals */
function ProductShot() {
return (
<Card shadow flex1 wFull className="min-w-0" aria-hidden="true">
<Row justifyBetween itemsStart>
<Col noGap>
<Text sm secondary>Revenue this month</Text>
<Title xl tag="p" className="tabular-nums">$48,210</Title>
</Col>
<Badge success>+12%</Badge>
</Row>
<Row xs itemsEnd className="h-40">
{bars.map((v, i) => (
<Col key={i} flex1 primary filled noGap className="rounded-t-sm" style={{ height: `${v}%` }} />
))}
</Row>
<Col noGap>
{deals.map((d) => (
<Row key={d.name} justifyBetween borderT paddingY>
<Text sm fontMedium>{d.name}</Text>
<Row sm>
<Badge {...d.tone}>{d.stage}</Badge>
<Text sm className="tabular-nums">{d.amount}</Text>
</Row>
</Row>
))}
</Col>
</Card>
);
}
export function HeroSplit() {
return (
<Section lg>
<Container itemsStretch>
<Row tabletStack xl>
<Col lg flex1 wFull className="min-w-0">
<Col>
<Text sm fontSemibold secondary>Sales analytics</Text>
<PageTitle className="text-balance">See every deal and every dollar on one screen</PageTitle>
<Text lg secondary>Acme pulls your pipeline, invoices and payouts together, and updates the numbers as deals move.</Text>
</Col>
<Row mobileStack mobileWFull>
<Button href="/signup" filled md mobileWFull>Start for free</Button>
<Button href="/tour" md mobileWFull>Take the tour</Button>
</Row>
<Row flexWrap>
{perks.map((p) => (
<Text key={p} sm secondary><Check /> {p}</Text>
))}
</Row>
</Col>
<ProductShot />
</Row>
</Container>
</Section>
);
}

How it adapts

  • 1024px and up: the text and the product screen sit side by side, each half the width.
  • Below 1024px: the screen moves under the text and fills the width.
  • Below 768px: the buttons stack and fill the width, and the perks wrap onto more lines.

How these props work is in responsive page sections without breakpoint classes.

Adapt it with your coding agent

Add the VaneUI MCP server, and your agent reads the component docs and prop tables while it changes the block: the copy, the sample data or the layout.

$ claude mcp add vaneui -- npx -y @vaneui/mcp

Setup for other editors is in the AI assistants guide.