Spaces:
Running

undefined / dashboard.html
kudalkarpratham's picture
Can you make this webite working
158b74b verified
Raw History Blame Contribute Delete
9.27 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard - AccountantPro</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body class="font-roboto bg-gray-50 min-h-screen">
<div class="flex flex-col md:flex-row min-h-screen">
<!-- Sidebar Navigation -->
<div class="bg-white shadow-md md:w-64 md:min-h-screen p-6">
<div class="flex items-center space-x-2 mb-8">
<i data-feather="columns" class="text-blue-600 w-6 h-6"></i>
<span class="text-xl font-bold text-gray-800">AccountantPro</span>
</div>
<nav class="space-y-4">
<a href="dashboard.html" class="flex items-center space-x-3 text-blue-600 transition">
<i data-feather="home" class="w-5 h-5"></i>
<span>Dashboard</span>
</a>
<a href="#" class="flex items-center space-x-3 text-gray-600 hover:text-blue-600 transition">
<i data-feather="users" class="w-5 h-5"></i>
<span>Clients</span>
</a>
<a href="appointment.html" class="flex items-center space-x-3 text-gray-600 hover:text-blue-600 transition">
<i data-feather="calendar" class="w-5 h-5"></i>
<span>Appointments</span>
</a>
<a href="documents.html" class="flex items-center space-x-3 text-gray-600 hover:text-blue-600 transition">
<i data-feather="file" class="w-5 h-5"></i>
<span>Documents</span>
</a>
<a href="#" class="flex items-center space-x-3 text-gray-600 hover:text-blue-600 transition">
<i data-feather="credit-card" class="w-5 h-5"></i>
<span>Billing</span>
</a>
<a href="#" class="flex items-center space-x-3 text-gray-600 hover:text-blue-600 transition">
<i data-feather="settings" class="w-5 h-5"></i>
<span>Settings</span>
</a>
</nav>
</div>
<!-- Main Content -->
<div class="flex-1 p-6">
<h1 class="text-3xl font-bold text-gray-800 mb-8">Dashboard</h1>
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
<div class="bg-white rounded-xl shadow-md p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500">Upcoming Appointments</p>
<h3 class="text-2xl font-bold text-gray-800">3</h3>
</div>
<i data-feather="calendar" class="text-blue-600 w-8 h-8"></i>
</div>
</div>
<div class="bg-white rounded-xl shadow-md p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500">Pending Documents</p>
<h3 class="text-2xl font-bold text-gray-800">5</h3>
</div>
<i data-feather="file-text" class="text-blue-600 w-8 h-8"></i>
</div>
</div>
<div class="bg-white rounded-xl shadow-md p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500">Outstanding Invoices</p>
<h3 class="text-2xl font-bold text-gray-800">$2,450</h3>
</div>
<i data-feather="dollar-sign" class="text-blue-600 w-8 h-8"></i>
</div>
</div>
<div class="bg-white rounded-xl shadow-md p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500">Active Clients</p>
<h3 class="text-2xl font-bold text-gray-800">24</h3>
</div>
<i data-feather="users" class="text-blue-600 w-8 h-8"></i>
</div>
</div>
</div>
<!-- Charts Section -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
<div class="bg-white rounded-xl shadow-md p-6">
<h3 class="text-xl font-semibold text-gray-800 mb-4">Revenue Overview</h3>
<canvas id="revenueChart" height="250"></canvas>
</div>
<div class="bg-white rounded-xl shadow-md p-6">
<h3 class="text-xl font-semibold text-gray-800 mb-4">Expense Breakdown</h3>
<canvas id="expenseChart" height="250"></canvas>
</div>
</div>
<!-- Recent Activity -->
<div class="bg-white rounded-xl shadow-md p-6">
<h3 class="text-xl font-semibold text-gray-800 mb-4">Recent Activity</h3>
<div class="space-y-4">
<div class="flex items-start space-x-4">
<div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center mt-1">
<i data-feather="calendar" class="text-blue-600 w-5 h-5"></i>
</div>
<div>
<p class="font-medium text-gray-800">New appointment scheduled</p>
<p class="text-gray-500 text-sm">July 12, 2024 at 2:00 PM</p>
</div>
</div>
<div class="flex items-start space-x-4">
<div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center mt-1">
<i data-feather="file-text" class="text-blue-600 w-5 h-5"></i>
</div>
<div>
<p class="font-medium text-gray-800">Document uploaded</p>
<p class="text-gray-500 text-sm">Tax Return 2023.pdf</p>
</div>
</div>
<div class="flex items-start space-x-4">
<div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center mt-1">
<i data-feather="dollar-sign" class="text-blue-600 w-5 h-5"></i>
</div>
<div>
<p class="font-medium text-gray-800">Invoice #1042 paid</p>
<p class="text-gray-500 text-sm">$450.00</p>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
feather.replace();
// Initialize charts
document.addEventListener('DOMContentLoaded', function() {
// Revenue Chart
const revenueCtx = document.getElementById('revenueChart').getContext('2d');
new Chart(revenueCtx, {
type: 'line',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
datasets: [{
label: 'Revenue',
data: [3200, 4500, 3800, 5100, 4900, 6200],
borderColor: '#3b82f6',
backgroundColor: 'rgba(59, 130, 246, 0.05)',
tension: 0.1,
fill: true
}]
},
options: {
responsive: true,
maintainAspectRatio: false
}
});
// Expense Chart
const expenseCtx = document.getElementById('expenseChart').getContext('2d');
new Chart(expenseCtx, {
type: 'doughnut',
data: {
labels: ['Salaries', 'Office', 'Taxes', 'Software', 'Other'],
datasets: [{
data: [2500, 800, 1200, 600, 300],
backgroundColor: [
'#3b82f6',
'#6366f1',
'#8b5cf6',
'#ec4899',
'#f43f5e'
]
}]
},
options: {
responsive: true,
maintainAspectRatio: false
}
});
});
</script>
</body>
</html>