Free Section

High-Conversion Newsletter CTA Banner

A high-conversion email capture section with gradient glow backdrop, responsive inline input button, and live subscriber counter.

  • dark
  • newsletter
  • cta
  • email
  • banner
  • section

Colours in this gradient

  • #020617
  • #6366f1
  • #a855f7
  • #ffffff
background: ;

The code

Plain HTML and CSS with no dependencies. Copy a single file, or choose "Full file" for a complete page you can save as index.html and open in a browser.

<section class="cta-sec">
  <div class="cta-card">
    <div class="cta-glow"></div>
    <div class="cta-inner">
      <span class="cta-pill">✦ Weekly Engineering Digest</span>
      <h2>Stay ahead of the generative AI curve</h2>
      <p>Join 14,000+ engineers receiving curated system design breakdowns, benchmark tests, and production code snippets every Thursday.</p>

      <form class="cta-form" id="newsletterForm" onsubmit="event.preventDefault(); document.getElementById('ctaSuccess').style.display='block';">
        <input type="email" class="cta-input" placeholder="Enter your work email..." required />
        <button type="submit" class="cta-btn">Subscribe Free &rarr;</button>
      </form>
      <div class="cta-success" id="ctaSuccess">✓ You're in! Check your inbox for the welcome issue.</div>
      <div class="cta-subtext">No spam ever · Unsubscribe anytime with 1 click · 100% free</div>
    </div>
  </div>
</section>

The AI prompt

Paste this into an AI coding tool to generate the same section, then ask it to adapt the colours, text or framework to your project.

Works with Claude · ChatGPT · Cursor · v0 · Bolt · Gemini
Create a high-converting newsletter call-to-action card section in HTML and CSS.

Requirements:
- Enclosed card with top radial glow backdrop.
- Headline, benefits description, and inline email subscription form.
- Input with custom placeholder and vibrant gradient submit button.
- Anti-spam reassurance subtext and instant success message display.

Return one HTML file with a <style> block.

How to build it, step by step

  1. 1

    Center card with max-width: 860px and top radial glow filter.

  2. 2

    Design flexible inline email input with mobile column stacking fallback.

  3. 3

    Show instant success confirmation on form submit.

Customisation tips

  • Ensure input contrast and font size (at least 16px on mobile) prevents iOS automatic zoom on focus.

More sections