Spaces:
Running
Running
File size: 25,984 Bytes
bcb54f1 | 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 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TimeBlock - Track Every 15 Minutes</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">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
:root {
--primary: #ff7a00;
--primary-light: #ff9e4a;
--primary-dark: #e56a00;
--glass: rgba(30, 30, 30, 0.5);
--glass-border: rgba(255, 255, 255, 0.1);
}
body {
font-family: 'Inter', sans-serif;
background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
color: #f0f0f0;
min-height: 100vh;
overflow-x: hidden;
}
.glass-panel {
background: var(--glass);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid var(--glass-border);
border-radius: 16px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.timer-circle {
width: 280px;
height: 280px;
border: 8px solid rgba(255, 122, 0, 0.2);
box-shadow: 0 0 30px rgba(255, 122, 0, 0.3);
}
.timer-progress {
stroke-dasharray: 942;
stroke-dashoffset: 0;
stroke: var(--primary);
stroke-width: 8;
transition: stroke-dashoffset 1s linear;
}
.glow-button {
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
box-shadow: 0 4px 20px rgba(255, 122, 0, 0.4);
transition: all 0.3s ease;
}
.glow-button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 25px rgba(255, 122, 0, 0.6);
}
.glow-button:active {
transform: translateY(0);
}
.tag-work { background: rgba(46, 204, 113, 0.15); color: #2ecc71; }
.tag-break { background: rgba(52, 152, 219, 0.15); color: #3498db; }
.tag-distraction { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }
.tag-exercise { background: rgba(155, 89, 182, 0.15); color: #9b59b6; }
.tag-learning { background: rgba(241, 196, 15, 0.15); color: #f1c40f; }
.modal-overlay {
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
}
.entry-card {
transition: all 0.3s ease;
border-left: 4px solid var(--primary);
}
.entry-card:hover {
transform: translateX(5px);
background: rgba(40, 40, 40, 0.7);
}
.streak-glow {
text-shadow: 0 0 10px rgba(255, 122, 0, 0.7);
}
.fade-in {
animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.slide-up {
animation: slideUp 0.4s ease-out;
}
@keyframes slideUp {
from { transform: translateY(20px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.pulse {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.4); }
70% { box-shadow: 0 0 0 10px rgba(255, 122, 0, 0); }
100% { box-shadow: 0 0 0 0 rgba(255, 122, 0, 0); }
}
</style>
</head>
<body class="min-h-screen flex flex-col">
<!-- Header -->
<header class="py-4 px-6 glass-panel mx-4 mt-4">
<div class="container mx-auto flex justify-between items-center">
<div class="flex items-center">
<div class="w-10 h-10 rounded-full bg-gradient-to-br from-orange-500 to-amber-600 flex items-center justify-center mr-3">
<i class="fas fa-clock text-white"></i>
</div>
<h1 class="text-2xl font-bold bg-gradient-to-r from-orange-400 to-amber-500 bg-clip-text text-transparent">TimeBlock</h1>
</div>
<nav class="hidden md:flex space-x-6">
<a href="#dashboard" class="nav-link active">Dashboard</a>
<a href="#log" class="nav-link">Daily Log</a>
<a href="#analytics" class="nav-link">Analytics</a>
<a href="#settings" class="nav-link">Settings</a>
</nav>
<div class="flex items-center space-x-4">
<div class="relative">
<div class="w-3 h-3 rounded-full bg-green-500 absolute top-0 right-0"></div>
<div class="w-10 h-10 rounded-full bg-gray-700 flex items-center justify-center">
<i class="fas fa-user text-gray-300"></i>
</div>
</div>
<button class="md:hidden text-gray-300">
<i class="fas fa-bars text-xl"></i>
</button>
</div>
</div>
</header>
<!-- Main Content -->
<main class="flex-grow container mx-auto px-4 py-8">
<!-- Hero Section -->
<section class="text-center mb-16 fade-in">
<h1 class="text-4xl md:text-6xl font-bold mb-6">Track Every 15 Minutes. <span class="bg-gradient-to-r from-orange-400 to-amber-500 bg-clip-text text-transparent">Own Your Time.</span></h1>
<p class="text-xl text-gray-300 max-w-2xl mx-auto mb-10">A sleek app designed to boost your productivity—one conscious time block at a time.</p>
<div class="flex justify-center space-x-4">
<button class="glow-button px-8 py-3 rounded-full font-semibold text-white">Get Started</button>
<button class="glass-panel px-8 py-3 rounded-full font-semibold border border-gray-700">How It Works</button>
</div>
</section>
<!-- Dashboard -->
<section id="dashboard" class="mb-16 slide-up">
<div class="glass-panel p-6 md:p-8">
<div class="flex flex-col md:flex-row items-center justify-between mb-8">
<div>
<h2 class="text-2xl font-bold mb-2">Today's Progress</h2>
<p class="text-gray-400">Wednesday, October 18</p>
</div>
<div class="mt-4 md:mt-0">
<div class="flex items-center">
<div class="mr-4">
<span class="text-gray-400">Current streak:</span>
<span class="font-bold text-orange-400 streak-glow">7 days</span>
</div>
<button class="glow-button px-4 py-2 rounded-lg flex items-center">
<i class="fas fa-pause mr-2"></i> Pause Timer
</button>
</div>
</div>
</div>
<div class="flex flex-col md:flex-row items-center justify-between">
<div class="relative mb-10 md:mb-0">
<div class="timer-circle rounded-full flex items-center justify-center mx-auto pulse">
<svg class="absolute top-0 left-0 w-full h-full transform -rotate-90" viewBox="0 0 100 100">
<circle cx="50" cy="50" r="45" fill="none" stroke="#2d2d2d" stroke-width="8"></circle>
<circle id="timer-progress" class="timer-progress" cx="50" cy="50" r="45" fill="none" stroke-width="8"></circle>
</svg>
<div class="text-center">
<div id="timer" class="text-5xl font-bold mb-2">14:32</div>
<div class="text-gray-400">until next prompt</div>
</div>
</div>
</div>
<div class="w-full md:w-1/2">
<div class="grid grid-cols-2 gap-4">
<div class="glass-panel p-4">
<div class="text-gray-400 mb-1">Productive Time</div>
<div class="text-2xl font-bold">3h 45m</div>
<div class="h-2 bg-gray-700 rounded-full mt-2">
<div class="h-2 bg-green-500 rounded-full" style="width: 75%"></div>
</div>
</div>
<div class="glass-panel p-4">
<div class="text-gray-400 mb-1">Break Time</div>
<div class="text-2xl font-bold">45m</div>
<div class="h-2 bg-gray-700 rounded-full mt-2">
<div class="h-2 bg-blue-500 rounded-full" style="width: 25%"></div>
</div>
</div>
<div class="glass-panel p-4">
<div class="text-gray-400 mb-1">Blocks Completed</div>
<div class="text-2xl font-bold">15</div>
<div class="text-sm text-gray-400 mt-1">Today's goal: 20</div>
</div>
<div class="glass-panel p-4">
<div class="text-gray-400 mb-1">Distractions</div>
<div class="text-2xl font-bold">2</div>
<div class="text-sm text-gray-400 mt-1">-12 min</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Daily Log -->
<section id="log" class="mb-16">
<div class="glass-panel p-6 md:p-8">
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold">Today's Activity Log</h2>
<div class="flex space-x-2">
<button class="glass-panel px-4 py-2 rounded-lg">All Activities</button>
<button class="glow-button px-4 py-2 rounded-lg flex items-center">
<i class="fas fa-plus mr-2"></i> Add Entry
</button>
</div>
</div>
<div class="space-y-4 max-h-[500px] overflow-y-auto pr-2">
<!-- Activity Entry -->
<div class="entry-card glass-panel p-4">
<div class="flex justify-between">
<div>
<div class="font-semibold">Prepared client presentation</div>
<div class="text-sm text-gray-400 mt-1">Created slides and outlined talking points</div>
</div>
<div class="text-right">
<div class="text-orange-400">14:15 - 14:30</div>
<span class="tag-work px-2 py-1 rounded-full text-xs font-medium mt-1 inline-block">Work</span>
</div>
</div>
</div>
<div class="entry-card glass-panel p-4">
<div class="flex justify-between">
<div>
<div class="font-semibold">Coffee break</div>
<div class="text-sm text-gray-400 mt-1">Got coffee and chatted with colleagues</div>
</div>
<div class="text-right">
<div class="text-orange-400">14:00 - 14:15</div>
<span class="tag-break px-2 py-1 rounded-full text-xs font-medium mt-1 inline-block">Break</span>
</div>
</div>
</div>
<div class="entry-card glass-panel p-4">
<div class="flex justify-between">
<div>
<div class="font-semibold">Checked social media</div>
<div class="text-sm text-gray-400 mt-1">Scrolled through Instagram</div>
</div>
<div class="text-right">
<div class="text-orange-400">13:45 - 14:00</div>
<span class="tag-distraction px-2 py-1 rounded-full text-xs font-medium mt-1 inline-block">Distraction</span>
</div>
</div>
</div>
<div class="entry-card glass-panel p-4">
<div class="flex justify-between">
<div>
<div class="font-semibold">Team meeting</div>
<div class="text-sm text-gray-400 mt-1">Weekly project sync</div>
</div>
<div class="text-right">
<div class="text-orange-400">13:30 - 13:45</div>
<span class="tag-work px-2 py-1 rounded-full text-xs font-medium mt-1 inline-block">Work</span>
</div>
</div>
</div>
<div class="entry-card glass-panel p-4">
<div class="flex justify-between">
<div>
<div class="font-semibold">Lunch break</div>
<div class="text-sm text-gray-400 mt-1">Ate lunch while listening to podcast</div>
</div>
<div class="text-right">
<div class="text-orange-400">13:15 - 13:30</div>
<span class="tag-break px-2 py-1 rounded-full text-xs font-medium mt-1 inline-block">Break</span>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Analytics -->
<section id="analytics" class="mb-16">
<div class="glass-panel p-6 md:p-8">
<h2 class="text-2xl font-bold mb-6">Productivity Analytics</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
<div>
<h3 class="text-xl font-semibold mb-4">Time Distribution</h3>
<div class="h-80">
<canvas id="timeChart"></canvas>
</div>
</div>
<div>
<h3 class="text-xl font-semibold mb-4">Daily Focus</h3>
<div class="h-80">
<canvas id="focusChart"></canvas>
</div>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mt-8">
<div class="glass-panel p-4 text-center">
<div class="text-5xl font-bold text-orange-400 mb-2">87%</div>
<div class="text-gray-400">Productivity Rate</div>
</div>
<div class="glass-panel p-4 text-center">
<div class="text-5xl font-bold text-orange-400 mb-2">7</div>
<div class="text-gray-400">Day Streak</div>
</div>
<div class="glass-panel p-4 text-center">
<div class="text-5xl font-bold text-orange-400 mb-2">18</div>
<div class="text-gray-400">Avg Blocks/Day</div>
</div>
</div>
</div>
</section>
</main>
<!-- Prompt Modal -->
<div id="prompt-modal" class="modal-overlay fixed inset-0 flex items-center justify-center z-50 hidden">
<div class="glass-panel p-8 max-w-md w-full mx-4 slide-up">
<div class="text-center mb-6">
<div class="w-16 h-16 rounded-full bg-orange-500/20 flex items-center justify-center mx-auto mb-4">
<i class="fas fa-bell text-orange-400 text-2xl"></i>
</div>
<h3 class="text-2xl font-bold mb-2">Time Block Complete</h3>
<p class="text-gray-400">What did you do in the last 15 minutes?</p>
</div>
<div class="mb-6">
<textarea
class="w-full bg-gray-800/50 border border-gray-700 rounded-lg p-4 focus:outline-none focus:ring-2 focus:ring-orange-500 focus:border-transparent"
placeholder="Briefly describe your activity..."
rows="3"
></textarea>
<div class="text-right text-sm text-gray-500 mt-1">0/150 characters</div>
</div>
<div class="mb-6">
<label class="block text-gray-400 mb-2">Select Category</label>
<div class="grid grid-cols-3 gap-2">
<button class="tag-work py-2 rounded-lg font-medium">Work</button>
<button class="tag-break py-2 rounded-lg font-medium">Break</button>
<button class="tag-distraction py-2 rounded-lg font-medium">Distraction</button>
<button class="tag-exercise py-2 rounded-lg font-medium">Exercise</button>
<button class="tag-learning py-2 rounded-lg font-medium">Learning</button>
<button class="glass-panel py-2 rounded-lg font-medium">Other</button>
</div>
</div>
<div class="flex space-x-3">
<button class="glass-panel flex-grow py-3 rounded-lg font-medium">Skip</button>
<button class="glow-button flex-grow py-3 rounded-lg font-medium">Save</button>
</div>
</div>
</div>
<!-- Footer -->
<footer class="py-8 px-4 text-center text-gray-500">
<div class="container mx-auto">
<p>TimeBlock - Track Every 15 Minutes. Own Your Time.</p>
<p class="mt-2">© 2023 Productivity Labs. All rights reserved.</p>
<div class="mt-4 flex justify-center space-x-4">
<a href="#" class="text-gray-400 hover:text-orange-400"><i class="fab fa-twitter"></i></a>
<a href="#" class="text-gray-400 hover:text-orange-400"><i class="fab fa-instagram"></i></a>
<a href="#" class="text-gray-400 hover:text-orange-400"><i class="fab fa-github"></i></a>
</div>
</div>
</footer>
<script>
// Timer functionality
let seconds = 14 * 60 + 32; // 14 minutes 32 seconds
const timerElement = document.getElementById('timer');
const progressElement = document.getElementById('timer-progress');
const circumference = 2 * Math.PI * 45;
progressElement.style.strokeDasharray = circumference;
function updateTimer() {
const minutes = Math.floor(seconds / 60);
const remainingSeconds = seconds % 60;
timerElement.textContent = `${minutes.toString().padStart(2, '0')}:${remainingSeconds.toString().padStart(2, '0')}`;
// Update progress circle
const progress = 1 - (seconds / (15 * 60));
const offset = circumference * progress;
progressElement.style.strokeDashoffset = offset;
seconds--;
if (seconds < 0) {
// Show modal when timer reaches 0
document.getElementById('prompt-modal').classList.remove('hidden');
seconds = 15 * 60; // Reset timer
}
}
// Initialize timer
setInterval(updateTimer, 1000);
updateTimer();
// Initialize charts
document.addEventListener('DOMContentLoaded', function() {
// Time distribution chart
const timeCtx = document.getElementById('timeChart').getContext('2d');
const timeChart = new Chart(timeCtx, {
type: 'doughnut',
data: {
labels: ['Work', 'Break', 'Learning', 'Distraction', 'Exercise'],
datasets: [{
data: [65, 15, 10, 7, 3],
backgroundColor: [
'rgba(46, 204, 113, 0.7)',
'rgba(52, 152, 219, 0.7)',
'rgba(241, 196, 15, 0.7)',
'rgba(231, 76, 60, 0.7)',
'rgba(155, 89, 182, 0.7)'
],
borderColor: [
'rgba(46, 204, 113, 1)',
'rgba(52, 152, 219, 1)',
'rgba(241, 196, 15, 1)',
'rgba(231, 76, 60, 1)',
'rgba(155, 89, 182, 1)'
],
borderWidth: 1
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
position: 'bottom',
labels: {
color: '#f0f0f0',
font: {
size: 12
}
}
}
}
}
});
// Focus chart
const focusCtx = document.getElementById('focusChart').getContext('2d');
const focusChart = new Chart(focusCtx, {
type: 'bar',
data: {
labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
datasets: [{
label: 'Productive Blocks',
data: [18, 22, 15, 20, 17, 8, 5],
backgroundColor: 'rgba(255, 122, 0, 0.7)',
borderColor: 'rgba(255, 122, 0, 1)',
borderWidth: 1,
borderRadius: 6
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
y: {
beginAtZero: true,
grid: {
color: 'rgba(255, 255, 255, 0.1)'
},
ticks: {
color: '#f0f0f0'
}
},
x: {
grid: {
display: false
},
ticks: {
color: '#f0f0f0'
}
}
},
plugins: {
legend: {
display: false
}
}
}
});
// Navigation
const navLinks = document.querySelectorAll('.nav-link');
navLinks.forEach(link => {
link.addEventListener('click', function(e) {
e.preventDefault();
navLinks.forEach(l => l.classList.remove('active'));
this.classList.add('active');
// Scroll to section
const targetId = this.getAttribute('href');
document.querySelector(targetId).scrollIntoView({
behavior: 'smooth'
});
});
});
// Simulate modal opening after 5 seconds for demo
setTimeout(() => {
document.getElementById('prompt-modal').classList.remove('hidden');
}, 5000);
});
</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=dolorestrd/focusely" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |