<div class="mx-auto mt-12 max-w-sm">
<a class="block cursor-pointer bg-white shadow-md transition-all hover:rotate-1 hover:scale-95 focus:rotate-1 focus:scale-95">
<div class="relative">
<img class="aspect-[4/2] h-auto w-full object-cover" src="https://images.pexels.com/photos/5940721/pexels-photo-5940721.jpeg?auto=compress&cs=tinysrgb&w=1200" alt="" />
<span class="absolute bottom-2 right-2 bg-yellow-200 text-sm font-medium px-2 border border-gray-900">Bestseller</span>
</div>
<div class="border border-gray-400">
<div class="p-4">
<h2 class="text-xl font-bold text-gray-900">Introduction to Web Development</h2>
<div class="font-medium text-sm text-gray-700">By Dr. Robert Yu</div>
<div class="mt-2 text-justify text-sm text-gray-700">Learn the basics of creating and maintaining web applications using HTML, CSS, and JavaScript. Cover important topics such as web standards, accessibility, and responsive design.</div>
</div>
<div class="flex justify-between border-t border-gray-400">
<div class="p-4 text-sm font-medium text-gray-900">5th Dec 2022</div>
<div class="p-4 text-sm font-bold text-red-500">$ 20.00</div>
</div>
</div>
</a>
</div>