feat: replace the newsletter message template with one more compatible with email clients
Some checks failed
Deploy Next.js application / deploy (push) Failing after 10m3s
Some checks failed
Deploy Next.js application / deploy (push) Failing after 10m3s
This commit is contained in:
parent
f943e6bee4
commit
78bdff653c
1 changed files with 30 additions and 53 deletions
|
@ -271,62 +271,39 @@ export const emails = [
|
||||||
export const EXAMPLE_A1 = `<!DOCTYPE html>
|
export const EXAMPLE_A1 = `<!DOCTYPE html>
|
||||||
<html lang="en-US">
|
<html lang="en-US">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width; initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>SVR.JS Blog Newsletter</title>
|
<title>SVR.JS newsletter</title>
|
||||||
<style>
|
<style>
|
||||||
body {
|
a {
|
||||||
color: #000000;
|
color: #22c55e;
|
||||||
background-color: #dfffdf;
|
text-decoration: none;
|
||||||
margin: 1em 0;
|
|
||||||
padding: 0;
|
|
||||||
font-family: Poppins, FreeSans, Helvetica, Tahoma, Verdana, Arial, sans-serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logo {
|
|
||||||
margin: 1em auto;
|
|
||||||
display: block;
|
|
||||||
width: 224px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.unsubscribe {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
main {
|
|
||||||
width: 95%;
|
|
||||||
max-width: 1280px;
|
|
||||||
background-color: #ffffff;
|
|
||||||
border: 1px #c0c0c0 solid;
|
|
||||||
margin: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content {
|
|
||||||
padding: 0.5em 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content h1 {
|
|
||||||
margin: 0.25em 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.thumbnail {
|
|
||||||
width: 100%;
|
|
||||||
display: block;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body style="margin: 0; padding: 0; font-family: Poppins, FreeSans, Helvetica, Tahoma, Verdana, Arial, sans-serif; background-color: #0c0a09; color: #ffffff;">
|
||||||
<img class="logo" src="${process.env.NEXT_PUBLIC_WEBSITE_URL}/logo-wide.png">
|
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color: #0c0a09;">
|
||||||
<main>
|
<tr>
|
||||||
<div class="content">
|
<td align="center">
|
||||||
<h1>Title</h1>
|
<table width="600" cellpadding="0" cellspacing="0" border="0" style="margin: 20px 0; background-color: #191817;">
|
||||||
</div>
|
<tr>
|
||||||
<img class="thumbnail" src="${process.env.NEXT_PUBLIC_WEBSITE_URL}/blog-missing.png" alt="Thumbnail">
|
<td align="center" style="padding: 20px 0;">
|
||||||
<div class="content">
|
<img src="${process.env.NEXT_PUBLIC_WEBSITE_URL}/logo-wide.png" alt="Logo" width="200" style="display: block; max-width: 100%;" />
|
||||||
Put contents of the newsletter email here.
|
</td>
|
||||||
<p><a href="${process.env.NEXT_PUBLIC_WEBSITE_URL}">Go to SVR.JS website</a></p>
|
</tr>
|
||||||
</div>
|
<tr>
|
||||||
</main>
|
<td style="padding: 20px; background-color: #221f1e; color: #ffffff;">
|
||||||
<p class="unsubscribe">You can unsubscribe from the newsletter <a href="${process.env.NEXT_PUBLIC_WEBSITE_URL}/unsubscribe?id={unsubscribeId}">here</a>.</p>
|
<p>Put the contents of the newsletter email here.</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td align="center" style="padding: 20px; background-color: #191817; color: #ffffff;">
|
||||||
|
<p style="font-size: 12px; color: #aaaaaa;">If you no longer wish to receive these emails, you can <a href="${process.env.NEXT_PUBLIC_WEBSITE_URL}/unsubscribe?id={unsubscribeId}" style="color: #22c55e; text-decoration: none;">unsubscribe</a>.</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
</body>
|
</body>
|
||||||
</html>`;
|
</html>`;
|
||||||
|
|
Loading…
Reference in a new issue