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>
관련 구성 요소
Neumorphism Style이 있는 Comments Section 구성 요소
Comments Section Neumorphism 디자인, 반응형 효과 및 어두운 테마 지원이 있는 구성 요소입니다. JavaScript 코드는 포함되어 있지 않습니다.
Comments Section 구성 요소
파스텔 색상의 브루탈리즘 스타일로 디자인된 댓글 섹션 구성 요소로, 전자 상거래 웹 사이트에 적합하며 사용자 아바타, 댓글 및 중간 수준의 상호 작용을 특징으로 합니다. 디자인은 다크 모드를 지원합니다.
Comments Section 구성 요소
댓글 섹션 마이크로 인터랙션이 있는 구성 요소, 파스텔 색 구성표, 대시보드의 중간 정도의 복잡성, 어두운 테마 지원으로 반응형, Tailwind CSS 사용. 이미지는 이미지의 경우 picsum.photos에서, 아바타의 경우 randomuser.me 의 이미지를 제공합니다. 자바스크립트가 없습니다.