Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

restyled the invitation email

Blue Mouse785d38b91f6c
diff --git a/src/common/templates/en/project-subscriber-invitation.html b/src/common/templates/en/project-subscriber-invitation.html
index 3913f2a55..65decd7c0 100644
--- a/src/common/templates/en/project-subscriber-invitation.html
+++ b/src/common/templates/en/project-subscriber-invitation.html
@@ -1 +1,228 @@
-<p>{{inviteLink}}</p>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>
+ You have been invited to subscribe to the {{projectName}} reports.
+ </title>
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700" rel="stylesheet" />
+ </head>
+ <body style="margin: 0; padding: 0; background-color: #f0f4f7;">
+ <table cellpadding="0" cellspacing="0" border="0" width="100%" style="background: #f0f4f7; min-width: 340px; font-size: 1px; line-height: normal;">
+ <tr>
+ <td align="center" valign="top" bgcolor="#f0f4f7">
+ <!--[if (gte mso 9)|(IE)]>
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr><td align="center" valign="top" width="750"><![endif]-->
+ <table cellpadding="0" cellspacing="0" border="0" width="750" style="width: 100%; max-width: 750px; min-width: 340px; background: #f0f4f7;">
+ <tr>
+ <td width="25" style="width: 25px; max-width: 25px; min-width: 25px;">&nbsp;</td>
+ <td align="center" valign="top" style="background: #ffffff;">
+ <table cellpadding="0" cellspacing="0" border="0" width="100%" style="width: 100% !important; min-width: 100%; max-width: 100%; background: #f0f4f7;">
+ <tr>
+ <td align="right" valign="top">
+ <div style="height: 25px; line-height: 25px; font-size: 23px;">&nbsp;</div>
+ </td>
+ </tr>
+ </table>
+ <table cellpadding="0" cellspacing="0" border="0" width="88%" style="width: 88% !important; min-width: 88%; max-width: 88%;">
+ <tr>
+ <td align="center" valign="top">
+ <div style="height: 40px; line-height: 40px; font-size: 38px;">&nbsp;</div>
+ <a href="https://swetrix.com" target="_blank" style="display: block; max-width: 173px;text-decoration: none;">
+ <img src="https://swetrix.com/assets/logo_blue.png" alt="Swetrix" width="175" border="0" style="display: block; width: 175px; font-size: 32px;" />
+ </a>
+ <div style="height: 40px; line-height: 40px; font-size: 40px;">&nbsp;</div>
+ </td>
+ </tr>
+ </table>
+ <table cellpadding="0" cellspacing="0" border="0" width="88%" style="width: 88% !important; min-width: 88%; max-width: 88%;">
+ <tr>
+ <td align="center" valign="top">
+ <font align="center" style="font-size: 52px; line-height: 55px; font-weight: 300; letter-spacing: -1.5px;">
+ <span
+ align="center"
+ style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; font-size: 44px; color: #1a1a1a;"
+ >
+ You have been invited to subscribe to the {{projectName}} reports.
+ </span>
+ </font>
+ <div style="height: 38px; line-height: 38px; font-size: 36px;">&nbsp;</div>
+ <table cellpadding="0" cellspacing="0" border="0" width="88%" style="width: 88% !important; min-width: 88%; max-width: 88%;">
+ <tr>
+ <td align="left" valign="top">
+ <font face="'Source Sans Pro', sans-serif" color="#6d6d6d" style="font-size: 17px; line-height: 23px;">
+ <span
+ style="
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
+ color: #6d6d6d;
+ font-size: 17px;
+ line-height: 23px;
+ "
+ >
+ Hey!<br /><br />
+ A Swetrix user has invited you to join the <b>{{projectName}}</b> website analytics reports email subscription.<br />
+ Click the button below to accept the invitation or ignore this email if you do not want to receive updates from this project.
+ </span>
+ </font>
+ <div style="height: 30px; line-height: 30px; font-size: 28px;">&nbsp;</div>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+
+ <table cellpadding="0" cellspacing="0" border="0" width="88%" style="width: 88% !important; min-width: 88%; max-width: 88%;">
+ <tr>
+ <td align="center" valign="top">
+ <table cellpadding="0" cellspacing="0" border="0" style="background: #4f46e5; border-radius: 4px;">
+ <tr>
+ <td align="center" valign="top">
+ <a
+ href="{{url}}"
+ target="_blank"
+ style="
+ display: block;
+ border: 1px solid #4f46e5;
+ border-radius: 4px;
+ padding: 19px 26px;
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
+ color: #ffffff;
+ font-size: 20px;
+ line-height: 30px;
+ text-decoration: none;
+ white-space: nowrap;
+ font-weight: 600;
+ "
+ >
+ <font face="'Source Sans Pro', sans-serif" color="#ffffff" style="font-size: 26px; line-height: 30px; text-decoration: none; white-space: nowrap; font-weight: 600;">
+ <span
+ style="
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
+ color: #ffffff;
+ font-size: 26px;
+ line-height: 30px;
+ text-decoration: none;
+ white-space: nowrap;
+ font-weight: 600;
+ "
+ >
+ Accept invitation
+ </span>
+ </font>
+ </a>
+ </td>
+ </tr>
+ </table>
+ <div style="height: 30px; line-height: 30px; font-size: 28px;">&nbsp;</div>
+ <table cellpadding="0" cellspacing="0" border="0" width="88%" style="width: 88% !important; min-width: 88%; max-width: 88%;">
+ <tr>
+ <td align="left" valign="top">
+ <font face="'Source Sans Pro', sans-serif" color="#6d6d6d" style="font-size: 17px; line-height: 23px;">
+ <span
+ style="
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
+ color: #6d6d6d;
+ font-size: 17px;
+ line-height: 23px;
+ "
+ >
+ If you&apos;re having trouble with the button above, copy and paste the URL below directly into your web browser:<br />
+ {{url}}
+ </span>
+ </font>
+ </td>
+ </tr>
+ </table>
+ <div style="height: 40px; line-height: 40px; font-size: 38px;">&nbsp;</div>
+ </td>
+ </tr>
+ </table>
+
+ <table cellpadding="0" cellspacing="0" border="0" width="100%" style="width: 100% !important; min-width: 100%; max-width: 100%; background: #f0f4f7;">
+ <tr>
+ <td align="center" valign="top">
+ <div style="height: 25px; line-height: 25px; font-size: 32px;">&nbsp;</div>
+ <table cellpadding="0" cellspacing="0" border="0" width="88%" style="width: 88% !important; min-width: 88%; max-width: 88%;">
+ <tr>
+ <td align="center" valign="top">
+ <font style="font-size: 17px; line-height: 20px;">
+ <span
+ style="
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
+ color: #3c4858;
+ font-size: 17px;
+ line-height: 20px;
+ "
+ >
+ <a
+ href="https://swetrix.com/terms"
+ target="_blank"
+ style="
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
+ color: #3c4858;
+ font-size: 17px;
+ line-height: 20px;
+ text-decoration: none;
+ "
+ >
+ Terms of Service
+ </a>
+ </span>
+ </font>
+ <font face="'Source Sans Pro', sans-serif" color="#3c4858" style="font-size: 17px; line-height: 20px;">
+ <span
+ style="
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
+ color: #1a1a1a;
+ font-size: 17px;
+ line-height: 20px;
+ "
+ >
+ &nbsp;&nbsp;|&nbsp;&nbsp;
+ </span>
+ </font>
+ <font style="font-size: 17px; line-height: 20px;">
+ <span
+ style="
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
+ color: #1a1a1a;
+ font-size: 17px;
+ line-height: 20px;
+ "
+ >
+ <a
+ href="https://swetrix.com/privacy"
+ target="_blank"
+ style="
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
+ color: #3c4858;
+ font-size: 17px;
+ line-height: 20px;
+ text-decoration: none;
+ "
+ >
+ Privacy Policy
+ </a>
+ </span>
+ </font>
+ </td>
+ </tr>
+ </table>
+ <div style="height: 25px; line-height: 25px; font-size: 28px;">&nbsp;</div>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td width="25" style="width: 25px; max-width: 25px; min-width: 25px;">&nbsp;</td>
+ </tr>
+ </table>
+ <!--[if (gte mso 9)|(IE)]>
+ </td></tr>
+ </table><![endif]-->
+ </td>
+ </tr>
+ </table>
+ </body>
+</html>