2019-11-20 21:30:47 +01:00
|
|
|
|
{% macro render_text(text) %}
|
2022-06-29 11:28:26 +02:00
|
|
|
|
<p style="font-size: 16px;
|
|
|
|
|
line-height: 1.625;
|
|
|
|
|
color: #51545E;
|
2024-08-28 13:07:34 +02:00
|
|
|
|
margin: .4em 0 1.1875em">{{ text }}</p>
|
2019-11-20 21:30:47 +01:00
|
|
|
|
{% endmacro %}
|
2020-04-08 23:07:31 +02:00
|
|
|
|
<!-- To be used instead of render_text, much better! -->
|
|
|
|
|
{% macro text() %}
|
2022-06-29 11:28:26 +02:00
|
|
|
|
<p style="font-size: 16px;
|
|
|
|
|
line-height: 1.625;
|
|
|
|
|
color: #51545E;
|
2024-08-28 13:07:34 +02:00
|
|
|
|
margin: .4em 0 1.1875em">{{ caller() }}</p>
|
2020-04-08 23:07:31 +02:00
|
|
|
|
{% endmacro %}
|
2019-11-20 21:30:47 +01:00
|
|
|
|
{% macro render_button(button_text, link) %}
|
2020-02-12 06:11:17 +01:00
|
|
|
|
<!-- Action -->
|
2022-06-29 11:28:26 +02:00
|
|
|
|
<table class="body-action"
|
|
|
|
|
align="center"
|
|
|
|
|
width="100%"
|
|
|
|
|
cellpadding="0"
|
|
|
|
|
cellspacing="0"
|
|
|
|
|
role="presentation"
|
|
|
|
|
style="width: 100%;
|
|
|
|
|
-premailer-width: 100%;
|
|
|
|
|
-premailer-cellpadding: 0;
|
|
|
|
|
-premailer-cellspacing: 0;
|
|
|
|
|
text-align: center;
|
|
|
|
|
margin: 30px auto;
|
2024-08-28 13:07:34 +02:00
|
|
|
|
padding: 0">
|
2020-02-12 06:11:17 +01:00
|
|
|
|
<tr>
|
2022-06-29 11:28:26 +02:00
|
|
|
|
<td align="center"
|
|
|
|
|
style="word-break: break-word;
|
|
|
|
|
font-family: Helvetica, Arial, sans-serif;
|
2024-08-28 13:07:34 +02:00
|
|
|
|
font-size: 16px">
|
2020-02-12 06:11:17 +01:00
|
|
|
|
<!-- Border based button
|
|
|
|
|
https://litmus.com/blog/a-guide-to-bulletproof-buttons-in-email-design -->
|
2022-06-29 11:28:26 +02:00
|
|
|
|
<table width="100%"
|
|
|
|
|
border="0"
|
|
|
|
|
cellspacing="0"
|
|
|
|
|
cellpadding="0"
|
|
|
|
|
role="presentation">
|
2020-02-12 06:11:17 +01:00
|
|
|
|
<tr>
|
|
|
|
|
<td align="center"
|
2022-06-29 11:28:26 +02:00
|
|
|
|
style="word-break: break-word;
|
|
|
|
|
font-family: Helvetica, Arial, sans-serif;
|
2024-08-28 13:07:34 +02:00
|
|
|
|
font-size: 16px">
|
2022-06-29 11:28:26 +02:00
|
|
|
|
<a href="{{ link }}"
|
|
|
|
|
class="f-fallback button"
|
|
|
|
|
target="_blank"
|
2023-02-27 13:15:25 +01:00
|
|
|
|
rel="noopener noreferrer"
|
2022-06-29 11:28:26 +02:00
|
|
|
|
style="color: #FFF;
|
|
|
|
|
border-color: #3869d4;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-width: 10px 18px;
|
|
|
|
|
background-color: #3869D4;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.16);
|
|
|
|
|
-webkit-text-size-adjust: none;
|
2024-08-28 13:07:34 +02:00
|
|
|
|
box-sizing: border-box">{{ button_text }}</a>
|
2020-02-12 06:11:17 +01:00
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
2019-11-20 21:30:47 +01:00
|
|
|
|
{% endmacro %}
|
2020-02-12 06:11:17 +01:00
|
|
|
|
{% macro raw_url(link) %}
|
|
|
|
|
<!-- Sub copy -->
|
2022-06-29 11:28:26 +02:00
|
|
|
|
<table class="body-sub"
|
|
|
|
|
role="presentation"
|
|
|
|
|
style="margin-top: 25px;
|
|
|
|
|
padding-top: 25px;
|
|
|
|
|
border-top-width: 1px;
|
|
|
|
|
border-top-color: #EAEAEC;
|
2024-08-28 13:07:34 +02:00
|
|
|
|
border-top-style: solid">
|
2020-02-12 06:11:17 +01:00
|
|
|
|
<tr>
|
2022-06-29 11:28:26 +02:00
|
|
|
|
<td style="word-break: break-word;
|
|
|
|
|
font-family: Helvetica, Arial, sans-serif;
|
2024-08-28 13:07:34 +02:00
|
|
|
|
font-size: 16px">
|
2022-06-29 11:28:26 +02:00
|
|
|
|
<p class="f-fallback sub"
|
|
|
|
|
style="font-size: 13px;
|
|
|
|
|
line-height: 1.625;
|
|
|
|
|
color: #51545E;
|
2024-08-28 13:07:34 +02:00
|
|
|
|
margin: .4em 0 1.1875em">
|
2022-06-29 11:28:26 +02:00
|
|
|
|
If you’re having trouble with the button above, copy and paste the URL below into your web browser.
|
|
|
|
|
</p>
|
2020-02-12 06:11:17 +01:00
|
|
|
|
<p class="f-fallback sub"
|
2022-06-29 11:28:26 +02:00
|
|
|
|
style="font-size: 13px;
|
|
|
|
|
line-height: 1.625;
|
|
|
|
|
color: #51545E;
|
2024-08-28 13:07:34 +02:00
|
|
|
|
margin: .4em 0 1.1875em">{{ link }}</p>
|
2020-02-12 06:11:17 +01:00
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
2020-02-12 12:11:37 +01:00
|
|
|
|
{% endmacro %}
|
|
|
|
|
{% macro grey_section(parts) %}
|
2022-06-29 11:28:26 +02:00
|
|
|
|
<table class="attributes"
|
|
|
|
|
width="100%"
|
|
|
|
|
cellpadding="0"
|
|
|
|
|
cellspacing="0"
|
|
|
|
|
role="presentation"
|
2024-08-28 13:07:34 +02:00
|
|
|
|
style="margin: 0 0 21px">
|
2022-06-29 11:28:26 +02:00
|
|
|
|
<tr>
|
|
|
|
|
<td class="attributes_content"
|
|
|
|
|
style="word-break: break-word;
|
|
|
|
|
font-family: Helvetica, Arial, sans-serif;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
background-color: #F4F4F7;
|
2024-08-28 13:07:34 +02:00
|
|
|
|
padding: 16px"
|
2022-06-29 11:28:26 +02:00
|
|
|
|
bgcolor="#F4F4F7">
|
|
|
|
|
<table width="100%" cellpadding="0" cellspacing="0" role="presentation">
|
|
|
|
|
{% for part in parts %}
|
2020-02-12 12:11:37 +01:00
|
|
|
|
|
2022-06-29 11:28:26 +02:00
|
|
|
|
<tr>
|
|
|
|
|
<td class="attributes_item"
|
|
|
|
|
style="word-break: break-word;
|
|
|
|
|
font-family: Helvetica, Arial, sans-serif;
|
|
|
|
|
font-size: 16px;
|
2024-08-28 13:07:34 +02:00
|
|
|
|
padding: 0">
|
2022-06-29 11:28:26 +02:00
|
|
|
|
<div class="f-fallback">
|
|
|
|
|
{{ part }}
|
|
|
|
|
<br />
|
|
|
|
|
<br />
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
{% endmacro %}
|