Skip to content

Commit 2e51633

Browse files
committed
email verification tempalte
todo: check it works using the client
1 parent 9203287 commit 2e51633

File tree

3 files changed

+59
-2
lines changed

3 files changed

+59
-2
lines changed

content/email_templates/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@ nodemon --config nodemon-emails.json
1717
|Mentorship reminder|http://localhost:3003/mentorship-reminder?data={%22menteeName%22:%22Moshe%22,%22mentorName%22:%22Brent%22,%22message%22:%22because%22}|
1818
|Mentor application received|http://localhost:3003/mentor-application-received?data={%22name%22:%22Brent%22}|
1919
|Mentorship application denied|http://localhost:3003/mentor-application-declined?data={%22name%22:%22Moshe%22,%22reason%22:%22your%20avatar%20is%20not%20you%22}|
20-
|Mentorship application approved|http://localhost:3003/mentor-application-approved?data={%22name%22:%22Moshe%22}|
20+
|Mentorship application approved|http://localhost:3003/mentor-application-approved?data={%22name%22:%22Moshe%22}|
21+
|Mentor freeze|http://localhost:3003/mentor-freeze?data={%22mentorName%22:%22Brent%22}}|
22+
|Email verification|http://localhost:3003/email-verification?data=%7B%22name%22:%22Moshe%22,%22link%22:%22http://localhost:3003%22%7D}|
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<div style="text-align: center; font-size: 18px">
2+
<table width="100%">
3+
<tbody>
4+
<tr>
5+
<td align="center">
6+
<img
7+
style="width: 39%; max-width: 234px"
8+
src="http://cdn.mcauto-images-production.sendgrid.net/83a8af126d5ca8ff/70fa68eb-a954-47c6-9798-306089b6a4e3/600x370.jpg"
9+
alt="Illustration"
10+
/>
11+
</td>
12+
</tr>
13+
</tbody>
14+
</table>
15+
<h2 style="font-size: 26px; font-weight: normal">Hey <%= name %></h2>
16+
<h1
17+
style="
18+
font-size: 32px;
19+
line-height: 42px;
20+
font-weight: normal;
21+
color: #69d5b1;
22+
"
23+
>
24+
You're almost there!
25+
</h1>
26+
<p>Please click the link below to verify your email</p>
27+
<p style="margin-top: 10px">
28+
<a
29+
href="https://mentors.codingcoach.io/me"
30+
style="
31+
background-color: #00bc89;
32+
border: 1px solid #333333;
33+
border-color: #00bc89;
34+
border-radius: 6px;
35+
border-width: 1px;
36+
color: #ffffff;
37+
display: inline-block;
38+
font-size: 16px;
39+
font-weight: normal;
40+
letter-spacing: 0px;
41+
line-height: 16px;
42+
padding: 12px 18px 12px 18px;
43+
text-align: center;
44+
text-decoration: none;
45+
"
46+
target="_blank"
47+
>Verify</a
48+
>
49+
</p>
50+
<p style="margin-top: 10px">
51+
<small>
52+
(Or copy and paste this url
53+
<a herf="<%= link %>" target="_blank"><%= link %></a> into your browser)
54+
</p>
55+
</div>

content/email_templates/show.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ app.get('/:templateName', function (req, res) {
3131
});
3232

3333
app.listen(port, () => {
34-
console.log(`Example app listening at http://localhost:${port}`);
34+
console.log(`Running on http://localhost:${port}. Grab a URL from the email_tempaltes/readme file`);
3535
});

0 commit comments

Comments
 (0)