Skip to content
HTML Templates For Developers

Documentation

Magnet — Lead Generation Landing Page

Version 1.0.0 · Vanilla HTML · 15 files · 184 KB

Back to the template

Getting started

  1. Unzip the download and open index.html in a browser. No server, installation or build step is needed.
  2. Edit the text directly in the HTML files.
  3. Change colours, fonts and spacing through the CSS custom properties at the top of assets/css/style.css.
  4. Replace the artwork in assets/images/ with your own images.
  5. Upload the whole folder to any static host.

File structure

The download contains these 15 files:

  • LICENSE.txt1.7 KB
  • README.md2.7 KB
  • assets/css/style.css15 KB
  • assets/fonts/mulish-LICENSE.txt4.4 KB
  • assets/fonts/mulish-latin-wght-normal.woff229 KB
  • assets/fonts/zilla-slab-LICENSE.txt4.8 KB
  • assets/fonts/zilla-slab-latin-400-italic.woff227 KB
  • assets/fonts/zilla-slab-latin-400-normal.woff226 KB
  • assets/fonts/zilla-slab-latin-500-normal.woff226 KB
  • assets/fonts/zilla-slab-latin-600-normal.woff226 KB
  • assets/fonts/zilla-slab-latin-700-normal.woff225 KB
  • assets/images/favicon.svg301 B
  • assets/js/main.js5.8 KB
  • documentation/index.html11 KB
  • index.html21 KB

Colours

These custom properties are defined at the top of the stylesheet. Change a value once and it updates everywhere it is used.

  • --color-cream#fffbf5
  • --color-sand#f6eddf
  • --color-teal#134e4a
  • --color-teal-deep#0b3b38
  • --color-teal-soft#cce9e4
  • --color-orange#f97316
  • --color-orange-dark#c2410c
  • --color-ink#1c2b2a
  • --color-text#3d4f4d
  • --color-line#e5dccd
  • --color-error#b91c1c

Interactive features

Lead forms

Any form with the data-form attribute is handled. Field rules are in the rules object in assets/js/main.js, keyed by input name. Post the values to your CRM inside send() and call done() on success.

Chapter tabs

Add a button with role="tab" and a matching panel with role="tabpanel"; link them with aria-controls and aria-labelledby.

Sticky mobile bar

The bar watches the elements with ids get-report and get-report-2. Change the ids in initSticky() if you rename those sections.

Customisation notes

Change the offer

Replace the report title, cover SVG, chapter panels and figures with your own. The cover is a single inline SVG in the hero.

Add or remove form fields

Copy a .field block, give the input a name and add a rule for it in the rules object. Fields without a rule are optional.

Link the download

The success state has a demo note. Replace it with a link to your PDF, or redirect from the send() callback.

What is front-end only

This is a front-end template. The behaviours below are demonstrations that run in the browser; connect them to your own server or service before relying on them.

  • Both lead forms validate in the browser and show a success state; no data is sent or stored and no file is delivered until you connect a backend.
  • The report, statistics, author and endorsements are invented sample content.

Bundled components and licences

Everything the template needs is inside the download; nothing is loaded from the network.

  • Mulish typeface — OFL-1.1 (assets/fonts/mulish-LICENSE.txt)
  • Zilla Slab typeface — OFL-1.1 (assets/fonts/zilla-slab-LICENSE.txt)

Changelog

Version 1.0.0 · Nov 23, 2026

  • Initial release.