-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #241 from pluralsh/mjg/eng-73-implement-new-email-…
…designs Implement new emails
- Loading branch information
Showing
20 changed files
with
878 additions
and
23 deletions.
There are no files selected for viewing
18 changes: 15 additions & 3 deletions
18
apps/email/lib/email_web/templates/email/confirm_email.html.eex
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 |
---|---|---|
@@ -1,3 +1,15 @@ | ||
<p> | ||
Click <a target="_blank" href='<%= url("/confirm-email/#{@token.external_id}") %>'>here</a> to confirm your email | ||
</p> | ||
<%= row do %> | ||
<%= text bold: true do %> | ||
Confirm Your Email | ||
<% end %> | ||
<% end %> | ||
<%= row do %> | ||
<%= text do %> | ||
Click below to confirm your email | ||
<% end %> | ||
<% end %> | ||
<%= row do %> | ||
<%= btn url: url("/confirm-email/#{@token.external_id}") do %> | ||
Confirm | ||
<% end %> | ||
<% end %> |
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
13 changes: 10 additions & 3 deletions
13
apps/email/lib/email_web/templates/email/passwordless_login.html.eex
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 |
---|---|---|
@@ -1,3 +1,10 @@ | ||
<p> | ||
Click <a target="_blank" href='<%= url("/passwordless-login/#{@login.token}") %>'>here</a> to log into plural. | ||
</p> | ||
<%= row do %> | ||
<%= text bold: true do %> | ||
Securely Log Into Plural | ||
<% end %> | ||
<% end %> | ||
<%= row do %> | ||
<% btn url: url("/passwordless-login/#{@login.token}") do %> | ||
Login | ||
<% end %> | ||
<% end %> |
30 changes: 27 additions & 3 deletions
30
apps/email/lib/email_web/templates/email/reset_password.html.eex
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 |
---|---|---|
@@ -1,3 +1,27 @@ | ||
<p> | ||
Click <a target="_blank" href='<%= url("/reset-password/#{@token.external_id}") %>'>here</a> to reset your password. | ||
</p> | ||
<%= row do %> | ||
<%= text bold: true do %> | ||
Reset Your Password | ||
<% end %> | ||
<% end %> | ||
|
||
<%= row do %> | ||
<%= text do %> | ||
Hi <%= @user.name %> | ||
<% end %> | ||
<% end %> | ||
|
||
<%= row do %> | ||
Click here to reset your plural password | ||
<% end %> | ||
|
||
<%= row do %> | ||
<% btn url: url("/reset-password/#{@token.external_id}") do %> | ||
Reset Password | ||
<% end %> | ||
<% end %> | ||
|
||
<%= row do %> | ||
<%= text do %> | ||
If you didn’t request a password reset, please disregard this email. | ||
<% end %> | ||
<% end %> |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<p> | ||
<div>This is just a test email for <%= @user.email %></div> | ||
</p> | ||
<%= row do %> | ||
<%= text do %> | ||
This is just a test email for <%= @user.email %> | ||
<% end %> | ||
<% end %> |
295 changes: 291 additions & 4 deletions
295
apps/email/lib/email_web/templates/layout/email.html.eex
Large diffs are not rendered by default.
Oops, something went wrong.
294 changes: 294 additions & 0 deletions
294
apps/email/lib/email_web/templates/layout/index.html.eex
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;width:100%;line-height:100%;"> | ||
<tbody> | ||
<tr> | ||
<td align="center" bgcolor="#293EFF" role="presentation" style="border:none;border-radius:3px;cursor:auto;mso-padding-alt:18px;background:#293EFF;" valign="middle"> | ||
<a href="<%= @url %>" style="display:inline-block;background:#293EFF;color:#E9ECF0;font-family:Inter,Helvetica,Arial,sans-serif;font-size:20px;font-weight:600;line-height:24px;margin:0;text-decoration:none;text-transform:none;padding:18px;mso-padding-alt:0px;border-radius:3px;" target="blank"> | ||
<%= @inner_content %> | ||
</a> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> |
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,5 @@ | ||
<tr> | ||
<td align="left" style="font-size:0px;padding:0;word-break:break-word;"> | ||
<%= @inner_content %> | ||
</td> | ||
</tr> |
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,5 @@ | ||
<tr> | ||
<td style="font-size:0px;padding:0;word-break:break-word;"> | ||
<div style="height:56px;line-height:56px;"> </div> | ||
</td> | ||
</tr> |
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,7 @@ | ||
<% size = if assigns[:bold], do: "30px", else: "18px" %> | ||
<% height = if assigns[:bold], do: "40px", else: "24px" %> | ||
<% font = if assigns[:bold], do: ~s("Monument Trial",), else: "" %> | ||
|
||
<div style="font-family:<%= font %>Inter,Helvetica,Arial,sans-serif;font-size:<%= size %>;line-height:<%= height %>;text-align:left;color:#ffffff;<%= if IO.inspect(assigns[:bold]), do: "font-weight:500", else: "" %>"> | ||
<%= @inner_content %> | ||
</div> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
defmodule EmailWeb.SharedView do | ||
use EmailWeb, :view | ||
end |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,168 @@ | ||
@font-face { | ||
font-family: 'Monument Trial'; | ||
src: url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/627978260422d561ec6f3db9_ABCMonumentGrotesk-Light-Trial.otf') format('opentype'); | ||
font-weight: 300; | ||
font-style: normal; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: 'Monument Trial'; | ||
src: url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/62797826e66c69aa58b6075c_ABCMonumentGrotesk-HeavyItalic-Trial.otf') format('opentype'), url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/62797825166f25af67a380d9_ABCMonumentGrotesk-BlackItalic-Trial.otf') format('opentype'); | ||
font-weight: 900; | ||
font-style: italic; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: 'Monument Trial'; | ||
src: url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/62797826c925d18097430806_ABCMonumentGrotesk-LightItalic-Trial.otf') format('opentype'); | ||
font-weight: 300; | ||
font-style: italic; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: 'Monument Trial'; | ||
src: url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/62797826bd85bb9a6c6849aa_ABCMonumentGrotesk-Medium-Trial.otf') format('opentype'); | ||
font-weight: 500; | ||
font-style: normal; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: 'Monument Trial'; | ||
src: url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/6279782518c2dc5d2037c75e_ABCMonumentGrotesk-Black-Trial.otf') format('opentype'), url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/627978264c33093735b999cf_ABCMonumentGrotesk-Heavy-Trial.otf') format('opentype'); | ||
font-weight: 900; | ||
font-style: normal; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: 'Monument Trial'; | ||
src: url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/62797826d19e277289c9e904_ABCMonumentGrotesk-Bold-Trial.otf') format('opentype'); | ||
font-weight: 700; | ||
font-style: normal; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: 'Monument Trial'; | ||
src: url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/62797827e429dd409618c52b_ABCMonumentGrotesk-MediumItalic-Trial.otf') format('opentype'); | ||
font-weight: 500; | ||
font-style: italic; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: 'Monument Trial'; | ||
src: url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/627978263bc4bfa1581312eb_ABCMonumentGrotesk-RegularItalic-Trial.otf') format('opentype'), url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/62797827c8832c2ef7d9c3d6_ABCMonumentGrotesk-UltraItalic-Trial.otf') format('opentype'); | ||
font-weight: 400; | ||
font-style: italic; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: 'Monument Trial'; | ||
src: url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/62797826c8832c2566d9c3d5_ABCMonumentGrotesk-Regular-Trial.otf') format('opentype'), url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/6279782788bb081ae841cb7b_ABCMonumentGrotesk-Ultra-Trial.otf') format('opentype'); | ||
font-weight: 400; | ||
font-style: normal; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: 'Monument Trial'; | ||
src: url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/627978264c330966f6b999ce_ABCMonumentGrotesk-BoldItalic-Trial.otf') format('opentype'); | ||
font-weight: 700; | ||
font-style: italic; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: 'Monument Trial'; | ||
src: url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/62797826166f250542a380e1_ABCMonumentGrotesk-ThinItalic-Trial.otf') format('opentype'); | ||
font-weight: 100; | ||
font-style: italic; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: 'Monument Trial'; | ||
src: url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/6279782688bb0853e141cb7a_ABCMonumentGrotesk-Thin-Trial.otf') format('opentype'); | ||
font-weight: 100; | ||
font-style: normal; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: 'Monument Semi-Mono'; | ||
src: url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/62797893d19e273e1dc9ebdb_ABCMonumentGroteskSemi-Mono-Black-Trial.otf') format('opentype'), url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/62797893e65e67c8ee28f0ec_ABCMonumentGroteskSemi-Mono-Heavy-Trial.otf') format('opentype'); | ||
font-weight: 900; | ||
font-style: normal; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: 'Monument Semi-Mono'; | ||
src: url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/62797893494abe0de89f227a_ABCMonumentGroteskSemi-Mono-BlackItalic-Trial.otf') format('opentype'), url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/62797893166f259ab0a38433_ABCMonumentGroteskSemi-Mono-HeavyItalic-Trial.otf') format('opentype'); | ||
font-weight: 900; | ||
font-style: italic; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: 'Monument Semi-Mono'; | ||
src: url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/627978938565ca0a08e60c3f_ABCMonumentGroteskSemi-Mono-LightItalic-Trial.otf') format('opentype'); | ||
font-weight: 300; | ||
font-style: italic; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: 'Monument Semi-Mono'; | ||
src: url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/62797893e66c69cf8eb60bb1_ABCMonumentGroteskSemi-Mono-Light-Trial.otf') format('opentype'); | ||
font-weight: 300; | ||
font-style: normal; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: 'Monument Semi-Mono'; | ||
src: url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/62797893c925d13acc430de7_ABCMonumentGroteskSemi-Mono-Medium-Trial.otf') format('opentype'); | ||
font-weight: 500; | ||
font-style: normal; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: 'Monument Semi-Mono'; | ||
src: url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/62797893655acc0d01b2105a_ABCMonumentGroteskSemi-Mono-RegularItalic-Trial.otf') format('opentype'); | ||
font-weight: 400; | ||
font-style: italic; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: 'Monument Semi-Mono'; | ||
src: url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/62797893bd85bb8ca4684c14_ABCMonumentGroteskSemi-Mono-Thin-Trial.otf') format('opentype'); | ||
font-weight: 100; | ||
font-style: normal; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: 'Monument Semi-Mono'; | ||
src: url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/62797893ea814b84fd70711f_ABCMonumentGroteskSemi-Mono-Bold-Trial.otf') format('opentype'); | ||
font-weight: 700; | ||
font-style: normal; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: 'Monument Semi-Mono'; | ||
src: url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/627978936fb12a0a6ad03070_ABCMonumentGroteskSemi-Mono-ThinItalic-Trial.otf') format('opentype'); | ||
font-weight: 100; | ||
font-style: italic; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: 'Monument Semi-Mono'; | ||
src: url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/6279789459bcaa23b6357474_ABCMonumentGroteskSemi-Mono-MediumItalic-Trial.otf') format('opentype'); | ||
font-weight: 500; | ||
font-style: italic; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: 'Monument Semi-Mono'; | ||
src: url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/62797894d95c6eb2b30e0f88_ABCMonumentGroteskSemi-Mono-BoldItalic-Trial.otf') format('opentype'); | ||
font-weight: 700; | ||
font-style: italic; | ||
font-display: swap; | ||
} | ||
@font-face { | ||
font-family: 'Monument Semi-Mono'; | ||
src: url('https://uploads-ssl.webflow.com/627977f6bd85bbace4684726/62797894d95c6e775b0e0f89_ABCMonumentGroteskSemi-Mono-Regular-Trial.otf') format('opentype'); | ||
font-weight: 400; | ||
font-style: normal; | ||
font-display: swap; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.