Spaces:
Running
Running
Add 2 files
Browse filesFiles changed (2)
- index.html+912-143
- prompts.txt+3
2 unmodified lines3456789101112131415161718192015 unmodified lines3637383940412 unmodified lines44454647484950515253545556575859606162635 unmodified lines6970717273747576777879808182838485868788899091929394959697989910010110210338 unmodified lines142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336109 unmodified lines44644744844945045114 unmodified lines46646746846947047147210 unmodified lines4834844854864874882 unmodified lines4914924934944954964974984995005015025035045055065075085095105112 unmodified lines51451551651751851929 unmodified lines54955055155255355455555655755855956056135 unmodified lines5975985996006016026036046056066072 unmodified lines<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Desk Wellness Companion</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>tailwind.config = {theme: {extend: {colors: {primary: '#3b82f6',secondary: '#1d4ed8',accent: '#93c5fd',light: '#eff6ff',}}}15 unmodified lines.animate-pulse-slow {animation: pulse 3s infinite;}@keyframes pulse {0%, 100% {opacity: 1;2 unmodified linesopacity: 0.7;}}</style></head><body class="font-sans bg-gray-50"><div class="container mx-auto px-4 py-8 max-w-6xl"><!-- Header --><header class="flex flex-col md:flex-row justify-between items-center mb-12"><div class="flex items-center mb-6 md:mb-0"><i class="fas fa-heartbeat text-3xl text-primary mr-3"></i><h1 class="text-3xl font-bold text-gray-800">Desk Wellness Companion</h1></div><div class="flex items-center space-x-4"><button id="settings-btn" class="bg-white hover:bg-gray-100 text-gray-800 px-4 py-2 rounded-lg border border-gray-300 flex items-center"><i class="fas fa-cog mr-2"></i> Settings</button><button id="stats-btn" class="bg-primary hover:bg-secondary text-white px-4 py-2 rounded-lg flex items-center"><i class="fas fa-chart-line mr-2"></i> Stats</button>5 unmodified lines<!-- Current Activity --><div class="bg-white rounded-xl shadow-md p-6 mb-8"><div class="flex flex-col md:flex-row items-center"><div class="md:w-1/3 mb-6 md:mb-0 flex justify-center"><div class="relative w-40 h-40"><svg class="w-full h-full" viewBox="0 0 100 100"><!-- Background circle --><circle class="text-gray-200" stroke-width="8" stroke="currentColor" fill="transparent" r="40" cx="50" cy="50" /><!-- Progress circle --><circle id="progress-circle" class="text-primary" stroke-width="8" stroke-dasharray="251.2" stroke-dashoffset="125.6" stroke-linecap="round" stroke="currentColor" fill="transparent" r="40" cx="50" cy="50" /></svg><div class="absolute inset-0 flex items-center justify-center flex-col"><span id="next-activity" class="text-xl font-semibold text-gray-700">Next: Stretch</span><span id="time-remaining" class="text-2xl font-bold text-primary">24:30</span></div></div></div><div class="md:w-2/3 md:pl-8"><h2 class="text-2xl font-bold text-gray-800 mb-4">Current Activity</h2><div id="current-activity" class="mb-6"><p class="text-gray-600">You're currently working. Your next break is scheduled soon.</p></div><div class="flex space-x-4"><button id="skip-btn" class="bg-white hover:bg-gray-100 text-gray-800 px-4 py-2 rounded-lg border border-gray-300">Skip Next Break</button><button id="take-break-now" class="bg-primary hover:bg-secondary text-white px-4 py-2 rounded-lg">Take Break Now</button></div></div></div></div><!-- Quick Actions -->38 unmodified lines<!-- Exercise Library --><div class="bg-white rounded-xl shadow-md p-6 mb-8"><h2 class="text-2xl font-bold text-gray-800 mb-6">Exercise Library</h2><div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"><!-- Exercise Card 1 --><div class="exercise-card bg-light rounded-lg overflow-hidden cursor-pointer"><div class="h-40 bg-primary flex items-center justify-center"><i class="fas fa-hands-helping text-white text-5xl animate-pulse-slow"></i></div><div class="p-4"><h3 class="font-bold text-lg text-gray-800 mb-2">Neck Stretches</h3><p class="text-gray-600 mb-3">Gentle neck movements to relieve tension from prolonged sitting.</p><div class="flex justify-between items-center"><span class="text-sm text-gray-500"><i class="fas fa-clock mr-1"></i> 2 min</span><button class="text-primary hover:text-secondary text-sm font-medium">Add to Routine</button></div></div></div><!-- Exercise Card 2 --><div class="exercise-card bg-light rounded-lg overflow-hidden cursor-pointer"><div class="h-40 bg-primary flex items-center justify-center"><i class="fas fa-lungs text-white text-5xl animate-pulse-slow"></i></div><div class="p-4"><h3 class="font-bold text-lg text-gray-800 mb-2">Deep Breathing</h3><p class="text-gray-600 mb-3">4-7-8 breathing technique to reduce stress and increase focus.</p><div class="flex justify-between items-center"><span class="text-sm text-gray-500"><i class="fas fa-clock mr-1"></i> 1 min</span><button class="text-primary hover:text-secondary text-sm font-medium">Add to Routine</button></div></div></div><!-- Exercise Card 3 --><div class="exercise-card bg-light rounded-lg overflow-hidden cursor-pointer"><div class="h-40 bg-primary flex items-center justify-center"><i class="fas fa-hands text-white text-5xl animate-pulse-slow"></i></div><div class="p-4"><h3 class="font-bold text-lg text-gray-800 mb-2">Wrist & Finger</h3><p class="text-gray-600 mb-3">Exercises to prevent carpal tunnel and improve circulation.</p><div class="flex justify-between items-center"><span class="text-sm text-gray-500"><i class="fas fa-clock mr-1"></i> 3 min</span><button class="text-primary hover:text-secondary text-sm font-medium">Add to Routine</button></div></div></div><!-- Exercise Card 4 --><div class="exercise-card bg-light rounded-lg overflow-hidden cursor-pointer"><div class="h-40 bg-primary flex items-center justify-center"><i class="fas fa-chair text-white text-5xl animate-pulse-slow"></i></div><div class="p-4"><h3 class="font-bold text-lg text-gray-800 mb-2">Chair Yoga</h3><p class="text-gray-600 mb-3">Simple yoga poses you can do without leaving your desk.</p><div class="flex justify-between items-center"><span class="text-sm text-gray-500"><i class="fas fa-clock mr-1"></i> 5 min</span><button class="text-primary hover:text-secondary text-sm font-medium">Add to Routine</button></div></div></div><!-- Exercise Card 5 --><div class="exercise-card bg-light rounded-lg overflow-hidden cursor-pointer"><div class="h-40 bg-primary flex items-center justify-center"><i class="fas fa-eye text-white text-5xl animate-pulse-slow"></i></div><div class="p-4"><h3 class="font-bold text-lg text-gray-800 mb-2">Eye Exercises</h3><p class="text-gray-600 mb-3">Reduce eye strain with the 20-20-20 rule and other techniques.</p><div class="flex justify-between items-center"><span class="text-sm text-gray-500"><i class="fas fa-clock mr-1"></i> 2 min</span><button class="text-primary hover:text-secondary text-sm font-medium">Add to Routine</button></div></div></div><!-- Exercise Card 6 --><div class="exercise-card bg-light rounded-lg overflow-hidden cursor-pointer"><div class="h-40 bg-primary flex items-center justify-center"><i class="fas fa-water text-white text-5xl animate-pulse-slow"></i></div><div class="p-4"><h3 class="font-bold text-lg text-gray-800 mb-2">Hydration Reminder</h3><p class="text-gray-600 mb-3">Regular reminders to drink water throughout your workday.</p><div class="flex justify-between items-center"><span class="text-sm text-gray-500"><i class="fas fa-clock mr-1"></i> -</span><button class="text-primary hover:text-secondary text-sm font-medium">Add to Routine</button></div></div></div></div></div></main></div><!-- Settings Modal --><div id="settings-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50"><div class="bg-white rounded-xl shadow-2xl w-full max-w-2xl max-h-[90vh] overflow-y-auto"><div class="p-6 border-b border-gray-200 flex justify-between items-center"><h3 class="text-2xl font-bold text-gray-800">Settings</h3><button id="close-settings" class="text-gray-500 hover:text-gray-700"><i class="fas fa-times text-xl"></i></button></div><div class="p-6"><!-- Reminder Settings --><div class="mb-8"><h4 class="text-xl font-semibold text-gray-800 mb-4">Reminder Settings</h4><div class="space-y-6"><div><label class="block text-gray-700 font-medium mb-2">Work Duration</label><select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"><option>30 minutes</option><option selected>45 minutes</option><option>60 minutes</option><option>90 minutes</option></select></div><div><label class="block text-gray-700 font-medium mb-2">Break Duration</label><select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"><option>2 minutes</option><option selected>5 minutes</option><option>10 minutes</option><option>15 minutes</option></select></div><div><label class="block text-gray-700 font-medium mb-2">Water Reminder Frequency</label><select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"><option>Every 30 minutes</option><option>Every 45 minutes</option><option selected>Every 60 minutes</option><option>Every 90 minutes</option></select></div></div></div><!-- Exercise Preferences --><div class="mb-8"><h4 class="text-xl font-semibold text-gray-800 mb-4">Exercise Preferences</h4><div class="space-y-4"><label class="flex items-center space-x-3"><input type="checkbox" class="form-checkbox h-5 w-5 text-primary rounded focus:ring-primary" checked><span class="text-gray-700">Include stretching exercises</span></label><label class="flex items-center space-x-3"><input type="checkbox" class="form-checkbox h-5 w-5 text-primary rounded focus:ring-primary" checked><span class="text-gray-700">Include breathing exercises</span></label><label class="flex items-center space-x-3"><input type="checkbox" class="form-checkbox h-5 w-5 text-primary rounded focus:ring-primary"><span class="text-gray-700">Include chair yoga</span></label><label class="flex items-center space-x-3"><input type="checkbox" class="form-checkbox h-5 w-5 text-primary rounded focus:ring-primary" checked><span class="text-gray-700">Include eye exercises</span></label><label class="flex items-center space-x-3"><input type="checkbox" class="form-checkbox h-5 w-5 text-primary rounded focus:ring-primary" checked><span class="text-gray-700">Include hydration reminders</span></label></div></div><!-- Notification Settings --><div><h4 class="text-xl font-semibold text-gray-800 mb-4">Notification Settings</h4><div class="space-y-4"><label class="flex items-center space-x-3"><input type="checkbox" class="form-checkbox h-5 w-5 text-primary rounded focus:ring-primary" checked><span class="text-gray-700">Enable desktop notifications</span></label><label class="flex items-center space-x-3"><input type="checkbox" class="form-checkbox h-5 w-5 text-primary rounded focus:ring-primary"><span class="text-gray-700">Play sound with notifications</span></label><div><label class="block text-gray-700 font-medium mb-2">Notification Volume</label><input type="range" min="0" max="100" value="50" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer"></div></div></div></div><div class="p-6 border-t border-gray-200 flex justify-end"><button id="save-settings" class="bg-primary hover:bg-secondary text-white px-6 py-2 rounded-lg font-medium">Save Settings</button></div></div>109 unmodified lines</div></div><!-- Break Notification --><div id="break-notification" class="fixed bottom-4 right-4 bg-white rounded-xl shadow-2xl p-6 max-w-sm hidden z-50"><div class="flex justify-between items-start mb-4">14 unmodified lines</div><script>// DOM Elementsconst settingsBtn = document.getElementById('settings-btn');const settingsModal = document.getElementById('settings-modal');const closeSettings = document.getElementById('close-settings');10 unmodified linesconst takeBreakNow = document.getElementById('take-break-now');const skipBtn = document.getElementById('skip-btn');// Timer variableslet workDuration = 45 * 60; // 45 minutes in seconds2 unmodified lineslet timer;let isWorking = true;// Modal handlerssettingsBtn.addEventListener('click', () => {settingsModal.classList.remove('hidden');});closeSettings.addEventListener('click', () => {settingsModal.classList.add('hidden');});saveSettings.addEventListener('click', () => {settingsModal.classList.add('hidden');// In a real app, you would save these settings to localStorage or a backendalert('Settings saved successfully!');});statsBtn.addEventListener('click', () => {statsModal.classList.remove('hidden');});2 unmodified linesstatsModal.classList.add('hidden');});// Notification handlerscloseNotification.addEventListener('click', () => {breakNotification.classList.add('hidden');29 unmodified linesstartTimer();});// Timer functionsfunction startTimer() {clearInterval(timer);timer = setInterval(updateTimer, 1000);}function updateTimer() {timeLeft--;if (timeLeft <= 0) {35 unmodified lines// InitializeupdateActivityDisplay("Stretch", "You're currently working. Your next break is scheduled soon.");startTimer();// Simulate a break notification after 5 seconds for demo purposessetTimeout(() => {// breakNotification.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=tframe/deskrefresh" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body></html>2 unmodified lines34567891011121314151617181920212215 unmodified lines3839404142434445464748495051525354555657585960616263646566676869707172737475762 unmodified lines7980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811825 unmodified lines18818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531638 unmodified lines355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624109 unmodified lines73473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680714 unmodified lines82282382482582682782882983083183283383483583683783883984084184284384484584684710 unmodified lines8588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878882 unmodified lines89189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910302 unmodified lines10331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109829 unmodified lines1128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133035 unmodified lines136613671368136913701371137213731374137513762 unmodified lines<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Desk Refresh</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/sortablejs@1.14.0/Sortable.min.js"></script><script>tailwind.config = {theme: {extend: {colors: {primary: '#10b981',secondary: '#059669',accent: '#6ee7b7',light: '#ecfdf5',dark: '#064e3b',}}}15 unmodified lines.animate-pulse-slow {animation: pulse 3s infinite;}.routine-item {cursor: grab;transition: all 0.2s ease;flex: 0 0 auto;width: 180px;}.routine-item:active {cursor: grabbing;}.routine-item.dragging {opacity: 0.5;background-color: #d1fae5;}.routine-scroll-container {display: flex;overflow-x: auto;padding-bottom: 10px;gap: 12px;}.routine-scroll-container::-webkit-scrollbar {height: 6px;}.routine-scroll-container::-webkit-scrollbar-track {background: #f1f1f1;border-radius: 10px;}.routine-scroll-container::-webkit-scrollbar-thumb {background: #c1c1c1;border-radius: 10px;}.routine-scroll-container::-webkit-scrollbar-thumb:hover {background: #a8a8a8;}@keyframes pulse {0%, 100% {opacity: 1;2 unmodified linesopacity: 0.7;}}.favorite-btn.active {color: #f59e0b;}.activity-icon {width: 24px;height: 24px;display: flex;align-items: center;justify-content: center;border-radius: 50%;background-color: #d1fae5;color: #059669;}.auth-modal {background-color: rgba(0,0,0,0.7);}.auth-content {animation: fadeIn 0.3s ease-out;}@keyframes fadeIn {from { opacity: 0; transform: translateY(-20px); }to { opacity: 1; transform: translateY(0); }}</style></head><body class="font-sans bg-gray-50"><!-- Auth Modal --><div id="auth-modal" class="fixed inset-0 auth-modal flex items-center justify-center z-50 hidden"><div class="auth-content bg-white rounded-xl shadow-2xl w-full max-w-md p-8"><div class="flex justify-between items-center mb-6"><h2 class="text-2xl font-bold text-gray-800">Welcome to Desk Refresh</h2><button id="close-auth" class="text-gray-500 hover:text-gray-700"><i class="fas fa-times text-xl"></i></button></div><div id="login-form"><div class="mb-6"><label class="block text-gray-700 font-medium mb-2">Email</label><input type="email" id="login-email" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent" placeholder="your@email.com"></div><div class="mb-6"><label class="block text-gray-700 font-medium mb-2">Password</label><input type="password" id="login-password" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent" placeholder="••••••••"></div><button id="login-btn" class="w-full bg-primary hover:bg-secondary text-white px-6 py-3 rounded-lg font-medium mb-4">Log In</button><p class="text-center text-gray-600 mb-4">Don't have an account? <button id="show-signup" class="text-primary font-medium">Sign up</button></p><div class="text-center"><button class="text-sm text-gray-500 hover:text-gray-700">Forgot password?</button></div></div><div id="signup-form" class="hidden"><div class="mb-6"><label class="block text-gray-700 font-medium mb-2">Name</label><input type="text" id="signup-name" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent" placeholder="Your Name"></div><div class="mb-6"><label class="block text-gray-700 font-medium mb-2">Email</label><input type="email" id="signup-email" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent" placeholder="your@email.com"></div><div class="mb-6"><label class="block text-gray-700 font-medium mb-2">Password</label><input type="password" id="signup-password" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent" placeholder="••••••••"></div><div class="mb-6"><label class="block text-gray-700 font-medium mb-2">Confirm Password</label><input type="password" id="signup-confirm-password" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent" placeholder="••••••••"></div><button id="signup-btn" class="w-full bg-primary hover:bg-secondary text-white px-6 py-3 rounded-lg font-medium mb-4">Create Account</button><p class="text-center text-gray-600">Already have an account? <button id="show-login" class="text-primary font-medium">Log in</button></p></div></div></div><div class="container mx-auto px-4 py-8 max-w-6xl" id="main-content" class="hidden"><!-- Header --><header class="flex flex-col md:flex-row justify-between items-center mb-12"><div class="flex items-center mb-6 md:mb-0"><i class="fas fa-leaf text-3xl text-primary mr-3"></i><h1 class="text-3xl font-bold text-gray-800">Desk Refresh</h1></div><div class="flex items-center space-x-4"><div class="relative group"><button id="profile-btn" class="flex items-center space-x-2"><div class="w-10 h-10 rounded-full bg-primary flex items-center justify-center text-white font-semibold" id="avatar">U</div><span class="hidden md:inline" id="username">User</span></button><div class="absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-50 hidden group-hover:block"><a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Profile</a><a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Settings</a><a href="#" id="logout-btn" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Log out</a></div></div><button id="stats-btn" class="bg-primary hover:bg-secondary text-white px-4 py-2 rounded-lg flex items-center"><i class="fas fa-chart-line mr-2"></i> Stats</button>5 unmodified lines<!-- Current Activity --><div class="bg-white rounded-xl shadow-md p-6 mb-8"><div class="flex flex-col md:flex-row items-center"><div class="md:w-1/3 mb-6 md:mb-0 flex flex-col items-center"><div class="mb-4 text-center"><span id="next-activity" class="text-xl font-semibold text-gray-700">Next: Stretch</span><p id="current-activity" class="text-gray-600 text-sm">You're currently working. Your next break is scheduled soon.</p></div><div class="relative w-32 h-32"><svg class="w-full h-full" viewBox="0 0 100 100"><!-- Background circle --><circle class="text-gray-200" stroke-width="8" stroke="currentColor" fill="transparent" r="40" cx="50" cy="50" /><!-- Progress circle --><circle id="progress-circle" class="text-primary" stroke-width="8" stroke-dasharray="251.2" stroke-dashoffset="125.6" stroke-linecap="round" stroke="currentColor" fill="transparent" r="40" cx="50" cy="50" /></svg><div class="absolute inset-0 flex items-center justify-center"><span id="time-remaining" class="text-2xl font-bold text-primary">24:30</span></div></div><div class="flex space-x-4 mt-4"><button id="skip-btn" class="bg-white hover:bg-gray-100 text-gray-800 p-3 rounded-lg border border-gray-300 flex items-center justify-center" title="Skip"><i class="fas fa-forward"></i></button><button id="pause-btn" class="bg-primary hover:bg-secondary text-white p-3 rounded-lg flex items-center justify-center" title="Pause"><i class="fas fa-pause"></i></button><button id="take-break-now" class="bg-white hover:bg-gray-100 text-gray-800 p-3 rounded-lg border border-gray-300 flex items-center justify-center" title="Take Break Now"><i class="fas fa-coffee"></i></button></div></div><div class="md:w-2/3 md:pl-8"><h2 class="text-2xl font-bold text-gray-800 mb-4">Current Activity</h2><div class="mb-6"><div class="flex items-center mb-4"><div class="w-12 h-12 rounded-full bg-light flex items-center justify-center mr-4"><i class="fas fa-desktop text-primary text-xl"></i></div><div><h3 class="font-semibold text-gray-800">Focus Work</h3><p class="text-sm text-gray-500">Deep work session</p></div></div><div class="flex items-center"><div class="w-12 h-12 rounded-full bg-light flex items-center justify-center mr-4"><i class="fas fa-hands-helping text-primary text-xl"></i></div><div><h3 class="font-semibold text-gray-800">Neck Stretches</h3><p class="text-sm text-gray-500">Next in 24:30</p></div></div></div><div class="bg-light rounded-lg p-4"><h4 class="font-medium text-gray-700 mb-2">Today's Progress</h4><div class="w-full bg-gray-200 rounded-full h-2.5 mb-2"><div class="bg-primary h-2.5 rounded-full" style="width: 45%"></div></div><div class="flex justify-between text-sm text-gray-600"><span>2/5 breaks completed</span><span>45%</span></div></div></div></div></div><!-- My Routine Section --><div class="bg-white rounded-xl shadow-md p-6 mb-8"><div class="flex justify-between items-center mb-6"><div><h2 class="text-2xl font-bold text-gray-800">My Wellness Routine</h2><div class="flex items-center mt-2"><select id="routine-selector" class="border border-gray-300 rounded-lg px-3 py-1 text-sm focus:outline-none focus:ring-2 focus:ring-primary"><option value="morning">Morning Routine</option><option value="afternoon">Afternoon Routine</option><option value="evening">Evening Routine</option><option value="custom">Custom Routine</option></select><span class="ml-3 text-sm text-gray-600">Total time: <span id="routine-total-time">5</span> min</span></div></div><button id="save-routine" class="bg-primary hover:bg-secondary text-white px-4 py-2 rounded-lg text-sm">Save Routine</button></div><div id="routine-container" class="routine-scroll-container"><!-- Routine items will be added here --><div class="routine-item bg-light rounded-lg p-3 flex flex-col border border-gray-200"><div class="flex items-center justify-between mb-2"><div class="activity-icon"><i class="fas fa-hands-helping text-xs"></i></div><button class="text-gray-400 hover:text-red-500 text-sm"><i class="fas fa-times"></i></button></div><h3 class="font-semibold text-gray-800 text-sm mb-1">Neck Stretches</h3><p class="text-xs text-gray-500">2 min</p></div><div class="routine-item bg-light rounded-lg p-3 flex flex-col border border-gray-200"><div class="flex items-center justify-between mb-2"><div class="activity-icon"><i class="fas fa-lungs text-xs"></i></div><button class="text-gray-400 hover:text-red-500 text-sm"><i class="fas fa-times"></i></button></div><h3 class="font-semibold text-gray-800 text-sm mb-1">Deep Breathing</h3><p class="text-xs text-gray-500">1 min</p></div><div class="routine-item bg-light rounded-lg p-3 flex flex-col border border-gray-200"><div class="flex items-center justify-between mb-2"><div class="activity-icon"><i class="fas fa-eye text-xs"></i></div><button class="text-gray-400 hover:text-red-500 text-sm"><i class="fas fa-times"></i></button></div><h3 class="font-semibold text-gray-800 text-sm mb-1">Eye Exercises</h3><p class="text-xs text-gray-500">2 min</p></div></div><p id="empty-routine-message" class="text-center text-gray-500 py-6 hidden">Your routine is empty. Add exercises from the library below.</p></div><!-- Quick Actions -->38 unmodified lines<!-- Exercise Library --><div class="bg-white rounded-xl shadow-md p-6 mb-8"><div class="flex flex-col md:flex-row md:items-center md:justify-between mb-6"><h2 class="text-2xl font-bold text-gray-800 mb-4 md:mb-0">Exercise Library</h2><div class="flex flex-col sm:flex-row gap-3"><div class="relative"><input type="text" id="exercise-search" placeholder="Search exercises..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent w-full"><i class="fas fa-search absolute left-3 top-3 text-gray-400"></i></div><select id="exercise-filter" class="px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"><option value="all">All Exercises</option><option value="favorites">Favorites</option><option value="stretching">Stretching</option><option value="breathing">Breathing</option><option value="yoga">Chair Yoga</option><option value="eye">Eye Care</option><option value="strength">Strength</option></select></div></div><div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6" id="exercise-container"><!-- Exercise Card 1 --><div class="exercise-card bg-light rounded-lg overflow-hidden" data-category="stretching"><div class="h-40 bg-primary flex items-center justify-center relative"><i class="fas fa-hands-helping text-white text-5xl animate-pulse-slow"></i><button class="favorite-btn absolute top-3 right-3 text-white hover:text-yellow-300 text-xl"><i class="far fa-star"></i></button></div><div class="p-4"><h3 class="font-bold text-lg text-gray-800 mb-2">Neck Stretches</h3><p class="text-gray-600 mb-3">Gentle neck movements to relieve tension from prolonged sitting.</p><div class="flex justify-between items-center"><span class="text-sm text-gray-500"><i class="fas fa-clock mr-1"></i> 2 min</span><button class="add-to-routine text-primary hover:text-secondary text-sm font-medium">Add to Routine</button></div></div></div><!-- Exercise Card 2 --><div class="exercise-card bg-light rounded-lg overflow-hidden" data-category="breathing"><div class="h-40 bg-primary flex items-center justify-center relative"><i class="fas fa-lungs text-white text-5xl animate-pulse-slow"></i><button class="favorite-btn absolute top-3 right-3 text-white hover:text-yellow-300 text-xl"><i class="far fa-star"></i></button></div><div class="p-4"><h3 class="font-bold text-lg text-gray-800 mb-2">Deep Breathing</h3><p class="text-gray-600 mb-3">4-7-8 breathing technique to reduce stress and increase focus.</p><div class="flex justify-between items-center"><span class="text-sm text-gray-500"><i class="fas fa-clock mr-1"></i> 1 min</span><button class="add-to-routine text-primary hover:text-secondary text-sm font-medium">Add to Routine</button></div></div></div><!-- Exercise Card 3 --><div class="exercise-card bg-light rounded-lg overflow-hidden" data-category="stretching"><div class="h-40 bg-primary flex items-center justify-center relative"><i class="fas fa-hands text-white text-5xl animate-pulse-slow"></i><button class="favorite-btn absolute top-3 right-3 text-white hover:text-yellow-300 text-xl"><i class="far fa-star"></i></button></div><div class="p-4"><h3 class="font-bold text-lg text-gray-800 mb-2">Wrist & Finger</h3><p class="text-gray-600 mb-3">Exercises to prevent carpal tunnel and improve circulation.</p><div class="flex justify-between items-center"><span class="text-sm text-gray-500"><i class="fas fa-clock mr-1"></i> 3 min</span><button class="add-to-routine text-primary hover:text-secondary text-sm font-medium">Add to Routine</button></div></div></div><!-- Exercise Card 4 --><div class="exercise-card bg-light rounded-lg overflow-hidden" data-category="yoga"><div class="h-40 bg-primary flex items-center justify-center relative"><i class="fas fa-chair text-white text-5xl animate-pulse-slow"></i><button class="favorite-btn absolute top-3 right-3 text-white hover:text-yellow-300 text-xl"><i class="far fa-star"></i></button></div><div class="p-4"><h3 class="font-bold text-lg text-gray-800 mb-2">Chair Yoga</h3><p class="text-gray-600 mb-3">Simple yoga poses you can do without leaving your desk.</p><div class="flex justify-between items-center"><span class="text-sm text-gray-500"><i class="fas fa-clock mr-1"></i> 5 min</span><button class="add-to-routine text-primary hover:text-secondary text-sm font-medium">Add to Routine</button></div></div></div><!-- Exercise Card 5 --><div class="exercise-card bg-light rounded-lg overflow-hidden" data-category="eye"><div class="h-40 bg-primary flex items-center justify-center relative"><i class="fas fa-eye text-white text-5xl animate-pulse-slow"></i><button class="favorite-btn absolute top-3 right-3 text-white hover:text-yellow-300 text-xl"><i class="fas fa-star"></i></button></div><div class="p-4"><h3 class="font-bold text-lg text-gray-800 mb-2">Eye Exercises</h3><p class="text-gray-600 mb-3">Reduce eye strain with the 20-20-20 rule and other techniques.</p><div class="flex justify-between items-center"><span class="text-sm text-gray-500"><i class="fas fa-clock mr-1"></i> 2 min</span><button class="add-to-routine text-primary hover:text-secondary text-sm font-medium">Add to Routine</button></div></div></div><!-- Exercise Card 6 --><div class="exercise-card bg-light rounded-lg overflow-hidden" data-category="hydration"><div class="h-40 bg-primary flex items-center justify-center relative"><i class="fas fa-water text-white text-5xl animate-pulse-slow"></i><button class="favorite-btn absolute top-3 right-3 text-white hover:text-yellow-300 text-xl"><i class="far fa-star"></i></button></div><div class="p-4"><h3 class="font-bold text-lg text-gray-800 mb-2">Hydration Reminder</h3><p class="text-gray-600 mb-3">Regular reminders to drink water throughout your workday.</p><div class="flex justify-between items-center"><span class="text-sm text-gray-500"><i class="fas fa-clock mr-1"></i> -</span><button class="add-to-routine text-primary hover:text-secondary text-sm font-medium">Add to Routine</button></div></div></div><!-- Exercise Card 7 --><div class="exercise-card bg-light rounded-lg overflow-hidden" data-category="stretching"><div class="h-40 bg-primary flex items-center justify-center relative"><i class="fas fa-arrows-alt-h text-white text-5xl animate-pulse-slow"></i><button class="favorite-btn absolute top-3 right-3 text-white hover:text-yellow-300 text-xl"><i class="far fa-star"></i></button></div><div class="p-4"><h3 class="font-bold text-lg text-gray-800 mb-2">Side Stretches</h3><p class="text-gray-600 mb-3">Lateral stretches to relieve tension in your torso and back.</p><div class="flex justify-between items-center"><span class="text-sm text-gray-500"><i class="fas fa-clock mr-1"></i> 2 min</span><button class="add-to-routine text-primary hover:text-secondary text-sm font-medium">Add to Routine</button></div></div></div><!-- Exercise Card 8 --><div class="exercise-card bg-light rounded-lg overflow-hidden" data-category="stretching"><div class="h-40 bg-primary flex items-center justify-center relative"><i class="fas fa-undo text-white text-5xl animate-pulse-slow"></i><button class="favorite-btn absolute top-3 right-3 text-white hover:text-yellow-300 text-xl"><i class="far fa-star"></i></button></div><div class="p-4"><h3 class="font-bold text-lg text-gray-800 mb-2">Neck Rotations</h3><p class="text-gray-600 mb-3">Slow neck rotations to improve mobility and reduce stiffness.</p><div class="flex justify-between items-center"><span class="text-sm text-gray-500"><i class="fas fa-clock mr-1"></i> 1 min</span><button class="add-to-routine text-primary hover:text-secondary text-sm font-medium">Add to Routine</button></div></div></div><!-- Exercise Card 9 --><div class="exercise-card bg-light rounded-lg overflow-hidden" data-category="strength"><div class="h-40 bg-primary flex items-center justify-center relative"><i class="fas fa-dumbbell text-white text-5xl animate-pulse-slow"></i><button class="favorite-btn absolute top-3 right-3 text-white hover:text-yellow-300 text-xl"><i class="far fa-star"></i></button></div><div class="p-4"><h3 class="font-bold text-lg text-gray-800 mb-2">Desk Push-ups</h3><p class="text-gray-600 mb-3">Modified push-ups using your desk to strengthen upper body.</p><div class="flex justify-between items-center"><span class="text-sm text-gray-500"><i class="fas fa-clock mr-1"></i> 3 min</span><button class="add-to-routine text-primary hover:text-secondary text-sm font-medium">Add to Routine</button></div></div></div><!-- Exercise Card 10 --><div class="exercise-card bg-light rounded-lg overflow-hidden" data-category="stretching"><div class="h-40 bg-primary flex items-center justify-center relative"><i class="fas fa-running text-white text-5xl animate-pulse-slow"></i><button class="favorite-btn absolute top-3 right-3 text-white hover:text-yellow-300 text-xl"><i class="far fa-star"></i></button></div><div class="p-4"><h3 class="font-bold text-lg text-gray-800 mb-2">Leg Extensions</h3><p class="text-gray-600 mb-3">Seated leg extensions to improve circulation in your legs.</p><div class="flex justify-between items-center"><span class="text-sm text-gray-500"><i class="fas fa-clock mr-1"></i> 2 min</span><button class="add-to-routine text-primary hover:text-secondary text-sm font-medium">Add to Routine</button></div></div></div><!-- Exercise Card 11 --><div class="exercise-card bg-light rounded-lg overflow-hidden" data-category="stretching"><div class="h-40 bg-primary flex items-center justify-center relative"><i class="fas fa-hands-praying text-white text-5xl animate-pulse-slow"></i><button class="favorite-btn absolute top-3 right-3 text-white hover:text-yellow-300 text-xl"><i class="far fa-star"></i></button></div><div class="p-4"><h3 class="font-bold text-lg text-gray-800 mb-2">Shoulder Rolls</h3><p class="text-gray-600 mb-3">Circular shoulder movements to release upper body tension.</p><div class="flex justify-between items-center"><span class="text-sm text-gray-500"><i class="fas fa-clock mr-1"></i> 1 min</span><button class="add-to-routine text-primary hover:text-secondary text-sm font-medium">Add to Routine</button></div></div></div><!-- Exercise Card 12 --><div class="exercise-card bg-light rounded-lg overflow-hidden" data-category="breathing"><div class="h-40 bg-primary flex items-center justify-center relative"><i class="fas fa-wind text-white text-5xl animate-pulse-slow"></i><button class="favorite-btn absolute top-3 right-3 text-white hover:text-yellow-300 text-xl"><i class="far fa-star"></i></button></div><div class="p-4"><h3 class="font-bold text-lg text-gray-800 mb-2">Box Breathing</h3><p class="text-gray-600 mb-3">4-4-4-4 breathing pattern to calm the nervous system.</p><div class="flex justify-between items-center"><span class="text-sm text-gray-500"><i class="fas fa-clock mr-1"></i> 2 min</span><button class="add-to-routine text-primary hover:text-secondary text-sm font-medium">Add to Routine</button></div></div></div></div></div></main></div><!-- Add to Routine Modal --><div id="add-to-routine-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50"><div class="bg-white rounded-xl shadow-2xl w-full max-w-md p-6"><div class="flex justify-between items-center mb-4"><h3 class="text-xl font-bold text-gray-800">Add to Routine</h3><button id="close-add-to-routine" class="text-gray-500 hover:text-gray-700"><i class="fas fa-times text-xl"></i></button></div><div class="mb-6"><label class="block text-gray-700 font-medium mb-2">Select Routine</label><select id="target-routine" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"><option value="morning">Morning Routine</option><option value="afternoon">Afternoon Routine</option><option value="evening">Evening Routine</option><option value="custom">Custom Routine</option></select></div><div class="mb-6"><label class="block text-gray-700 font-medium mb-2">Duration (minutes)</label><input type="number" id="exercise-duration" min="1" max="10" value="2" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"></div><div class="flex justify-end"><button id="confirm-add-to-routine" class="bg-primary hover:bg-secondary text-white px-6 py-2 rounded-lg font-medium">Add to Routine</button></div></div>109 unmodified lines</div></div><!-- Save Routine Modal --><div id="save-routine-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50"><div class="bg-white rounded-xl shadow-2xl w-full max-w-md max-h-[90vh] overflow-y-auto"><div class="p-6 border-b border-gray-200 flex justify-between items-center"><h3 class="text-2xl font-bold text-gray-800">Save Your Routine</h3><button id="close-save-routine" class="text-gray-500 hover:text-gray-700"><i class="fas fa-times text-xl"></i></button></div><div class="p-6"><div class="mb-6"><label class="block text-gray-700 font-medium mb-2">Routine Name</label><input type="text" id="routine-name" placeholder="e.g. Morning Refresh" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"></div><div class="mb-6"><label class="block text-gray-700 font-medium mb-2">Description</label><textarea id="routine-description" placeholder="Brief description of your routine" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent h-24"></textarea></div><div class="mb-6"><h4 class="text-lg font-semibold text-gray-800 mb-3">Routine Summary</h4><div class="bg-light rounded-lg p-4"><div class="flex justify-between items-center mb-3"><span class="font-medium text-gray-700">Total Time:</span><span class="font-bold text-primary">5 minutes</span></div><div class="mb-3"><span class="font-medium text-gray-700">Activities Included:</span><div class="flex flex-wrap gap-2 mt-2"><div class="flex items-center bg-white px-3 py-1 rounded-full text-sm"><div class="activity-icon mr-2"><i class="fas fa-hands-helping text-xs"></i></div>Stretching</div><div class="flex items-center bg-white px-3 py-1 rounded-full text-sm"><div class="activity-icon mr-2"><i class="fas fa-lungs text-xs"></i></div>Breathing</div><div class="flex items-center bg-white px-3 py-1 rounded-full text-sm"><div class="activity-icon mr-2"><i class="fas fa-eye text-xs"></i></div>Eye Care</div></div></div><div><span class="font-medium text-gray-700">Exercises:</span><ul class="list-disc list-inside text-sm text-gray-600 mt-1 pl-2"><li>Neck Stretches (2 min)</li><li>Deep Breathing (1 min)</li><li>Eye Exercises (2 min)</li></ul></div></div></div></div><div class="p-6 border-t border-gray-200 flex justify-end"><button id="confirm-save-routine" class="bg-primary hover:bg-secondary text-white px-6 py-2 rounded-lg font-medium">Save Routine</button></div></div></div><!-- Break Notification --><div id="break-notification" class="fixed bottom-4 right-4 bg-white rounded-xl shadow-2xl p-6 max-w-sm hidden z-50"><div class="flex justify-between items-start mb-4">14 unmodified lines</div><script>// Auth statelet currentUser = null;let isAuthenticated = false;let isTimerPaused = false;// DOM Elementsconst authModal = document.getElementById('auth-modal');const closeAuth = document.getElementById('close-auth');const loginForm = document.getElementById('login-form');const signupForm = document.getElementById('signup-form');const showSignup = document.getElementById('show-signup');const showLogin = document.getElementById('show-login');const loginBtn = document.getElementById('login-btn');const signupBtn = document.getElementById('signup-btn');const logoutBtn = document.getElementById('logout-btn');const mainContent = document.getElementById('main-content');const profileBtn = document.getElementById('profile-btn');const avatar = document.getElementById('avatar');const usernameDisplay = document.getElementById('username');const settingsBtn = document.getElementById('settings-btn');const settingsModal = document.getElementById('settings-modal');const closeSettings = document.getElementById('close-settings');10 unmodified linesconst takeBreakNow = document.getElementById('take-break-now');const skipBtn = document.getElementById('skip-btn');const pauseBtn = document.getElementById('pause-btn');// Routine elementsconst routineContainer = document.getElementById('routine-container');const emptyRoutineMessage = document.getElementById('empty-routine-message');const saveRoutineBtn = document.getElementById('save-routine');const routineSelector = document.getElementById('routine-selector');const routineTotalTime = document.getElementById('routine-total-time');// Add to routine modal elementsconst addToRoutineModal = document.getElementById('add-to-routine-modal');const closeAddToRoutine = document.getElementById('close-add-to-routine');const confirmAddToRoutine = document.getElementById('confirm-add-to-routine');const targetRoutine = document.getElementById('target-routine');const exerciseDuration = document.getElementById('exercise-duration');// Save routine modal elementsconst saveRoutineModal = document.getElementById('save-routine-modal');const closeSaveRoutine = document.getElementById('close-save-routine');const confirmSaveRoutine = document.getElementById('confirm-save-routine');// Exercise library elementsconst exerciseSearch = document.getElementById('exercise-search');const exerciseFilter = document.getElementById('exercise-filter');const exerciseContainer = document.getElementById('exercise-container');// Timer variableslet workDuration = 45 * 60; // 45 minutes in seconds2 unmodified lineslet timer;let isWorking = true;// Current exercise being added to routinelet currentExerciseToAdd = null;// Sample routines dataconst routines = {morning: {name: "Morning Routine",description: "Start your day with energy and focus",exercises: [{ title: "Neck Stretches", duration: "2 min", icon: "hands-helping" },{ title: "Deep Breathing", duration: "1 min", icon: "lungs" },{ title: "Eye Exercises", duration: "2 min", icon: "eye" }]},afternoon: {name: "Afternoon Routine",description: "Recharge during your midday slump",exercises: [{ title: "Chair Yoga", duration: "3 min", icon: "chair" },{ title: "Wrist & Finger", duration: "2 min", icon: "hands" }]},evening: {name: "Evening Routine",description: "Wind down after work",exercises: [{ title: "Deep Breathing", duration: "2 min", icon: "lungs" },{ title: "Shoulder Rolls", duration: "1 min", icon: "hands-praying" }]},custom: {name: "Custom Routine",description: "Your personalized wellness routine",exercises: []}};// Initialize SortableJS for drag and drop routine itemsnew Sortable(routineContainer, {animation: 150,handle: '.activity-icon',ghostClass: 'dragging',onEnd: function() {updateEmptyRoutineMessage();updateRoutineStats();}});// Show auth modal on page loadwindow.addEventListener('load', () => {authModal.classList.remove('hidden');});// Auth modal handlerscloseAuth.addEventListener('click', () => {if (!isAuthenticated) return; // Don't allow closing if not authenticatedauthModal.classList.add('hidden');});showSignup.addEventListener('click', () => {loginForm.classList.add('hidden');signupForm.classList.remove('hidden');});showLogin.addEventListener('click', () => {signupForm.classList.add('hidden');loginForm.classList.remove('hidden');});loginBtn.addEventListener('click', () => {const email = document.getElementById('login-email').value;const password = document.getElementById('login-password').value;if (!email || !password) {alert('Please enter both email and password');return;}// In a real app, you would validate credentials with a backendcurrentUser = {name: email.split('@')[0],email: email};isAuthenticated = true;// Update UIavatar.textContent = currentUser.name.charAt(0).toUpperCase();usernameDisplay.textContent = currentUser.name;// Hide auth modal and show main contentauthModal.classList.add('hidden');mainContent.classList.remove('hidden');});signupBtn.addEventListener('click', () => {const name = document.getElementById('signup-name').value;const email = document.getElementById('signup-email').value;const password = document.getElementById('signup-password').value;const confirmPassword = document.getElementById('signup-confirm-password').value;if (!name || !email || !password || !confirmPassword) {alert('Please fill in all fields');return;}if (password !== confirmPassword) {alert('Passwords do not match');return;}// In a real app, you would create the account with a backendcurrentUser = {name: name,email: email};isAuthenticated = true;// Update UIavatar.textContent = currentUser.name.charAt(0).toUpperCase();usernameDisplay.textContent = currentUser.name;// Hide auth modal and show main contentauthModal.classList.add('hidden');mainContent.classList.remove('hidden');});logoutBtn.addEventListener('click', () => {isAuthenticated = false;currentUser = null;mainContent.classList.add('hidden');authModal.classList.remove('hidden');});// Modal handlersstatsBtn.addEventListener('click', () => {statsModal.classList.remove('hidden');});2 unmodified linesstatsModal.classList.add('hidden');});// Routine selector handlerroutineSelector.addEventListener('change', function() {loadRoutine(this.value);});// Save routine handlerssaveRoutineBtn.addEventListener('click', () => {saveRoutineModal.classList.remove('hidden');updateRoutineStats();});closeSaveRoutine.addEventListener('click', () => {saveRoutineModal.classList.add('hidden');});confirmSaveRoutine.addEventListener('click', () => {const routineName = document.getElementById('routine-name').value;const routineDescription = document.getElementById('routine-description').value;if (!routineName) {alert('Please enter a name for your routine');return;}// In a real app, you would save the routine to localStorage or a backendalert(`Routine "${routineName}" saved successfully!`);saveRoutineModal.classList.add('hidden');// Update the routine selectorconst newOption = document.createElement('option');newOption.value = routineName.toLowerCase().replace(/\s+/g, '-');newOption.textContent = routineName;routineSelector.appendChild(newOption);routineSelector.value = newOption.value;});// Add to routine modal handlerscloseAddToRoutine.addEventListener('click', () => {addToRoutineModal.classList.add('hidden');currentExerciseToAdd = null;});confirmAddToRoutine.addEventListener('click', () => {if (!currentExerciseToAdd) return;const duration = exerciseDuration.value || '2';const routineId = targetRoutine.value;// Add to the selected routineconst exerciseCard = currentExerciseToAdd.closest('.exercise-card');const title = exerciseCard.querySelector('h3').textContent;const icon = exerciseCard.querySelector('.fa-3x').classList[1].replace('fa-', '');// In a real app, you would add to the routine data structureaddToRoutine(title, duration + ' min', icon);addToRoutineModal.classList.add('hidden');currentExerciseToAdd = null;});// Notification handlerscloseNotification.addEventListener('click', () => {breakNotification.classList.add('hidden');29 unmodified linesstartTimer();});pauseBtn.addEventListener('click', () => {if (isTimerPaused) {// Resume timerisTimerPaused = false;pauseBtn.innerHTML = '<i class="fas fa-pause"></i>';pauseBtn.title = "Pause";startTimer();} else {// Pause timerisTimerPaused = true;clearInterval(timer);pauseBtn.innerHTML = '<i class="fas fa-play"></i>';pauseBtn.title = "Resume";}});// Add event listeners to all "Add to Routine" buttonsdocument.querySelectorAll('.add-to-routine').forEach(button => {button.addEventListener('click', function() {currentExerciseToAdd = this;addToRoutineModal.classList.remove('hidden');// Set default duration based on exerciseconst durationText = this.closest('.exercise-card').querySelector('.text-sm.text-gray-500').textContent;const defaultDuration = durationText.includes('min') ? durationText.split(' ')[0] : '2';exerciseDuration.value = defaultDuration;});});// Add event listeners to all favorite buttonsdocument.querySelectorAll('.favorite-btn').forEach(button => {button.addEventListener('click', function() {this.classList.toggle('active');const icon = this.querySelector('i');if (icon.classList.contains('far')) {icon.classList.remove('far');icon.classList.add('fas');} else {icon.classList.remove('fas');icon.classList.add('far');}// In a real app, you would save the favorite status});});// Add event listeners to all remove buttons in routine itemsroutineContainer.addEventListener('click', function(e) {if (e.target.closest('.routine-item') && e.target.closest('.fa-times')) {e.target.closest('.routine-item').remove();updateEmptyRoutineMessage();updateRoutineStats();}});function loadRoutine(routineId) {routineContainer.innerHTML = '';const routine = routines[routineId];if (!routine) return;routine.exercises.forEach(exercise => {addToRoutine(exercise.title, exercise.duration, exercise.icon);});updateEmptyRoutineMessage();updateRoutineStats();}function addToRoutine(title, duration, icon) {emptyRoutineMessage.classList.add('hidden');const routineItem = document.createElement('div');routineItem.className = 'routine-item bg-light rounded-lg p-3 flex flex-col border border-gray-200';routineItem.innerHTML = `<div class="flex items-center justify-between mb-2"><div class="activity-icon"><i class="fas fa-${icon} text-xs"></i></div><button class="text-gray-400 hover:text-red-500 text-sm"><i class="fas fa-times"></i></button></div><h3 class="font-semibold text-gray-800 text-sm mb-1">${title}</h3><p class="text-xs text-gray-500">${duration}</p>`;routineContainer.appendChild(routineItem);updateRoutineStats();}function updateEmptyRoutineMessage() {if (routineContainer.children.length === 0) {emptyRoutineMessage.classList.remove('hidden');} else {emptyRoutineMessage.classList.add('hidden');}}function updateRoutineStats() {let totalTime = 0;const exercises = [];const activityTypes = new Set();document.querySelectorAll('.routine-item').forEach(item => {const durationText = item.querySelector('.text-xs.text-gray-500').textContent;const duration = parseInt(durationText) || 0;totalTime += duration;const title = item.querySelector('h3').textContent;exercises.push(title + ' (' + durationText + ')');const iconClass = item.querySelector('.activity-icon i').classList[1];if (iconClass.includes('hands')) activityTypes.add('Stretching');if (iconClass.includes('lungs')) activityTypes.add('Breathing');if (iconClass.includes('eye')) activityTypes.add('Eye Care');if (iconClass.includes('chair')) activityTypes.add('Yoga');if (iconClass.includes('water')) activityTypes.add('Hydration');});// Update the total time displayroutineTotalTime.textContent = totalTime;// Update the summary in the save modalif (saveRoutineModal) {const totalTimeElement = saveRoutineModal.querySelector('.bg-light .font-bold.text-primary');if (totalTimeElement) {totalTimeElement.textContent = totalTime + ' minutes';}const activitiesContainer = saveRoutineModal.querySelector('.flex-wrap.gap-2');if (activitiesContainer) {activitiesContainer.innerHTML = '';activityTypes.forEach(type => {let icon = 'spa';if (type === 'Stretching') icon = 'hands-helping';if (type === 'Breathing') icon = 'lungs';if (type === 'Eye Care') icon = 'eye';if (type === 'Yoga') icon = 'chair';if (type === 'Hydration') icon = 'water';const activityPill = document.createElement('div');activityPill.className = 'flex items-center bg-white px-3 py-1 rounded-full text-sm';activityPill.innerHTML = `<div class="activity-icon mr-2"><i class="fas fa-${icon} text-xs"></i></div>${type}`;activitiesContainer.appendChild(activityPill);});}const exercisesList = saveRoutineModal.querySelector('.list-disc');if (exercisesList) {exercisesList.innerHTML = exercises.map(ex => `<li>${ex}</li>`).join('');}}}// Exercise library search and filterexerciseSearch.addEventListener('input', filterExercises);exerciseFilter.addEventListener('change', filterExercises);function filterExercises() {const searchTerm = exerciseSearch.value.toLowerCase();const filterValue = exerciseFilter.value;document.querySelectorAll('.exercise-card').forEach(card => {const title = card.querySelector('h3').textContent.toLowerCase();const description = card.querySelector('p').textContent.toLowerCase();const category = card.dataset.category;const isFavorite = card.querySelector('.favorite-btn').classList.contains('active');const matchesSearch = title.includes(searchTerm) || description.includes(searchTerm);const matchesFilter = filterValue === 'all' ||(filterValue === 'favorites' && isFavorite) ||(filterValue !== 'favorites' && category === filterValue);if (matchesSearch && matchesFilter) {card.style.display = 'block';} else {card.style.display = 'none';}});}// Timer functionsfunction startTimer() {if (isTimerPaused) return;clearInterval(timer);timer = setInterval(updateTimer, 1000);}function updateTimer() {if (isTimerPaused) return;timeLeft--;if (timeLeft <= 0) {35 unmodified lines// InitializeupdateActivityDisplay("Stretch", "You're currently working. Your next break is scheduled soon.");startTimer();updateEmptyRoutineMessage();loadRoutine('morning');// Set one exercise as favorite by default for demodocument.querySelector('.exercise-card[data-category="eye"] .favorite-btn').classList.add('active');</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=tframe/deskrefresh" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body></html>
123I want this same site, but I want it to use an attractive green color that represents nurture or nutrition. Can you also add a routine section just after the Current Activity section and above the Exercise Library section? I want the tiles to be movable too so the routine order can be changed. Also, I want the ability for users to favorite an exercise and so the exercise library should also have a search and filtering option.This is great! For the title, I want the website to be named Desk Refresh. For the My Wellness Routine, I want the routine to be a more Horizontal scrollable list with miniature cards. Also, after the user clicks Save Routine, I want a popup to come up so they can add info for saving such as routine title, description, and site provides stats like time to complete, and a list of icons that show type of activities included in routine like drink, eat, breathe, exercise, meditate. After that's done, can the user have option to select between different routines?This is fantastic! I think it's missing. when the user selects "Add to Routine", I want it show a popup or menu so the user can then add it to a routine. It should update and get added to the My Wellness Routine. Also, I want to update the Current Activity section. I like the timer that's there, but I want the text to be above the circle instead of inside it. And the circle can be a bit smaller to give it space. Also, I think a Pause/Resume button would be good to add. For these button in the Current Activity, can we use icons instead of text? Last thing that is missing is ability to have authentication and login workflow. So, I would like to have a profile setting and there should be an avatar at the top, instead of Settings. Can you implement so users have to create or log into an account? Also, for the different exercises, I want more specific ones. Use the follow as examples, but are not limited to: push ups, side stretches, neck rotation stretches, etc. I want a lot of options for the users.
index.html+912-143
prompts.txt+3