Skip to content
Marketing block

Centered Announcement Hero

A linked announcement pill over a large centered headline, dual CTAs and a wordmark strip — the hero for a product with nothing to screenshot yet.

125 lineslucide-reactAdded 8 Aug 2026Updated 10 Sept 2026
  • hero
  • centered
  • announcement
  • landing
  • gradient

What's included

  • components/hero-centered.tsx
  • Needs lucide-react

Works with

  • React
  • Next.js
  • Tailwind CSS
  • TypeScript

npx hoverlab add hero-centered

Or over MCP, from your editor's agent — no account needed.

License

Free to read, copy and install, for personal and non-commercial projects. Shipping it in client work or a paid product needs Pro ($79 once). The source lands in your repo and stops being ours — no attribution, nothing to upgrade.

Was this useful?

Start a page with this section — add more, order them, and leave with the page source.

Preview

NewIntroducing team workspaces

The fastest way to turn an idea into a product.

One toolkit for the parts every project needs, so the only thing left to build is the part that makes yours different.

Trusted by teams at

AcmeGlobexInitechUmbrellaSoylent

Rendered live in your current theme — this is the same component whose source is below, not a screenshot of it.

Source

components/hero-centered.tsx
/**
 * <HeroCentered> — announcement pill, large centered headline, two CTAs
 * and a logo strip.
 *
 * The hero for a product with nothing to screenshot yet: an API, a
 * developer tool, a launch page. When there is no interface to show, the
 * sentence has to carry the whole fold, so it gets the full column width
 * and everything else is deliberately quiet.
 *
 * The announcement pill is a link, not a decoration. It is the highest
 * position on the page and the cheapest way to give a shipped feature its
 * own front door — wasting it on a static "v2 is here" is the most common
 * miss in this pattern.
 *
 * `text-balance` on the heading is what stops a five-word line followed by
 * a one-word orphan at tablet widths, which is where centered headings
 * usually fall apart.
 */

import * as React from 'react'
import { ArrowRight, Sparkles } from 'lucide-react'

export interface HeroCenteredProps {
  announcement?: string
  announcementHref?: string
  heading?: string
  subheading?: string
  primaryLabel?: string
  primaryHref?: string
  secondaryLabel?: string
  secondaryHref?: string
  /** Wordmarks under the fold. Text rather than images, so they theme. */
  logos?: string[]
  logosCaption?: string
  className?: string
}

const DEFAULT_LOGOS = ['Acme', 'Globex', 'Initech', 'Umbrella', 'Soylent']

