@@ -2,6 +2,7 @@ import i18nData from "../i18n/messages.json" with { type: "json" };
22
33const LOGO_URL = Deno . env . get ( "LOGO_URL" ) ;
44const FRONTEND_HOST = Deno . env . get ( "FRONTEND_HOST" ) ;
5+ const LEADMINER_DATA_PRIVACY_URL = "https://www.leadminer.io/data-privacy" ;
56
67/**
78 * Simple template interpolator: replaces {var} with provided values
@@ -33,11 +34,11 @@ export default function buildEmail(
3334
3435 const bodyContent = hasNoNewContacts
3536 ? `
36- <p style="font-size: 17px; margin: 0 0 16px ; text-align: center;">
37+ <p style="font-size: 17px; margin: 0 0 15px ; text-align: center;">
3738 ${ i18n . noNewContactsBody }
3839 </p>
3940
40- <table role="presentation" align="center" style="margin-top: 30px ;">
41+ <table role="presentation" align="center" style="margin-top: 15px ;">
4142 <tr>
4243 <td align="center" style="padding-right: 10px;">
4344 <a
@@ -75,15 +76,15 @@ export default function buildEmail(
7576 </table>
7677 `
7778 : `
78- <p style="font-size: 17px; margin: 0 0 16px ">
79+ <p style="font-size: 17px; margin: 0 0 15px ">
7980 ${ i18n . recapIntro }
8081 </p>
8182
8283 <ul
8384 style="
8485 list-style: none;
8586 padding: 0;
86- margin: 24px 0;
87+ margin: 15px 0;
8788 font-size: 15px;
8889 line-height: 1.8;
8990 "
@@ -106,7 +107,7 @@ export default function buildEmail(
106107 }
107108 </ul>
108109
109- <table role="presentation" align="center" style="margin-top: 30px ;">
110+ <table role="presentation" align="center" style="margin-top: 15px ;">
110111 <tr>
111112 <td align="center" style="padding-right: 10px;">
112113 <a
@@ -142,6 +143,11 @@ export default function buildEmail(
142143 </td>
143144 </tr>
144145 </table>
146+ <div style="margin-top: 15px; font-size: 13px; color: #6b7280; text-align: center;">
147+ <div>${ i18n . start_mining_toast . summary } </div>
148+ <div>${ i18n . start_mining_toast . detail_1 } </div>
149+ <a href="${ LEADMINER_DATA_PRIVACY_URL } " style="color: #6b7280;">${ i18n . start_mining_toast . detail_2 } </a>
150+ </div>
145151 ` ;
146152
147153 const html = `
0 commit comments