templates.ts (1045B)
1 import Handlebars from 'handlebars' 2 3 export const emailTemplates = { 4 signupConfirmation: Handlebars.compile(` 5 <html> 6 <body> 7 <div style="max-width:500px;width:100%;margin:0 auto;padding:1rem;font-family:sans-serif;background-color:#fff;margin-top:40px;margin-bottom:60px;border-radius:16px;box-shadow:0px 1px 2px 0px #00000033, 0px 2px 6px 2px #0000001A"> 8 <h1> 9 계정 만들기 10 </h1> 11 <p> 12 누군가 이 메일 주소로 회원가입을 요청했습니다.<br/> 13 본인이 하신 요청이 아니라면 이 메일을 무시하셔도 괜찮습니다. 14 </p> 15 <p> 16 계속하려면 아래 링크로 이동해주세요.<br/> 17 <a href="{{signupURL}}">{{signupURL}}</a> 18 </p> 19 <p> 20 감사합니다. 21 </p> 22 </div> 23 </body> 24 </html> 25 `), 26 } 27 28 export function getSignupConfirmationEmailHTML (signupURL: string): string { 29 return emailTemplates.signupConfirmation({ signupURL }) 30 }