Split Product Hero
Split product hero: two-column React layout with headline, subcopy, trial CTA on the left and a mock dashboard card on the right. Responsive grid for app launches, analytics tools, and B2B product marketing. Pure React + Tailwind, no extra packages.
Dependencies
react
npm install react react-domexport function SplitProductHero() {
return (
<section className="mx-auto grid max-w-6xl gap-12 px-6 py-20 lg:grid-cols-2 lg:items-center">
<div>
<h1 className="text-4xl font-bold tracking-tight text-zinc-900 sm:text-5xl">
Your dashboard, reimagined
</h1>
<p className="mt-4 text-lg text-zinc-600">
Monitor metrics, automate workflows, and collaborate in one beautiful workspace.
</p>
<button className="mt-8 rounded-lg bg-zinc-900 px-6 py-3 text-sm font-semibold text-white hover:bg-zinc-800">
Start free trial
</button>
</div>
<div className="rounded-2xl border border-zinc-200 bg-gradient-to-br from-zinc-50 to-zinc-100 p-6 shadow-xl">
<div className="h-48 rounded-xl bg-zinc-900/90" />
<div className="mt-4 grid grid-cols-3 gap-3">
{[1, 2, 3].map((i) => (
<div key={i} className="h-16 rounded-lg bg-white shadow-sm" />
))}
</div>
</div>
</section>
);
}
Please implement this code in the current project and add it to (Your Desired Section, e.g. homepage hero, pricing page, dashboard). Change the primary accent color to (YOUR HEX CODE COLOR, e.g. #6366F1).
Requirements:
- Use React + Tailwind CSS (match the project's existing setup)
- Install dependencies if needed: npm install react react-dom
- Keep the layout responsive on mobile and desktop
- Replace placeholder copy with content that fits the project
The UI code:
export function SplitProductHero() {
return (
<section className="mx-auto grid max-w-6xl gap-12 px-6 py-20 lg:grid-cols-2 lg:items-center">
<div>
<h1 className="text-4xl font-bold tracking-tight text-zinc-900 sm:text-5xl">
Your dashboard, reimagined
</h1>
<p className="mt-4 text-lg text-zinc-600">
Monitor metrics, automate workflows, and collaborate in one beautiful workspace.
</p>
<button className="mt-8 rounded-lg bg-zinc-900 px-6 py-3 text-sm font-semibold text-white hover:bg-zinc-800">
Start free trial
</button>
</div>
<div className="rounded-2xl border border-zinc-200 bg-gradient-to-br from-zinc-50 to-zinc-100 p-6 shadow-xl">
<div className="h-48 rounded-xl bg-zinc-900/90" />
<div className="mt-4 grid grid-cols-3 gap-3">
{[1, 2, 3].map((i) => (
<div key={i} className="h-16 rounded-lg bg-white shadow-sm" />
))}
</div>
</div>
</section>
);
}
Replace (Your Desired Section) and (YOUR HEX CODE COLOR) before pasting into Cursor, Copilot, or ChatGPT.