カートに入れるボタンコンポーネント
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>
関連コンポーネント
カートに入れるボタン
スキューモーフィック要素、鮮やかな色、ダークテーマのサポートで設計されたレスポンシブな [カートに追加] ボタン コンポーネントで、ブログやコンテンツの消費目的に適しています。
カートに入れるボタンコンポーネント
3 つの要素、マイクロインタラクション フォーカス、e コマース アプリケーション向けのダーク モードのサポートを備えたレスポンシブな [カートに追加] ボタン コンポーネント。
カートに入れるボタンコンポーネント
ブルータリズムにインスパイアされた Tailwind CSS の [カートに追加] ボタン コンポーネントで、ハイ コントラスト、珍しいレイアウト、レスポンシブ エフェクト、ダーク テーマのサポートが特徴です。