カートに入れるボタンコンポーネント
Tailwind CSSを使用してダークモードで設計されたレスポンシブな「カートに追加」ボタン、ホバー効果、ダークテーマのサポート。
HTMLコード
<div class="flex items-center justify-center min-h-screen bg-gray-900 text-white">
<div class="flex flex-col items-center bg-gray-800 p-6 rounded-lg shadow-lg">
<img src="https://picsum.photos/200/300" alt="Product Image" class="w-full h-auto rounded-lg mb-4" />
<h2 class="text-lg font-semibold mb-2">Product Name</h2>
<p class="text-gray-400 mb-4">Short description of the product goes here.</p>
<div class="flex items-center justify-between w-full">
<span class="text-xl font-bold">$19.99</span>
<button class="bg-green-500 hover:bg-green-600 text-white font-bold py-2 px-4 rounded transition duration-300 ease-in-out">
Add to Cart
</button>
</div>
</div>
</div>
関連コンポーネント
カートに入れるボタンコンポーネント
レトロ/ヴィンテージの美学と補完的な配色でデザインされた複雑なカートに入れるボタンは、プロの会社のWebサイトに適しています。このコンポーネントはダークモードをサポートし、レスポンシブで、スタイリングにTailwind CSSを利用しています。
カートに入れるボタンコンポーネント
鮮やかな色のブルータリストスタイルでデザインされたレスポンシブなAdd to Cart Buttonコンポーネントは、ダークテーマをサポートするソーシャルメディアインターフェイスに適しています。