UNPKG

dry-node

Version:

Initialiseur de structure Node Express typée et modulaire

92 lines (76 loc) 3.46 kB
function DryTemplateEmailFunction(title, logo, name, email, code) { return `<!DOCTYPE html> <html lang="fr"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>${title}</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; margin: 0; padding: 0; color: #333; } .container { max-width: 600px; margin: 0 auto; background-color: #ffffff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .header { text-align: center; padding: 10px 0; background-color: #005ca8; color: #ffffff; border-radius: 8px 8px 0 0; } .header h1 { margin: 0; font-size: 24px; } .content { padding: 20px; } .content p { margin: 0 0 20px; line-height: 1.6; } .footer { text-align: center; padding: 20px; font-size: 12px; color: #777; } </style> </head> <body> <div class="container"> <div class="header"> <h1>${title}</h1> </div> <div style="text-align: center; margin: 30px 0"> <img style="width:120px" src="${logo}" /> </div> <div class="content"> <p>Bonjour ${name},</p> <div>Votre compte a été créé sur KLEOS : <span style="background: white !important;">${email}.</span> </div> <p>Votre mot de passe est: ${code} </p> <p>Lien de connexion : <a href="https://kleos.congotelecom.cg">https://kleos.congotelecom.cg</a></p> <p>Nous vous invitons à modifier votre mot de passe lors de votre première connexion pour des raisons de sécurité.</p> <p>Merci,<br>L'équipe DIP </p> </div> <div class="footer"> <p>&copy; ${new Date().getFullYear()} CongoTelecom. Tous droits réservés.</p> </div> </div> </body> </html> `; } module.exports = DryTemplateEmailFunction;