Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Modern Dashboard UI</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| /* Custom CSS for elements that need more precise styling */ | |
| .gradient-bg { | |
| background: linear-gradient(135deg, #6B73FF 0%, #000DFF 100%); | |
| } | |
| .card-hover:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); | |
| } | |
| .sidebar { | |
| transition: all 0.3s ease; | |
| } | |
| .chart-container { | |
| height: 250px; | |
| } | |
| @media (max-width: 768px) { | |
| .sidebar { | |
| transform: translateX(-100%); | |
| position: fixed; | |
| z-index: 50; | |
| height: 100vh; | |
| } | |
| .sidebar-open { | |
| transform: translateX(0); | |
| } | |
| .overlay { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background-color: rgba(0, 0, 0, 0.5); | |
| z-index: 40; | |
| display: none; | |
| } | |
| .overlay-active { | |
| display: block; | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50 font-sans"> | |
| <div class="flex h-screen overflow-hidden"> | |
| <!-- Sidebar --> | |
| <div class="sidebar bg-white w-64 border-r border-gray-200 flex-shrink-0"> | |
| <div class="p-4 flex items-center"> | |
| <div class="gradient-bg w-10 h-10 rounded-lg flex items-center justify-center text-white"> | |
| <i class="fas fa-rocket text-xl"></i> | |
| </div> | |
| <h1 class="text-xl font-bold ml-3">NexusDash</h1> | |
| </div> | |
| <nav class="mt-6 px-4"> | |
| <div class="mb-8"> | |
| <h3 class="text-xs uppercase font-semibold text-gray-500 tracking-wider mb-4">Main</h3> | |
| <a href="#" class="flex items-center py-2 px-3 bg-blue-50 text-blue-600 rounded-lg mb-2"> | |
| <i class="fas fa-home mr-3"></i> | |
| <span>Dashboard</span> | |
| </a> | |
| <a href="#" class="flex items-center py-2 px-3 text-gray-600 hover:bg-gray-100 rounded-lg mb-2"> | |
| <i class="fas fa-chart-line mr-3"></i> | |
| <span>Analytics</span> | |
| </a> | |
| <a href="#" class="flex items-center py-2 px-3 text-gray-600 hover:bg-gray-100 rounded-lg mb-2"> | |
| <i class="fas fa-envelope mr-3"></i> | |
| <span>Messages</span> | |
| <span class="ml-auto bg-red-500 text-white text-xs px-2 py-1 rounded-full">3</span> | |
| </a> | |
| </div> | |
| <div class="mb-8"> | |
| <h3 class="text-xs uppercase font-semibold text-gray-500 tracking-wider mb-4">Management</h3> | |
| <a href="#" class="flex items-center py-2 px-3 text-gray-600 hover:bg-gray-100 rounded-lg mb-2"> | |
| <i class="fas fa-users mr-3"></i> | |
| <span>Users</span> | |
| </a> | |
| <a href="#" class="flex items-center py-2 px-3 text-gray-600 hover:bg-gray-100 rounded-lg mb-2"> | |
| <i class="fas fa-cog mr-3"></i> | |
| <span>Settings</span> | |
| </a> | |
| <a href="#" class="flex items-center py-2 px-3 text-gray-600 hover:bg-gray-100 rounded-lg mb-2"> | |
| <i class="fas fa-calendar mr-3"></i> | |
| <span>Calendar</span> | |
| </a> | |
| </div> | |
| </nav> | |
| <div class="absolute bottom-0 left-0 right-0 p-4 border-t border-gray-200"> | |
| <div class="flex items-center"> | |
| <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="User" class="w-10 h-10 rounded-full"> | |
| <div class="ml-3"> | |
| <p class="font-medium">Sarah Johnson</p> | |
| <p class="text-xs text-gray-500">Admin</p> | |
| </div> | |
| <button class="ml-auto text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-sign-out-alt"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Mobile overlay --> | |
| <div class="overlay"></div> | |
| <!-- Main content --> | |
| <div class="flex-1 overflow-auto"> | |
| <!-- Header --> | |
| <header class="bg-white border-b border-gray-200 py-4 px-6 flex items-center justify-between"> | |
| <button id="menu-toggle" class="md:hidden text-gray-600"> | |
| <i class="fas fa-bars text-xl"></i> | |
| </button> | |
| <div class="relative max-w-md w-full mx-4"> | |
| <input type="text" placeholder="Search..." class="w-full pl-10 pr-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"> | |
| <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <button class="text-gray-600 hover:text-gray-900 relative"> | |
| <i class="fas fa-bell text-xl"></i> | |
| <span class="absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full h-4 w-4 flex items-center justify-center">2</span> | |
| </button> | |
| <button class="text-gray-600 hover:text-gray-900"> | |
| <i class="fas fa-question-circle text-xl"></i> | |
| </button> | |
| </div> | |
| </header> | |
| <!-- Main content area --> | |
| <main class="p-6"> | |
| <div class="flex flex-col md:flex-row md:items-center md:justify-between mb-6"> | |
| <h2 class="text-2xl font-bold text-gray-800 mb-2 md:mb-0">Dashboard Overview</h2> | |
| <button class="gradient-bg text-white px-4 py-2 rounded-lg hover:opacity-90 transition flex items-center"> | |
| <i class="fas fa-plus mr-2"></i> | |
| <span>New Project</span> | |
| </button> | |
| </div> | |
| <!-- Stats cards --> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6"> | |
| <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100 card-hover transition"> | |
| <div class="flex items-center"> | |
| <div class="p-3 rounded-full bg-blue-100 text-blue-600"> | |
| <i class="fas fa-wallet text-xl"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <p class="text-sm text-gray-500">Total Revenue</p> | |
| <h3 class="text-xl font-bold">$24,780</h3> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <span class="text-green-500 text-sm font-medium flex items-center"> | |
| <i class="fas fa-arrow-up mr-1"></i> 12.5% | |
| </span> | |
| <span class="text-gray-500 text-xs ml-2">vs last month</span> | |
| </div> | |
| </div> | |
| <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100 card-hover transition"> | |
| <div class="flex items-center"> | |
| <div class="p-3 rounded-full bg-purple-100 text-purple-600"> | |
| <i class="fas fa-users text-xl"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <p class="text-sm text-gray-500">New Users</p> | |
| <h3 class="text-xl font-bold">1,254</h3> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <span class="text-green-500 text-sm font-medium flex items-center"> | |
| <i class="fas fa-arrow-up mr-1"></i> 8.3% | |
| </span> | |
| <span class="text-gray-500 text-xs ml-2">vs last month</span> | |
| </div> | |
| </div> | |
| <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100 card-hover transition"> | |
| <div class="flex items-center"> | |
| <div class="p-3 rounded-full bg-green-100 text-green-600"> | |
| <i class="fas fa-shopping-cart text-xl"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <p class="text-sm text-gray-500">Total Orders</p> | |
| <h3 class="text-xl font-bold">845</h3> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <span class="text-red-500 text-sm font-medium flex items-center"> | |
| <i class="fas fa-arrow-down mr-1"></i> 3.1% | |
| </span> | |
| <span class="text-gray-500 text-xs ml-2">vs last month</span> | |
| </div> | |
| </div> | |
| <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100 card-hover transition"> | |
| <div class="flex items-center"> | |
| <div class="p-3 rounded-full bg-yellow-100 text-yellow-600"> | |
| <i class="fas fa-chart-pie text-xl"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <p class="text-sm text-gray-500">Conversion</p> | |
| <h3 class="text-xl font-bold">3.8%</h3> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <span class="text-green-500 text-sm font-medium flex items-center"> | |
| <i class="fas fa-arrow-up mr-1"></i> 1.2% | |
| </span> | |
| <span class="text-gray-500 text-xs ml-2">vs last month</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Charts and main content --> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6"> | |
| <!-- Main chart --> | |
| <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100 lg:col-span-2"> | |
| <div class="flex items-center justify-between mb-4"> | |
| <h3 class="font-semibold text-gray-800">Revenue Overview</h3> | |
| <div class="flex space-x-2"> | |
| <button class="px-3 py-1 text-sm bg-blue-50 text-blue-600 rounded-md">Month</button> | |
| <button class="px-3 py-1 text-sm text-gray-600 hover:bg-gray-100 rounded-md">Week</button> | |
| <button class="px-3 py-1 text-sm text-gray-600 hover:bg-gray-100 rounded-md">Day</button> | |
| </div> | |
| </div> | |
| <div class="chart-container"> | |
| <canvas id="mainChart"></canvas> | |
| </div> | |
| </div> | |
| <!-- Recent activity --> | |
| <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100"> | |
| <h3 class="font-semibold text-gray-800 mb-4">Recent Activity</h3> | |
| <div class="space-y-4"> | |
| <div class="flex"> | |
| <div class="flex-shrink-0"> | |
| <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User" class="w-10 h-10 rounded-full"> | |
| </div> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium">Michael Johnson</p> | |
| <p class="text-sm text-gray-500">Completed project "Dashboard UI"</p> | |
| <p class="text-xs text-gray-400 mt-1">2 hours ago</p> | |
| </div> | |
| </div> | |
| <div class="flex"> | |
| <div class="flex-shrink-0"> | |
| <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="User" class="w-10 h-10 rounded-full"> | |
| </div> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium">Sarah Parker</p> | |
| <p class="text-sm text-gray-500">Added new task "Fix mobile layout"</p> | |
| <p class="text-xs text-gray-400 mt-1">4 hours ago</p> | |
| </div> | |
| </div> | |
| <div class="flex"> | |
| <div class="flex-shrink-0"> | |
| <img src="https://randomuser.me/api/portraits/men/75.jpg" alt="User" class="w-10 h-10 rounded-full"> | |
| </div> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium">David Wilson</p> | |
| <p class="text-sm text-gray-500">Commented on "New features"</p> | |
| <p class="text-xs text-gray-400 mt-1">6 hours ago</p> | |
| </div> | |
| </div> | |
| <div class="flex"> | |
| <div class="flex-shrink-0"> | |
| <img src="https://randomuser.me/api/portraits/women/68.jpg" alt="User" class="w-10 h-10 rounded-full"> | |
| </div> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium">Emily Davis</p> | |
| <p class="text-sm text-gray-500">Created new project "Marketing"</p> | |
| <p class="text-xs text-gray-400 mt-1">1 day ago</p> | |
| </div> | |
| </div> | |
| </div> | |
| <button class="mt-4 text-blue-600 text-sm font-medium hover:text-blue-800"> | |
| View all activity <i class="fas fa-arrow-right ml-1"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Projects table --> | |
| <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100 mb-6"> | |
| <div class="flex items-center justify-between mb-4"> | |
| <h3 class="font-semibold text-gray-800">Recent Projects</h3> | |
| <button class="text-blue-600 text-sm font-medium hover:text-blue-800"> | |
| View all <i class="fas fa-arrow-right ml-1"></i> | |
| </button> | |
| </div> | |
| <div class="overflow-x-auto"> | |
| <table class="min-w-full divide-y divide-gray-200"> | |
| <thead class="bg-gray-50"> | |
| <tr> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Project</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Team</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Progress</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Due Date</th> | |
| </tr> | |
| </thead> | |
| <tbody class="bg-white divide-y divide-gray-200"> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 h-10 w-10 bg-blue-100 rounded-lg flex items-center justify-center text-blue-600"> | |
| <i class="fas fa-laptop"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <div class="text-sm font-medium text-gray-900">Website Redesign</div> | |
| <div class="text-sm text-gray-500">Marketing</div> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex -space-x-2"> | |
| <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="User" class="w-8 h-8 rounded-full border-2 border-white"> | |
| <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User" class="w-8 h-8 rounded-full border-2 border-white"> | |
| <img src="https://randomuser.me/api/portraits/women/68.jpg" alt="User" class="w-8 h-8 rounded-full border-2 border-white"> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Active</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-blue-600 h-2 rounded-full" style="width: 75%"></div> | |
| </div> | |
| <span class="text-xs text-gray-500 mt-1">75% complete</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">May 15, 2023</td> | |
| </tr> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 h-10 w-10 bg-purple-100 rounded-lg flex items-center justify-center text-purple-600"> | |
| <i class="fas fa-mobile-alt"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <div class="text-sm font-medium text-gray-900">Mobile App</div> | |
| <div class="text-sm text-gray-500">Development</div> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex -space-x-2"> | |
| <img src="https://randomuser.me/api/portraits/men/75.jpg" alt="User" class="w-8 h-8 rounded-full border-2 border-white"> | |
| <img src="https://randomuser.me/api/portraits/women/68.jpg" alt="User" class="w-8 h-8 rounded-full border-2 border-white"> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Pending</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-purple-600 h-2 rounded-full" style="width: 45%"></div> | |
| </div> | |
| <span class="text-xs text-gray-500 mt-1">45% complete</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jun 20, 2023</td> | |
| </tr> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 h-10 w-10 bg-green-100 rounded-lg flex items-center justify-center text-green-600"> | |
| <i class="fas fa-chart-line"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <div class="text-sm font-medium text-gray-900">Analytics Dashboard</div> | |
| <div class="text-sm text-gray-500">Analytics</div> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex -space-x-2"> | |
| <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="User" class="w-8 h-8 rounded-full border-2 border-white"> | |
| <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User" class="w-8 h-8 rounded-full border-2 border-white"> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">In Review</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-green-600 h-2 rounded-full" style="width: 90%"></div> | |
| </div> | |
| <span class="text-xs text-gray-500 mt-1">90% complete</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">May 5, 2023</td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| </div> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <script> | |
| // Mobile menu toggle | |
| const menuToggle = document.getElementById('menu-toggle'); | |
| const sidebar = document.querySelector('.sidebar'); | |
| const overlay = document.querySelector('.overlay'); | |
| menuToggle.addEventListener('click', () => { | |
| sidebar.classList.toggle('sidebar-open'); | |
| overlay.classList.toggle('overlay-active'); | |
| }); | |
| overlay.addEventListener('click', () => { | |
| sidebar.classList.remove('sidebar-open'); | |
| overlay.classList.remove('overlay-active'); | |
| }); | |
| // Chart initialization | |
| document.addEventListener('DOMContentLoaded', function() { | |
| // Main chart | |
| const ctx = document.getElementById('mainChart').getContext('2d'); | |
| const mainChart = new Chart(ctx, { | |
| type: 'line', | |
| data: { | |
| labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'], | |
| datasets: [{ | |
| label: 'Revenue', | |
| data: [12000, 19000, 15000, 18000, 22000, 25000, 28000], | |
| backgroundColor: 'rgba(107, 115, 255, 0.1)', | |
| borderColor: 'rgba(107, 115, 255, 1)', | |
| borderWidth: 2, | |
| tension: 0.4, | |
| fill: true | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| legend: { | |
| display: false | |
| } | |
| }, | |
| scales: { | |
| y: { | |
| beginAtZero: true, | |
| grid: { | |
| drawBorder: false | |
| }, | |
| ticks: { | |
| callback: function(value) { | |
| return '$' + value.toLocaleString(); | |
| } | |
| } | |
| }, | |
| x: { | |
| grid: { | |
| display: false | |
| } | |
| } | |
| } | |
| } | |
| }); | |
| // Dark mode toggle (example functionality) | |
| const darkModeToggle = document.createElement('button'); | |
| darkModeToggle.innerHTML = '<i class="fas fa-moon"></i>'; | |
| darkModeToggle.className = 'fixed bottom-6 right-6 bg-gray-800 text-white p-3 rounded-full shadow-lg hover:bg-gray-700 transition'; | |
| document.body.appendChild(darkModeToggle); | |
| darkModeToggle.addEventListener('click', () => { | |
| document.documentElement.classList.toggle('dark'); | |
| if (document.documentElement.classList.contains('dark')) { | |
| darkModeToggle.innerHTML = '<i class="fas fa-sun"></i>'; | |
| darkModeToggle.className = 'fixed bottom-6 right-6 bg-yellow-500 text-white p-3 rounded-full shadow-lg hover:bg-yellow-600 transition'; | |
| } else { | |
| darkModeToggle.innerHTML = '<i class="fas fa-moon"></i>'; | |
| darkModeToggle.className = 'fixed bottom-6 right-6 bg-gray-800 text-white p-3 rounded-full shadow-lg hover:bg-gray-700 transition'; | |
| } | |
| }); | |
| }); | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Stevensayer7/nexusdash" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |