Component

Newsletter Card

Vibrant newsletter subscription card with email input, gradient background, and trust badges.

  • Component
  • Tailwind
  • HTML
  • MIT

Preview

Live component

Interactive preview
Open preview
9:41 100%
devsnips.dev/library/tailwind/components/cards/newsletter-card/
fluid · no fixed width 100%
No dependencies Production-ready

Install

Add to your project

terminal
npx devsnips add Tailwind/Components/Cards/newsletter-card
registry path: Tailwind/Components/Cards/newsletter-card

Source

Implementation

code.html
<div class="relative bg-gradient-to-br from-violet-600 via-purple-600 to-indigo-700 rounded-2xl p-6 overflow-hidden">
  <div class="absolute inset-0">
    <div class="absolute top-10 right-10 w-32 h-32 bg-white/10 rounded-full blur-2xl"></div>
    <div class="absolute bottom-10 left-10 w-24 h-24 bg-pink-500/20 rounded-full blur-2xl"></div>
  </div>
  
  <div class="relative">
    <div class="w-14 h-14 bg-white/20 backdrop-blur rounded-2xl flex items-center justify-center mb-5">
      <svg class="w-7 h-7 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"/>
      </svg>
    </div>
    
    <h3 class="text-xl font-bold text-white mb-2">Stay in the Loop</h3>
    <p class="text-white/80 text-sm mb-5">Get weekly updates on new components, design trends, and exclusive content. No spam, unsubscribe anytime.</p>
    
    <form class="space-y-3">
      <input type="email" placeholder="Enter your email" class="w-full px-4 py-3 bg-white/10 backdrop-blur border border-white/20 rounded-xl text-white placeholder-white/60 focus:outline-none focus:ring-2 focus:ring-white/50">
      <button type="submit" class="w-full py-3 bg-white text-purple-700 font-semibold rounded-xl hover:bg-white/90 transition-colors">
        Subscribe Now
      </button>
    </form>
    
    <div class="flex items-center justify-center gap-6 mt-5 text-xs text-white/60">
      <span class="flex items-center gap-1">
        <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"/>
        </svg>
        Free forever
      </span>
      <span class="flex items-center gap-1">
        <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"/>
        </svg>
        Weekly updates
      </span>
      <span class="flex items-center gap-1">
        <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"/>
        </svg>
        12k+ subscribers
      </span>
    </div>
  </div>
</div>
45 lines UTF-8 · LF · Spaces: 2

AI-ready

Available to your agent.

This component is reachable through the DevSnips CLI, MCP server and Skills integrations — one registry, one resource path.

Resource path

devsnips://components/cards/newsletter-card

Continue browsing

View all