HTML code
This is the html code used to create this tailwind snippet
Download<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dark Footer - Tailwind CSS</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-gray-50">
<div class="mt-5">
<footer class="bg-gradient-to-b from-gray-900 to-black text-white">
<!-- Footer Top Section -->
<div class="pt-4 md:pt-8 lg:pt-12">
<div class="container mx-auto px-4">
<!-- Newsletter Section with Border -->
<div class="border-b border-white/10 pb-6 mb-5">
<div class="grid grid-cols-1 lg:grid-cols-12 gap-4 items-center">
<div class="lg:col-span-3 xl:col-span-3">
<h4 class="text-white text-lg font-semibold">
Sign up to Get Latest Updates
</h4>
</div>
<div class="lg:col-span-6 xl:col-span-6">
<form class="flex bg-white p-1 rounded-none">
<input
type="email"
class="flex-1 px-4 py-2 border-0 rounded-none focus:outline-none focus:ring-0 text-gray-900"
placeholder="[email protected]"
>
<button
class="px-6 py-2 bg-gray-600 text-white hover:bg-gray-700 transition-colors rounded-none flex-shrink-0"
type="submit"
>
Subscribe
</button>
</form>
</div>
<div class="lg:col-span-3 xl:col-span-3 lg:text-right">
<span class="text-base font-medium block">Call Us On</span>
<span class="text-2xl font-bold block">1-800-222-000</span>
</div>
</div>
</div>
<!-- Footer Links Grid -->
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-12 gap-8">
<!-- Company Info -->
<div class="sm:col-span-1 lg:col-span-3 my-4">
<div class="mb-4">
<div class="text-white text-2xl font-bold">LOGO</div>
</div>
<div class="text-white/65 mb-4">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod.
</div>
<div class="flex gap-2">
<a href="#" class="w-8 h-8 flex items-center justify-center bg-pink-500 text-white rounded-full hover:bg-teal-500 transition-colors">
<svg class="w-4 h-4" fill="currentColor" viewBox="0 0 24 24">
<path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/>
</svg>
</a>
<a href="#" class="w-8 h-8 flex items-center justify-center bg-pink-500 text-white rounded-full hover:bg-teal-500 transition-colors">
<svg class="w-4 h-4" fill="currentColor" viewBox="0 0 24 24">
<path d="M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"/>
</svg>
</a>
<a href="#" class="w-8 h-8 flex items-center justify-center bg-pink-500 text-white rounded-full hover:bg-teal-500 transition-colors">
<svg class="w-4 h-4" fill="currentColor" viewBox="0 0 24 24">
<path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"/>
</svg>
</a>
<a href="#" class="w-8 h-8 flex items-center justify-center bg-pink-500 text-white rounded-full hover:bg-teal-500 transition-colors">
<svg class="w-4 h-4" fill="currentColor" viewBox="0 0 24 24">
<path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/>
</svg>
</a>
</div>
</div>
<!-- Customer Links -->
<div class="sm:col-span-1 lg:col-span-2 my-4">
<h5 class="text-white text-base font-semibold mb-4 uppercase">Customer</h5>
<ul class="space-y-3">
<li>
<a href="#" class="text-white/65 hover:text-white relative inline-block group">
<span>Get Corpo</span>
<span class="absolute left-0 bottom-0 w-0 h-px bg-pink-500 transition-all duration-300 group-hover:w-full"></span>
</a>
</li>
<li>
<a href="#" class="text-white/65 hover:text-white relative inline-block group">
<span>Documentation</span>
<span class="absolute left-0 bottom-0 w-0 h-px bg-pink-500 transition-all duration-300 group-hover:w-full"></span>
</a>
</li>
<li>
<a href="#" class="text-white/65 hover:text-white relative inline-block group">
<span>Help center</span>
<span class="absolute left-0 bottom-0 w-0 h-px bg-pink-500 transition-all duration-300 group-hover:w-full"></span>
</a>
</li>
<li>
<a href="#" class="text-white/65 hover:text-white relative inline-block group">
<span>Pricing</span>
<span class="absolute left-0 bottom-0 w-0 h-px bg-pink-500 transition-all duration-300 group-hover:w-full"></span>
</a>
</li>
<li>
<a href="#" class="text-white/65 hover:text-white relative inline-block group">
<span>Contact us</span>
<span class="absolute left-0 bottom-0 w-0 h-px bg-pink-500 transition-all duration-300 group-hover:w-full"></span>
</a>
</li>
</ul>
</div>
<!-- Product Links -->
<div class="sm:col-span-1 lg:col-span-2 my-4">
<h5 class="text-white text-base font-semibold mb-4 uppercase">Product</h5>
<ul class="space-y-3">
<li>
<a href="#" class="text-white/65 hover:text-white relative inline-block group">
<span>Portfolio</span>
<span class="absolute left-0 bottom-0 w-0 h-px bg-pink-500 transition-all duration-300 group-hover:w-full"></span>
</a>
</li>
<li>
<a href="#" class="text-white/65 hover:text-white relative inline-block group">
<span>Blog</span>
<span class="absolute left-0 bottom-0 w-0 h-px bg-pink-500 transition-all duration-300 group-hover:w-full"></span>
</a>
</li>
<li>
<a href="#" class="text-white/65 hover:text-white relative inline-block group">
<span>Join our team</span>
<span class="absolute left-0 bottom-0 w-0 h-px bg-pink-500 transition-all duration-300 group-hover:w-full"></span>
</a>
</li>
<li>
<a href="#" class="text-white/65 hover:text-white relative inline-block group">
<span>Elements</span>
<span class="absolute left-0 bottom-0 w-0 h-px bg-pink-500 transition-all duration-300 group-hover:w-full"></span>
</a>
</li>
<li>
<a href="#" class="text-white/65 hover:text-white relative inline-block group">
<span>Products</span>
<span class="absolute left-0 bottom-0 w-0 h-px bg-pink-500 transition-all duration-300 group-hover:w-full"></span>
</a>
</li>
</ul>
</div>
<!-- Company Links -->
<div class="sm:col-span-1 lg:col-span-2 my-4">
<h5 class="text-white text-base font-semibold mb-4 uppercase">Company</h5>
<ul class="space-y-3">
<li>
<a href="#" class="text-white/65 hover:text-white relative inline-block group">
<span>About</span>
<span class="absolute left-0 bottom-0 w-0 h-px bg-pink-500 transition-all duration-300 group-hover:w-full"></span>
</a>
</li>
<li>
<a href="#" class="text-white/65 hover:text-white relative inline-block group">
<span>Careers</span>
<span class="absolute left-0 bottom-0 w-0 h-px bg-pink-500 transition-all duration-300 group-hover:w-full"></span>
</a>
</li>
<li>
<a href="#" class="text-white/65 hover:text-white relative inline-block group">
<span>Legal & Security</span>
<span class="absolute left-0 bottom-0 w-0 h-px bg-pink-500 transition-all duration-300 group-hover:w-full"></span>
</a>
</li>
<li>
<a href="#" class="text-white/65 hover:text-white relative inline-block group">
<span>Terms of use</span>
<span class="absolute left-0 bottom-0 w-0 h-px bg-pink-500 transition-all duration-300 group-hover:w-full"></span>
</a>
</li>
<li>
<a href="#" class="text-white/65 hover:text-white relative inline-block group">
<span>We're hiring!</span>
<span class="absolute left-0 bottom-0 w-0 h-px bg-pink-500 transition-all duration-300 group-hover:w-full"></span>
</a>
</li>
</ul>
</div>
<!-- Recent Blog Posts -->
<div class="sm:col-span-2 lg:col-span-3 my-4">
<h5 class="text-white text-base font-semibold mb-4 uppercase">Company</h5>
<div class="space-y-4">
<!-- Blog Post 1 -->
<div class="flex gap-3 pb-3">
<div class="flex-shrink-0">
<img
src="https://bootdey.com/img/Content/avatar/avatar1.png"
class="w-20 h-20 rounded object-cover"
alt="Blog post thumbnail"
>
</div>
<div class="flex-1">
<small class="text-white/65 block mb-1">29 March 2021</small>
<h6 class="text-white font-medium text-sm hover:text-pink-500 transition-colors m-0">
<a href="#">Markdown Language Sample Blog Post Styling</a>
</h6>
</div>
</div>
<!-- Blog Post 2 -->
<div class="flex gap-3">
<div class="flex-shrink-0">
<img
src="https://bootdey.com/img/Content/avatar/avatar2.png"
class="w-20 h-20 rounded object-cover"
alt="Blog post thumbnail"
>
</div>
<div class="flex-1">
<small class="text-white/65 block mb-1">29 March 2021</small>
<h6 class="text-white font-medium text-sm hover:text-pink-500 transition-colors m-0">
<a href="#">Markdown Language Sample Blog Post Styling</a>
</h6>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Footer Bottom -->
<div class="border-t border-white/10 py-3 md:py-4 lg:py-6">
<div class="container mx-auto px-4 text-center">
<p class="text-white/65 m-0">
© 2021 copyright <a href="#" class="text-white hover:text-pink-500 transition-colors">Bootdey.com</a>
</p>
</div>
</div>
</footer>
</div>
</body>
</html>