sales-performance / index.html
Hadymatrix's picture
Great - Initial Deployment
ccd3bae verified
Raw
History Blame Contribute Delete
31.7 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sales Performance Dashboard</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></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, #6b73ff 0%, #000dff 100%);
}
.card-hover:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.transition-all {
transition: all 0.3s ease;
}
.scrollbar-hide::-webkit-scrollbar {
display: none;
}
</style>
</head>
<body class="bg-gray-100 font-sans">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="hidden md:flex md:flex-shrink-0">
<div class="flex flex-col w-64 gradient-bg text-white">
<div class="flex items-center justify-center h-16 px-4 border-b border-blue-400">
<div class="flex items-center">
<i class="fas fa-chart-line text-2xl mr-2"></i>
<span class="text-xl font-semibold">SalesDash</span>
</div>
</div>
<div class="flex flex-col flex-grow px-4 py-4 overflow-y-auto">
<nav class="flex-1 space-y-2">
<a href="#" class="flex items-center px-4 py-3 text-white bg-blue-700 rounded-lg">
<i class="fas fa-tachometer-alt mr-3"></i>
<span>Dashboard</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-blue-200 hover:text-white hover:bg-blue-600 rounded-lg transition-all">
<i class="fas fa-shopping-cart mr-3"></i>
<span>Sales</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-blue-200 hover:text-white hover:bg-blue-600 rounded-lg transition-all">
<i class="fas fa-users mr-3"></i>
<span>Customers</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-blue-200 hover:text-white hover:bg-blue-600 rounded-lg transition-all">
<i class="fas fa-box-open mr-3"></i>
<span>Products</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-blue-200 hover:text-white hover:bg-blue-600 rounded-lg transition-all">
<i class="fas fa-chart-pie mr-3"></i>
<span>Reports</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-blue-200 hover:text-white hover:bg-blue-600 rounded-lg transition-all">
<i class="fas fa-cog mr-3"></i>
<span>Settings</span>
</a>
</nav>
<div class="mt-auto pb-4">
<div class="px-4 py-3 bg-blue-700 rounded-lg">
<div class="flex items-center">
<img class="h-9 w-9 rounded-full" src="https://randomuser.me/api/portraits/men/32.jpg" alt="User">
<div class="ml-3">
<p class="text-sm font-medium">John Doe</p>
<p class="text-xs text-blue-200">Sales Manager</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Main Content -->
<div class="flex flex-col flex-1 overflow-hidden">
<!-- Top Navigation -->
<div class="flex items-center justify-between h-16 bg-white border-b border-gray-200 px-4">
<div class="flex items-center">
<button class="md:hidden text-gray-500 focus:outline-none">
<i class="fas fa-bars"></i>
</button>
<div class="relative mx-4">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<i class="fas fa-search text-gray-400"></i>
</div>
<input class="block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-lg bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent" placeholder="Search...">
</div>
</div>
<div class="flex items-center space-x-4">
<button class="p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none">
<i class="fas fa-bell"></i>
</button>
<button class="p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none">
<i class="fas fa-envelope"></i>
</button>
<div class="relative">
<button class="flex items-center focus:outline-none">
<img class="h-8 w-8 rounded-full" src="https://randomuser.me/api/portraits/men/32.jpg" alt="User">
<span class="ml-2 text-sm font-medium hidden md:block">John Doe</span>
<i class="fas fa-chevron-down ml-1 text-xs hidden md:block"></i>
</button>
</div>
</div>
</div>
<!-- Dashboard Content -->
<div class="flex-1 overflow-auto p-4">
<div class="mb-6">
<h1 class="text-2xl font-bold text-gray-800">Sales Performance Dashboard</h1>
<p class="text-gray-600">Monitor and analyze your sales performance metrics</p>
</div>
<!-- Date Filter -->
<div class="bg-white rounded-lg shadow p-4 mb-6">
<div class="flex flex-wrap items-center justify-between">
<div class="flex items-center space-x-2 mb-2 md:mb-0">
<button class="px-3 py-1 bg-blue-600 text-white rounded-lg text-sm">Today</button>
<button class="px-3 py-1 bg-white border border-gray-300 rounded-lg text-sm hover:bg-gray-50">Week</button>
<button class="px-3 py-1 bg-white border border-gray-300 rounded-lg text-sm hover:bg-gray-50">Month</button>
<button class="px-3 py-1 bg-white border border-gray-300 rounded-lg text-sm hover:bg-gray-50">Quarter</button>
<button class="px-3 py-1 bg-white border border-gray-300 rounded-lg text-sm hover:bg-gray-50">Year</button>
</div>
<div class="flex items-center space-x-2">
<div class="border border-gray-300 rounded-lg px-3 py-1 text-sm flex items-center">
<span class="text-gray-500 mr-2">From</span>
<input type="date" class="border-none focus:outline-none">
</div>
<div class="border border-gray-300 rounded-lg px-3 py-1 text-sm flex items-center">
<span class="text-gray-500 mr-2">To</span>
<input type="date" class="border-none focus:outline-none">
</div>
<button class="px-4 py-1 bg-blue-600 text-white rounded-lg text-sm flex items-center">
<i class="fas fa-filter mr-2"></i>
<span>Apply</span>
</button>
</div>
</div>
</div>
<!-- Metrics Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
<div class="bg-white rounded-lg shadow p-6 transition-all card-hover">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500 text-sm">Total Revenue</p>
<h3 class="text-2xl font-bold mt-1">$48,562</h3>
<div class="flex items-center mt-2">
<span class="text-green-500 text-sm flex items-center">
<i class="fas fa-arrow-up mr-1"></i> 12.5%
</span>
<span class="text-gray-500 text-sm ml-2">vs last month</span>
</div>
</div>
<div class="bg-blue-100 p-3 rounded-full">
<i class="fas fa-dollar-sign text-blue-600 text-xl"></i>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6 transition-all card-hover">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500 text-sm">Total Orders</p>
<h3 class="text-2xl font-bold mt-1">1,284</h3>
<div class="flex items-center mt-2">
<span class="text-green-500 text-sm flex items-center">
<i class="fas fa-arrow-up mr-1"></i> 8.3%
</span>
<span class="text-gray-500 text-sm ml-2">vs last month</span>
</div>
</div>
<div class="bg-green-100 p-3 rounded-full">
<i class="fas fa-shopping-cart text-green-600 text-xl"></i>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6 transition-all card-hover">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500 text-sm">Avg. Order Value</p>
<h3 class="text-2xl font-bold mt-1">$37.82</h3>
<div class="flex items-center mt-2">
<span class="text-red-500 text-sm flex items-center">
<i class="fas fa-arrow-down mr-1"></i> 3.2%
</span>
<span class="text-gray-500 text-sm ml-2">vs last month</span>
</div>
</div>
<div class="bg-purple-100 p-3 rounded-full">
<i class="fas fa-chart-bar text-purple-600 text-xl"></i>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6 transition-all card-hover">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500 text-sm">New Customers</p>
<h3 class="text-2xl font-bold mt-1">324</h3>
<div class="flex items-center mt-2">
<span class="text-green-500 text-sm flex items-center">
<i class="fas fa-arrow-up mr-1"></i> 15.7%
</span>
<span class="text-gray-500 text-sm ml-2">vs last month</span>
</div>
</div>
<div class="bg-yellow-100 p-3 rounded-full">
<i class="fas fa-user-plus text-yellow-600 text-xl"></i>
</div>
</div>
</div>
</div>
<!-- Charts Row -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
<!-- Revenue Chart -->
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center justify-between mb-4">
<h3 class="font-semibold text-lg">Revenue Overview</h3>
<div class="flex items-center space-x-2">
<button class="px-3 py-1 bg-blue-100 text-blue-600 rounded-lg text-xs">Daily</button>
<button class="px-3 py-1 bg-white border border-gray-300 rounded-lg text-xs">Weekly</button>
<button class="px-3 py-1 bg-white border border-gray-300 rounded-lg text-xs">Monthly</button>
</div>
</div>
<div class="h-64">
<canvas id="revenueChart"></canvas>
</div>
</div>
<!-- Sales by Category -->
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center justify-between mb-4">
<h3 class="font-semibold text-lg">Sales by Category</h3>
<div class="relative">
<select class="appearance-none bg-white border border-gray-300 rounded-lg pl-3 pr-8 py-1 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500">
<option>This Month</option>
<option>Last Month</option>
<option>This Quarter</option>
</select>
<div class="absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none">
<i class="fas fa-chevron-down text-gray-400 text-xs"></i>
</div>
</div>
</div>
<div class="h-64">
<canvas id="categoryChart"></canvas>
</div>
</div>
</div>
<!-- Bottom Row -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
<!-- Recent Sales -->
<div class="bg-white rounded-lg shadow lg:col-span-2">
<div class="p-6">
<div class="flex items-center justify-between mb-4">
<h3 class="font-semibold text-lg">Recent Sales</h3>
<button class="text-blue-600 text-sm font-medium">View All</button>
</div>
<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">Order ID</th>
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Customer</th>
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Amount</th>
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-blue-600">#ORD-7841</td>
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-900">Sarah Johnson</td>
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">12 Jun 2023</td>
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-900">$128.50</td>
<td class="px-4 py-3 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Completed</span>
</td>
</tr>
<tr>
<td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-blue-600">#ORD-7840</td>
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-900">Michael Brown</td>
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">12 Jun 2023</td>
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-900">$89.99</td>
<td class="px-4 py-3 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Completed</span>
</td>
</tr>
<tr>
<td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-blue-600">#ORD-7839</td>
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-900">Emily Wilson</td>
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">11 Jun 2023</td>
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-900">$245.75</td>
<td class="px-4 py-3 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">Processing</span>
</td>
</tr>
<tr>
<td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-blue-600">#ORD-7838</td>
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-900">David Miller</td>
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">11 Jun 2023</td>
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-900">$72.30</td>
<td class="px-4 py-3 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Completed</span>
</td>
</tr>
<tr>
<td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-blue-600">#ORD-7837</td>
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-900">Jessica Lee</td>
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">10 Jun 2023</td>
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-900">$156.20</td>
<td class="px-4 py-3 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-red-100 text-red-800">Cancelled</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- Top Performers -->
<div class="bg-white rounded-lg shadow">
<div class="p-6">
<div class="flex items-center justify-between mb-4">
<h3 class="font-semibold text-lg">Top Performers</h3>
<button class="text-blue-600 text-sm font-medium">View All</button>
</div>
<div class="space-y-4">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center">
<span class="text-blue-600 font-medium">1</span>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Alex Johnson</div>
<div class="text-sm text-gray-500">$12,450 revenue</div>
</div>
<div class="ml-auto bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">
+24.5%
</div>
</div>
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center">
<span class="text-blue-600 font-medium">2</span>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Sarah Williams</div>
<div class="text-sm text-gray-500">$10,890 revenue</div>
</div>
<div class="ml-auto bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">
+18.3%
</div>
</div>
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center">
<span class="text-blue-600 font-medium">3</span>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Michael Brown</div>
<div class="text-sm text-gray-500">$9,450 revenue</div>
</div>
<div class="ml-auto bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">
+12.7%
</div>
</div>
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center">
<span class="text-blue-600 font-medium">4</span>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Emily Davis</div>
<div class="text-sm text-gray-500">$8,120 revenue</div>
</div>
<div class="ml-auto bg-red-100 text-red-800 text-xs px-2 py-1 rounded-full">
-2.4%
</div>
</div>
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center">
<span class="text-blue-600 font-medium">5</span>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">David Wilson</div>
<div class="text-sm text-gray-500">$7,890 revenue</div>
</div>
<div class="ml-auto bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">
+5.8%
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
// Revenue Chart
const revenueCtx = document.getElementById('revenueChart').getContext('2d');
const revenueChart = new Chart(revenueCtx, {
type: 'line',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'],
datasets: [{
label: 'Revenue',
data: [12500, 15000, 14200, 16500, 18500, 20500, 22000],
backgroundColor: 'rgba(59, 130, 246, 0.1)',
borderColor: 'rgba(59, 130, 246, 1)',
borderWidth: 2,
tension: 0.3,
fill: true,
pointBackgroundColor: 'rgba(59, 130, 246, 1)',
pointBorderColor: '#fff',
pointHoverRadius: 5,
pointHoverBackgroundColor: 'rgba(59, 130, 246, 1)',
pointHoverBorderColor: '#fff',
pointHitRadius: 10,
pointBorderWidth: 2,
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
display: false
},
tooltip: {
backgroundColor: '#fff',
titleColor: '#1F2937',
bodyColor: '#1F2937',
borderColor: '#E5E7EB',
borderWidth: 1,
padding: 12,
boxPadding: 4,
callbacks: {
label: function(context) {
return '$' + context.parsed.y.toLocaleString();
}
}
}
},
scales: {
y: {
beginAtZero: true,
grid: {
drawBorder: false,
color: '#E5E7EB',
},
ticks: {
callback: function(value) {
return '$' + value.toLocaleString();
}
}
},
x: {
grid: {
display: false,
drawBorder: false
}
}
}
}
});
// Category Chart
const categoryCtx = document.getElementById('categoryChart').getContext('2d');
const categoryChart = new Chart(categoryCtx, {
type: 'doughnut',
data: {
labels: ['Electronics', 'Clothing', 'Home Goods', 'Books', 'Other'],
datasets: [{
data: [35, 25, 20, 15, 5],
backgroundColor: [
'rgba(59, 130, 246, 1)',
'rgba(16, 185, 129, 1)',
'rgba(139, 92, 246, 1)',
'rgba(245, 158, 11, 1)',
'rgba(156, 163, 175, 1)'
],
borderWidth: 0,
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
cutout: '70%',
plugins: {
legend: {
position: 'right',
labels: {
usePointStyle: true,
padding: 20,
font: {
size: 12
}
}
},
tooltip: {
backgroundColor: '#fff',
titleColor: '#1F2937',
bodyColor: '#1F2937',
borderColor: '#E5E7EB',
borderWidth: 1,
padding: 12,
boxPadding: 4,
callbacks: {
label: function(context) {
return context.label + ': ' + context.raw + '%';
}
}
}
}
}
});
// Mobile menu toggle
document.querySelector('.md\\:hidden').addEventListener('click', function() {
document.querySelector('.hidden.md\\:flex').classList.toggle('hidden');
});
</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=Hadymatrix/sales-performance" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>