export function HeroCentered({
  announcement = 'Introducing team workspaces',
  announcementHref = '#',
  heading = 'The fastest way to turn an idea into a product.',
  subheading =
    'One toolkit for the parts every project needs, so the only thing left to build is the part that makes yours different.',
  primaryLabel = 'Get started free',
  primaryHref = '#',
  secondaryLabel = 'Read the docs',
  secondaryHref = '#',
  logos = DEFAULT_LOGOS,
  logosCaption = 'Trusted by teams at',
  className = '',
}: HeroCenteredProps) {
  return (
    <section className={`relative overflow-hidden ${className}`}>
      <div aria-hidden className="pointer-events-none absolute inset-0 -z-10">
        <div className="absolute -top-40 left-1/2 h-[32rem] w-[32rem] -translate-x-1/2 rounded-full bg-primary/20 blur-3xl border border-transparent" />
        {/* Grid wash, masked to fade out before it reaches the copy. */}
        <div className="absolute inset-x-0 top-0 h-96 bg-[linear-gradient(to_right,theme(colors.border/40)_1px,transparent_1px),linear-gradient(to_bottom,theme(colors.border/40)_1px,transparent_1px)] bg-[size:56px_56px] [mask-image:radial-gradient(ellipse_60%_50%_at_50%_0%,#000_60%,transparent_100%)]" />
      </div>

      <div className="mx-auto w-full max-w-4xl px-4 py-20 text-center sm:px-6 lg:py-28">
        {announcement ? (
          <a
            href={announcementHref}
            className="group inline-flex items-center gap-2 rounded-full border border-border/60 bg-card/60 py-1 ps-1.5 pe-3 text-xs font-medium backdrop-blur transition-colors hover:bg-card focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
          >
            <span className="inline-flex items-center gap-1 rounded-full bg-primary/15 px-2 py-0.5 text-primary">
              <Sparkles aria-hidden className="h-3 w-3" />
              New
            </span>
            <span className="text-muted-foreground">{announcement}</span>
            <ArrowRight
              aria-hidden
              className="h-3 w-3 text-muted-foreground transition-transform group-hover:translate-x-0.5 rtl:rotate-180 rtl:group-hover:-translate-x-0.5"
            />
          </a>
        ) : null}

        <h1 className="mt-6 text-balance break-words bg-gradient-to-br from-foreground via-foreground to-foreground/60 bg-clip-text text-4xl font-extrabold tracking-tight text-transparent sm:text-6xl lg:text-7xl">
          {heading}
        </h1>

        <p className="mx-auto mt-6 max-w-2xl text-pretty text-base leading-relaxed text-muted-foreground sm:text-lg">
          {subheading}
        </p>

        <div className="mt-9 flex flex-col items-center justify-center gap-3 sm:flex-row">
          <a
            href={primaryHref}
            className="inline-flex h-12 w-full items-center justify-center gap-1.5 rounded-xl bg-primary px-7 text-sm font-semibold text-primary-foreground shadow-lg shadow-primary/25 transition-transform hover:-translate-y-0.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background sm:w-auto"
          >
            {primaryLabel}
            <ArrowRight aria-hidden className="h-4 w-4 rtl:rotate-180" />
          </a>
          <a
            href={secondaryHref}
            className="inline-flex h-12 w-full items-center justify-center rounded-xl border border-border/60 bg-card/60 px-7 text-sm font-semibold backdrop-blur transition-colors hover:bg-card focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background sm:w-auto"
          >
            {secondaryLabel}
          </a>
        </div>

        {logos.length > 0 ? (
          <div className="mt-16">
            <p className="text-xs font-medium uppercase tracking-wider text-muted-foreground">
              {logosCaption}
            </p>
            <div className="mt-5 flex flex-wrap items-center justify-center gap-x-10 gap-y-4">
              {logos.map((logo) => (
                <span
                  key={logo}
                  className="text-lg font-bold tracking-tight text-muted-foreground/60 transition-colors hover:text-muted-foreground"
                >
                  {logo}
                </span>
              ))}
            </div>
          </div>
        ) : null}
      </div>
    </section>
  )
}

Before you paste

  • Styling is Tailwind utility classes on semantic tokens (bg-card, text-muted-foreground) — it inherits your theme instead of overriding it.
  • Install: npm i lucide-react
  • Every prop has a default, so it renders standalone before you wire it up.

Where it goes

Drop it at components/hero-centered.tsx and import it where you need the section:

import { HeroCentered } from '@/components/hero-centered'

Customize

8 of this block’s props are simple enough to drive from here. Change them and the block below re-renders — it is the same component whose source is above, not a mock of it. Everything else it accepts is in the table underneath.

Props

Read out of the component’s own type and signature, so this cannot drift from the source below. Every prop has a default — the component renders standalone before you pass it anything.

PropTypeDefault
announcementstring'Introducing team workspaces'
announcementHrefstring'#'
headingstring'The fastest way to turn an idea into a produ…
subheadingstring—
primaryLabelstring'Get started free'
primaryHrefstring'#'
secondaryLabelstring'Read the docs'
secondaryHrefstring'#'
logosWordmarks under the fold. Text rather than images, so they theme.string[]DEFAULT_LOGOS
logosCaptionstring'Trusted by teams at'
classNamestring''

Not using React?

The same block rendered once to markup, wrapped as a file your framework compiles. Tailwind classes are framework-agnostic, so the design transfers intact — the behaviour does not.

hero-centered.html
<!--
  Centered Announcement Hero — markup from the Hoverlab catalog.

  This is the block rendered once to HTML and wrapped as a component
  file. It is not a port of the React source: the Tailwind classes carry
  the design, which is the part that took the work, and they are the same
  in every framework.

  This block has no interactive behaviour, so nothing is missing.
