Spaces:
Running
Running
Download index.html from LyNguyen20/test-2: direct link, hf CLI and curl.
- Browser
- Download file 26.5 kB
-
https://huggingface.co/spaces/LyNguyen20/test-2/resolve/main/index.html
- Command line
-
hf download hf://spaces/LyNguyen20/test-2/index.html
-
curl -L -o index.html https://huggingface.co/spaces/LyNguyen20/test-2/resolve/main/index.html
26.5 kB
| <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> | |
| .gradient-bg { | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 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); | |
| } | |
| .chart-container { | |
| position: relative; | |
| height: 300px; | |
| width: 100%; | |
| } | |
| .sidebar { | |
| transition: all 0.3s ease; | |
| } | |
| @media (max-width: 768px) { | |
| .sidebar { | |
| transform: translateX(-100%); | |
| position: absolute; | |
| z-index: 10; | |
| height: 100vh; | |
| } | |
| .sidebar.open { | |
| transform: translateX(0); | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-100 font-sans"> | |
| <div class="flex h-screen overflow-hidden"> | |
| <!-- Sidebar --> | |
| <div class="sidebar bg-white w-64 shadow-lg"> | |
| <div class="p-4 flex items-center gradient-bg"> | |
| <div class="w-10 h-10 rounded-full bg-white flex items-center justify-center mr-3"> | |
| <i class="fas fa-chart-line text-purple-600 text-xl"></i> | |
| </div> | |
| <h1 class="text-white font-bold text-xl">AnalyticsPro</h1> | |
| </div> | |
| <nav class="mt-6"> | |
| <div class="px-4"> | |
| <div class="relative"> | |
| <input type="text" class="w-full px-4 py-2 rounded-lg bg-gray-100 focus:outline-none focus:ring-2 focus:ring-purple-500" placeholder="Search..."> | |
| <i class="fas fa-search absolute right-3 top-3 text-gray-400"></i> | |
| </div> | |
| </div> | |
| <div class="mt-6"> | |
| <a href="#" class="flex items-center px-6 py-3 text-purple-600 bg-purple-50 border-l-4 border-purple-600"> | |
| <i class="fas fa-home mr-3"></i> | |
| <span>Dashboard</span> | |
| </a> | |
| <a href="#" class="flex items-center px-6 py-3 text-gray-600 hover:bg-gray-100"> | |
| <i class="fas fa-chart-bar mr-3"></i> | |
| <span>Analytics</span> | |
| </a> | |
| <a href="#" class="flex items-center px-6 py-3 text-gray-600 hover:bg-gray-100"> | |
| <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">5</span> | |
| </a> | |
| <a href="#" class="flex items-center px-6 py-3 text-gray-600 hover:bg-gray-100"> | |
| <i class="fas fa-calendar mr-3"></i> | |
| <span>Calendar</span> | |
| </a> | |
| <a href="#" class="flex items-center px-6 py-3 text-gray-600 hover:bg-gray-100"> | |
| <i class="fas fa-cog mr-3"></i> | |
| <span>Settings</span> | |
| </a> | |
| </div> | |
| </nav> | |
| <div class="absolute bottom-0 w-full p-4 border-t border-gray-200"> | |
| <div class="flex items-center"> | |
| <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Profile" class="w-10 h-10 rounded-full"> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium text-gray-700">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> | |
| <!-- Main Content --> | |
| <div class="flex-1 overflow-auto"> | |
| <!-- Top Navigation --> | |
| <header class="bg-white shadow-sm"> | |
| <div class="flex items-center justify-between px-6 py-4"> | |
| <button id="sidebarToggle" class="md:hidden text-gray-500 focus:outline-none"> | |
| <i class="fas fa-bars text-2xl"></i> | |
| </button> | |
| <div class="flex items-center space-x-4"> | |
| <div class="relative"> | |
| <button class="text-gray-500 hover:text-gray-700 focus:outline-none"> | |
| <i class="fas fa-bell text-xl"></i> | |
| <span class="absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full"></span> | |
| </button> | |
| </div> | |
| <div class="relative"> | |
| <button class="text-gray-500 hover:text-gray-700 focus:outline-none"> | |
| <i class="fas fa-envelope text-xl"></i> | |
| <span class="absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full"></span> | |
| </button> | |
| </div> | |
| <div class="relative"> | |
| <button class="flex items-center text-gray-700 focus:outline-none"> | |
| <span class="mr-2">EN</span> | |
| <i class="fas fa-chevron-down text-xs"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Dashboard Content --> | |
| <main class="p-6"> | |
| <div class="flex flex-col md:flex-row md:items-center md:justify-between mb-6"> | |
| <div> | |
| <h2 class="text-2xl font-bold text-gray-800">Dashboard Overview</h2> | |
| <p class="text-gray-600">Welcome back, Sarah! Here's what's happening today.</p> | |
| </div> | |
| <div class="mt-4 md:mt-0"> | |
| <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> New Report | |
| </button> | |
| </div> | |
| </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 rounded-xl shadow-md p-6 card-hover transition duration-300"> | |
| <div class="flex items-center"> | |
| <div class="p-3 rounded-full bg-blue-100 text-blue-600 mr-4"> | |
| <i class="fas fa-users text-xl"></i> | |
| </div> | |
| <div> | |
| <p class="text-gray-500 text-sm">Total Users</p> | |
| <h3 class="text-2xl font-bold">2,453</h3> | |
| </div> | |
| </div> | |
| <div class="mt-4 pt-4 border-t border-gray-100 flex items-center text-sm text-green-500"> | |
| <i class="fas fa-arrow-up mr-1"></i> | |
| <span>12.5% from last week</span> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md p-6 card-hover transition duration-300"> | |
| <div class="flex items-center"> | |
| <div class="p-3 rounded-full bg-purple-100 text-purple-600 mr-4"> | |
| <i class="fas fa-shopping-cart text-xl"></i> | |
| </div> | |
| <div> | |
| <p class="text-gray-500 text-sm">Total Orders</p> | |
| <h3 class="text-2xl font-bold">1,287</h3> | |
| </div> | |
| </div> | |
| <div class="mt-4 pt-4 border-t border-gray-100 flex items-center text-sm text-green-500"> | |
| <i class="fas fa-arrow-up mr-1"></i> | |
| <span>8.3% from last week</span> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md p-6 card-hover transition duration-300"> | |
| <div class="flex items-center"> | |
| <div class="p-3 rounded-full bg-yellow-100 text-yellow-600 mr-4"> | |
| <i class="fas fa-dollar-sign text-xl"></i> | |
| </div> | |
| <div> | |
| <p class="text-gray-500 text-sm">Revenue</p> | |
| <h3 class="text-2xl font-bold">$34,567</h3> | |
| </div> | |
| </div> | |
| <div class="mt-4 pt-4 border-t border-gray-100 flex items-center text-sm text-red-500"> | |
| <i class="fas fa-arrow-down mr-1"></i> | |
| <span>3.2% from last week</span> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md p-6 card-hover transition duration-300"> | |
| <div class="flex items-center"> | |
| <div class="p-3 rounded-full bg-green-100 text-green-600 mr-4"> | |
| <i class="fas fa-chart-line text-xl"></i> | |
| </div> | |
| <div> | |
| <p class="text-gray-500 text-sm">Conversion</p> | |
| <h3 class="text-2xl font-bold">3.6%</h3> | |
| </div> | |
| </div> | |
| <div class="mt-4 pt-4 border-t border-gray-100 flex items-center text-sm text-green-500"> | |
| <i class="fas fa-arrow-up mr-1"></i> | |
| <span>1.1% from last week</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Charts Row --> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6"> | |
| <!-- Main Chart --> | |
| <div class="lg:col-span-2 bg-white rounded-xl shadow-md p-6"> | |
| <div class="flex items-center justify-between mb-6"> | |
| <h3 class="text-lg font-semibold">Sales Overview</h3> | |
| <div class="flex space-x-2"> | |
| <button class="px-3 py-1 text-sm bg-purple-100 text-purple-600 rounded-lg">Week</button> | |
| <button class="px-3 py-1 text-sm bg-gray-100 text-gray-600 rounded-lg">Month</button> | |
| <button class="px-3 py-1 text-sm bg-gray-100 text-gray-600 rounded-lg">Year</button> | |
| </div> | |
| </div> | |
| <div class="chart-container"> | |
| <canvas id="mainChart"></canvas> | |
| </div> | |
| </div> | |
| <!-- Pie Chart --> | |
| <div class="bg-white rounded-xl shadow-md p-6"> | |
| <h3 class="text-lg font-semibold mb-6">Traffic Sources</h3> | |
| <div class="chart-container"> | |
| <canvas id="pieChart"></canvas> | |
| </div> | |
| <div class="mt-4 grid grid-cols-2 gap-4"> | |
| <div class="flex items-center"> | |
| <div class="w-3 h-3 bg-blue-500 rounded-full mr-2"></div> | |
| <span class="text-sm">Direct</span> | |
| </div> | |
| <div class="flex items-center"> | |
| <div class="w-3 h-3 bg-purple-500 rounded-full mr-2"></div> | |
| <span class="text-sm">Organic</span> | |
| </div> | |
| <div class="flex items-center"> | |
| <div class="w-3 h-3 bg-yellow-500 rounded-full mr-2"></div> | |
| <span class="text-sm">Referral</span> | |
| </div> | |
| <div class="flex items-center"> | |
| <div class="w-3 h-3 bg-green-500 rounded-full mr-2"></div> | |
| <span class="text-sm">Social</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Recent Activity and Top Products --> | |
| <div class="grid grid-cols-1 lg:grid-cols-2 gap-6"> | |
| <!-- Recent Activity --> | |
| <div class="bg-white rounded-xl shadow-md p-6"> | |
| <h3 class="text-lg font-semibold mb-6">Recent Activity</h3> | |
| <div class="space-y-4"> | |
| <div class="flex items-start"> | |
| <div class="p-2 bg-blue-100 text-blue-600 rounded-full mr-4"> | |
| <i class="fas fa-user-plus"></i> | |
| </div> | |
| <div> | |
| <p class="font-medium">New user registered</p> | |
| <p class="text-sm text-gray-500">John Smith just signed up</p> | |
| <p class="text-xs text-gray-400 mt-1">5 minutes ago</p> | |
| </div> | |
| </div> | |
| <div class="flex items-start"> | |
| <div class="p-2 bg-purple-100 text-purple-600 rounded-full mr-4"> | |
| <i class="fas fa-shopping-cart"></i> | |
| </div> | |
| <div> | |
| <p class="font-medium">New order received</p> | |
| <p class="text-sm text-gray-500">Order #4589 from Jane Doe</p> | |
| <p class="text-xs text-gray-400 mt-1">32 minutes ago</p> | |
| </div> | |
| </div> | |
| <div class="flex items-start"> | |
| <div class="p-2 bg-green-100 text-green-600 rounded-full mr-4"> | |
| <i class="fas fa-dollar-sign"></i> | |
| </div> | |
| <div> | |
| <p class="font-medium">Payment received</p> | |
| <p class="text-sm text-gray-500">$1,250 from Acme Inc</p> | |
| <p class="text-xs text-gray-400 mt-1">2 hours ago</p> | |
| </div> | |
| </div> | |
| <div class="flex items-start"> | |
| <div class="p-2 bg-yellow-100 text-yellow-600 rounded-full mr-4"> | |
| <i class="fas fa-truck"></i> | |
| </div> | |
| <div> | |
| <p class="font-medium">Order shipped</p> | |
| <p class="text-sm text-gray-500">Order #4587 to John Smith</p> | |
| <p class="text-xs text-gray-400 mt-1">5 hours ago</p> | |
| </div> | |
| </div> | |
| </div> | |
| <button class="mt-4 text-purple-600 hover:text-purple-800 text-sm font-medium"> | |
| View All Activity <i class="fas fa-arrow-right ml-1"></i> | |
| </button> | |
| </div> | |
| <!-- Top Products --> | |
| <div class="bg-white rounded-xl shadow-md p-6"> | |
| <h3 class="text-lg font-semibold mb-6">Top Products</h3> | |
| <div class="overflow-x-auto"> | |
| <table class="min-w-full divide-y divide-gray-200"> | |
| <thead> | |
| <tr> | |
| <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Product</th> | |
| <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Price</th> | |
| <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Sold</th> | |
| <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Revenue</th> | |
| </tr> | |
| </thead> | |
| <tbody class="bg-white divide-y divide-gray-200"> | |
| <tr> | |
| <td class="px-4 py-3 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 mr-3"> | |
| <i class="fas fa-headphones text-blue-500"></i> | |
| </div> | |
| <div> | |
| <div class="text-sm font-medium text-gray-900">Wireless Headphones</div> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">$149.99</td> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">245</td> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-gray-900">$36,747</td> | |
| </tr> | |
| <tr> | |
| <td class="px-4 py-3 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 mr-3"> | |
| <i class="fas fa-mobile-alt text-purple-500"></i> | |
| </div> | |
| <div> | |
| <div class="text-sm font-medium text-gray-900">Smartphone X</div> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">$899.99</td> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">89</td> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-gray-900">$80,099</td> | |
| </tr> | |
| <tr> | |
| <td class="px-4 py-3 whitespace-nowrap"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 h-10 w-10 bg-yellow-100 rounded-lg flex items-center justify-center mr-3"> | |
| <i class="fas fa-laptop text-yellow-500"></i> | |
| </div> | |
| <div> | |
| <div class="text-sm font-medium text-gray-900">Ultrabook Pro</div> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">$1,299.99</td> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">54</td> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-gray-900">$70,199</td> | |
| </tr> | |
| <tr> | |
| <td class="px-4 py-3 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 mr-3"> | |
| <i class="fas fa-tablet-alt text-green-500"></i> | |
| </div> | |
| <div> | |
| <div class="text-sm font-medium text-gray-900">Tablet Plus</div> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">$499.99</td> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">128</td> | |
| <td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-gray-900">$63,998</td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| <button class="mt-4 text-purple-600 hover:text-purple-800 text-sm font-medium"> | |
| View All Products <i class="fas fa-arrow-right ml-1"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| </div> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <script> | |
| // Toggle sidebar on mobile | |
| document.getElementById('sidebarToggle').addEventListener('click', function() { | |
| document.querySelector('.sidebar').classList.toggle('open'); | |
| }); | |
| // Main Chart | |
| const mainCtx = document.getElementById('mainChart').getContext('2d'); | |
| const mainChart = new Chart(mainCtx, { | |
| type: 'line', | |
| data: { | |
| labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'], | |
| datasets: [ | |
| { | |
| label: 'Sales', | |
| data: [6500, 5900, 8000, 8100, 8600, 8050, 8200], | |
| borderColor: '#667eea', | |
| backgroundColor: 'rgba(102, 126, 234, 0.1)', | |
| borderWidth: 2, | |
| fill: true, | |
| tension: 0.4 | |
| }, | |
| { | |
| label: 'Revenue', | |
| data: [5200, 6000, 7500, 7800, 8200, 8500, 8900], | |
| borderColor: '#9f7aea', | |
| backgroundColor: 'rgba(159, 122, 234, 0.1)', | |
| borderWidth: 2, | |
| fill: true, | |
| tension: 0.4 | |
| } | |
| ] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| legend: { | |
| position: 'top', | |
| }, | |
| tooltip: { | |
| mode: 'index', | |
| intersect: false, | |
| } | |
| }, | |
| scales: { | |
| y: { | |
| beginAtZero: true, | |
| grid: { | |
| drawBorder: false | |
| } | |
| }, | |
| x: { | |
| grid: { | |
| display: false | |
| } | |
| } | |
| } | |
| } | |
| }); | |
| // Pie Chart | |
| const pieCtx = document.getElementById('pieChart').getContext('2d'); | |
| const pieChart = new Chart(pieCtx, { | |
| type: 'doughnut', | |
| data: { | |
| labels: ['Direct', 'Organic', 'Referral', 'Social'], | |
| datasets: [{ | |
| data: [35, 30, 20, 15], | |
| backgroundColor: [ | |
| '#4299e1', | |
| '#9f7aea', | |
| '#ecc94b', | |
| '#48bb78' | |
| ], | |
| borderWidth: 0 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| cutout: '70%', | |
| plugins: { | |
| legend: { | |
| display: false | |
| } | |
| } | |
| } | |
| }); | |
| </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=LyNguyen20/test-2" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |