taskflow-dashboard / index.html
mvbhr's picture
criar a página de Calendar
0410d4d verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TaskFlow Dashboard</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<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>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Inter', sans-serif;
background-color: #f9fafb;
}
.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);
}
.progress-bar {
transition: width 0.5s ease-in-out;
}
.floating-element {
animation: float 6s ease-in-out infinite;
}
@keyframes float {
0% { transform: translateY(0px); }
50% { transform: translateY(-10px); }
100% { transform: translateY(0px); }
}
</style>
</head>
<body class="bg-gray-50">
<!-- Navigation -->
<nav class="bg-white shadow-sm">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between h-16">
<div class="flex items-center">
<div class="flex-shrink-0 flex items-center">
<div class="h-8 w-8 rounded-full bg-indigo-600 flex items-center justify-center">
<i data-feather="layers" class="text-white"></i>
</div>
<span class="ml-2 text-xl font-bold text-gray-900">TaskFlow</span>
</div>
<div class="hidden md:ml-6 md:flex md:space-x-8">
<a href="#" class="border-indigo-500 text-gray-900 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Dashboard</a>
<a href="projects.html" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Projects</a>
<a href="tasks.html" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Tasks</a>
<a href="calendar.html" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Calendar</a>
</div>
</div>
<div class="flex items-center">
<button class="bg-white p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none">
<i data-feather="bell"></i>
</button>
<div class="ml-3 relative">
<div class="flex items-center space-x-3 cursor-pointer">
<div class="h-8 w-8 rounded-full bg-indigo-100 flex items-center justify-center">
<span class="text-indigo-800 font-medium">U</span>
</div>
<span class="text-sm font-medium text-gray-700">User</span>
</div>
</div>
</div>
</div>
</div>
</nav>
<!-- Main Content -->
<main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<!-- Welcome Section -->
<div class="mb-8">
<h1 class="text-3xl font-bold text-gray-900">Welcome back, User!</h1>
<p class="mt-2 text-gray-600">Here's what's happening with your projects today.</p>
</div>
<!-- Stats Overview -->
<div class="grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-4 mb-8">
<div class="bg-white overflow-hidden shadow rounded-lg card-hover transition-all duration-300">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-indigo-100 rounded-md p-3">
<i data-feather="folder" class="h-6 w-6 text-indigo-600"></i>
</div>
<div class="ml-5 w-0 flex-1">
<dl>
<dt class="text-sm font-medium text-gray-500 truncate">Active Projects</dt>
<dd class="flex items-baseline">
<div class="text-2xl font-semibold text-gray-900">12</div>
</dd>
</dl>
</div>
</div>
</div>
</div>
<div class="bg-white overflow-hidden shadow rounded-lg card-hover transition-all duration-300">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-green-100 rounded-md p-3">
<i data-feather="check-circle" class="h-6 w-6 text-green-600"></i>
</div>
<div class="ml-5 w-0 flex-1">
<dl>
<dt class="text-sm font-medium text-gray-500 truncate">Completed Tasks</dt>
<dd class="flex items-baseline">
<div class="text-2xl font-semibold text-gray-900">24</div>
</dd>
</dl>
</div>
</div>
</div>
</div>
<div class="bg-white overflow-hidden shadow rounded-lg card-hover transition-all duration-300">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-yellow-100 rounded-md p-3">
<i data-feather="clock" class="h-6 w-6 text-yellow-600"></i>
</div>
<div class="ml-5 w-0 flex-1">
<dl>
<dt class="text-sm font-medium text-gray-500 truncate">Pending Tasks</dt>
<dd class="flex items-baseline">
<div class="text-2xl font-semibold text-gray-900">8</div>
</dd>
</dl>
</div>
</div>
</div>
</div>
<div class="bg-white overflow-hidden shadow rounded-lg card-hover transition-all duration-300">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-red-100 rounded-md p-3">
<i data-feather="alert-circle" class="h-6 w-6 text-red-600"></i>
</div>
<div class="ml-5 w-0 flex-1">
<dl>
<dt class="text-sm font-medium text-gray-500 truncate">Overdue Tasks</dt>
<dd class="flex items-baseline">
<div class="text-2xl font-semibold text-gray-900">3</div>
</dd>
</dl>
</div>
</div>
</div>
</div>
</div>
<!-- Quick Actions -->
<div class="mb-8">
<h2 class="text-lg font-medium text-gray-900 mb-4">Quick Actions</h2>
<div class="grid grid-cols-2 md:grid-cols-5 gap-4">
<button class="flex flex-col items-center justify-center p-4 bg-white rounded-lg shadow hover:bg-indigo-50 transition-colors duration-200">
<div class="bg-indigo-100 rounded-full p-3 mb-2">
<i data-feather="plus-square" class="h-6 w-6 text-indigo-600"></i>
</div>
<span class="text-sm font-medium text-gray-700">New Project</span>
</button>
<button class="flex flex-col items-center justify-center p-4 bg-white rounded-lg shadow hover:bg-indigo-50 transition-colors duration-200">
<div class="bg-indigo-100 rounded-full p-3 mb-2">
<i data-feather="check-square" class="h-6 w-6 text-indigo-600"></i>
</div>
<span class="text-sm font-medium text-gray-700">Add Task</span>
</button>
<button class="flex flex-col items-center justify-center p-4 bg-white rounded-lg shadow hover:bg-indigo-50 transition-colors duration-200">
<div class="bg-indigo-100 rounded-full p-3 mb-2">
<i data-feather="link" class="h-6 w-6 text-indigo-600"></i>
</div>
<span class="text-sm font-medium text-gray-700">Add Link</span>
</button>
<button class="flex flex-col items-center justify-center p-4 bg-white rounded-lg shadow hover:bg-indigo-50 transition-colors duration-200">
<div class="bg-indigo-100 rounded-full p-3 mb-2">
<i data-feather="file-text" class="h-6 w-6 text-indigo-600"></i>
</div>
<span class="text-sm font-medium text-gray-700">New Note</span>
</button>
<button class="flex flex-col items-center justify-center p-4 bg-white rounded-lg shadow hover:bg-indigo-50 transition-colors duration-200">
<div class="bg-indigo-100 rounded-full p-3 mb-2">
<i data-feather="upload" class="h-6 w-6 text-indigo-600"></i>
</div>
<span class="text-sm font-medium text-gray-700">Upload File</span>
</button>
</div>
</div>
<!-- Recent Activity & Progress -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
<!-- Recent Activity -->
<div class="bg-white shadow rounded-lg">
<div class="px-4 py-5 sm:px-6 border-b border-gray-200">
<h3 class="text-lg leading-6 font-medium text-gray-900">Recent Activity</h3>
</div>
<ul class="divide-y divide-gray-200">
<li class="px-4 py-4 sm:px-6">
<div class="flex items-center">
<div class="bg-green-100 rounded-full p-2 mr-3">
<i data-feather="check" class="h-4 w-4 text-green-600"></i>
</div>
<div class="flex-1 min-w-0">
<p class="text-sm font-medium text-gray-900 truncate">Completed "Design Homepage"</p>
<p class="text-sm text-gray-500 truncate">in Project Alpha</p>
</div>
<div class="text-sm text-gray-500">2h ago</div>
</div>
</li>
<li class="px-4 py-4 sm:px-6">
<div class="flex items-center">
<div class="bg-blue-100 rounded-full p-2 mr-3">
<i data-feather="folder-plus" class="h-4 w-4 text-blue-600"></i>
</div>
<div class="flex-1 min-w-0">
<p class="text-sm font-medium text-gray-900 truncate">Created new project "Beta Launch"</p>
<p class="text-sm text-gray-500 truncate">by You</p>
</div>
<div class="text-sm text-gray-500">5h ago</div>
</div>
</li>
<li class="px-4 py-4 sm:px-6">
<div class="flex items-center">
<div class="bg-yellow-100 rounded-full p-2 mr-3">
<i data-feather="edit" class="h-4 w-4 text-yellow-600"></i>
</div>
<div class="flex-1 min-w-0">
<p class="text-sm font-medium text-gray-900 truncate">Updated task description</p>
<p class="text-sm text-gray-500 truncate">for "API Integration"</p>
</div>
<div class="text-sm text-gray-500">Yesterday</div>
</div>
</li>
<li class="px-4 py-4 sm:px-6">
<div class="flex items-center">
<div class="bg-purple-100 rounded-full p-2 mr-3">
<i data-feather="user-plus" class="h-4 w-4 text-purple-600"></i>
</div>
<div class="flex-1 min-w-0">
<p class="text-sm font-medium text-gray-900 truncate">Added team member to project</p>
<p class="text-sm text-gray-500 truncate">Project Gamma</p>
</div>
<div class="text-sm text-gray-500">2 days ago</div>
</div>
</li>
</ul>
<div class="px-4 py-4 sm:px-6 bg-gray-50 text-center">
<a href="#" class="text-sm font-medium text-indigo-600 hover:text-indigo-500">View all activity</a>
</div>
</div>
<!-- Progress Overview -->
<div class="bg-white shadow rounded-lg">
<div class="px-4 py-5 sm:px-6 border-b border-gray-200">
<h3 class="text-lg leading-6 font-medium text-gray-900">Project Progress</h3>
</div>
<div class="p-6">
<div class="mb-6">
<div class="flex justify-between mb-1">
<span class="text-base font-medium text-gray-700">Website Redesign</span>
<span class="text-sm font-medium text-gray-700">75%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2.5">
<div class="bg-indigo-600 h-2.5 rounded-full progress-bar" style="width: 75%"></div>
</div>
</div>
<div class="mb-6">
<div class="flex justify-between mb-1">
<span class="text-base font-medium text-gray-700">Mobile App Development</span>
<span class="text-sm font-medium text-gray-700">45%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2.5">
<div class="bg-green-600 h-2.5 rounded-full progress-bar" style="width: 45%"></div>
</div>
</div>
<div class="mb-6">
<div class="flex justify-between mb-1">
<span class="text-base font-medium text-gray-700">Marketing Campaign</span>
<span class="text-sm font-medium text-gray-700">90%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2.5">
<div class="bg-yellow-500 h-2.5 rounded-full progress-bar" style="width: 90%"></div>
</div>
</div>
<div>
<div class="flex justify-between mb-1">
<span class="text-base font-medium text-gray-700">Client Onboarding</span>
<span class="text-sm font-medium text-gray-700">30%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2.5">
<div class="bg-red-600 h-2.5 rounded-full progress-bar" style="width: 30%"></div>
</div>
</div>
</div>
</div>
</div>
<!-- Upcoming Deadlines -->
<div class="mt-8">
<div class="bg-white shadow rounded-lg">
<div class="px-4 py-5 sm:px-6 border-b border-gray-200">
<h3 class="text-lg leading-6 font-medium text-gray-900">Upcoming Deadlines</h3>
</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">Task</th>
<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">Due Date</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Priority</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-gray-900">Finalize homepage design</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<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-500">Tomorrow</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">High</span>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-gray-900">API documentation</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-500">Mobile App Development</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-500">Jun 15</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">Medium</span>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-gray-900">Social media assets</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-500">Marketing Campaign</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-500">Jun 18</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">Low</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</main>
<script>
feather.replace();
// Animate progress bars on load
document.addEventListener('DOMContentLoaded', function() {
const progressBars = document.querySelectorAll('.progress-bar');
progressBars.forEach(bar => {
const width = bar.style.width;
bar.style.width = '0';
setTimeout(() => {
bar.style.width = width;
}, 300);
});
});
</script>
</body>
</html>