HTML 代码
<div class="bg-gray-800 dark:bg-gray-900 p-6 rounded-lg shadow-md max-w-md mx-auto">
<h2 class="text-2xl font-bold text-white mb-4">Dashboard</h2>
<div class="grid grid-cols-1 gap-4">
<div class="bg-teal-400 dark:bg-teal-600 hover:scale-105 transition-transform duration-200 p-4 rounded-lg flex items-center">
<img src="https://picsum.photos/50/50" alt="Profile" class="rounded-full mr-3">
<div class="flex-1">
<h3 class="text-lg font-semibold text-gray-800 dark:text-gray-200">User Engagement</h3>
<p class="text-sm text-gray-600 dark:text-gray-400">Check how users interact with your posts.</p>
</div>
</div>
<div class="bg-orange-400 dark:bg-orange-600 hover:scale-105 transition-transform duration-200 p-4 rounded-lg flex items-center">
<img src="https://randomuser.me/api/portraits/men/1.jpg" alt="User 1" class="rounded-full mr-3">
<div class="flex-1">
<h3 class="text-lg font-semibold text-gray-800 dark:text-gray-200">New Followers</h3>
<p class="text-sm text-gray-600 dark:text-gray-400">See your growth in followers over time.</p>
</div>
</div>
<div class="bg-purple-400 dark:bg-purple-600 hover:scale-105 transition-transform duration-200 p-4 rounded-lg flex items-center">
<img src="https://randomuser.me/api/portraits/women/1.jpg" alt="User 2" class="rounded-full mr-3">
<div class="flex-1">
<h3 class="text-lg font-semibold text-gray-800 dark:text-gray-200">Post Performance</h3>
<p class="text-sm text-gray-600 dark:text-gray-400">Evaluate the performance of your latest posts.</p>
</div>
</div>
</div>
</div>
相关组件
Dashboards 组件
专为商业或公司网站设计的复古风格仪表板组件,将 80 年代/90 年代的美学与现代布局和配色方案相结合。它是响应式的,并支持深色主题,具有交互式元素,例如统计信息、用户配置文件等卡片。
社交媒体仪表板
一个响应式社交媒体仪表板组件,具有微交互、互补配色方案、中等复杂性和使用 Tailwind CSS 的深色主题支持。包括带有来自 randomuser.me 的头像的用户配置文件和带有来自 picsum.photos 的图像的源。