File size: 28,167 Bytes
3771fe5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>EventSync - Calendar Synchronization</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>
/* Custom scrollbar */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: #888;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #555;
}
/* Animation for notifications */
@keyframes slideIn {
from { transform: translateX(100%); }
to { transform: translateX(0); }
}
.notification {
animation: slideIn 0.3s ease-out;
}
/* Calendar day hover effect */
.calendar-day:hover {
transform: scale(1.05);
transition: transform 0.2s;
}
/* Loading spinner */
.spinner {
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
</head>
<body class="bg-gray-50 font-sans">
<!-- Header -->
<header class="bg-indigo-600 text-white shadow-lg">
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
<div class="flex items-center space-x-2">
<i class="fas fa-calendar-alt text-2xl"></i>
<h1 class="text-2xl font-bold">EventSync</h1>
</div>
<nav class="hidden md:flex space-x-6">
<a href="#" class="hover:text-indigo-200 transition">Dashboard</a>
<a href="#" class="hover:text-indigo-200 transition">Calendar</a>
<a href="#" class="hover:text-indigo-200 transition">Settings</a>
<a href="#" class="hover:text-indigo-200 transition">Help</a>
</nav>
<div class="flex items-center space-x-4">
<button class="md:hidden text-white focus:outline-none">
<i class="fas fa-bars text-xl"></i>
</button>
<div class="relative">
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Profile" class="w-10 h-10 rounded-full cursor-pointer border-2 border-white">
<div class="absolute -top-1 -right-1 bg-green-400 w-3 h-3 rounded-full"></div>
</div>
</div>
</div>
</header>
<!-- Mobile Menu -->
<div class="md:hidden bg-indigo-700 text-white hidden" id="mobileMenu">
<div class="container mx-auto px-4 py-2 flex flex-col space-y-3">
<a href="#" class="py-2 border-b border-indigo-600">Dashboard</a>
<a href="#" class="py-2 border-b border-indigo-600">Calendar</a>
<a href="#" class="py-2 border-b border-indigo-600">Settings</a>
<a href="#" class="py-2">Help</a>
</div>
</div>
<!-- Main Content -->
<main class="container mx-auto px-4 py-8">
<div class="flex flex-col lg:flex-row gap-8">
<!-- Sidebar -->
<aside class="lg:w-1/4 bg-white rounded-lg shadow-md p-6 h-fit">
<h2 class="text-xl font-semibold mb-4 text-gray-800">Connected Calendars</h2>
<div class="space-y-4 mb-6">
<div class="flex items-center justify-between p-3 bg-blue-50 rounded-lg">
<div class="flex items-center space-x-3">
<i class="fab fa-google text-red-500 text-xl"></i>
<span class="font-medium">Google Calendar</span>
</div>
<span class="text-green-500 text-sm font-medium">Connected</span>
</div>
<div class="flex items-center justify-between p-3 bg-blue-50 rounded-lg">
<div class="flex items-center space-x-3">
<i class="fab fa-microsoft text-blue-600 text-xl"></i>
<span class="font-medium">Outlook</span>
</div>
<span class="text-green-500 text-sm font-medium">Connected</span>
</div>
<div class="flex items-center justify-between p-3 bg-blue-50 rounded-lg">
<div class="flex items-center space-x-3">
<i class="fab fa-apple text-gray-800 text-xl"></i>
<span class="font-medium">iCloud</span>
</div>
<button class="text-indigo-600 text-sm font-medium hover:underline">Connect</button>
</div>
</div>
<div class="mb-6">
<h3 class="text-lg font-medium mb-3 text-gray-800">Sync Settings</h3>
<div class="space-y-3">
<label class="flex items-center space-x-2 cursor-pointer">
<input type="checkbox" class="form-checkbox h-5 w-5 text-indigo-600 rounded" checked>
<span>Auto-sync every 15 minutes</span>
</label>
<label class="flex items-center space-x-2 cursor-pointer">
<input type="checkbox" class="form-checkbox h-5 w-5 text-indigo-600 rounded" checked>
<span>Notify about conflicts</span>
</label>
<label class="flex items-center space-x-2 cursor-pointer">
<input type="checkbox" class="form-checkbox h-5 w-5 text-indigo-600 rounded">
<span>Auto-resolve simple conflicts</span>
</label>
</div>
</div>
<button class="w-full bg-indigo-600 text-white py-2 px-4 rounded-lg hover:bg-indigo-700 transition flex items-center justify-center space-x-2">
<i class="fas fa-sync-alt"></i>
<span>Sync Now</span>
</button>
</aside>
<!-- Main Dashboard -->
<div class="lg:w-3/4">
<!-- Status Cards -->
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
<div class="bg-white rounded-lg shadow p-6 flex items-center space-x-4">
<div class="bg-green-100 p-3 rounded-full">
<i class="fas fa-calendar-check text-green-600 text-xl"></i>
</div>
<div>
<p class="text-gray-500 text-sm">Synced Events</p>
<h3 class="text-2xl font-bold">142</h3>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6 flex items-center space-x-4">
<div class="bg-blue-100 p-3 rounded-full">
<i class="fas fa-exclamation-triangle text-blue-600 text-xl"></i>
</div>
<div>
<p class="text-gray-500 text-sm">Current Conflicts</p>
<h3 class="text-2xl font-bold">3</h3>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6 flex items-center space-x-4">
<div class="bg-purple-100 p-3 rounded-full">
<i class="fas fa-clock text-purple-600 text-xl"></i>
</div>
<div>
<p class="text-gray-500 text-sm">Last Sync</p>
<h3 class="text-xl font-bold">2 min ago</h3>
</div>
</div>
</div>
<!-- Conflict Resolution Section -->
<div class="bg-white rounded-lg shadow-md overflow-hidden mb-8">
<div class="bg-indigo-600 text-white px-6 py-4 flex justify-between items-center">
<h2 class="text-xl font-semibold">Event Conflicts</h2>
<span class="bg-white text-indigo-600 px-3 py-1 rounded-full text-sm font-medium">3 New</span>
</div>
<div class="divide-y divide-gray-200">
<!-- Conflict 1 -->
<div class="p-6">
<div class="flex justify-between items-start mb-3">
<h3 class="font-medium text-lg text-gray-800">Team Meeting Conflict</h3>
<span class="bg-red-100 text-red-800 px-2 py-1 rounded text-xs font-medium">High Priority</span>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-4">
<div class="border-l-4 border-blue-500 pl-3">
<p class="text-sm text-gray-500">Google Calendar</p>
<p class="font-medium">Mon, Jun 5 • 2:00-3:30 PM</p>
</div>
<div class="border-l-4 border-red-500 pl-3">
<p class="text-sm text-gray-500">Outlook</p>
<p class="font-medium">Mon, Jun 5 • 2:30-4:00 PM</p>
</div>
<div class="border-l-4 border-gray-500 pl-3">
<p class="text-sm text-gray-500">Suggested Resolution</p>
<p class="font-medium">Mon, Jun 5 • 4:00-5:30 PM</p>
</div>
</div>
<div class="flex flex-wrap gap-3">
<button class="bg-green-500 text-white px-4 py-2 rounded-lg hover:bg-green-600 transition flex items-center space-x-2">
<i class="fas fa-check"></i>
<span>Accept Suggestion</span>
</button>
<button class="bg-blue-500 text-white px-4 py-2 rounded-lg hover:bg-blue-600 transition flex items-center space-x-2">
<i class="fas fa-pencil-alt"></i>
<span>Custom Time</span>
</button>
<button class="bg-gray-200 text-gray-700 px-4 py-2 rounded-lg hover:bg-gray-300 transition flex items-center space-x-2">
<i class="fas fa-times"></i>
<span>Ignore Conflict</span>
</button>
</div>
</div>
<!-- Conflict 2 -->
<div class="p-6">
<div class="flex justify-between items-start mb-3">
<h3 class="font-medium text-lg text-gray-800">Dentist Appointment</h3>
<span class="bg-yellow-100 text-yellow-800 px-2 py-1 rounded text-xs font-medium">Medium Priority</span>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-4">
<div class="border-l-4 border-blue-500 pl-3">
<p class="text-sm text-gray-500">Google Calendar</p>
<p class="font-medium">Wed, Jun 7 • 9:00-10:00 AM</p>
</div>
<div class="border-l-4 border-gray-500 pl-3">
<p class="text-sm text-gray-500">iCloud</p>
<p class="font-medium">Wed, Jun 7 • 10:30-11:30 AM</p>
</div>
<div class="border-l-4 border-gray-500 pl-3">
<p class="text-sm text-gray-500">Suggested Resolution</p>
<p class="font-medium">Wed, Jun 7 • 10:30-11:30 AM</p>
</div>
</div>
<div class="flex flex-wrap gap-3">
<button class="bg-green-500 text-white px-4 py-2 rounded-lg hover:bg-green-600 transition flex items-center space-x-2">
<i class="fas fa-check"></i>
<span>Accept Suggestion</span>
</button>
<button class="bg-blue-500 text-white px-4 py-2 rounded-lg hover:bg-blue-600 transition flex items-center space-x-2">
<i class="fas fa-pencil-alt"></i>
<span>Custom Time</span>
</button>
</div>
</div>
</div>
</div>
<!-- Calendar Preview -->
<div class="bg-white rounded-lg shadow-md overflow-hidden">
<div class="bg-indigo-600 text-white px-6 py-4">
<h2 class="text-xl font-semibold">Upcoming Events</h2>
</div>
<div class="p-6">
<!-- Month Navigation -->
<div class="flex justify-between items-center mb-6">
<button class="text-indigo-600 hover:text-indigo-800 transition">
<i class="fas fa-chevron-left"></i>
</button>
<h3 class="text-xl font-semibold text-gray-800">June 2023</h3>
<button class="text-indigo-600 hover:text-indigo-800 transition">
<i class="fas fa-chevron-right"></i>
</button>
</div>
<!-- Calendar Grid -->
<div class="grid grid-cols-7 gap-2 mb-4">
<div class="text-center font-medium text-gray-500 py-2">Sun</div>
<div class="text-center font-medium text-gray-500 py-2">Mon</div>
<div class="text-center font-medium text-gray-500 py-2">Tue</div>
<div class="text-center font-medium text-gray-500 py-2">Wed</div>
<div class="text-center font-medium text-gray-500 py-2">Thu</div>
<div class="text-center font-medium text-gray-500 py-2">Fri</div>
<div class="text-center font-medium text-gray-500 py-2">Sat</div>
</div>
<div class="grid grid-cols-7 gap-2">
<!-- Calendar days would be generated dynamically in a real app -->
<!-- Week 1 -->
<div class="calendar-day bg-gray-100 rounded-lg p-2 h-24 text-right">28</div>
<div class="calendar-day bg-gray-100 rounded-lg p-2 h-24 text-right">29</div>
<div class="calendar-day bg-gray-100 rounded-lg p-2 h-24 text-right">30</div>
<div class="calendar-day bg-gray-100 rounded-lg p-2 h-24 text-right">31</div>
<div class="calendar-day bg-white border border-indigo-200 rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">
1
<div class="text-left text-xs mt-1 space-y-1 overflow-hidden">
<div class="bg-blue-100 text-blue-800 px-1 rounded truncate">Meeting 9am</div>
</div>
</div>
<div class="calendar-day bg-white border border-indigo-200 rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">
2
<div class="text-left text-xs mt-1 space-y-1 overflow-hidden">
<div class="bg-green-100 text-green-800 px-1 rounded truncate">Lunch 12pm</div>
</div>
</div>
<div class="calendar-day bg-white rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">3</div>
<!-- Week 2 -->
<div class="calendar-day bg-white rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">4</div>
<div class="calendar-day bg-white border border-indigo-200 rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">
5
<div class="text-left text-xs mt-1 space-y-1 overflow-hidden">
<div class="bg-red-100 text-red-800 px-1 rounded truncate">Team Meeting 2pm</div>
<div class="bg-purple-100 text-purple-800 px-1 rounded truncate">Call 4pm</div>
</div>
</div>
<div class="calendar-day bg-white rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">6</div>
<div class="calendar-day bg-white border border-indigo-200 rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">
7
<div class="text-left text-xs mt-1 space-y-1 overflow-hidden">
<div class="bg-yellow-100 text-yellow-800 px-1 rounded truncate">Dentist 10am</div>
</div>
</div>
<div class="calendar-day bg-white rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">8</div>
<div class="calendar-day bg-white rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">9</div>
<div class="calendar-day bg-white rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">10</div>
<!-- Week 3 -->
<div class="calendar-day bg-white rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">11</div>
<div class="calendar-day bg-white rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">12</div>
<div class="calendar-day bg-white rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">13</div>
<div class="calendar-day bg-white rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">14</div>
<div class="calendar-day bg-white rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">15</div>
<div class="calendar-day bg-white rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">16</div>
<div class="calendar-day bg-white rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">17</div>
<!-- Week 4 -->
<div class="calendar-day bg-white rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">18</div>
<div class="calendar-day bg-white rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">19</div>
<div class="calendar-day bg-white rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">20</div>
<div class="calendar-day bg-white rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">21</div>
<div class="calendar-day bg-white rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">22</div>
<div class="calendar-day bg-white rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">23</div>
<div class="calendar-day bg-white rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">24</div>
<!-- Week 5 -->
<div class="calendar-day bg-white rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">25</div>
<div class="calendar-day bg-white rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">26</div>
<div class="calendar-day bg-white rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">27</div>
<div class="calendar-day bg-white rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">28</div>
<div class="calendar-day bg-white rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">29</div>
<div class="calendar-day bg-white rounded-lg p-2 h-24 text-right cursor-pointer hover:bg-indigo-50 transition">30</div>
<div class="calendar-day bg-gray-100 rounded-lg p-2 h-24 text-right">1</div>
</div>
</div>
</div>
</div>
</div>
</main>
<!-- Notification -->
<div class="fixed bottom-4 right-4 space-y-3" id="notificationArea">
<div class="notification bg-white rounded-lg shadow-lg p-4 w-80 border-l-4 border-green-500 flex justify-between items-start">
<div>
<p class="font-medium text-gray-800">Sync Completed</p>
<p class="text-sm text-gray-600">3 events updated across all calendars</p>
</div>
<button class="text-gray-400 hover:text-gray-600">
<i class="fas fa-times"></i>
</button>
</div>
</div>
<!-- Footer -->
<footer class="bg-gray-100 border-t border-gray-200 py-6 mt-12">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="flex items-center space-x-2 mb-4 md:mb-0">
<i class="fas fa-calendar-alt text-indigo-600 text-xl"></i>
<span class="text-lg font-semibold text-gray-800">EventSync</span>
</div>
<div class="flex space-x-6">
<a href="#" class="text-gray-600 hover:text-indigo-600 transition">Privacy</a>
<a href="#" class="text-gray-600 hover:text-indigo-600 transition">Terms</a>
<a href="#" class="text-gray-600 hover:text-indigo-600 transition">Contact</a>
</div>
</div>
<div class="mt-4 text-center md:text-left text-sm text-gray-500">
© 2023 EventSync. All rights reserved.
</div>
</div>
</footer>
<script>
// Mobile menu toggle
document.querySelector('.md\\:hidden button').addEventListener('click', function() {
const menu = document.getElementById('mobileMenu');
menu.classList.toggle('hidden');
});
// Close notification
document.querySelector('#notificationArea button').addEventListener('click', function() {
this.closest('.notification').style.opacity = '0';
setTimeout(() => {
this.closest('.notification').remove();
}, 300);
});
// Calendar day click handler
document.querySelectorAll('.calendar-day').forEach(day => {
day.addEventListener('click', function() {
// In a real app, this would show event details
console.log('Day clicked:', this.textContent.trim());
});
});
// Conflict resolution buttons
document.querySelectorAll('.flex-wrap button').forEach(button => {
button.addEventListener('click', function() {
const action = this.textContent.trim();
const conflictTitle = this.closest('.p-6').querySelector('h3').textContent;
if (action === 'Accept Suggestion') {
showToast(`Accepted resolution for: ${conflictTitle}`);
} else if (action === 'Custom Time') {
// In a real app, this would open a time picker
showToast(`Opening custom time selector for: ${conflictTitle}`);
} else if (action === 'Ignore Conflict') {
showToast(`Ignored conflict for: ${conflictTitle}`);
}
});
});
// Helper function to show toast notifications
function showToast(message) {
const toast = document.createElement('div');
toast.className = 'notification bg-white rounded-lg shadow-lg p-4 w-80 border-l-4 border-blue-500 flex justify-between items-start';
toast.innerHTML = `
<div>
<p class="font-medium text-gray-800">Action Taken</p>
<p class="text-sm text-gray-600">${message}</p>
</div>
<button class="text-gray-400 hover:text-gray-600">
<i class="fas fa-times"></i>
</button>
`;
document.getElementById('notificationArea').prepend(toast);
// Auto-remove after 5 seconds
setTimeout(() => {
toast.style.opacity = '0';
setTimeout(() => toast.remove(), 300);
}, 5000);
// Add click handler to close button
toast.querySelector('button').addEventListener('click', function() {
toast.style.opacity = '0';
setTimeout(() => toast.remove(), 300);
});
}
</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=kizashix/eventsync" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |