Join Our Community Call-to-Action Banner Section With Tailwind CSS
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Join our community call to action banner section with tailwind css</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body>
<div class="bg-white">
<div class="mx-auto py-16 sm:px-6 lg:px-8">
<div class="relative isolate overflow-hidden px-6 py-24 text-center sm:rounded-3xl sm:px-16">
<h2 class="font-nudge-extrabold mx-auto max-w-2xl text-3xl font-bold uppercase tracking-wide sm:text-4xl">Join our
community now</h2>
<p class="mx-auto mt-6 max-w-xl text-lg leading-8 text-gray-600">Experience the benefits of our community. No
obligations, just join and explore.</p>
<div class="isolate mt-8 flex items-center justify-center -space-x-2 overflow-hidden">
<img class="relative z-30 inline-block h-10 w-10 rounded-full ring-2 ring-white" src="https://randomuser.me/api/portraits/men/34.jpg" alt="">
<img class="relative z-20 inline-block h-10 w-10 rounded-full ring-2 ring-white" src="https://randomuser.me/api/portraits/women/2.jpg" alt="">
<img class="relative z-10 inline-block h-10 w-10 rounded-full ring-2 ring-white" src="https://randomuser.me/api/portraits/women/3.jpg" alt="">
<img class="relative z-0 inline-block h-10 w-10 rounded-full ring-2 ring-white" src="https://randomuser.me/api/portraits/men/4.jpg" alt="">
<span class="!ml-2 font-bold italic text-teal-500">Join these awesome members</span>
</div>
<div class="mt-12 flex items-center justify-center gap-x-6">
<button type="button" class="text-md relative inline-flex items-center gap-x-2 rounded-lg bg-teal-600 px-6 py-4 font-semibold text-white shadow-sm hover:bg-teal-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-teal-600">
<span class="absolute -top-5 left-0 w-full text-left text-xs italic text-teal-600">No Obligations</span>Join Now
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" class="-mr-0.5 h-5 w-5">
<path fill-rule="evenodd" d="M16.72 7.72a.75.75 0 011.06 0l3.75 3.75a.75.75 0 010 1.06l-3.75 3.75a.75.75 0 11-1.06-1.06l2.47-2.47H3a.75.75 0 010-1.5h16.19l-2.47-2.47a.75.75 0 010-1.06z" clip-rule="evenodd"></path>
</svg>
</button>
</div>
<svg viewBox="0 0 1024 1024"
class="absolute left-1/2 top-1/2 -z-10 h-[72rem] w-[72rem] -translate-x-1/2 [mask-image:radial-gradient(closest-side,white,transparent)]"
aria-hidden="true">
<circle cx="512" cy="512" r="512" fill="url(#827591b1-ce8c-4110-b064-7cb85a0b1217)" fill-opacity="0.7"></circle>
<defs>
<radialGradient id="827591b1-ce8c-4110-b064-7cb85a0b1217">
<stop stop-color="#15b8a6"></stop>
<stop offset="1" stop-color="#15b8a6"></stop>
</radialGradient>
</defs>
</svg>
</div>
</div>
</div>
</body>
</html>
/* Doesn't require any CSS. */
//Doesn't require any JS.
This Tailwind CSS snippet provides a modern, responsive call-to-action banner to encourage users to join a community. It's designed to be visually appealing, with a prominent headline and a clear button that seamlessly integrates with a full-page hero section.
Key Features
- Integrated Design: The call-to-action section is a core part of the hero design, creating a seamless and logical top-of-page experience for the user.
- Modern Aesthetics: The design is clean and contemporary, utilizing a subtle background gradient and simple, well-structured text to provide a professional look.
- Clear Call-to-Action: The prominent "Join Our Community" heading and a clear "Join Now" button guide users directly to the intended action. The use of subtle profile pictures adds a social proof element, encouraging user trust and engagement.
- Responsive Layout: The entire component is built to be fully responsive, with the layout adapting gracefully from desktop to mobile screens, ensuring an optimal experience on any device.
Implementation
- Include Tailwind CSS: Ensure that Tailwind CSS is installed and properly configured in your project.
- Create the HTML Structure: The HTML is structured to include a hero section container that holds the main content and the call-to-action banner. The banner includes a heading, a paragraph, and a button.
- Apply Tailwind CSS Classes: Utilize Tailwind CSS utility classes extensively for styling. This includes classes for gradients (
bg-gradient-to-r), flexbox/grid layout (flex,grid), spacing (p-,m-), typography (text-,font-), and responsive design (md:,lg:). - Customize as Needed: Easily modify the colors, fonts, links, and content by editing the HTML and changing the associated Tailwind utility classes to match your brand's style.
Bootstrap 5 Responsive Service Pricing Table Block
Owl Carousel Responsive CSS-Only Team Section Showcase
Tailwind CSS Subscribe Container with Integrated Footer
Responsive Bootstrap 5 Detailed Features Section
Responsive CSS-Only Glassmorphism Login Form with background image
Responsive Tailwind CSS Hero Section and Adaptive Navbar
Responsive Bootstrap 5 Compact FAQ Accordion Display
Responsive CSS Only Services Section with Hover Effects
Responsive Tailwind CSS Team Members Display Showcase
Responsive Bootstrap 5 Clear Process Flow Component
Responsive Interactive Login & Register Form with CSS & JS Transitions
Building Blocks for Your Web Pages
Explore a collection of pre-written HTML,CSS and Javascript
snippets to jumpstart your web development projects.