Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Calendar - 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); | |
| } | |
| .calendar-day { | |
| transition: all 0.2s ease-in-out; | |
| } | |
| .calendar-day:hover { | |
| background-color: #f3f4f6; | |
| transform: scale(1.05); | |
| } | |
| .calendar-today { | |
| background-color: #4f46e5; | |
| color: white; | |
| } | |
| .event-high { | |
| border-left: 4px solid #dc2626; | |
| } | |
| .event-medium { | |
| border-left: 4px solid #d97706; | |
| } | |
| .event-low { | |
| border-left: 4px solid #16a34a; | |
| } | |
| </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-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="#" class="border-indigo-500 text-gray-900 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">Calendar</h1> | |
| <p class="mt-2 text-gray-600">View and manage your schedule</p> | |
| </div> | |
| <div class="flex gap-2"> | |
| <button class="inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none"> | |
| <i data-feather="plus" class="mr-2 h-4 w-4"></i> | |
| Add Event | |
| </button> | |
| <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="filter" class="mr-2 h-4 w-4"></i> | |
| Filter | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Calendar Navigation --> | |
| <div class="mb-6 flex items-center justify-between"> | |
| <div class="flex items-center gap-4"> | |
| <button class="p-2 rounded-full hover:bg-gray-100 transition-colors duration-150"> | |
| <i data-feather="chevron-left" class="h-4 w-4"></i> | |
| </button> | |
| <h2 class="text-xl font-semibold text-gray-900">June 2024</h2> | |
| <button class="p-2 rounded-full hover:bg-gray-100 transition-colors duration-150"> | |
| <i data-feather="chevron-right" class="h-4 w-4"></i> | |
| </button> | |
| </div> | |
| <div class="flex gap-2"> | |
| <button class="px-3 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"> | |
| Month | |
| </button> | |
| <button class="px-3 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50"> | |
| Week | |
| </button> | |
| <button class="px-3 py-2 text-sm font-medium text-white bg-indigo-600 rounded-md hover:bg-indigo-700"> | |
| Day | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Calendar View --> | |
| <div class="bg-white shadow rounded-lg overflow-hidden"> | |
| <!-- Week Days Header --> | |
| <div class="grid grid-cols-7 bg-gray-50 border-b border-gray-200"> | |
| <div class="py-3 text-center text-xs font-medium text-gray-500 uppercase tracking-wider">Sun</div> | |
| <div class="py-3 text-center text-xs font-medium text-gray-500 uppercase tracking-wider">Mon</div> | |
| <div class="py-3 text-center text-xs font-medium text-gray-500 uppercase tracking-wider">Tue</div> | |
| <div class="py-3 text-center text-xs font-medium text-gray-500 uppercase tracking-wider">Wed</div> | |
| <div class="py-3 text-center text-xs font-medium text-gray-500 uppercase tracking-wider">Thu</div> | |
| <div class="py-3 text-center text-xs font-medium text-gray-500 uppercase tracking-wider">Fri</div> | |
| <div class="py-3 text-center text-xs font-medium text-gray-500 uppercase tracking-wider">Sat</div> | |
| </div> | |
| <!-- Calendar Grid --> | |
| <div class="grid grid-cols-7 divide-x divide-y divide-gray-200"> | |
| <!-- Week 1 --> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">26</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-400">27</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-400">28</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-400">29</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-400">30</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-400">31</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">1</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">2</div> | |
| </div> | |
| </div> | |
| <!-- Week 2 --> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">3</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">4</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">5</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">6</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">7</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">8</div> | |
| </div> | |
| </div> | |
| <!-- Week 3 --> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">9</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">10</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">11</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">12</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">13</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">14</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">15</div> | |
| </div> | |
| </div> | |
| <!-- Week 4 --> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">16</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">17</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">18</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">19</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">20</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">21</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">22</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">23</div> | |
| </div> | |
| </div> | |
| <!-- Week 5 --> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">24</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">25</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">26</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">27</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">28</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">29</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-900">30</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-400">1</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-400">2</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-400">3</div> | |
| </div> | |
| <div class="min-h-32 p-2 calendar-day"> | |
| <div class="text-sm font-medium text-gray-400">4</div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Upcoming Events --> | |
| <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 Events</h3> | |
| </div> | |
| <div class="p-6"> | |
| <!-- Event 1 --> | |
| <div class="mb-4 p-4 bg-gray-50 rounded-lg event-high"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h4 class="text-sm font-medium text-gray-900">Finalize homepage design</h4> | |
| <p class="text-sm text-gray-500">Website Redesign - Due Tomorrow</p> | |
| </div> | |
| <span class="inline-flex items-center px-2 py-1 rounded text-xs font-medium bg-red-100 text-red-800">High Priority</span> | |
| </div> | |
| </div> | |
| <!-- Event 2 --> | |
| <div class="mb-4 p-4 bg-gray-50 rounded-lg event-medium"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h4 class="text-sm font-medium text-gray-900">API documentation</h4> | |
| <p class="text-sm text-gray-500">Mobile App Development - Due Jun 15</p> | |
| </div> | |
| <span class="inline-flex items-center px-2 py-1 rounded text-xs font-medium bg-yellow-100 text-yellow-800">Medium Priority</span> | |
| </div> | |
| </div> | |
| <!-- Event 3 --> | |
| <div class="mb-4 p-4 bg-gray-50 rounded-lg event-low"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h4 class="text-sm font-medium text-gray-900">Social media assets</h4> | |
| <p class="text-sm text-gray-500">Marketing Campaign - Due Jun 18</p> | |
| </div> | |
| <span class="inline-flex items-center px-2 py-1 rounded text-xs font-medium bg-green-100 text-green-800">Low Priority</span> | |
| </div> | |
| </div> | |
| <!-- Event 4 --> | |
| <div class="p-4 bg-gray-50 rounded-lg event-medium"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h4 class="text-sm font-medium text-gray-900">Client onboarding meeting</h4> | |
| <p class="text-sm text-gray-500">Client Onboarding - Jun 19, 10:00 AM</p> | |
| </div> | |
| <span class="inline-flex items-center px-2 py-1 rounded text-xs font-medium bg-yellow-100 text-yellow-800">Medium Priority</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Quick 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="calendar" 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">Events This Week</dt> | |
| <dd class="flex items-baseline"> | |
| <div class="text-2xl font-semibold text-gray-900">8</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 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">12</div> | |
| </dd> | |
| </dl> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| <script> | |
| feather.replace(); | |
| // Add event listeners for calendar navigation | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const prevBtn = document.querySelector('[data-feather="chevron-left"]').closest('button'); | |
| const nextBtn = document.querySelector('[data-feather="chevron-right"]').closest('button'); | |
| prevBtn.addEventListener('click', function() { | |
| // Logic for previous month/week/day | |
| console.log('Navigate to previous period'); | |
| }); | |
| nextBtn.addEventListener('click', function() { | |
| // Logic for next month/week/day | |
| console.log('Navigate to next period'); | |
| }); | |
| }); | |
| </script> | |
| </body> | |
| </html> |