Guided Meditation Recommendation Tool

Guided Meditation Recommendation Tool

1. Your Goal
2. Recommendation

Find Your Perfect Meditation

${userRecommendation.description}

Guided Script:

${userRecommendation.script}

Disclaimer: This is a sample script for educational purposes. Meditation is a personal practice; feel free to adapt it. This is not a substitute for professional mental health care.
`; downloadPdfBtn.style.display = 'inline-block'; } function generatePdf() { const { jsPDF } = jspdf; const doc = new jsPDF(); const pageW = doc.internal.pageSize.getWidth(); // Header doc.setFillColor(13, 148, 136); // Teal doc.rect(0, 0, pageW, 25, 'F'); doc.setFont('helvetica', 'bold'); doc.setFontSize(16); doc.setTextColor(255, 255, 255); doc.text('Guided Meditation Recommendation', pageW / 2, 15, { align: 'center' }); // Recommendation doc.setFontSize(12); doc.setFont('helvetica', 'normal'); doc.text(`For your goal of '${userRecommendation.goal}' and experience level of '${userRecommendation.experience}', we recommend:`, pageW / 2, 40, { align: 'center' }); doc.setFontSize(18); doc.setFont('helvetica', 'bold'); doc.setTextColor(13, 148, 136); doc.text(userRecommendation.title, pageW / 2, 55, { align: 'center' }); // Script Table doc.autoTable({ startY: 70, theme: 'grid', headStyles: { fillColor: [13, 148, 136] }, head: [['Description & Guided Script']], body: [[`${userRecommendation.description}\n\n${userRecommendation.script}`]], }); // Disclaimer doc.autoTable({ startY: doc.lastAutoTable.finalY + 10, theme: 'plain', body: [[ "Disclaimer: This is a sample script for educational purposes and not a substitute for professional mental health care. Find a quiet space, get comfortable, and never practice while driving." ]] }); // Footer const pageH = doc.internal.pageSize.getHeight(); doc.setLineWidth(0.5); doc.setDrawColor(13, 148, 136); doc.line(15, pageH - 15, pageW - 15, pageH - 15); doc.setFontSize(8); doc.setTextColor(128, 128, 128); doc.text('Personalized Wellness Guide', pageW / 2, pageH - 10, { align: 'center' }); doc.save('Guided_Meditation_Recommendation.pdf'); } updateUI(); });
Scroll to Top