email-confirmation.twig 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta name="viewport" content="width=device-width" />
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6. <title>The Grand Expedition Order Confirmation</title>
  7. <style>
  8. /* -------------------------------------
  9. GLOBAL RESETS
  10. ------------------------------------- */
  11. /*All the styling goes here*/
  12. img {
  13. border: none;
  14. -ms-interpolation-mode: bicubic;
  15. max-width: 100%;
  16. }
  17. body {
  18. background-color: #f6f6f6;
  19. font-family: sans-serif;
  20. -webkit-font-smoothing: antialiased;
  21. font-size: 14px;
  22. line-height: 1.4;
  23. margin: 0;
  24. padding: 0;
  25. -ms-text-size-adjust: 100%;
  26. -webkit-text-size-adjust: 100%;
  27. }
  28. table {
  29. border-collapse: separate;
  30. mso-table-lspace: 0pt;
  31. mso-table-rspace: 0pt;
  32. width: 100%;
  33. }
  34. table td {
  35. font-family: sans-serif;
  36. font-size: 14px;
  37. vertical-align: top;
  38. }
  39. /* -------------------------------------
  40. BODY & CONTAINER
  41. ------------------------------------- */
  42. .body {
  43. background-color: #f6f6f6;
  44. width: 100%;
  45. }
  46. /* Set a max-width, and make it display as block so it will automatically stretch to that width, but will also shrink down on a phone or something */
  47. .container {
  48. display: block;
  49. Margin: 0 auto !important;
  50. /* makes it centered */
  51. max-width: 580px;
  52. padding: 10px;
  53. width: 580px;
  54. }
  55. /* This should also be a block element, so that it will fill 100% of the .container */
  56. .content {
  57. box-sizing: border-box;
  58. display: block;
  59. Margin: 0 auto;
  60. max-width: 580px;
  61. padding: 10px;
  62. }
  63. /* -------------------------------------
  64. HEADER, FOOTER, MAIN
  65. ------------------------------------- */
  66. .main {
  67. background: #0f193c;
  68. border-radius: 3px;
  69. width: 100%;
  70. }
  71. .wrapper {
  72. box-sizing: border-box;
  73. padding: 40px;
  74. }
  75. .content-block {
  76. padding-bottom: 10px;
  77. padding-top: 10px;
  78. }
  79. .footer {
  80. background: #0f193c;
  81. clear: both;
  82. Margin-top: 10px;
  83. text-align: center;
  84. width: 100%;
  85. }
  86. .footer td,
  87. .footer p,
  88. .footer span,
  89. .footer a {
  90. color: #999999;
  91. font-size: 12px;
  92. text-align: center;
  93. }
  94. /* -------------------------------------
  95. TYPOGRAPHY
  96. ------------------------------------- */
  97. h1,
  98. h2,
  99. h3,
  100. h4 {
  101. color: #eeeeee;
  102. font-family: sans-serif;
  103. font-weight: 400;
  104. line-height: 1.4;
  105. margin: 0;
  106. margin-bottom: 30px;
  107. }
  108. h1 {
  109. font-size: 35px;
  110. font-weight: 300;
  111. text-align: center;
  112. text-transform: capitalize;
  113. }
  114. p,
  115. ul,
  116. ol {
  117. color: #eeeeee;
  118. font-family: sans-serif;
  119. font-size: 14px;
  120. font-weight: normal;
  121. margin: 0;
  122. margin-bottom: 15px;
  123. }
  124. p li,
  125. ul li,
  126. ol li {
  127. list-style-position: inside;
  128. margin-left: 5px;
  129. }
  130. a {
  131. color: #3498db;
  132. text-decoration: underline;
  133. }
  134. td {
  135. color: #eeeeee;
  136. }
  137. /* -------------------------------------
  138. OTHER STYLES THAT MIGHT BE USEFUL
  139. ------------------------------------- */
  140. .last {
  141. margin-bottom: 0;
  142. }
  143. .first {
  144. margin-top: 0;
  145. }
  146. .align-center {
  147. text-align: center;
  148. }
  149. .align-right {
  150. text-align: right;
  151. }
  152. .align-left {
  153. text-align: left;
  154. }
  155. .clear {
  156. clear: both;
  157. }
  158. .mt0 {
  159. margin-top: 0;
  160. }
  161. .mb0 {
  162. margin-bottom: 0;
  163. }
  164. .preheader {
  165. color: transparent;
  166. display: none;
  167. height: 0;
  168. max-height: 0;
  169. max-width: 0;
  170. opacity: 0;
  171. overflow: hidden;
  172. mso-hide: all;
  173. visibility: hidden;
  174. width: 0;
  175. }
  176. .powered-by a {
  177. text-decoration: none;
  178. }
  179. hr {
  180. border: 0;
  181. border-bottom: 1px solid #f6f6f6;
  182. Margin: 20px 0;
  183. }
  184. /* -------------------------------------
  185. RESPONSIVE AND MOBILE FRIENDLY STYLES
  186. ------------------------------------- */
  187. @media only screen and (max-width: 620px) {
  188. table[class=body] h1 {
  189. font-size: 28px !important;
  190. margin-bottom: 10px !important;
  191. }
  192. table[class=body] p,
  193. table[class=body] ul,
  194. table[class=body] ol,
  195. table[class=body] td,
  196. table[class=body] span,
  197. table[class=body] a {
  198. font-size: 16px !important;
  199. }
  200. table[class=body] .wrapper,
  201. table[class=body] .article {
  202. padding: 10px !important;
  203. }
  204. table[class=body] .content {
  205. padding: 0 !important;
  206. }
  207. table[class=body] .container {
  208. padding: 0 !important;
  209. width: 100% !important;
  210. }
  211. table[class=body] .main {
  212. border-left-width: 0 !important;
  213. border-radius: 0 !important;
  214. border-right-width: 0 !important;
  215. }
  216. table[class=body] .btn table {
  217. width: 100% !important;
  218. }
  219. table[class=body] .btn a {
  220. width: 100% !important;
  221. }
  222. table[class=body] .img-responsive {
  223. height: auto !important;
  224. max-width: 100% !important;
  225. width: auto !important;
  226. }
  227. }
  228. /* -------------------------------------
  229. PRESERVE THESE STYLES IN THE HEAD
  230. ------------------------------------- */
  231. @media all {
  232. .ExternalClass {
  233. width: 100%;
  234. }
  235. .ExternalClass,
  236. .ExternalClass p,
  237. .ExternalClass span,
  238. .ExternalClass font,
  239. .ExternalClass td,
  240. .ExternalClass div {
  241. line-height: 100%;
  242. }
  243. .apple-link a {
  244. color: inherit !important;
  245. font-family: inherit !important;
  246. font-size: inherit !important;
  247. font-weight: inherit !important;
  248. line-height: inherit !important;
  249. text-decoration: none !important;
  250. }
  251. .btn-primary table td:hover {
  252. background-color: #34495e !important;
  253. }
  254. .btn-primary a:hover {
  255. background-color: #34495e !important;
  256. border-color: #34495e !important;
  257. }
  258. }
  259. </style>
  260. </head>
  261. <body class="">
  262. <table role="presentation" border="0" cellpadding="0" cellspacing="0" class="body">
  263. <tr>
  264. <td>&nbsp;</td>
  265. <td class="container">
  266. <div class="content">
  267. <!-- START CENTERED WHITE CONTAINER -->
  268. <span class="preheader">The Grand Expedition Order Confirmation</span>
  269. <table role="presentation" class="main">
  270. <!-- START MAIN CONTENT AREA -->
  271. <tr>
  272. <td class="wrapper">
  273. <table role="presentation" border="0" cellpadding="0" cellspacing="0">
  274. <tr>
  275. <td align="center">
  276. <img src="https://www.thegrandexpedition.co.uk/theme/grandexpedition/assets/images/sprites/balloon.png" width="15%" style="float: right; margin-right: 30px">
  277. <img src="https://www.thegrandexpedition.co.uk/theme/grandexpedition/assets/images/sprites/shining-star-2.png" width="25%" style="float: left">
  278. </td>
  279. </tr>
  280. <tr>
  281. <td align="center">
  282. <img src="https://www.thegrandexpedition.co.uk/theme/grandexpedition/assets/images/type/type-gingerline.png" width="35%" style="margin-bottom: 10px"><br>
  283. <img src="https://www.thegrandexpedition.co.uk/theme/grandexpedition/assets/images/type/type-the-grand-expedition.png" width="100%">
  284. <br>
  285. <br>
  286. <br>
  287. </td>
  288. </tr>
  289. <tr>
  290. <td>
  291. <br>
  292. <p>Dear {{ name }},</p>
  293. <p>Thank you for your order.</p>
  294. <p>We look forward to seeing you on The Grand Expedition.</p>
  295. <br>
  296. <table role="presentation" border="0" cellpadding="3" cellspacing="1" bgcolor="#777777">
  297. <tbody>
  298. {% for line in basket %}
  299. <tr bgcolor="#0f193c">
  300. <td color="#eeeeee" align="left">{{ line.quantity }} x {{ line.name }}</td>
  301. <td color="#eeeeee" align="right">£{{ (line.total / 100) | number_format(2, '.', ',') }}</td>
  302. </tr>
  303. {% endfor %}
  304. <tr bgcolor="#0f193c">
  305. <td colspan="2" color="#eeeeee" align="right"><b>£{{ (total / 100) | number_format(2, '.', ',') }}</b></td>
  306. </tr>
  307. </tbody>
  308. </table>
  309. <br>
  310. <p>
  311. Booked by {{ booker }} for {{ date | date("F jS Y") }}.
  312. </p>
  313. </td>
  314. </tr>
  315. </table>
  316. </td>
  317. </tr>
  318. <!-- END MAIN CONTENT AREA -->
  319. </table>
  320. <!-- START FOOTER -->
  321. <div class="footer">
  322. <table role="presentation" border="0" cellpadding="0" cellspacing="0">
  323. <tr>
  324. <td class="content-block">
  325. <span class="apple-link">Gingerline, IBEX House, 162-164 Arthur Road, Wimbledon, London, SW19 8AQ</span>
  326. </td>
  327. </tr>
  328. </table>
  329. </div>
  330. <!-- END FOOTER -->
  331. <!-- END CENTERED WHITE CONTAINER -->
  332. </div>
  333. </td>
  334. <td>&nbsp;</td>
  335. </tr>
  336. </table>
  337. </body>
  338. </html>