Spaces:
Running

timetracker / index.html
Samsap0u1's picture
Add 2 files
3ce4506 verified
Raw History Blame Contribute Delete
42.8 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TimeTrack Pro - Advanced Time Tracking</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%);
}
.sidebar {
transition: all 0.3s ease;
}
.timer-circle {
width: 250px;
height: 250px;
border: 8px solid rgba(255, 255, 255, 0.2);
}
.pulse-animation {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7); }
70% { box-shadow: 0 0 0 15px rgba(102, 126, 234, 0); }
100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
}
.chart-container {
height: 300px;
}
.task-item:hover .task-actions {
opacity: 1;
}
.task-actions {
opacity: 0;
transition: opacity 0.2s ease;
}
</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 flex-col">
<div class="p-4 border-b border-gray-200">
<div class="flex items-center space-x-2">
<div class="w-8 h-8 rounded-full gradient-bg flex items-center justify-center text-white">
<i class="fas fa-stopwatch"></i>
</div>
<h1 class="text-xl font-bold text-gray-800">TimeTrack Pro</h1>
</div>
</div>
<div class="flex-1 overflow-y-auto p-4">
<div class="mb-6">
<h2 class="text-xs uppercase font-semibold text-gray-500 mb-2">Tracking</h2>
<ul>
<li class="mb-1">
<a href="#" class="flex items-center space-x-2 p-2 rounded-lg bg-indigo-50 text-indigo-700">
<i class="fas fa-play w-5 text-center"></i>
<span>Timer</span>
</a>
</li>
<li class="mb-1">
<a href="#" class="flex items-center space-x-2 p-2 rounded-lg text-gray-700 hover:bg-gray-100">
<i class="fas fa-clock w-5 text-center"></i>
<span>Timesheet</span>
</a>
</li>
<li class="mb-1">
<a href="#" class="flex items-center space-x-2 p-2 rounded-lg text-gray-700 hover:bg-gray-100">
<i class="fas fa-chart-pie w-5 text-center"></i>
<span>Reports</span>
</a>
</li>
</ul>
</div>
<div class="mb-6">
<h2 class="text-xs uppercase font-semibold text-gray-500 mb-2">Manage</h2>
<ul>
<li class="mb-1">
<a href="#" class="flex items-center space-x-2 p-2 rounded-lg text-gray-700 hover:bg-gray-100">
<i class="fas fa-tasks w-5 text-center"></i>
<span>Projects</span>
</a>
</li>
<li class="mb-1">
<a href="#" class="flex items-center space-x-2 p-2 rounded-lg text-gray-700 hover:bg-gray-100">
<i class="fas fa-users w-5 text-center"></i>
<span>Team</span>
</a>
</li>
<li class="mb-1">
<a href="#" class="flex items-center space-x-2 p-2 rounded-lg text-gray-700 hover:bg-gray-100">
<i class="fas fa-tag w-5 text-center"></i>
<span>Tags</span>
</a>
</li>
</ul>
</div>
<div class="mb-6">
<h2 class="text-xs uppercase font-semibold text-gray-500 mb-2">Integrations</h2>
<ul>
<li class="mb-1">
<a href="#" class="flex items-center space-x-2 p-2 rounded-lg text-gray-700 hover:bg-gray-100">
<i class="fab fa-trello w-5 text-center"></i>
<span>Trello</span>
</a>
</li>
<li class="mb-1">
<a href="#" class="flex items-center space-x-2 p-2 rounded-lg text-gray-700 hover:bg-gray-100">
<i class="fab fa-asymmetrik w-5 text-center"></i>
<span>Asana</span>
</a>
</li>
<li class="mb-1">
<a href="#" class="flex items-center space-x-2 p-2 rounded-lg text-gray-700 hover:bg-gray-100">
<i class="fab fa-jira w-5 text-center"></i>
<span>Jira</span>
</a>
</li>
</ul>
</div>
</div>
<div class="p-4 border-t border-gray-200">
<div class="flex items-center space-x-3">
<div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center text-indigo-600">
<i class="fas fa-user"></i>
</div>
<div class="flex-1">
<div class="font-medium text-sm">John Doe</div>
<div class="text-xs text-gray-500">john@example.com</div>
</div>
<button class="text-gray-500 hover:text-gray-700">
<i class="fas fa-ellipsis-v"></i>
</button>
</div>
</div>
</div>
<!-- Main Content -->
<div class="flex-1 flex flex-col overflow-hidden">
<!-- Top Navigation -->
<header class="bg-white border-b border-gray-200 py-3 px-6 flex items-center justify-between">
<div class="flex items-center space-x-4">
<button class="text-gray-500 hover:text-gray-700 md:hidden">
<i class="fas fa-bars"></i>
</button>
<div class="relative w-64">
<input type="text" placeholder="Search time entries..." class="w-full pl-10 pr-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
</div>
</div>
<div class="flex items-center space-x-4">
<button class="text-gray-500 hover:text-gray-700">
<i class="fas fa-bell"></i>
</button>
<button class="text-gray-500 hover:text-gray-700">
<i class="fas fa-question-circle"></i>
</button>
<button class="text-gray-500 hover:text-gray-700">
<i class="fas fa-cog"></i>
</button>
</div>
</header>
<!-- Main Content Area -->
<main class="flex-1 overflow-y-auto p-6 bg-gray-50">
<div class="max-w-6xl mx-auto">
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold text-gray-800">Time Tracking Dashboard</h2>
<div class="flex space-x-3">
<div class="relative">
<select class="appearance-none bg-white border border-gray-300 rounded-lg px-4 py-2 pr-8 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
<option>Today</option>
<option>Yesterday</option>
<option>This Week</option>
<option>This Month</option>
<option>Custom Range</option>
</select>
<i class="fas fa-chevron-down absolute right-3 top-3 text-gray-400 pointer-events-none"></i>
</div>
<button class="bg-indigo-600 hover:bg-indigo-700 text-white px-4 py-2 rounded-lg flex items-center space-x-2">
<i class="fas fa-plus"></i>
<span>New Entry</span>
</button>
</div>
</div>
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-4 gap-4 mb-6">
<div class="bg-white rounded-lg shadow p-4">
<div class="flex items-center justify-between">
<div>
<p class="text-sm text-gray-500">Total Tracked</p>
<h3 class="text-2xl font-bold" id="total-tracked">7h 23m</h3>
</div>
<div class="w-12 h-12 rounded-full bg-indigo-100 flex items-center justify-center text-indigo-600">
<i class="fas fa-clock"></i>
</div>
</div>
<p class="text-xs text-gray-500 mt-2">+1h 12m from yesterday</p>
</div>
<div class="bg-white rounded-lg shadow p-4">
<div class="flex items-center justify-between">
<div>
<p class="text-sm text-gray-500">Active Projects</p>
<h3 class="text-2xl font-bold">12</h3>
</div>
<div class="w-12 h-12 rounded-full bg-green-100 flex items-center justify-center text-green-600">
<i class="fas fa-tasks"></i>
</div>
</div>
<p class="text-xs text-gray-500 mt-2">3 projects behind schedule</p>
</div>
<div class="bg-white rounded-lg shadow p-4">
<div class="flex items-center justify-between">
<div>
<p class="text-sm text-gray-500">Team Members</p>
<h3 class="text-2xl font-bold">8</h3>
</div>
<div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center text-blue-600">
<i class="fas fa-users"></i>
</div>
</div>
<p class="text-xs text-gray-500 mt-2">2 members offline</p>
</div>
<div class="bg-white rounded-lg shadow p-4">
<div class="flex items-center justify-between">
<div>
<p class="text-sm text-gray-500">Productivity</p>
<h3 class="text-2xl font-bold">84%</h3>
</div>
<div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center text-purple-600">
<i class="fas fa-chart-line"></i>
</div>
</div>
<p class="text-xs text-gray-500 mt-2">+5% from last week</p>
</div>
</div>
<!-- Timer Section -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
<div class="bg-white rounded-lg shadow p-6 lg:col-span-1">
<div class="flex flex-col items-center">
<div class="timer-circle rounded-full flex items-center justify-center mb-6">
<div class="text-center">
<div class="text-4xl font-bold" id="timer-display">00:00:00</div>
<div class="text-gray-500 mt-2">No task running</div>
</div>
</div>
<div class="w-full mb-4">
<select class="w-full bg-white border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
<option disabled selected>Select project</option>
<option>Website Redesign</option>
<option>Mobile App Development</option>
<option>Marketing Campaign</option>
<option>Client Meeting</option>
</select>
</div>
<div class="w-full mb-4">
<input type="text" placeholder="What are you working on?" class="w-full bg-white border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
</div>
<div class="flex space-x-3 w-full">
<button id="start-timer" class="flex-1 bg-indigo-600 hover:bg-indigo-700 text-white px-4 py-3 rounded-lg flex items-center justify-center space-x-2 pulse-animation">
<i class="fas fa-play"></i>
<span>Start</span>
</button>
<button id="stop-timer" class="flex-1 bg-gray-200 hover:bg-gray-300 text-gray-700 px-4 py-3 rounded-lg flex items-center justify-center space-x-2" disabled>
<i class="fas fa-stop"></i>
<span>Stop</span>
</button>
</div>
<div class="mt-4 flex items-center space-x-2 text-sm text-gray-500">
<i class="fas fa-tag"></i>
<span>Add tags</span>
<i class="fas fa-bolt"></i>
<span>Set billable</span>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6 lg:col-span-2">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-semibold">Recent Time Entries</h3>
<button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">
View All
</button>
</div>
<div class="space-y-4">
<div class="task-item flex items-center justify-between p-3 hover:bg-gray-50 rounded-lg">
<div class="flex items-center space-x-3">
<div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center text-blue-600">
<i class="fas fa-code"></i>
</div>
<div>
<div class="font-medium">Frontend Development</div>
<div class="text-sm text-gray-500">Website Redesign</div>
</div>
</div>
<div class="text-right">
<div class="font-medium">2h 45m</div>
<div class="text-sm text-gray-500">Today, 10:30 AM</div>
</div>
<div class="task-actions flex space-x-2">
<button class="text-gray-400 hover:text-indigo-600">
<i class="fas fa-pencil-alt"></i>
</button>
<button class="text-gray-400 hover:text-red-600">
<i class="fas fa-trash"></i>
</button>
</div>
</div>
<div class="task-item flex items-center justify-between p-3 hover:bg-gray-50 rounded-lg">
<div class="flex items-center space-x-3">
<div class="w-8 h-8 rounded-full bg-green-100 flex items-center justify-center text-green-600">
<i class="fas fa-comments"></i>
</div>
<div>
<div class="font-medium">Client Meeting</div>
<div class="text-sm text-gray-500">Acme Corp</div>
</div>
</div>
<div class="text-right">
<div class="font-medium">1h 30m</div>
<div class="text-sm text-gray-500">Today, 2:15 PM</div>
</div>
<div class="task-actions flex space-x-2">
<button class="text-gray-400 hover:text-indigo-600">
<i class="fas fa-pencil-alt"></i>
</button>
<button class="text-gray-400 hover:text-red-600">
<i class="fas fa-trash"></i>
</button>
</div>
</div>
<div class="task-item flex items-center justify-between p-3 hover:bg-gray-50 rounded-lg">
<div class="flex items-center space-x-3">
<div class="w-8 h-8 rounded-full bg-purple-100 flex items-center justify-center text-purple-600">
<i class="fas fa-mobile-alt"></i>
</div>
<div>
<div class="font-medium">App UI Design</div>
<div class="text-sm text-gray-500">Mobile App</div>
</div>
</div>
<div class="text-right">
<div class="font-medium">3h 12m</div>
<div class="text-sm text-gray-500">Yesterday</div>
</div>
<div class="task-actions flex space-x-2">
<button class="text-gray-400 hover:text-indigo-600">
<i class="fas fa-pencil-alt"></i>
</button>
<button class="text-gray-400 hover:text-red-600">
<i class="fas fa-trash"></i>
</button>
</div>
</div>
<div class="task-item flex items-center justify-between p-3 hover:bg-gray-50 rounded-lg">
<div class="flex items-center space-x-3">
<div class="w-8 h-8 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-600">
<i class="fas fa-envelope"></i>
</div>
<div>
<div class="font-medium">Email Correspondence</div>
<div class="text-sm text-gray-500">General</div>
</div>
</div>
<div class="text-right">
<div class="font-medium">45m</div>
<div class="text-sm text-gray-500">Yesterday</div>
</div>
<div class="task-actions flex space-x-2">
<button class="text-gray-400 hover:text-indigo-600">
<i class="fas fa-pencil-alt"></i>
</button>
<button class="text-gray-400 hover:text-red-600">
<i class="fas fa-trash"></i>
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Charts and Analytics -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
<div class="bg-white rounded-lg shadow p-6">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-semibold">Weekly Productivity</h3>
<div class="flex space-x-2">
<button class="px-3 py-1 text-sm rounded-lg bg-indigo-50 text-indigo-600">Hours</button>
<button class="px-3 py-1 text-sm rounded-lg text-gray-500 hover:bg-gray-100">Projects</button>
<button class="px-3 py-1 text-sm rounded-lg text-gray-500 hover:bg-gray-100">Team</button>
</div>
</div>
<div class="chart-container">
<canvas id="productivityChart"></canvas>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-semibold">Project Distribution</h3>
<button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">
View Details
</button>
</div>
<div class="chart-container">
<canvas id="projectChart"></canvas>
</div>
</div>
</div>
<!-- Team Activity -->
<div class="bg-white rounded-lg shadow p-6 mb-6">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-semibold">Team Activity</h3>
<button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">
View All
</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">Member</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Current Task</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Time Tracked</th>
<th scope="col" class="px-6 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-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/12.jpg" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Sarah Johnson</div>
<div class="text-sm text-gray-500">Frontend Developer</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Implementing new UI components</div>
<div class="text-sm text-gray-500">Website Redesign</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">4h 23m</div>
<div class="text-sm text-gray-500">Today</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>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/32.jpg" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Michael Chen</div>
<div class="text-sm text-gray-500">Backend Developer</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">API integration</div>
<div class="text-sm text-gray-500">Mobile App</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">6h 15m</div>
<div class="text-sm text-gray-500">Today</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>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/44.jpg" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Emily Rodriguez</div>
<div class="text-sm text-gray-500">UX Designer</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Wireframing new features</div>
<div class="text-sm text-gray-500">Mobile App</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">3h 48m</div>
<div class="text-sm text-gray-500">Today</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">
Paused
</span>
</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">
<img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/67.jpg" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">David Wilson</div>
<div class="text-sm text-gray-500">Project Manager</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Client meeting</div>
<div class="text-sm text-gray-500">Acme Corp</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">1h 30m</div>
<div class="text-sm text-gray-500">Today</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-red-100 text-red-800">
Offline
</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</main>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
// Timer functionality
let timerInterval;
let seconds = 0;
let isRunning = false;
const timerDisplay = document.getElementById('timer-display');
const startButton = document.getElementById('start-timer');
const stopButton = document.getElementById('stop-timer');
const totalTracked = document.getElementById('total-tracked');
function formatTime(totalSeconds) {
const hours = Math.floor(totalSeconds / 3600);
const minutes = Math.floor((totalSeconds % 3600) / 60);
const secs = totalSeconds % 60;
return [
hours.toString().padStart(2, '0'),
minutes.toString().padStart(2, '0'),
secs.toString().padStart(2, '0')
].join(':');
}
function updateTimerDisplay() {
timerDisplay.textContent = formatTime(seconds);
}
startButton.addEventListener('click', () => {
if (!isRunning) {
isRunning = true;
startButton.disabled = true;
stopButton.disabled = false;
startButton.classList.remove('pulse-animation');
timerInterval = setInterval(() => {
seconds++;
updateTimerDisplay();
// Update total tracked time (simulated)
if (seconds % 5 === 0) {
const currentTotal = totalTracked.textContent.split(' ');
let [h, m] = currentTotal[0].split('h');
m = m.replace('m', '');
let totalMinutes = parseInt(h) * 60 + parseInt(m);
totalMinutes += 1; // Add 1 minute every 5 seconds for demo
const newHours = Math.floor(totalMinutes / 60);
const newMinutes = totalMinutes % 60;
totalTracked.textContent = `${newHours}h ${newMinutes}m`;
}
}, 1000);
}
});
stopButton.addEventListener('click', () => {
if (isRunning) {
clearInterval(timerInterval);
isRunning = false;
startButton.disabled = false;
stopButton.disabled = true;
startButton.classList.add('pulse-animation');
// Reset timer display but keep the seconds for demonstration
// In a real app, you would save this time entry
}
});
// Initialize charts
document.addEventListener('DOMContentLoaded', function() {
// Productivity Chart
const productivityCtx = document.getElementById('productivityChart').getContext('2d');
const productivityChart = new Chart(productivityCtx, {
type: 'line',
data: {
labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
datasets: [
{
label: 'Hours Tracked',
data: [5.2, 6.8, 7.1, 6.5, 8.2, 3.0, 1.5],
borderColor: '#667eea',
backgroundColor: 'rgba(102, 126, 234, 0.1)',
borderWidth: 2,
fill: true,
tension: 0.4
},
{
label: 'Productivity %',
data: [72, 78, 82, 75, 85, 65, 40],
borderColor: '#9f7aea',
backgroundColor: 'rgba(159, 122, 234, 0.1)',
borderWidth: 2,
fill: true,
tension: 0.4,
borderDash: [5, 5]
}
]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
position: 'top',
},
tooltip: {
mode: 'index',
intersect: false,
}
},
scales: {
y: {
beginAtZero: true,
max: 10,
ticks: {
callback: function(value) {
return value + (this.scale.id === 'y' ? 'h' : '%');
}
}
}
}
}
});
// Project Distribution Chart
const projectCtx = document.getElementById('projectChart').getContext('2d');
const projectChart = new Chart(projectCtx, {
type: 'doughnut',
data: {
labels: ['Website Redesign', 'Mobile App', 'Marketing', 'Client Meetings', 'Administrative'],
datasets: [{
data: [35, 25, 15, 15, 10],
backgroundColor: [
'#667eea',
'#764ba2',
'#6b46c1',
'#a78bfa',
'#c4b5fd'
],
borderWidth: 0
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
position: 'right',
},
tooltip: {
callbacks: {
label: function(context) {
const label = context.label || '';
const value = context.raw || 0;
const total = context.dataset.data.reduce((a, b) => a + b, 0);
const percentage = Math.round((value / total) * 100);
return `${label}: ${value}h (${percentage}%)`;
}
}
}
},
cutout: '70%'
}
});
});
</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=Samsap0u1/timetracker" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>