/** * Email template for email verification * Sends verification link and PIN code to new users */ /** * Generate verification email content * @param {Object} data - Template data * @param {string} data.firstName - User's first name * @param {string} data.verificationLink - Full verification URL with token * @param {string} data.verificationCode - 6-digit PIN code * @returns {Object} - Email content with subject, htmlBody, textBody */ function generateVerificationEmail(data) { const { firstName, verificationLink, verificationCode } = data; const subject = 'Verify your spotlight.cam email'; const htmlBody = `

🎥 spotlight.cam

Welcome to the dance community!

Hi ${firstName || 'there'}! 👋

Thanks for joining spotlight.cam! To start sharing dance videos with your event partners, please verify your email address.

Option 1: Click the button

Verify Email Address

Option 2: Enter this code

${verificationCode}

This code will expire in 24 hours.

Didn't create an account? You can safely ignore this email.

`; const textBody = ` Hi ${firstName || 'there'}! Thanks for joining spotlight.cam! To start sharing dance videos with your event partners, please verify your email address. Option 1: Click this link to verify ${verificationLink} Option 2: Enter this verification code ${verificationCode} This code will expire in 24 hours. Didn't create an account? You can safely ignore this email. --- spotlight.cam - P2P video exchange for dance events This is an automated email. Please do not reply. `; return { subject, htmlBody, textBody }; } module.exports = { generateVerificationEmail };