-->
<section class="relative overflow-hidden ">
  <div aria-hidden="true" class="pointer-events-none absolute inset-0 -z-10">
    <div class="absolute -top-40 left-1/2 h-[32rem] w-[32rem] -translate-x-1/2 rounded-full bg-primary/20 blur-3xl border border-transparent"></div>
    <div class="absolute inset-x-0 top-0 h-96 bg-[linear-gradient(to_right,theme(colors.border/40)_1px,transparent_1px),linear-gradient(to_bottom,theme(colors.border/40)_1px,transparent_1px)] bg-[size:56px_56px] [mask-image:radial-gradient(ellipse_60%_50%_at_50%_0%,#000_60%,transparent_100%)]"></div>
  </div>
  <div class="mx-auto w-full max-w-4xl px-4 py-20 text-center sm:px-6 lg:py-28">
    <a href="#" class="group inline-flex items-center gap-2 rounded-full border border-border/60 bg-card/60 py-1 ps-1.5 pe-3 text-xs font-medium backdrop-blur transition-colors hover:bg-card focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background">
      <span class="inline-flex items-center gap-1 rounded-full bg-primary/15 px-2 py-0.5 text-primary"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sparkles h-3 w-3" aria-hidden="true"><path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"></path><path d="M20 3v4"></path><path d="M22 5h-4"></path><path d="M4 17v2"></path><path d="M5 18H3"></path></svg>New</span>
      <span class="text-muted-foreground">Introducing team workspaces</span>
      <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right h-3 w-3 text-muted-foreground transition-transform group-hover:translate-x-0.5 rtl:rotate-180 rtl:group-hover:-translate-x-0.5" aria-hidden="true">
        <path d="M5 12h14"></path>
        <path d="m12 5 7 7-7 7"></path>
      </svg>
    </a>
    <h1 class="mt-6 text-balance break-words bg-gradient-to-br from-foreground via-foreground to-foreground/60 bg-clip-text text-4xl font-extrabold tracking-tight text-transparent sm:text-6xl lg:text-7xl">The fastest way to turn an idea into a product.</h1>
    <p class="mx-auto mt-6 max-w-2xl text-pretty text-base leading-relaxed text-muted-foreground sm:text-lg">One toolkit for the parts every project needs, so the only thing left to build is the part that makes yours different.</p>
    <div class="mt-9 flex flex-col items-center justify-center gap-3 sm:flex-row">
      <a href="#" class="inline-flex h-12 w-full items-center justify-center gap-1.5 rounded-xl bg-primary px-7 text-sm font-semibold text-primary-foreground shadow-lg shadow-primary/25 transition-transform hover:-translate-y-0.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background sm:w-auto">Get started free<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right h-4 w-4 rtl:rotate-180" aria-hidden="true"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></svg></a>
      <a href="#" class="inline-flex h-12 w-full items-center justify-center rounded-xl border border-border/60 bg-card/60 px-7 text-sm font-semibold backdrop-blur transition-colors hover:bg-card focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background sm:w-auto">Read the docs</a>
    </div>
    <div class="mt-16">
      <p class="text-xs font-medium uppercase tracking-wider text-muted-foreground">Trusted by teams at</p>
      <div class="mt-5 flex flex-wrap items-center justify-center gap-x-10 gap-y-4">
        <span class="text-lg font-bold tracking-tight text-muted-foreground/60 transition-colors hover:text-muted-foreground">Acme</span>
        <span class="text-lg font-bold tracking-tight text-muted-foreground/60 transition-colors hover:text-muted-foreground">Globex</span>
        <span class="text-lg font-bold tracking-tight text-muted-foreground/60 transition-colors hover:text-muted-foreground">Initech</span>
        <span class="text-lg font-bold tracking-tight text-muted-foreground/60 transition-colors hover:text-muted-foreground">Umbrella</span>
        <span class="text-lg font-bold tracking-tight text-muted-foreground/60 transition-colors hover:text-muted-foreground">Soylent</span>
      </div>
    </div>
  </div>
