Notifications 구성 요소
대시보드용으로 설계된 레트로/빈티지 스타일의 알림 구성 요소로, 다양한 대화형 요소와 어두운 테마 지원을 제공합니다.
HTML 코드
<div class="bg-purple-800 dark:bg-gray-900 p-5 rounded-lg shadow-lg max-w-lg mx-auto">
<h2 class="text-white text-2xl font-bold mb-3">Notifications</h2>
<div class="space-y-4">
<div class="flex items-start bg-purple-700 dark:bg-gray-800 p-4 rounded-lg">
<img src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" class="h-10 w-10 rounded-full mr-3">
<div class="flex-1">
<p class="text-white font-semibold">John Doe</p>
<p class="text-gray-300">You have a new message. Check it out!</p>
<span class="text-sm text-gray-500">2 minutes ago</span>
</div>
</div>
<div class="flex items-start bg-purple-700 dark:bg-gray-800 p-4 rounded-lg">
<img src="https://randomuser.me/api/portraits/women/2.jpg" alt="User Avatar" class="h-10 w-10 rounded-full mr-3">
<div class="flex-1">
<p class="text-white font-semibold">Jane Smith</p>
<p class="text-gray-300">Your report has been approved.</p>
<span class="text-sm text-gray-500">15 minutes ago</span>
</div>
</div>
<div class="flex items-start bg-purple-700 dark:bg-gray-800 p-4 rounded-lg">
<img src="https://randomuser.me/api/portraits/men/3.jpg" alt="User Avatar" class="h-10 w-10 rounded-full mr-3">
<div class="flex-1">
<p class="text-white font-semibold">Chris Johnson</p>
<p class="text-gray-300">New comment on your post.</p>
<span class="text-sm text-gray-500">30 minutes ago</span>
</div>
</div>
<div class="flex items-start bg-purple-700 dark:bg-gray-800 p-4 rounded-lg">
<img src="https://randomuser.me/api/portraits/women/4.jpg" alt="User Avatar" class="h-10 w-10 rounded-full mr-3">
<div class="flex-1">
<p class="text-white font-semibold">Anna Taylor</p>
<p class="text-gray-300">Don't forget to review your tasks.</p>
<span class="text-sm text-gray-500">1 hour ago</span>
</div>
</div>
</div>
<a href="#" class="block text-center text-white bg-blue-600 hover:bg-blue-700 rounded-lg mt-5 p-2 transition duration-300">View All Notifications</a>
</div>
관련 구성 요소
Notifications 구성 요소
머티리얼 디자인 스타일, 보색 구성표 및 다크 모드 지원을 제공하는 반응형 알림 구성 요소로, 대시보드 목적으로 Tailwind CSS로 구축되었습니다.
Notifications 구성 요소
머티리얼 디자인(Material Design) 원칙과 전자상거래 애플리케이션을 위한 단색 색 구성표로 설계된 Notifications Component로, 반응형 디자인과 어두운 테마 지원을 특징으로 합니다.