Skip to content

Block 51 of 297

Lead Magnet

Free guide offer with a book-style cover, a what's-inside list and an email form for the download.

Puck key
LeadMagnetBlock
Export
leadMagnetBlock
React component
<LeadMagnet />
Path
components/puck/lead-magnet-block.tsx
Dependencies
None
License
MIT

About this block

When to use it, how to write for it, and what to change in the code.

What it's for

An offer section for a free guide or toolkit: a tilted, book-style cover with stacked pages behind it, a numbered list of what the guide covers, and a short email form that posts to your list provider. Without a cover image it becomes a single centered column. On phones the cover sits above the copy at a smaller size.

  • A downloadable handbook, checklist or toolkit offered for an email address
  • A resource page that grows a mailing list from useful content
  • A campaign page offering a printable guide to volunteers or residents
Writing the content
  • Use a portrait image for Cover image URL (cropped to 3:4) and name the guide in Cover alt text.
  • Add up to six What's inside items, each a Title and one short Detail. They're numbered in the order listed.
  • Copy the Form action URL and Email field name from your provider, and have it email the download link or redirect to the file.
  • Ask for first name adds an optional first_name field.
Accessibility
  • The contents list is an ordered list; the large printed numbers are hidden so they aren't read twice.
  • Both inputs have labels in the markup, but they're visually hidden, leaving the placeholder as the only visible prompt.
  • The page-stack shadows and spine shading are hidden from assistive technology, and the email field is required and type="email".
Customizing the code
  • The cover tilt and page stack come from rotate-3, rotate-1 and -rotate-1 with translate offsets; remove them for a flat cover.
  • List numbers, eyebrow and button use indigo-700 and indigo-600.

Editor fields

What content editors see in the P1 sidebar when they select this block.

  • Eyebrowtext
  • Headingtext
  • Heading levelselect
  • Bodytextarea
  • Cover image URLtext
  • Cover alt texttext
  • Formattext
  • List headingtext
  • What's insidearray
  • Form action URLtext
  • Email field nametext
  • Ask for first nameradio
  • Button texttext
  • Privacy notetextarea