</section>
  • This is rendered HTML, not a translation of the React source. The Tailwind classes carry the design and work in any framework.
  • It is one frame: the component in its initial state, with no props applied beyond the defaults.
  • Requires Tailwind, and the design tokens the classes reference (bg-card, text-muted-foreground, and so on). The template ZIPs ship a globals.css that defines them.

What each framework gets across the whole catalog — effects convert properly; this rung is markup.

For AI

The component, its props, the design tokens it expects and the command that installs it — as one prompt. Paste it into Claude, Cursor, v0 or ChatGPT and what they build around it will match the rest of the catalog instead of inventing its own system.

See the prompt

Used in these pages

Want the whole screen instead of this one section? Open a page and copy it entire.

13 more blocks in Heroes

All of them free to read, copy and install — no account, no locked tiles, no watermarked preview. The whole catalog is open, and so are the API and the CLI.

Browse Heroes

Shipping one commercially

Copying the code is free. Putting it in client work or a paid product is what Pro is for — the licence, not the access.

  • A commercial licence for everything in the catalog
  • Unlimited bundle exports, in Vue, Svelte and Tailwind
  • One payment — no subscription, nothing to renew
Pro — $79 once

More Heroes blocks

View category
Open the full page for this block

Split Hero with Product Panel

Copy on the left, a drawn product panel on the right — the default hero for anything with an interface to show, with no image asset to host and no layout shift while it loads.

Heroes176 lines1 dep
Open the full page for this block

Hero with Browser Frame

Centered copy above a screenshot in window chrome, masked at the bottom so a tall image never dictates the height of the fold. Wraps your own img or video.

Heroes191 lines1 dep
Open the full page for this block

Waitlist Hero with Email Capture

A pre-launch hero whose only ask is an email address, with pending and success states and a signup count that argues for finishing rather than starting.

Heroes163 lines1 dep
Open the full page for this block

Search-First Hero

A hero whose primary action is a real search form with prefilling suggestion chips — for marketplaces and directories, where sending the visitor below the fold to find the search box is the whole failure.

Heroes128 lines1 dep
Open the full page for this block

Developer Hero with Install Command

A drawn terminal whose install line is real, selectable text with a working copy button and a feature-detected clipboard call — the hero for anything adopted by typing rather than signing up.

Heroes163 lines1 dep
Open the full page for this block

App Download Hero with Phone

A drawn phone beside two store links built as real anchors rather than badge images, so they inherit the theme, need no hosted asset and carry an accessible name that is not a filename.

Heroes161 lines1 dep
Open the full page for this block

Hero Anchored by a Customer Quote

Pitch on the left, a marked-up figure and blockquote on the right, so the claim and the evidence for it share the fold instead of sitting a scroll apart.

Heroes129 lines1 dep
Open the full page for this block

Hero with Proof Metrics

A centered hero closing on a definition list of scale numbers, with a masked grid wash behind it — for infrastructure and payments, where "how many" is the second question a buyer asks.

Heroes129 lines1 dep
Open the full page for this block

Editorial Masthead Hero

A serif display headline over a 60-character standfirst and a real byline, with one text link and no competing CTAs — the hero for publications and essays, where the writing is the product.

Heroes99 lines1 dep
Open the full page for this block

Full-Bleed Media Hero

Copy over your own image or video, with a graded scrim and deliberately fixed light-on-dark text — because the background is a photograph in both themes, so flipping the copy would break it.

Heroes106 lines1 dep
Open the full page for this block

Integration Wall Hero

A hero whose visual is the connector list itself, marked up as a real list so a visitor can skim it for their own stack — asset-free initials tiles, no third-party marks to license.

Heroes135 lines1 dep
Open the full page for this block

Appointment Booking Hero

A day strip built as a radio group rather than buttons, so arrow keys move between dates and sold-out days disable properly — the fold for anything sold by the appointment.

Heroes168 lines1 dep
Open the full page for this block

Hero with Inline Price

Names the price above the fold for single-plan and one-time products, with the former price in a real strikethrough element so it is never announced as the current one.

Heroes135 lines1 dep