Add to Cart Button Component
A complex Add to Cart button designed with a retro/vintage aesthetic and a complementary color scheme, suitable for a professional company website. This component supports dark mode and is responsive, utilizing Tailwind CSS for styling.
HTML Code
<div class="flex items-center justify-center p-5 bg-gradient-to-r from-pink-500 to-yellow-500 rounded-lg transition duration-300 ease-in-out hover:scale-105 dark:from-pink-800 dark:to-yellow-700"> <img src="https://picsum.photos/40/40" alt="Product Image" class="rounded"> <div class="ml-4"> <h2 class="text-lg font-bold text-gray-900 dark:text-gray-100">Product Title</h2> <p class="text-sm text-gray-700 dark:text-gray-300">This is a brief description of the product.</p> </div> <button class="ml-auto bg-blue-500 text-white font-semibold py-2 px-4 rounded hover:bg-blue-600 dark:bg-blue-700 dark:hover:bg-blue-800">Add to Cart</button> <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" class="ml-4 h-10 w-10 rounded-full border-2 border-blue-500 dark:border-blue-700"> </div>
Related Components
Add to Cart Button
A responsive Add to Cart button component designed with skeuomorphic elements, vibrant colors, and dark theme support, suitable for blog and content consumption purposes.
Add to Cart Button
A Skeuomorphic 'Add to Cart' button component designed with Tailwind CSS, featuring responsive effects and dark theme support.
Add to Cart Button
A 3D design Add to Cart button component with responsive effects and dark theme support using Tailwind CSS.