Hero
Centered hero
A big centered headline with a soft gradient halo, an email signup and a quiet grid backdrop.
How to use it
Add it to a page
Write “Add @hero-centered after the hero” in the chat. Spearbot restyles it to your fonts and colours.
Mix and match
Combine it with skills, e.g. “Add @hero-centered @copywriting for our pricing”.
Or paste it yourself
Copy the HTML below. It is one section with its own scoped styles and no dependencies.
View the HTMLShowHide
<section class="sbc-hero-centered" aria-labelledby="sbc-hero-centered-title">
<div class="sbc-hero-centered__backdrop" aria-hidden="true"></div>
<div class="sbc-hero-centered__inner">
<a class="sbc-hero-centered__pill" href="#news"><span>Spring menu</span> Now serving until 9pm <span aria-hidden="true">→</span></a>
<h1 id="sbc-hero-centered-title">Small plates, <em>slow evenings</em>, good company.</h1>
<p class="sbc-hero-centered__lede">A neighbourhood kitchen cooking seasonal food over open flame. Book a table or join the list for the next tasting night.</p>
<form class="sbc-hero-centered__form" action="#" onsubmit="event.preventDefault()">
<label for="sbc-hero-centered-email" class="sbc-hero-centered__sr">Email address</label>
<input id="sbc-hero-centered-email" type="email" name="email" placeholder="you@example.com" autocomplete="email" required>
<button type="submit">Join the list</button>
</form>
<p class="sbc-hero-centered__note">One email a month. Unsubscribe in one click.</p>
</div>
</section>
<style>
.sbc-hero-centered{--bg:var(--color-bg,#FBF9F6);--ink:var(--color-ink,#16130F);--muted:var(--color-muted,#6B645B);--accent:var(--color-accent,#C2462A);--surface:var(--color-surface,#fff);--r:var(--radius,16px);position:relative;isolation:isolate;overflow:hidden;background:var(--bg);color:var(--ink);font-family:var(--font-body,system-ui,-apple-system,"Segoe UI",sans-serif);padding:clamp(72px,12vw,160px) 20px;text-align:center}
.sbc-hero-centered *{box-sizing:border-box}
.sbc-hero-centered__backdrop{position:absolute;inset:0;z-index:-1;background:radial-gradient(45% 40% at 50% 38%,color-mix(in srgb,var(--accent) 30%,transparent),transparent 70%),radial-gradient(30% 30% at 70% 60%,color-mix(in srgb,#F6B36A 40%,transparent),transparent 70%),linear-gradient(color-mix(in srgb,var(--ink) 6%,transparent) 1px,transparent 1px) 0 0/48px 48px,linear-gradient(90deg,color-mix(in srgb,var(--ink) 6%,transparent) 1px,transparent 1px) 0 0/48px 48px;-webkit-mask-image:radial-gradient(70% 70% at 50% 40%,#000 30%,transparent 80%);mask-image:radial-gradient(70% 70% at 50% 40%,#000 30%,transparent 80%)}
.sbc-hero-centered__inner{max-width:860px;margin:0 auto}
.sbc-hero-centered__pill{display:inline-flex;align-items:center;gap:10px;padding:5px 14px 5px 5px;border-radius:999px;background:color-mix(in srgb,var(--surface) 80%,transparent);border:1px solid color-mix(in srgb,var(--ink) 10%,transparent);color:var(--muted);font-size:14px;text-decoration:none;backdrop-filter:blur(8px)}
.sbc-hero-centered__pill span:first-child{background:var(--ink);color:var(--bg);padding:4px 10px;border-radius:999px;font-weight:600;font-size:13px}
.sbc-hero-centered__pill:hover{color:var(--ink)}
.sbc-hero-centered__pill:focus-visible,.sbc-hero-centered button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.sbc-hero-centered h1{font-family:var(--font-display,Georgia,"Times New Roman",serif);font-size:clamp(42px,7.5vw,96px);line-height:.98;letter-spacing:-.04em;font-weight:600;margin:28px auto 0;text-wrap:balance}
.sbc-hero-centered h1 em{font-style:italic;font-weight:400;background:linear-gradient(100deg,var(--accent),#E58B3A);-webkit-background-clip:text;background-clip:text;color:transparent;padding-right:.05em}
.sbc-hero-centered__lede{margin:26px auto 0;max-width:54ch;font-size:clamp(17px,1.7vw,20px);line-height:1.55;color:var(--muted)}
.sbc-hero-centered__form{display:flex;gap:8px;max-width:460px;margin:36px auto 0;padding:6px;border-radius:999px;background:var(--surface);border:1px solid color-mix(in srgb,var(--ink) 12%,transparent);box-shadow:0 24px 50px -30px color-mix(in srgb,var(--ink) 50%,transparent)}
.sbc-hero-centered__form:focus-within{border-color:var(--accent)}
.sbc-hero-centered input{flex:1;min-width:0;border:0;background:transparent;padding:0 16px;font:inherit;font-size:16px;color:var(--ink);outline:none}
.sbc-hero-centered button{height:46px;padding:0 22px;border:0;border-radius:999px;background:var(--ink);color:var(--bg);font:inherit;font-weight:600;cursor:pointer;white-space:nowrap}
.sbc-hero-centered button:hover{background:color-mix(in srgb,var(--ink) 85%,var(--accent))}
.sbc-hero-centered__note{margin:14px 0 0;font-size:14px;color:var(--muted)}
.sbc-hero-centered__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (max-width:480px){.sbc-hero-centered__form{flex-direction:column;border-radius:20px}.sbc-hero-centered input{height:46px}.sbc-hero-centered button{width:100%}}
</style>More components
- Split heroHeadline, supporting line and two actions on the left, a layered visual card on the right.
- Simple navbarA sticky, blurred top bar with logo, links, a call to action and an accessible mobile menu.
- Feature bentoFive features in an asymmetric bento grid, each card with its own small illustrated visual.