HTML 코드
<div class="bg-gray-800 text-white p-4 rounded-lg shadow-lg max-w-md mx-auto">
<h2 class="text-xl font-semibold mb-4">Notifications</h2>
<div class="space-y-4">
<div class="flex items-start p-3 bg-gray-700 rounded">
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User Avatar" class="w-10 h-10 rounded-full mr-3">
<div>
<p class="font-bold">John Doe</p>
<p>Just completed a new task.</p>
<span class="text-gray-400 text-sm">10 minutes ago</span>
</div>
</div>
<div class="flex items-start p-3 bg-gray-700 rounded">
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="User Avatar" class="w-10 h-10 rounded-full mr-3">
<div>
<p class="font-bold">Jane Smith</p>
<p>Commented on your post.</p>
<span class="text-gray-400 text-sm">20 minutes ago</span>
</div>
</div>
<div class="flex items-start p-3 bg-gray-700 rounded">
<img src="https://randomuser.me/api/portraits/men/10.jpg" alt="User Avatar" class="w-10 h-10 rounded-full mr-3">
<div>
<p class="font-bold">Michael Brown</p>
<p>Sent you a friend request.</p>
<span class="text-gray-400 text-sm">30 minutes ago</span>
</div>
</div>
<div class="flex items-start p-3 bg-gray-700 rounded">
<img src="https://randomuser.me/api/portraits/men/20.jpg" alt="User Avatar" class="w-10 h-10 rounded-full mr-3">
<div>
<p class="font-bold">Emily Davis</p>
<p>Liked your photo.</p>
<span class="text-gray-400 text-sm">1 hour ago</span>
</div>
</div>
</div>
</div>
관련 구성 요소
Notifications 구성 요소
머티리얼 디자인 스타일, 보색 구성표 및 다크 모드 지원을 제공하는 반응형 알림 구성 요소로, 대시보드 목적으로 Tailwind CSS로 구축되었습니다.
Notifications 구성 요소
머티리얼 디자인(Material Design) 원칙과 전자상거래 애플리케이션을 위한 단색 색 구성표로 설계된 Notifications Component로, 반응형 디자인과 어두운 테마 지원을 특징으로 합니다.