-
Notifications
You must be signed in to change notification settings - Fork 5
/
email.html
439 lines (387 loc) · 10.8 KB
/
email.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Habitica</title>
<link href="https://fonts.googleapis.com/css?family=Roboto:400,400i,700,700i" rel="stylesheet">
<!-- START CSS STYLES - These should be inline before sending! -->
<style>
/* RESET */
img, img a {
border: none;
max-width: 100%;
outline: none;
/* Fix resized images in IE */
-ms-interpolation-mode: bicubic;
}
body {
background-color: #4F2A93;
font-family: "Roboto", sans-serif;
font-size: 1rem; /* 16px */
line-height: 1.5; /* 24px */
margin: 0;
padding: 0;
/* Render fonts consistently */
-webkit-font-smoothing: antialiased;
/* Fix text resizing on mobile */
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
hr {
border: 0;
border-bottom: 1px solid #EDECEE;
margin: 1.25rem 0;
}
table {
border: none;
border-collapse: separate;
border-spacing: 0;
width: 100%;
/* Remove Outlook's added spacing on tables */
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
}
table td {
font-family: "Roboto", sans-serif;
font-size: 1rem;
vertical-align: top;
}
/* BODY & CONTAINER */
.body {
background-color: #4F2A93;
width: 100%;
}
.container {
display: block; /* Automatically stretch to max-width */
margin: 0 auto !important; /* Center */
max-width: 35rem; /* 560px */
padding: .5rem;
width: 35rem;
}
.content {
box-sizing: border-box;
display: block; /* Fill 100% of .container */
margin: 0 auto;
max-width: 35rem;
padding: 0;
}
/* Header, Footer & Main */
.preheader {
color: transparent;
display: none;
height: 0;
max-height: 0;
max-width: 0;
opacity: 0;
overflow: hidden;
mso-hide: all;
visibility: hidden;
width: 0;
}
.logo {
display: block;
margin: 1rem 0 .5rem 0;
padding: 0;
text-align: center;
}
.logo img { max-height: 2.5rem !important; }
.header-image { margin-bottom: 1rem; }
.main {
background-color: #FFFFFF;
border-radius: 8px 8px 0 0;
width: 100%;
}
.wrapper {
box-sizing: border-box;
padding: 1.5rem 1.5rem 0 1.5rem;
}
.bullets {
margin: 0;
padding: 0 3rem 0 1rem;
}
.bullets img {
min-height: 3rem !important;
min-width: 3rem !important;
}
.bullets p {
margin: 0 0 1.5rem 1rem;
padding: 0;
}
.app-footer {
background-color: #F9F9F9;
border-radius: 0 0 .5rem .5rem;
padding: 1rem 0 0 0;
text-align: center;
}
.app-footer img {
margin: 0 .375rem .25rem .375rem;
max-height: 2rem !important;
}
.app-footer p {
color: #686274;
font-size: .75rem; /* 12px */
line-height: 1.34; /* 16px */
margin-bottom: .75rem;
}
.content-block {
margin: 0;
padding: 0;
}
.footer {
clear: both;
margin: .5rem 0 1.5rem 0;
text-align: center;
width: 100%
}
.footer p,
.footer td,
.footer span,
.footer a {
color: #BDA8FF;
font-size: .75rem;
line-height: 1.34;
margin: 0;
text-align: center;
}
.footer a { text-decoration: underline; }
.footer img { max-height: 2rem !important; }
/* Typography */
h1,
h2,
h3,
h4 {
color: #34313A; /* Outlook heading color override */
font-family: "Roboto", sans-serif;
font-weight: 400;
margin: 0;
margin-bottom: 1rem;
}
h1 {
color: #686274;
font-size: 1.25rem;
line-height: 1.2;
text-align: center;
text-transform: capitalize;
}
p,
ul,
ol {
color: #34313A;
font-family: "Roboto", sans-serif;
font-size: 1rem;
font-weight: normal;
line-height: 1.5;
list-style-position: outside;
margin: 0 0 1.5rem 0;
}
p li,
ul li,
ol li { margin-bottom: .5rem; }
a {
color: #2995CD;
text-decoration: none;
}
.small {
font-size: .75rem;
line-height: 1.34;
margin-bottom: .75rem;
}
.small-caps {
color: #EE9109;
font-size: .75rem;
font-weight: 600;
line-height: 1.34;
margin: 1rem 0 .5rem 0;
}
/* Buttons */
.btn {
box-sizing: border-box;
width: 100%;
}
.btn > tbody > tr > td { padding-bottom: 1.5rem; }
.btn table { width: auto; }
.btn table td {
background-color: #FFFFFF;
border-radius: .25rem;
text-align: center;
}
.btn a {
background-color: #FFFFFF;
border: none;
border-radius: .25rem;
box-sizing: border-box;
color: #2995CD;
cursor: pointer;
display: inline-block;
font-size: 1rem;
font-weight: 600;
margin: 0;
padding: .875rem 2rem;
text-decoration: none;
}
.btn-primary table td { background-color: #2995CD; }
.btn-primary a {
background-color: #2995CD;
border-color: #2995CD;
color: #FFFFFF;
}
/* Responsive */
@media only screen and (max-width: 40rem) {
table[class=body] .logo,
table[class=body] .header-image { margin-bottom: .5rem !important; }
table[class=body] .logo img { max-height: 2rem !important; }
table[class=body] h1 {
font-size: 1.25rem !important;
line-height: 1.4 !important;
margin-bottom: 1rem !important;
}
table[class=body] p,
table[class=body] ul,
table[class=body] ol,
table[class=body] td,
table[class=body] span,
table[class=body] a {
font-size: .875rem !important;
line-height: 1.34 !important;
}
table[class=body] ul, ol { padding-left: 1.5rem !important; }
table[class=body] .wrapper,
table[class=body] .article { padding: 1rem 1rem 0 1rem !important; }
table[class=body] .content { padding: 0 1rem !important; }
table[class=body] .container {
padding: 0 !important;
width: 100% !important;
}
table[class=body] .main {
border-left-width: 0 !important;
border-radius: .25rem .25rem 0 0 !important;
border-right-width: 0 !important;
}
.bullets {
margin: 0 !important;
padding: 0 1rem 0 0 !important;
}
.bullets img {
display: none !important;
height: 0 !important;
max-height: 0 !important;
max-width: 0 !important;
opacity: 0 !important;
overflow: hidden !important;
mso-hide: all !important;
visibility: hidden !important;
width: 0 !important;
}
table[class=body] .btn table,
table[class=body] .btn a { width: 100% !important; }
table[class=body] .img-responsive {
height: auto !important;
max-width: 100% !important;
width: auto !important;
}
}
/* Outlook / Hotmail */
@media all {
.ExternalClass{ width: 100%; }
.ExternalClass,
.ExternalClass p,
.ExternalClass span,
.ExternalClass font,
.ExternalClass td,
.ExternalClass div {
line-height: 100%;
}
.social-link a {
color: inherit !important;
font-family: inherit !important;
font-size: inherit !important;
font-weight: inherit !important;
line-height: inherit !important;
text-decoration: none !important;
}
}
</style>
<!-- END CSS STYLES -->
</head>
<body class="">
<table border="0" cellpadding="0" cellspacing="0" class="body">
<tr>
<td class="container">
<!-- START CENTERED WHITE CONTENT -->
<div class="content">
<!-- START PREHEADER -->
<span class="preheader">This is preheader text. Some clients will show this text as a preview.</span>
<!-- END PREHEADER -->
<div class="logo">
<a href="*|BASE_URL|*" target="_blank"><img src="https://s3.amazonaws.com/habitica-assets/emails/images/habitica-logo.png" alt="Habitica"/></a>
</div>
<table class="main">
<!-- START MAIN CONTENT -->
<tr>
<td class="wrapper">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<h1>Greetings, Brave Adventurer of Habitica!</h1>
<hr />
<p>This is a simple email template. The goal of this template is to provide additional branding and a clear call to action for the recipient.</p>
<!-- START BUTTON TEMPLATE -->
<table border="0" cellpadding="0" cellspacing="0" class="btn btn-primary">
<tbody>
<tr>
<td align="center">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td><a href="#">Button</a></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<!-- END BUTTON TEMPLATE -->
<p>Warmly,<br /><strong>The Habitica Team</strong></p>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div class="app-footer">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<a href="https://itunes.apple.com/us/app/habitica-gamified-taskmanager/id994882113" target="_blank"><img src="https://s3.amazonaws.com/habitica-assets/emails/images/app-store.png" alt="Download on the App Store"></a><a href="https://play.google.com/store/apps/details?id=com.habitrpg.android.habitica" target="_blank"><img src="https://s3.amazonaws.com/habitica-assets/emails/images/google-play.png" alt="Download on Google Play"></a>
<p>Or visit us on the web <a href="*|BASE_URL|*" target="_blank">habitica.com</a></p>
</td>
</tr>
</table>
</div>
<!-- START FOOTER -->
<div class="footer">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="content-block">
<p>
<a href="https://twitter.com/habitica" target="_blank"><img src="https://s3.amazonaws.com/habitica-assets/emails/images/twitter.png" alt="Twitter"></a>
<a href="https://facebook.com/habitica" target="_blank"><img src="https://s3.amazonaws.com/habitica-assets/emails/images/facebook.png" alt="Facebook"></a>
<a href="https://instagram.com/habitica" target="_blank"><img src="https://s3.amazonaws.com/habitica-assets/emails/images/instagram.png" alt="Instagram"></a>
<a href="https://habitica.tumblr.com" target="_blank"><img src="https://s3.amazonaws.com/habitica-assets/emails/images/tumblr.png" alt="Tumblr"></a>
</p>
<p>No longer want to receive these emails?<br />Update your <a href="*|BASE_URL|**|UNSUB_EMAIL_TYPE_URL|*">email settings</a> or <a href="*|BASE_URL|**|RECIPIENT_UNSUB_URL|*">unsubscribe</a>.</p>
</td>
</tr>
</table>
</div>
<!-- END FOOTER -->
</div>
<!-- END CENTERED WHITE CONTENT -->
</td>
</tr>
</table>
</body>
</html>