email-confirmation.twig 8.3 KB

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