组件 通知 通知组件

通知组件

具有明亮色彩方案的社交媒体界面的响应式通知组件,支持深色模式。

预览

HTML 代码

<div class="p-4 bg-gray-900 dark:bg-black text-white rounded-lg shadow-md">
  <h2 class="text-xl font-bold mb-4 text-teal-400">Notifications</h2>
  <div class="space-y-4">
    <div class="flex items-center border-b border-gray-700 pb-4">
      <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User Avatar" class="w-10 h-10 rounded-full mr-4">
      <p class="flex-grow"><span class="font-semibold text-purple-400">John Doe</span> liked your post.</p>
      <span class="text-gray-500 text-sm">2 min ago</span>
    </div>
    <div class="flex items-center border-b border-gray-700 pb-4">
      <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="User Avatar" class="w-10 h-10 rounded-full mr-4">
      <p class="flex-grow"><span class="font-semibold text-pink-400">Jane Smith</span> commented on your photo.</p>
      <span class="text-gray-500 text-sm">1 hour ago</span>
    </div>
    <div class="flex items-center">
      <img src="https://randomuser.me/api/portraits/men/78.jpg" alt="User Avatar" class="w-10 h-10 rounded-full mr-4">
      <p class="flex-grow"><span class="font-semibold text-yellow-400">Peter Jones</span> started following you.</p>
      <span class="text-gray-500 text-sm">3 hours ago</span>
    </div>
  </div>
</div>

相关组件

通知组件

一个仿生风格的通知组件,具有响应式设计和黑暗主题支持。该组件为通知提供了逼真的浮雕外观,包括细腻的阴影和光泽效果。它完全响应,并为黑暗模式提供独特样式,确保在所有光照条件下的可读性和美观。使用占位符图像作为头像。

打开

通知组件

一个通知组件,具有 glassmorphism 设计和单色配色方案,专为商业/企业 Web 应用程序量身定制。该组件包含各种交互元素并支持深色模式。

打开

通知组件

专为仪表板设计的 Retro/Vintage 风格的通知组件,具有多个交互式元素和深色主题支持。

打开