Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Tasks - TaskFlow</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> | |
| <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); | |
| } | |
| .priority-high { | |
| background-color: #fee2e2; | |
| color: #dc2626; | |
| } | |
| .priority-medium { | |
| background-color: #fef3c7; | |
| color: #d97706; | |
| } | |
| .priority-low { | |
| background-color: #dcfce7; | |
| color: #16a34a; | |
| } | |
| .status-todo { | |
| background-color: #f3f4f6; | |
| color: #374151; | |
| } | |
| .status-in-progress { | |
| background-color: #dbeafe; | |
| color: #1e40af; | |
| } | |
| .status-completed { | |
| background-color: #dcfce7; | |
| color: #166534; | |
| } | |
| .progress-bar { | |
| transition: width 0.5s ease-in-out; | |
| } | |
| </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="index.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">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-indigo-500 text-gray-900 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"> | |
| <!-- Header --> | |
| <div class="mb-8"> | |
| <div class="flex justify-between items-center"> | |
| <div> | |
| <h1 class="text-3xl font-bold text-gray-900">Tasks</h1> | |
| <p class="mt-2 text-gray-600">Manage your tasks and track progress</p> | |
| </div> | |
| <button class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none"> | |
| <i data-feather="plus" class="mr-2 h-4 w-4"></i> | |
| New Task | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Filters and Search --> | |
| <div class="mb-6 flex flex-col sm:flex-row gap-4"> | |
| <div class="flex-1"> | |
| <input type="text" placeholder="Search tasks..." class="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent"> | |
| </div> | |
| <div class="flex gap-2"> | |
| <select class="px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent"> | |
| <option>All Status</option> | |
| <option>To Do</option> | |
| <option>In Progress</option> | |
| <option>Completed</option> | |
| </select> | |
| <select class="px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent"> | |
| <option>All Priority</option> | |
| <option>High</option> | |
| <option>Medium</option> | |
| <option>Low</option> | |
| </select> | |
| </div> | |
| </div> | |
| <!-- Tasks List --> | |
| <div class="bg-white shadow rounded-lg overflow-hidden"> | |
| <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">All Tasks</h3> | |
| </div> | |
| <ul class="divide-y divide-gray-200"> | |
| <!-- Task 1 --> | |
| <li class="px-4 py-4 sm:px-6 hover:bg-gray-50 transition-colors duration-150"> | |
| <div class="flex items-center justify-between"> | |
| <div class="flex items-center"> | |
| <input type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded"> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium text-gray-900">Design homepage layout</p> | |
| <p class="text-sm text-gray-500">Website Redesign</p> | |
| </div> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium priority-high"> | |
| High | |
| </span> | |
| <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium status-todo"> | |
| To Do | |
| </span> | |
| <span class="text-sm text-gray-500">Due: Tomorrow</span> | |
| </div> | |
| </div> | |
| </li> | |
| <!-- Task 2 --> | |
| <li class="px-4 py-4 sm:px-6 hover:bg-gray-50 transition-colors duration-150"> | |
| <div class="flex items-center justify-between"> | |
| <div class="flex items-center"> | |
| <input type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded"> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium text-gray-900">API integration testing</p> | |
| <p class="text-sm text-gray-500">Mobile App Development</p> | |
| </div> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium priority-medium"> | |
| Medium | |
| </span> | |
| <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium status-in-progress"> | |
| In Progress | |
| </span> | |
| <span class="text-sm text-gray-500">Due: Jun 15</span> | |
| </div> | |
| </div> | |
| </li> | |
| <!-- Task 3 --> | |
| <li class="px-4 py-4 sm:px-6 hover:bg-gray-50 transition-colors duration-150"> | |
| <div class="flex items-center justify-between"> | |
| <div class="flex items-center"> | |
| <input type="checkbox" checked class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded"> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium text-gray-900">Create social media assets</p> | |
| <p class="text-sm text-gray-500">Marketing Campaign</p> | |
| </div> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium priority-low"> | |
| Low | |
| </span> | |
| <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium status-completed"> | |
| Completed | |
| </span> | |
| <span class="text-sm text-gray-500">Completed: May 20</span> | |
| </div> | |
| </div> | |
| </li> | |
| <!-- Task 4 --> | |
| <li class="px-4 py-4 sm:px-6 hover:bg-gray-50 transition-colors duration-150"> | |
| <div class="flex items-center justify-between"> | |
| <div class="flex items-center"> | |
| <input type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded"> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium text-gray-900">Client onboarding documentation</p> | |
| <p class="text-sm text-gray-500">Client Onboarding</p> | |
| </div> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium priority-medium"> | |
| Medium | |
| </span> | |
| <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium status-todo"> | |
| To Do | |
| </span> | |
| <span class="text-sm text-gray-500">Due: Jun 25</span> | |
| </div> | |
| </div> | |
| </li> | |
| <!-- Task 5 --> | |
| <li class="px-4 py-4 sm:px-6 hover:bg-gray-50 transition-colors duration-150"> | |
| <div class="flex items-center justify-between"> | |
| <div class="flex items-center"> | |
| <input type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded"> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium text-gray-900">Database optimization</p> | |
| <p class="text-sm text-gray-500">E-commerce Platform</p> | |
| </div> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium priority-high"> | |
| High | |
| </span> | |
| <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium status-in-progress"> | |
| In Progress | |
| </span> | |
| <span class="text-sm text-gray-500">Due: Jun 20</span> | |
| </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">Load more tasks</a> | |
| </div> | |
| </div> | |
| <!-- Task Stats --> | |
| <div class="mt-8 grid grid-cols-1 md:grid-cols-3 gap-6"> | |
| <div class="bg-white overflow-hidden shadow rounded-lg"> | |
| <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="check-square" 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">Total Tasks</dt> | |
| <dd class="flex items-baseline"> | |
| <div class="text-2xl font-semibold text-gray-900">42</div> | |
| </dd> | |
| </dl> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white overflow-hidden shadow rounded-lg"> | |
| <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</dt> | |
| <dd class="flex items-baseline"> | |
| <div class="text-2xl font-semibold text-gray-900">24</div> | |
| </dd> | |
| </dl> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white overflow-hidden shadow rounded-lg"> | |
| <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="clock" 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</dt> | |
| <dd class="flex items-baseline"> | |
| <div class="text-2xl font-semibold text-gray-900">3</div> | |
| </dd> | |
| </dl> | |
| </div> | |
| </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> |