Skip to content

Instantly share code, notes, and snippets.

@ManiruzzamanAkash
Created April 3, 2022 04:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ManiruzzamanAkash/1213450407b454fab4e142312f12d369 to your computer and use it in GitHub Desktop.
Save ManiruzzamanAkash/1213450407b454fab4e142312f12d369 to your computer and use it in GitHub Desktop.
Product Card Component Design using Tailwind CSS
<div class="p-5 bg-gray-100 text-center">
<!-- Card Design -->
<div class="bg-white w-64 m-5 py-5 transition shadow hover:shadow-lg border">
<img src="https://api-ecom.allgeneration.com/public/images/products/product-short-resolution-163-1632306571.png" class="w-full transition scale-[95%] hover:scale-100 delay-300" />
<h2 class="pt-4">
Samsung Gallaxy J10
</h2>
<p>
<span class="text-yellow-500">100TK</span>
</p>
<p class="mt-3">
<button class="bg-blue-600 text-white px-4 py-2 rounded-md transition-all hover:shadow-md scale-[95%] hover:scale-100">Add to Cart</button>
</p>
</div>
<!-- End Card Design -->
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment