Swiss_International_Typography_Content_Display_Component
A clean, minimalist content display component for dashboards, emphasizing typography and grid systems with cool neutral colors and full responsiveness.
HTML Code
<div class="font-sans antialiased text-gray-800 bg-gray-100 dark:bg-gray-900 dark:text-gray-200 p-4 sm:p-6 lg:p-8">
<!-- Component Header -->
<div class="mb-6 lg:mb-8">
<h1 class="text-2xl sm:text-3xl lg:text-4xl font-light tracking-tight text-gray-900 dark:text-gray-100 mb-2">Dashboard Overview</h1>
<p class="text-gray-600 dark:text-gray-400 text-lg">A concise summary of key metrics and recent activities.</p>
</div>
<!-- Grid Layout for Content Cards -->
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 sm:gap-6 lg:gap-8">
<!-- Metric Card 1: Sales -->
<div class="bg-white dark:bg-gray-800 rounded-lg shadow-sm hover:shadow-md transition-shadow duration-300 overflow-hidden border border-gray-200 dark:border-gray-700">
<div class="p-5 sm:p-6">
<div class="flex items-center justify-between mb-4">
<h2 class="text-base sm:text-lg font-medium text-gray-700 dark:text-gray-300">Total Sales</h2>
<svg class="w-6 h-6 text-blue-500" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1L21 6m-4 14l2-2m-3-19v5m-1.5-6h.025A20.307 20.307 0 0110 21.886V1.114c3.784-.526 7.427.674 10.59 3.447L21 6m-4 14h.025M21 6l-2 2m-7 1.5.5.5V12M12 8h.01V6M12 11.5l1.5-1.5m-3 0L9 10m-2 2V6"></path></svg>
</div>
<p class="text-2xl sm:text-3xl font-bold text-gray-900 dark:text-gray-100 mb-2">$12,345</p>
<p class="text-sm text-gray-500 dark:text-gray-400">+5.2% from last month</p>
</div>
</div>
<!-- Metric Card 2: New Users -->
<div class="bg-white dark:bg-gray-800 rounded-lg shadow-sm hover:shadow-md transition-shadow duration-300 overflow-hidden border border-gray-200 dark:border-gray-700">
<div class="p-5 sm:p-6">
<div class="flex items-center justify-between mb-4">
<h2 class="text-base sm:text-lg font-medium text-gray-700 dark:text-gray-300">New Users</h2>
<svg class="w-6 h-6 text-green-500" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H2v-2a3 3 0 015.356-1.857m7.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm-7.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0z"></path></svg>
</div>
<p class="text-2xl sm:text-3xl font-bold text-gray-900 dark:text-gray-100 mb-2">897</p>
<p class="text-sm text-gray-500 dark:text-gray-400">+12.8% from last week</p>
</div>
</div>
<!-- Metric Card 3: Orders Pending -->
<div class="bg-white dark:bg-gray-800 rounded-lg shadow-sm hover:shadow-md transition-shadow duration-300 overflow-hidden border border-gray-200 dark:border-gray-700">
<div class="p-5 sm:p-6">
<div class="flex items-center justify-between mb-4">
<h2 class="text-base sm:text-lg font-medium text-gray-700 dark:text-gray-300">Orders Pending</h2>
<svg class="w-6 h-6 text-yellow-500" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"></path></svg>
</div>
<p class="text-2xl sm:text-3xl font-bold text-gray-900 dark:text-gray-100 mb-2">42</p>
<p class="text-sm text-gray-500 dark:text-gray-400">Requires immediate action</p>
</div>
</div>
<!-- Metric Card 4: Retention Rate -->
<div class="bg-white dark:bg-gray-800 rounded-lg shadow-sm hover:shadow-md transition-shadow duration-300 overflow-hidden border border-gray-200 dark:border-gray-700">
<div class="p-5 sm:p-6">
<div class="flex items-center justify-between mb-4">
<h2 class="text-base sm:text-lg font-medium text-gray-700 dark:text-gray-300">Retention Rate</h2>
<svg class="w-6 h-6 text-purple-500" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 12l3-3 3 3 4-4M18 10h4M3 4h18M3 10h18M3 16h18M3 20h18"></path></svg>
</div>
<p class="text-2xl sm:text-3xl font-bold text-gray-900 dark:text-gray-100 mb-2">78.5%</p>
<p class="text-sm text-gray-500 dark:text-gray-400">Target: 80%</p>
</div>
</div>
<!-- Recent Activity Feed -->
<div class="lg:col-span-2 xl:col-span-2 bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700 overflow-hidden">
<div class="p-5 sm:p-6">
<h2 class="text-lg font-medium text-gray-700 dark:text-gray-300 mb-4">Recent Activity</h2>
<ul class="divide-y divide-gray-200 dark:divide-gray-700">
<li class="py-3 flex items-center">
<img class="h-8 w-8 rounded-full mr-3 object-cover" src="https://randomuser.me/api/portraits/men/32.jpg" alt="User Avatar">
<div>
<p class="text-sm font-medium text-gray-800 dark:text-gray-200">John Doe <span class="font-normal text-gray-500 dark:text-gray-400">updated profile.</span></p>
<p class="text-xs text-gray-500 dark:text-gray-400">15 minutes ago</p>
</div>
</li>
<li class="py-3 flex items-center">
<img class="h-8 w-8 rounded-full mr-3 object-cover" src="https://randomuser.me/api/portraits/women/44.jpg" alt="User Avatar">
<div>
<p class="text-sm font-medium text-gray-800 dark:text-gray-200">Jane Smith <span class="font-normal text-gray-500 dark:text-gray-400">completed an order #1023.</span></p>
<p class="text-xs text-gray-500 dark:text-gray-400">1 hour ago</p>
</div>
</li>
<li class="py-3 flex items-center">
<img class="h-8 w-8 rounded-full mr-3 object-cover" src="https://randomuser.me/api/portraits/men/76.jpg" alt="User Avatar">
<div>
<p class="text-sm font-medium text-gray-800 dark:text-gray-200">Robert Johnson <span class="font-normal text-gray-500 dark:text-gray-400">added a new product.</span></p>
<p class="text-xs text-gray-500 dark:text-gray-400">3 hours ago</p>
</div>
</li>
<li class="py-3 flex items-center">
<img class="h-8 w-8 rounded-full mr-3 object-cover" src="https://randomuser.me/api/portraits/women/21.jpg" alt="User Avatar">
<div>
<p class="text-sm font-medium text-gray-800 dark:text-gray-200">Emily White <span class="font-normal text-gray-500 dark:text-gray-400">replied to a support ticket.</span></p>
<p class="text-xs text-gray-500 dark:text-gray-400">Yesterday</p>
</div>
</li>
</ul>
</div>
</div>
<!-- Quick Stats Breakdown -->
<div class="lg:col-span-1 xl:col-span-2 bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700 overflow-hidden">
<div class="p-5 sm:p-6">
<h2 class="text-lg font-medium text-gray-700 dark:text-gray-300 mb-4">Quick Stats</h2>
<div class="space-y-4">
<div class="flex items-center justify-between">
<span class="text-sm font-medium text-gray-600 dark:text-gray-300">Monthly Revenue</span>
<span class="text-base font-semibold text-gray-900 dark:text-gray-100">$5,800</span>
</div>
<div class="flex items-center justify-between">
<span class="text-sm font-medium text-gray-600 dark:text-gray-300">Active Subscriptions</span>
<span class="text-base font-semibold text-gray-900 dark:text-gray-100">2,100</span>
</div>
<div class="flex items-center justify-between">
<span class="text-sm font-medium text-gray-600 dark:text-gray-300">Customer Satisfaction</span>
<span class="text-base font-semibold text-gray-900 dark:text-gray-100">92%</span>
</div>
<div class="flex items-center justify-between">
<span class="text-sm font-medium text-gray-600 dark:text-gray-300">Website Visitors (Today)</span>
<span class="text-base font-semibold text-gray-900 dark:text-gray-100">1,450</span>
</div>
</div>
</div>
</div>
<!-- Generic Information Card with Image -->
<div class="lg:col-span-1 xl:col-span-1 bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700 overflow-hidden">
<img class="w-full h-32 object-cover object-center" src="https://picsum.photos/400/200?random=1" alt="Placeholder Image">
<div class="p-5 sm:p-6">
<h2 class="text-lg font-medium text-gray-700 dark:text-gray-300 mb-2">Project Progress</h2>
<p class="text-gray-600 dark:text-gray-400 text-sm mb-4">Monitor the status of your ongoing projects and milestones.</p>
<div class="w-full bg-gray-200 dark:bg-gray-700 rounded-full h-2.5">
<div class="bg-blue-500 h-2.5 rounded-full" style="width: 70%"></div>
</div>
<p class="text-right text-xs mt-2 text-gray-500 dark:text-gray-400">70% Completed</p>
</div>
</div>
<!-- Generic Information Card without Image -->
<div class="lg:col-span-1 xl:col-span-1 bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700 overflow-hidden">
<div class="p-5 sm:p-6">
<h2 class="text-lg font-medium text-gray-700 dark:text-gray-300 mb-2">System Health</h2>
<p class="text-gray-600 dark:text-gray-400 text-sm mb-4">All systems are operational. No critical issues detected.</p>
<div class="bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300 text-xs font-semibold px-2.5 py-0.5 rounded-full inline-flex items-center">
<span class="h-2 w-2 rounded-full bg-green-500 mr-1"></span> Operational
</div>
<p class="text-xs mt-3 text-gray-500 dark:text-gray-400">Last checked: 2 minutes ago</p>
</div>
</div>
</div>
</div>
Related Components
Content Display Components Component
A responsive content display component with dark mode support for business/corporate websites.
Content Display Component
A simple responsive content display component for social media interfaces, designed with Material Design principles and a triadic color scheme.
Art Deco Content Display Component
A complex, responsive Art Deco-inspired content display component for business/corporate websites, featuring geometric patterns, rich jewel tones, and dark mode support. Includes multiple sections for features, testimonials, and calls to action.