Comments Section 구성 요소
생생한 색상, 적당한 복잡성, 반응형 디자인 및 어두운 테마 지원을 갖춘 전자 상거래를 위한 미니멀리스트/플랫 디자인 주석 섹션 구성 요소입니다.
HTML 코드
<div class="bg-white dark:bg-gray-800 p-6 rounded-lg shadow-md">
<h2 class="text-2xl font-semibold text-gray-800 dark:text-white mb-4">Customer Reviews</h2>
<!-- Comment 1 -->
<div class="mb-6 flex">
<img class="w-12 h-12 rounded-full mr-4" src="https://randomuser.me/api/portraits/women/44.jpg" alt="Avatar">
<div>
<div class="flex items-center mb-2">
<p class="font-semibold text-blue-600 dark:text-blue-400">Sarah J.</p>
<p class="text-gray-500 dark:text-gray-400 text-sm ml-4">2 days ago</p>
</div>
<div class="flex items-center mb-2">
<span class="text-yellow-400">★★★★★</span>
</div>
<p class="text-gray-700 dark:text-gray-300 leading-relaxed">"Absolutely love this product! The quality is superb and it arrived so quickly. Highly recommend!"</p>
</div>
</div>
<!-- Comment 2 -->
<div class="mb-6 flex">
<img class="w-12 h-12 rounded-full mr-4" src="https://randomuser.me/api/portraits/men/32.jpg" alt="Avatar">
<div>
<div class="flex items-center mb-2">
<p class="font-semibold text-blue-600 dark:text-blue-400">Mark T.</p>
<p class="text-gray-500 dark:text-gray-400 text-sm ml-4">5 days ago</p>
</div>
<div class="flex items-center mb-2">
<span class="text-yellow-400">★★★★☆</span>
</div>
<p class="text-gray-700 dark:text-gray-300 leading-relaxed">"Good product overall. It does what it says. Shipping was a bit slow, but worth the wait."</p>
</div>
</div>
<!-- Comment Form (moderate complexity interactive feature) -->
<div class="mt-8 pt-6 border-t border-gray-200 dark:border-gray-700">
<h3 class="text-xl font-semibold text-gray-800 dark:text-white mb-4">Leave a Review</h3>
<form>
<div class="mb-4">
<label for="rating" class="block text-gray-700 dark:text-gray-300 text-sm font-bold mb-2">Your Rating</label>
<select id="rating" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline bg-gray-100 dark:bg-gray-700 dark:text-white dark:border-gray-600">
<option>★★★★★ - Excellent</option>
<option>★★★★☆ - Very Good</option>
<option>★★★☆☆ - Good</option>
<option>★★☆☆☆ - Fair</option>
<option>★☆☆☆☆ - Poor</option>
</select>
</div>
<div class="mb-4">
<label for="comment" class="block text-gray-700 dark:text-gray-300 text-sm font-bold mb-2">Your Comment</label>
<textarea id="comment" rows="4" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline bg-gray-100 dark:bg-gray-700 dark:text-white dark:border-gray-600" placeholder="Share your thoughts..."></textarea>
</div>
<button type="submit" class="bg-purple-600 hover:bg-purple-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline transition duration-300 ease-in-out">
Submit Review
</button>
</form>
</div>
</div>
관련 구성 요소
사이버펑크 가을 코멘트 섹션
대시보드에 대한 간단한 사이버펑크 테마의 댓글 섹션으로, 어두운 배경, 네온 같은 액센트, 풍부한 가을 색상을 특징으로 합니다. 다크 모드 지원으로 완벽하게 반응합니다.
Comments Section 구성 요소
일몰/따뜻한 색 구성표, 마이크로 상호 작용 및 다크 모드 지원을 제공하는 간단하고 반응이 빠른 댓글 섹션 구성 요소로, 농업/농업 웹 사이트에 적합합니다.
Comments Section 구성 요소
스큐어모피즘(skeuomorphism)으로 디자인된 댓글 섹션은 흙색과 어두운 테마 지원을 특징으로 하며 전자 상거래 웹사이트에 맞게 조정되었습니다.