|
1 | 1 | <!-- BEGIN app/views/layouts/mailer.html.erb --> |
2 | 2 |
|
| 3 | +<%# Based on Notify's email template: https://github.com/alphagov/notifications-utils/blob/main/notifications_utils/jinja_templates/email_template.jinja2 %> |
| 4 | + |
3 | 5 | <!DOCTYPE html> |
4 | 6 | <html lang="en"> |
5 | 7 |
|
6 | 8 | <head> |
7 | 9 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
8 | 10 | <meta content="telephone=no" name="format-detection"> <!-- need to add formatting for real phone numbers --> |
9 | 11 | <meta name="viewport" content="width=device-width"> |
10 | | - <title>{{ subject }}</title> |
| 12 | + <title><%= @subject %></title> |
11 | 13 |
|
12 | 14 | <style> |
13 | 15 | @media only screen and (min-device-width: 581px) { |
14 | 16 | .content { |
15 | 17 | width: 580px !important; |
16 | 18 | } |
17 | 19 | } |
| 20 | + @media only print { |
| 21 | + .logo__crown { display: none !important; } |
| 22 | + .logo__text, .logo__dot { color: #000000 !important; } |
| 23 | + .brand__banner { |
| 24 | + border-bottom: solid 1pt #000000 !important; |
| 25 | + background-color: unset !important; |
| 26 | + } |
| 27 | + } |
18 | 28 | body { margin:0 !important; } |
19 | 29 | div[style*="margin: 16px 0"] { margin:0 !important; } |
20 | 30 | </style> |
|
36 | 46 | <body style="font-family: Helvetica, Arial, sans-serif;font-size: 16px;margin: 0;color:#0b0c0c;"> |
37 | 47 | <table role="presentation" width="100%" style="border-collapse: collapse;min-width: 100%;width: 100% !important;" cellpadding="0" cellspacing="0" border="0"> |
38 | 48 | <tr> |
39 | | - <td width="100%" height="53" bgcolor="#0b0c0c"> |
| 49 | + <td width="100%" height="60" bgcolor="#1d70b8" class="brand__banner"> |
40 | 50 | <!--[if (gte mso 9)|(IE)]> |
41 | 51 | <table role="presentation" width="580" align="center" cellpadding="0" cellspacing="0" border="0" style="border-collapse: collapse;width: 580px;"> |
42 | 52 | <tr> |
43 | 53 | <td> |
44 | 54 | <![endif]--> |
45 | 55 | <table role="presentation" width="100%" style="border-collapse: collapse;max-width: 580px;" cellpadding="0" cellspacing="0" border="0" align="center"> |
46 | 56 | <tr> |
47 | | - <td width="70" bgcolor="#0b0c0c" valign="middle"> |
48 | | - <a href="https://www.gov.uk" title="Go to the GOV.UK homepage" style="text-decoration: none;"> |
49 | | - <table role="presentation" cellpadding="0" cellspacing="0" border="0" style="border-collapse: collapse;"> |
50 | | - <tr> |
51 | | - <td style="padding-left: 10px"> |
52 | | - <img src="https://static.notifications.service.gov.uk/images/govuk-logotype-tudor-crown.png" |
53 | | - alt="" |
54 | | - height="32" |
55 | | - border="0" |
56 | | - style="Margin-top: 2px;" |
57 | | - > |
58 | | - </td> |
59 | | - <td style="font-size: 28px; line-height: 1.315789474; Margin-top: 4px; padding-left: 8px;"> |
60 | | - <span style=" |
61 | | - font-family: Helvetica, Arial, sans-serif; |
62 | | - font-weight: 700; |
63 | | - color: #ffffff; |
64 | | - text-decoration: none; |
65 | | - vertical-align:middle; |
66 | | - display: inline-block; |
67 | | - ">GOV.UK</span> |
68 | | - </td> |
69 | | - </tr> |
70 | | - </table> |
71 | | - </a> |
72 | | - </td> |
73 | | - </tr> |
74 | | - </table> |
75 | | - <!--[if (gte mso 9)|(IE)]> |
76 | | - </td> |
77 | | - </tr> |
78 | | - </table> |
79 | | - <![endif]--> |
80 | | - </td> |
81 | | - </tr> |
82 | | - </table> |
83 | | - <table |
84 | | - role="presentation" |
85 | | - class="content" |
86 | | - align="center" |
87 | | - cellpadding="0" |
88 | | - cellspacing="0" |
89 | | - border="0" |
90 | | - style="border-collapse: collapse;max-width: 580px; width: 100% !important;" |
91 | | - width="100%" |
92 | | - > |
93 | | - <tr> |
94 | | - <td width="10" height="10" valign="middle"></td> |
95 | | - <td> |
96 | | - <!--[if (gte mso 9)|(IE)]> |
97 | | - <table role="presentation" width="560" align="center" cellpadding="0" cellspacing="0" border="0" style="border-collapse: collapse;width: 560px;"> |
98 | | - <tr> |
99 | | - <td height="10"> |
100 | | - <![endif]--> |
101 | | - <table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse: collapse;"> |
102 | | - <tr> |
103 | | - <td bgcolor="#1D70B8" width="100%" height="10"></td> |
| 57 | + <!--[if mso]> |
| 58 | + <td width="70" valign="middle"> |
| 59 | + <a href="https://www.gov.uk" title="Go to the GOV.UK homepage" style="text-decoration: none;"> |
| 60 | + <table role="presentation" cellpadding="0" cellspacing="0" border="0" style="border-collapse: collapse;"> |
| 61 | + <tr> |
| 62 | + <td style="padding-left: 10px"> |
| 63 | + <img src="https://static.notifications.service.gov.uk/images/govuk-logotype-tudor-crown.png" alt="" height="32" border="0" style="Margin-top: 2px;"> |
| 64 | + </td> |
| 65 | + <td style="font-size: 28px; line-height: 1.315789474; padding-left: 8px; padding-bottom: 8px"> |
| 66 | + <span style=" |
| 67 | + font-family: Helvetica, Arial, sans-serif; |
| 68 | + font-weight: 700; |
| 69 | + color: #ffffff; |
| 70 | + text-decoration: none; |
| 71 | + vertical-align:middle; |
| 72 | + display: inline-block" |
| 73 | + >GOV<span style=" |
| 74 | + color: #00ffe0; |
| 75 | + font-family: Georgia, Times New Roman, sans-serif; |
| 76 | + font-size: 32px; |
| 77 | + mso-text-raise:7px">.</span>UK</span> |
| 78 | + </td> |
| 79 | + </tr> |
| 80 | + </table> |
| 81 | + </a> |
| 82 | + </td> |
| 83 | + <![endif]--> |
| 84 | + <!--[if !mso]><!--> |
| 85 | + <td width="70" valign="bottom"> |
| 86 | + <a href="https://www.gov.uk" title="Go to the GOV.UK homepage" style="text-decoration: none;color: #fff"> |
| 87 | + <table role="presentation" cellpadding="0" cellspacing="0" border="0" style="border-collapse: collapse;"> |
| 88 | + <tr> |
| 89 | + <td style="font-size: 28px; line-height: 2; padding-left: 10px" valign="bottom" height="60" class="logo__crown"> |
| 90 | + <img |
| 91 | + src="https://static.notifications.service.gov.uk/images/govuk-logotype-tudor-crown.png" |
| 92 | + alt="" |
| 93 | + height="32" |
| 94 | + border="0" |
| 95 | + style="Margin-top: 2px; max-height: 32px" |
| 96 | + aria-hidden="true" |
| 97 | + > |
| 98 | + </td> |
| 99 | + <td style="font-size: 28px; line-height: 2.1428571429; padding-left: 8px;" valign="bottom" height="60" class="logo__text"> |
| 100 | + <span aria-label="GOV.UK" style=" |
| 101 | + font-family: Helvetica, Arial, 'Noto Sans', sans-serif; |
| 102 | + font-weight: 700; |
| 103 | + text-decoration: none; |
| 104 | + vertical-align:middle; |
| 105 | + display: inline-block; |
| 106 | + ">GOV<span style=" |
| 107 | + font-family: Georgia, Times New Roman, Times, sans-serif; |
| 108 | + color: #00ffe0; |
| 109 | + display: inline-block; |
| 110 | + text-indent: 0.04em; |
| 111 | + font-size: 32px; |
| 112 | + line-height: 1.35; |
| 113 | + vertical-align: top; |
| 114 | + margin-right: 0.05em;" class="logo__dot">.</span>UK</span> |
| 115 | + </td> |
| 116 | + </tr> |
| 117 | + </table> |
| 118 | + </a> |
| 119 | + </td> |
| 120 | + <!--<![endif]--> |
104 | 121 | </tr> |
105 | 122 | </table> |
106 | 123 | <!--[if (gte mso 9)|(IE)]> |
|
109 | 126 | </table> |
110 | 127 | <![endif]--> |
111 | 128 | </td> |
112 | | - <td width="10" valign="middle" height="10"></td> |
113 | 129 | </tr> |
114 | 130 | </table> |
115 | 131 | <table |
116 | | - role="presentation" |
117 | | - class="content" |
118 | | - align="center" |
119 | | - cellpadding="0" |
120 | | - cellspacing="0" |
121 | | - border="0" |
122 | | - style="border-collapse: collapse;max-width: 580px; width: 100% !important;" |
123 | | - width="100%" |
124 | | - > |
| 132 | + role="presentation" |
| 133 | + class="content" |
| 134 | + align="center" |
| 135 | + cellpadding="0" |
| 136 | + cellspacing="0" |
| 137 | + border="0" |
| 138 | + style="border-collapse: collapse;max-width: 580px; width: 100% !important;" |
| 139 | + width="100%" |
| 140 | + > |
125 | 141 | <tr> |
126 | 142 | <td height="30"><br> |
127 | 143 | </td> |
|
135 | 151 | <tr> |
136 | 152 | <td style="font-family: Helvetica, Arial, sans-serif; font-size: 19px; line-height: 1.315789474;"> |
137 | 153 | <![endif]--> |
138 | | - |
139 | 154 | <%= yield %> |
140 | | - |
141 | 155 | <!--[if (gte mso 9)|(IE)]> |
142 | 156 | </td> |
143 | 157 | </tr> |
|
0 commit comments