Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

feat(email): refresh digest and login-code email templates (#5873)

Aidan Holloway-Bidwellb9c9dd52945f
diff --git a/crates/email_formatting/templates/digest.html b/crates/email_formatting/templates/digest.html
index 88462b3a2d..834afa1c58 100644
--- a/crates/email_formatting/templates/digest.html
+++ b/crates/email_formatting/templates/digest.html
@@ -21,16 +21,8 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
- <link href="https://fonts.googleapis.com/css2?family=Inter:opsz,[email protected],500&display=swap" rel="stylesheet">
+ <link href="https://fonts.googleapis.com/css2?family=Inter:opsz,[email protected],400..500&display=swap" rel="stylesheet">
- <style type="text/css">
- @font-face {
- src: url("https://pub-4030931feb3e4212b2ac93166a411ea7.r2.dev/berkley.woff2")
- format("woff2");
- font-family: "Berkeley Mono";
- font-display: fallback;
- }
- </style>
</head>
<body
style="
@@ -44,9 +36,7 @@
<div style="padding: 60px 20px; width: 100%">
<div
style="
- font-family:
- &quot;Berkeley Mono&quot;, &quot;Courier New&quot;, Courier,
- monospace;
+ font-family: &quot;Inter&quot;, sans-serif;
background-color: #fcfcfc;
border: 1px solid #e0e0e0;
box-sizing: border-box;
@@ -65,13 +55,25 @@
box-sizing: border-box;
line-height: 60px;
font-size: 18px;
- padding: 0 20px;
+ /* 26px left so the logo's center (26 + 15) matches the notif
+ bullets' center (20 + 17 + 4 = 41px) */
+ padding: 0 20px 0 26px;
height: 60px;
width: 100%;
font-family: &quot;Inter&quot;, sans-serif;
"
>
- You have {{ total_count }} new {% if total_count == 1 %}notification{%
+ <img
+ src="https://macro.com/app/macro-logo-orange.png"
+ width="30"
+ height="20"
+ alt=""
+ style="
+ vertical-align: middle;
+ margin-right: 10px;
+ border: 0;
+ "
+ />You have {{ total_count }} new {% if total_count == 1 %}notification{%
else %}notifications{% endif %}
</div>
<hr
@@ -161,6 +163,7 @@
color: #090909;
font-size: 16px;
font-family: &quot;Inter&quot;, sans-serif;
+ font-weight: 400;
line-height: 1.4;
word-wrap: break-word;
overflow-wrap: break-word;
@@ -222,19 +225,16 @@
>
<tbody>
<tr>
- <td style="vertical-align: bottom; width: 50%">
+ <td style="text-align: center">
<a
style="
- font-family:
- &quot;Berkeley Mono&quot;, &quot;Courier New&quot;,
- Courier, monospace;
+ font-family: &quot;Inter&quot;, sans-serif;
background-color: #ff8f00;
text-decoration: none;
display: inline-block;
white-space: nowrap;
border-radius: 2px;
- width: min-content;
- padding: 4px 10px;
+ padding: 8px 48px;
color: #090909;
"
href="https://macro.com"
@@ -243,25 +243,6 @@
View in Macro
</a>
</td>
- <td
- style="
- vertical-align: top;
- text-align: right;
- padding: 0;
- width: 50%;
- "
- >
- <img
- src="https://static-file-service.macro.com/file/b911aba9-94a6-435c-aa16-8404739f13b0"
- style="
- -ms-interpolation-mode: bicubic;
- line-height: 100%;
- outline: none;
- width: 60px;
- border: 0;
- "
- />
- </td>
</tr>
</tbody>
</table>
diff --git a/infra/stacks/fusionauth-instance/index.ts b/infra/stacks/fusionauth-instance/index.ts
index 50c47db0a7..a85e2196fe 100644
--- a/infra/stacks/fusionauth-instance/index.ts
+++ b/infra/stacks/fusionauth-instance/index.ts
@@ -66,7 +66,7 @@ const passwordlessEmailTemplate = new FusionAuthEMail(
'./templates/passwordless_email_template.html',
'utf-8'
),
- defaultTextTemplate: 'Your login code is: ${code}',
+ defaultTextTemplate: 'Here is your temporary login code: ${code}',
defaultFromName: 'Macro',
},
{ provider: fusionAuthProvider }
diff --git a/infra/stacks/fusionauth-instance/templates/passwordless_email_template.html b/infra/stacks/fusionauth-instance/templates/passwordless_email_template.html
index e562deb2db..d164ea73a6 100644
--- a/infra/stacks/fusionauth-instance/templates/passwordless_email_template.html
+++ b/infra/stacks/fusionauth-instance/templates/passwordless_email_template.html
@@ -33,8 +33,9 @@
<td align="center" style="padding: 56px 0 32px">
<a href="https://macro.com">
<img
- src="https://macro.com/logo-256px.png"
- width="128"
+ src="https://macro.com/app/macro-logo-orange.png"
+ width="96"
+ height="64"
alt="Macro"
style="border: 0; max-width: 100%"
/>
@@ -66,9 +67,9 @@
font-family: 'Rajdhani', Helvetica, Arial, sans-serif;
"
>
- Enter the code below to login.
+ Here is your temporary login code.
</p>
- <div style="margin: 56px auto; width: calc(100% - 64px); max-width: 400px; border-radius: 5px; background-color: #1f1f1f; padding: 32px; text-align: center; font-size: 48px; letter-spacing: 0.2em; color: #ff8f00; font-family: 'Courier New', Courier, monospace; border: 1px solid #484848; box-sizing: border-box">
+ <div style="margin: 56px auto; width: calc(100% - 64px); max-width: 400px; border-radius: 5px; background-color: #1f1f1f; padding: 32px; text-align: center; font-size: 48px; letter-spacing: 0.2em; color: #ff8f00; font-family: 'Rajdhani', Helvetica, Arial, sans-serif; border: 1px solid #484848; box-sizing: border-box">
${code}
</div>
<p