Like/Reaction Buttons コンポーネント
Tailwind CSSを使用してHTMLでコーディングされた「いいね/リアクションボタン」コンポーネント、ブルータリズムデザイン、アースカラーの配色、適度な複雑さ、Eコマースに適しています。レスポンシブデザインとダークモードのサポートが含まれています。
HTMLコード
<div class="flex flex-col items-center p-4 bg-stone-200 dark:bg-stone-800 font-mono">
<!-- Like Button -->
<button class="flex items-center justify-center px-6 py-3 mb-4 text-lg font-bold text-stone-900 uppercase bg-stone-400 border-t-4 border-l-4 border-b-0 border-r-0 border-stone-900 dark:text-stone-100 dark:bg-stone-700 dark:border-stone-100">
<svg class="w-6 h-6 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 10h4v6m0 0l-4 4m4-4L8 4m7 10l-2 2m0 0l-2-2m2 2l2 2"></path></svg>
Like (120)
</button>
<!-- Reactions -->
<div class="flex space-x-4">
<button class="p-3 text-xl bg-stone-500 border-t-2 border-l-2 border-b-0 border-r-0 border-stone-900 dark:bg-stone-600 dark:border-stone-100">👍 50</button>
<button class="p-3 text-xl bg-stone-500 border-t-2 border-l-2 border-b-0 border-r-0 border-stone-900 dark:bg-stone-600 dark:border-stone-100">😂 30</button>
<button class="p-3 text-xl bg-stone-500 border-t-2 border-l-2 border-b-0 border-r-0 border-stone-900 dark:bg-stone-600 dark:border-stone-100">😢 10</button>
<button class="p-3 text-xl bg-stone-500 border-t-2 border-l-2 border-b-0 border-r-0 border-stone-900 dark:bg-stone-600 dark:border-stone-100">😍 25</button>
</div>
</div>
関連コンポーネント
ニューモーフィズムライクリアクションボタン
Responsive Like/Reaction Buttons Componentは、ダークテーマのサポートとNeumorphismデザインを備えたブログ/コンテンツ用です。
Like/Reaction Buttons コンポーネント
Glassmorphism デザイン スタイルの Like/Reaction Buttons コンポーネントで、すりガラス効果、レスポンシブ デザイン、Tailwind CSS を使用したダーク テーマのサポートが特徴です。