Support Articles

Code Snippet Library - Homepage Hero Buttons

Preview

HTML

<div class="zap-hero py-16 bg-cover" style="background-image: url('')">
<div class="container mx-auto">
<div class="zap-header text-center mb-16">
<h2 class="mb-0 text-3xl md:text-4xl text-brand-primary">Title</h2>
</div>
<div class="zap-actions relative">
<div class="grid gap-5 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3">
<div class="zap-actions-btn bg-white border-t-4 border-brand-primary rounded-lg">
<!-- Add button URL below -->
<a href="" class="flex flex-col items-center group relative p-6 w-full
text-center text-gray-700 transition ease-in-out hover:text-gray-800
hover:no-underline">
<p class="text-2xl mt-2 mb-6 font-bold">Heading →</p>
<p class="mb-0 text-md">Description</p>
</a>
</div>
<div class="zap-actions-btn bg-white border-t-4 border-brand-primary rounded-lg">
<!-- Add button URL below -->
<a href="" class="flex flex-col items-center group relative p-6 w-full
text-center text-gray-700 transition ease-in-out hover:text-gray-800
hover:no-underline">
<p class="text-2xl mt-2 mb-6 font-bold">Heading →</p>
<p class="mb-0 text-md">Description</p>
</a>
</div>
<div class="zap-actions-btn bg-white border-t-4 border-brand-primary rounded-lg">
<!-- Add button URL below -->
<a href="" class="flex flex-col items-center group relative p-6 w-full
text-center text-gray-700 transition ease-in-out hover:text-gray-800
hover:no-underline">
<p class="text-2xl mt-2 mb-6 font-bold">Heading →</p>
<p class="mb-0 text-md">Description</p>
</a>
</div>
</div>
</div>
</div>
</div>

CSS

.zap-actions-btn:hover { 
-webkit-transform: scale(1.02);
}