Hero section
A typical hero block: heading, short subtitle, call-to-action button — centered in a vertical flex container.
Code
<section style="display:flex;flex-direction:column;align-items:center;text-align:center;padding:3rem 1rem;gap:1rem;background:#0d1117;color:#fff">
<h1 style="margin:0;font-size:2rem">Product headline</h1>
<p style="margin:0;color:#8b949e;max-width:500px">A short description of what the product does and why it matters.</p>
<a href="/signup" style="background:#1f6feb;color:#fff;padding:0.75rem 1.5rem;border-radius:8px;text-decoration:none">Get started</a>
</section>
Preview
Explanation
gap replaces margins between elements; max-width on the subtitle prevents the text from stretching across the full screen width.
- For a full-viewport hero, add min-height:100vh to the section instead of fixed padding.