製品レビューコンポーネント6
マテリアルデザインの原則でスタイル化されたレスポンシブ製品レビューコンポーネントで、明るいテーマと暗いテーマをサポートします。
HTMLコード
<div class="max-w-md mx-auto bg-white shadow-md rounded-lg overflow-hidden dark:bg-gray-800">
<div class="p-4">
<h2 class="text-lg font-semibold text-gray-800 dark:text-white">Product Reviews</h2>
<div class="divide-y divide-gray-200 dark:divide-gray-700">
<div class="py-4 flex">
<img class="w-12 h-12 rounded-full" src="https://randomuser.me/api/portraits/men/1.jpg" alt="Avatar">
<div class="ml-4 flex-1">
<div class="flex justify-between items-center">
<h3 class="text-sm font-medium text-gray-800 dark:text-white">John Doe</h3>
<span class="text-sm text-gray-500 dark:text-gray-400">5/5</span>
</div>
<p class="text-gray-600 dark:text-gray-300 mt-1">This product is amazing! Highly recommend it to everyone.</p>
</div>
</div>
<div class="py-4 flex">
<img class="w-12 h-12 rounded-full" src="https://randomuser.me/api/portraits/women/2.jpg" alt="Avatar">
<div class="ml-4 flex-1">
<div class="flex justify-between items-center">
<h3 class="text-sm font-medium text-gray-800 dark:text-white">Jane Smith</h3>
<span class="text-sm text-gray-500 dark:text-gray-400">4/5</span>
</div>
<p class="text-gray-600 dark:text-gray-300 mt-1">Good quality, but the shipping took too long.</p>
</div>
</div>
<div class="py-4 flex">
<img class="w-12 h-12 rounded-full" src="https://randomuser.me/api/portraits/men/3.jpg" alt="Avatar">
<div class="ml-4 flex-1">
<div class="flex justify-between items-center">
<h3 class="text-sm font-medium text-gray-800 dark:text-white">Mike Johnson</h3>
<span class="text-sm text-gray-500 dark:text-gray-400">3/5</span>
</div>
<p class="text-gray-600 dark:text-gray-300 mt-1">It works fine, but I've seen better products in this range.</p>
</div>
</div>
</div>
</div>
<div class="p-4 border-t border-gray-200 dark:border-gray-700">
<h3 class="text-md font-semibold text-gray-800 dark:text-white">Add a Review</h3>
<textarea class="w-full mt-2 p-2 border border-gray-300 rounded-md dark:border-gray-700 dark:bg-gray-800 dark:text-white" rows="3" placeholder="Write your review..."></textarea>
<button class="mt-2 bg-blue-500 text-white rounded-md py-2 px-4 hover:bg-blue-600 dark:bg-blue-600 dark:hover:bg-blue-700">Submit</button>
</div>
</div>
関連コンポーネント
Product Reviews コンポーネント
Tailwind CSSで構築されたレスポンシブ製品レビューコンポーネントで、ホバー時のマイクロインタラクション、ダークテーマのサポート、プレースホルダー画像が特徴です。JavaScriptは使用しておりません。
Skeuomorphic 製品レビューコンポーネント - オーシャンブルー
ビジネス/企業の目的でオーシャン/ブルーの色調を利用した、スキューモーフィックスタイルで設計された適度な複雑さの製品レビューコンポーネント。レスポンシブデザイン、ダークモードのサポート、インタラクティブ要素を備えています。
Retro_Vintage_Product_Reviews_Component
レトロ/ビンテージの美学を備えたシンプルで応答性の高い製品レビューコンポーネントで、製造/工業企業に適したプロフェッショナルなブルートーンを使用しています。ダークモードのサポートが含まれています。