Posts Learn Components Snippets Categories Tags Tools About
/
<div class="w-full lg:w-2/3 mx-auto relative p-5">
  <div class="grid grid-cols-1 lg:grid-cols-2 gap-12 bg-gradient-to-r from-cyan-500 to-blue-500 p-10 lg:p-[60px] rounded-2xl">
	  <div>
	  <h3 class="text-white text-3xl font-semibold">Sign up for our newsletter</h3>

	  <p class="text-xl text-white mt-4">
		  Get the best news on weelky basis! Join now and don't miss it.
	  </p>
	  </div>

	  <div>
	  <div class="flex items-stretch">
		  <input
		  type="email"
		  placeholder="Enter your email"
		  class="px-4 w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50"
	  />

		  <button class="bg-blue-500 hover:bg-blue-600 text-white py-3 px-5 rounded-lg font-semibold ml-4 border-4 border-white">
		  Subscribe
		  </button>
	  </div>

	  <p class="text-white mt-2 text-sm">
		  We care about your data in our <a href="#" class="underline">privacy policy</a>.
	  </p>
	  </div>
  </div>
</div>

Basic Tailwind CSS Newsletter component that's suitable to be placed at the end of your website to allow user to subscribe into your mailing list

[email protected] 551 views

How to install and add to your project?

Step 1: Include Scripts and Styling CDN inside the head tag

<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/charts.css/dist/charts.min.css">
<script defer src="https://unpkg.com/[email protected]/dist/cdn.min.js"></script>

Step 2: Copy the Tailwind Basic CSS Newsletter Component component code above as you need it

Step 3: Preview the component in your browser 🚀

Step 4: For production release make sure to use the official Tailwind CSS Installation

You are done 🎉

Credits or Attribution

If you enjoy using our components, please do give us (PostSrc) credit in your project footer section or about page. Copy the HTML below for attribution.

<a href="https://postsrc.com/components" target="_blank" rel="noopener" title="PostSrc Components - Collection of Tailwind CSS components for everyone to use"><img style="width: auto; height: 46px;" src="https://postsrc.com/img/attr.png" alt="PostSrc logo"></a>

Sponsors 👑

+ Add Yours
)