Hero Sections

Install command hero

Developer landing with a copyable command

Live preview
Build a centered developer-tool hero with Tailwind CSS on a near-black background. Stack a small pill announcing the latest release, a large tight-tracking headline in white, a muted one-paragraph subline, and then the centrepiece: a dark terminal card with a rounded border, a top strip of three window dots and a package-manager tab row (npm, pnpm, bun, deno) where each tab carries a data-pm attribute, and a body showing a monospaced prompt line with a copy button on the right. Under the terminal, a row with a white primary button and a ghost "Read the docs" link, then a thin line of project facts — MIT licensed, zero config, 12k stars. Then add JavaScript that swaps the active tab styling and rewrites the install command for the chosen package manager, and wires the copy button to put the command — without the leading prompt character — on the clipboard, flipping its label to a checkmark for a moment.