Comments Section 구성 요소
단색 색 구성표를 사용하여 Material Design 스타일로 디자인된 간단한 댓글 섹션 구성 요소로, 소셜 미디어 인터페이스 및 어두운 테마를 지원하는 반응형 디자인에 최적화되어 있습니다.
HTML 코드
<div class="max-w-2xl mx-auto p-4 dark:bg-gray-800 bg-white rounded-lg shadow-md">
<h2 class="text-xl font-semibold text-gray-800 dark:text-gray-200">Comments</h2>
<div class="mt-4 space-y-4">
<!-- Comment 1 -->
<div class="flex items-start space-x-4">
<img src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" class="w-10 h-10 rounded-full">
<div class="flex-1">
<p class="text-gray-800 dark:text-gray-200 font-medium">John Doe</p>
<p class="text-gray-600 dark:text-gray-400">This is a comment. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
<span class="text-gray-500 dark:text-gray-500 text-sm">2 hours ago</span>
</div>
</div>
<!-- Comment 2 -->
<div class="flex items-start space-x-4">
<img src="https://randomuser.me/api/portraits/women/1.jpg" alt="User Avatar" class="w-10 h-10 rounded-full">
<div class="flex-1">
<p class="text-gray-800 dark:text-gray-200 font-medium">Jane Smith</p>
<p class="text-gray-600 dark:text-gray-400">Another comment! Vivamus sit amet nulla nec urna maximus suscipit.</p>
<span class="text-gray-500 dark:text-gray-500 text-sm">3 hours ago</span>
</div>
</div>
<!-- Comment 3 -->
<div class="flex items-start space-x-4">
<img src="https://randomuser.me/api/portraits/men/2.jpg" alt="User Avatar" class="w-10 h-10 rounded-full">
<div class="flex-1">
<p class="text-gray-800 dark:text-gray-200 font-medium">Alice Brown</p>
<p class="text-gray-600 dark:text-gray-400">This is another comment. Donec eget tristique eros, ac auctor orci.</p>
<span class="text-gray-500 dark:text-gray-500 text-sm">5 hours ago</span>
</div>
</div>
</div>
<div class="mt-6">
<textarea placeholder="Add a comment..." class="w-full dark:bg-gray-700 bg-gray-100 border border-gray-300 dark:border-gray-600 rounded-md p-2" rows="3"></textarea>
<button class="mt-2 w-full bg-blue-500 hover:bg-blue-600 dark:bg-blue-700 dark:hover:bg-blue-600 text-white font-semibold py-2 rounded-md">Post Comment</button>
</div>
</div>
관련 구성 요소
Neumorphism Style이 있는 Comments Section 구성 요소
Comments Section Neumorphism 디자인, 반응형 효과 및 어두운 테마 지원이 있는 구성 요소입니다. JavaScript 코드는 포함되어 있지 않습니다.
Comments Section 구성 요소
스큐어모피즘 디자인, 트라이어딕 색 구성표, 복잡한 상호 작용, 소셜 미디어 목적, 반응형 및 어두운 테마 지원이 포함된 댓글 섹션용 구성 요소입니다.
Brutalism_Rainbow_Medical_Comments_Section
헬스케어/의료 애플리케이션을 위한 복잡하고 브루탈리즘에서 영감을 받은 댓글 섹션 구성 요소로, 생생한 무지개 그라데이션 색 구성표와 다크 모드 지원으로 완전한 응답성을 제공합니다.