-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
646 additions
and
288 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
130 changes: 130 additions & 0 deletions
130
server/api/helpers/mailer/templates/articleGotNewComment.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
export default ({ | ||
firstname, id, title, commenter, commentBody | ||
}) => ` | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<title>Coinbase</title> | ||
</head> | ||
<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" style="margin: 0pt auto; padding: 0px; background:#F4F7FA;"> | ||
<table id="main" width="100%" height="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#F4F7FA"> | ||
<tbody> | ||
<tr> | ||
<td valign="top"> | ||
<table class="innermain" cellpadding="0" width="580" cellspacing="0" border="0" bgcolor="#F4F7FA" align="center" | ||
style="margin:0 auto; table-layout: fixed;"> | ||
<tbody> | ||
<!-- START of MAIL Content --> | ||
<tr> | ||
<td colspan="4"> | ||
<!-- Logo start here --> | ||
<table class="logo" width="100%" cellpadding="0" cellspacing="0" border="0"> | ||
<tbody> | ||
<tr> | ||
<td colspan="2" height="30"></td> | ||
</tr> | ||
<tr> | ||
<td valign="top" align="center"> | ||
<p style="font-family: -apple-system,BlinkMacSystemFont,'Segoe UI','Roboto','Oxygen','Ubuntu','Cantarell','Fira Sans','Droid Sans','Helvetica Neue',sans-serif;color:#4E5C6E;line-height:20px;font-size:1.75rem;">Author's | ||
Haven</p> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<!-- Logo end here --> | ||
<!-- Main CONTENT --> | ||
<table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#ffffff" style="border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.05);"> | ||
<tbody> | ||
<tr> | ||
<td height="40"></td> | ||
</tr> | ||
<tr style="font-family: -apple-system,BlinkMacSystemFont,'Segoe UI','Roboto','Oxygen','Ubuntu','Cantarell','Fira Sans','Droid Sans','Helvetica Neue',sans-serif; color:#4E5C6E; font-size:14px; line-height:20px; margin-top:20px;"> | ||
<td class="content" colspan="2" valign="top" align="center" style="padding-left:90px; padding-right:90px;"> | ||
<table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#ffffff"> | ||
<tbody> | ||
<tr> | ||
<td align="center" valign="bottom" colspan="2" cellpadding="3"> | ||
<img alt="Coinbase" width="80" src="https://www.coinbase.com/assets/app/icon_email-e8c6b940e8f3ec61dcd56b60c27daed1a6f8b169d73d9e79b8999ff54092a111.png" /> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td height="30" =""></td> | ||
</tr> | ||
<tr> | ||
<td align="center"> <span style="color:#48545d;font-size:22px;line-height: 24px;"> | ||
Article Notification | ||
</span> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td height="24" =""></td> | ||
</tr> | ||
<tr> | ||
<td height="1" bgcolor="#DAE1E9"></td> | ||
</tr> | ||
<tr> | ||
<td height="24" =""></td> | ||
</tr> | ||
<tr> | ||
<td align="center"> <span style="color:#48545d;font-size:14px;line-height:24px;"> | ||
Hi ${firstname}, There has been a new comment on your bookmarked article: "<a href=${process.env.DOMAIN}/api/articles/${id}>${title}</a>". <br> | ||
<em>${commenter}: ${commentBody}</em> | ||
</span> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td height="20" =""></td> | ||
</tr> | ||
<tr> | ||
<td valign="top" width="48%" align="center"> <span> | ||
</span> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td height="60"></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<!-- Main CONTENT end here --> | ||
<!-- FOOTER start here --> | ||
<table width="100%" cellpadding="0" cellspacing="0" border="0"> | ||
<tbody> | ||
<tr> | ||
<td height="10"> </td> | ||
</tr> | ||
<tr> | ||
<td valign="top" align="center"> <span style="font-family: -apple-system,BlinkMacSystemFont,'Segoe UI','Roboto','Oxygen','Ubuntu','Cantarell','Fira Sans','Droid Sans','Helvetica Neue',sans-serif; color:#9EB0C9; font-size:10px;">© | ||
<a href="#" target="_blank" style="color:#9EB0C9 !important; text-decoration:none;">Author's | ||
Haven</a> | ||
| | ||
<a href="https://reallygoodemails.com/" target="_blank" style="color:#9EB0C9 !important; text-decoration:none;">Courtesy | ||
of Really Good Emails</a> | ||
</span> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td height="50"> </td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<!-- FOOTER end here --> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</body> | ||
</html> | ||
`; |
Oops, something went wrong.