Smart Wellness & Relaxation Reminder
Create a personalized schedule to nurture your mind and body.
Your Reminders
You have no reminders set. Add one from the 'Add New Reminder' tab!
Create a New Reminder
Wellness & Relaxation Ideas
20-20-20 Eye Strain Rule
Every 20 minutes, look at something 20 feet away for 20 seconds.
Mindful Breathing
Take 5 deep, slow breaths, focusing only on your breath.
Quick Stretch
Stand up and stretch your arms, neck, and back for 60 seconds.
Hydration Check
Drink a full glass of water to stay hydrated and focused.
Wellness Reminder!
This is your reminder message.
Generated by the Smart Wellness & Relaxation Reminder Tool.
`; // Use html2canvas to render the clean content // We append it to the body to render, then remove it document.body.appendChild(pdfContent); html2canvas(pdfContent).then(canvas => { const imgData = canvas.toDataURL('image/png'); const imgProps = doc.getImageProperties(imgData); const pdfWidth = doc.internal.pageSize.getWidth(); const pdfHeight = (imgProps.height * pdfWidth) / imgProps.width; doc.addImage(imgData, 'PNG', 0, 0, pdfWidth, pdfHeight); doc.save('wellness-schedule.pdf'); // Clean up by removing the temporary element document.body.removeChild(pdfContent); }); }); // --- Utility Functions --- const formatTime = (timeString) => { const [hourString, minute] = timeString.split(':'); const hour = +hourString % 24; return (hour % 12 || 12) + ":" + minute + (hour < 12 ? " AM" : " PM"); }; // --- Initial State --- updateTabs(); // Set the initial view renderReminders(); // Render the initial empty state });