Centered Hero
A centred headline, sub-copy and a pair of CTAs under an eyebrow badge - the default landing hero.
6 个框架初级
A pill announcement link above the headline, pairing a launch note with the main hero CTA.
<section class="mx-auto w-full max-w-3xl px-4 py-12 text-center sm:py-16">
<!-- The banner is a single link: the whole pill is the target, so there is no
tiny "read more" tap area. It wraps its text rather than overflowing at
320px, and the arrow is decorative. -->
<a href="#" class="inline-flex max-w-full flex-wrap items-center justify-center gap-x-2 gap-y-1 rounded-full border border-gray-200 bg-gray-50 px-4 py-1.5 text-sm text-gray-700 transition-colors hover:bg-gray-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:hover:bg-gray-800">
<span class="rounded-full bg-blue-600 px-2 py-0.5 text-xs font-semibold text-white">New</span>
<span class="font-medium">Version 3.0 is live - see what changed</span>
<span aria-hidden="true" class="text-gray-400">→</span>
</a>
<h1 class="mt-6 text-3xl font-bold leading-tight tracking-tight text-gray-900 sm:text-5xl dark:text-gray-100">
The fastest way to ship your next idea
</h1>
<p class="mx-auto mt-4 max-w-xl text-base leading-relaxed text-gray-600 dark:text-gray-400">
From prototype to production without leaving the editor.
</p>
<a href="#" class="mt-7 inline-flex items-center justify-center rounded-lg bg-blue-600 px-5 py-2.5 text-sm font-semibold text-white transition-colors hover:bg-blue-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600 focus-visible:ring-offset-2 focus-visible:ring-offset-white motion-reduce:transition-none dark:focus-visible:ring-blue-400 dark:focus-visible:ring-offset-gray-900">
Start free trial
</a>
</section>| Prop | 类型 | 默认值 | 说明 |
|---|---|---|---|
title必填 | string | - | 卡片的标题文本。 |
copy | string | - | 显示在标题下方的正文文本。 |
bannerLabel | string | 'New' | Banner label |
bannerText必填 | string | - | Banner text |
bannerHref | string | '#' | Banner href |
ctaLabel | string | 'Start free trial' | 行动号召按钮的文案。 |
ctaHref | string | '#' | 行动号召链接的目标地址。 |
className | string | - | 合并到根元素上的额外类名。 |
The banner is one link - the entire pill is the target, so there is no tiny "read more" hotspot - built from `bannerLabel`, `bannerText` and `bannerHref`. It wraps rather than overflowing at 320px, and its trailing arrow is decorative. Below it sits the usual headline, sub-copy and primary CTA.