ウィッシュリストコンポーネント
レスポンシブエフェクトとダークテーマのサポートを備えたミニマリスト/フラットデザインのウィッシュリストコンポーネント。
HTMLコード
<div class="bg-white dark:bg-gray-800 shadow rounded-lg p-6">
<h2 class="text-xl font-bold mb-4 text-gray-800 dark:text-white">My Wishlist</h2>
<div class="space-y-4">
<div class="flex items-center">
<img class="w-16 h-16 object-cover rounded mr-4" src="https://picsum.photos/id/1018/100/100" alt="Product image">
<div class="flex-grow">
<h3 class="text-lg font-semibold text-gray-700 dark:text-gray-200">Product Name 1</h3>
<p class="text-gray-600 dark:text-gray-400">$19.99</p>
</div>
<button class="text-red-500 hover:text-red-700 dark:text-red-400 dark:hover:text-red-600">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
</div>
<div class="flex items-center">
<img class="w-16 h-16 object-cover rounded mr-4" src="https://picsum.photos/id/1015/100/100" alt="Product image">
<div class="flex-grow">
<h3 class="text-lg font-semibold text-gray-700 dark:text-gray-200">Product Name 2</h3>
<p class="text-gray-600 dark:text-gray-400">$29.99</p>
</div>
<button class="text-red-500 hover:text-red-700 dark:text-red-400 dark:hover:text-red-600">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
</div>
</div>
</div>
関連コンポーネント
ウィッシュリストコンポーネント
ソーシャルメディア用のニューモーフィズムスタイルのウィッシュリストコンポーネントで、補色スキームが施されています。これには、ダークモードをサポートするTailwind CSSを使用したレスポンシブデザインが含まれています。HTML クラスと Tailwind クラスのみが使用され、JavaScript は使用されません。画像はpicsum.photosから、アバターは randomuser.me から提供されています。
ウィッシュリストコンポーネント
マイクロインタラクションを備えたビジネス/企業のWebサイト向けのシンプルで応答性の高いウィッシュリストコンポーネント。類似の配色 (青、緑、青緑)、ダーク テーマのサポート、微妙なホバー アニメーションが特徴です。このコンポーネントには、ウィッシュリストアイテムが製品画像、名前、価格、アクションボタンとともに表示されます。
ウィッシュリストコンポーネント
シンプルなブルータリズムスタイルのポートフォリオ用ウィッシュリストコンポーネントで、ハイコントラストの類似した配色が特徴です。Tailwind CSSを使用したダークモードサポートによるレスポンシブ。