|
| 1 | +defmodule GroupherServer.Email.Templates.MentionAuthor do |
| 2 | + @moduledoc """ |
| 3 | + template for mention author, like but not limit to: |
| 4 | +
|
| 5 | + post, job, video, repo ... |
| 6 | + or mention in comment .. |
| 7 | +
|
| 8 | + if you want change style or debug the template |
| 9 | + just copy and paste raw string to: https://mjml.io/try-it-live |
| 10 | + """ |
| 11 | + |
| 12 | + def html(record) do |
| 13 | + """ |
| 14 | + TODO |
| 15 | + """ |
| 16 | + end |
| 17 | + |
| 18 | + def text() do |
| 19 | + """ |
| 20 | + 有人发帖了 |
| 21 | + """ |
| 22 | + end |
| 23 | + |
| 24 | + defp raw() do |
| 25 | + """ |
| 26 | + <mjml> |
| 27 | + <mj-head> |
| 28 | + <mj-title>Discount Light</mj-title> |
| 29 | + <mj-preview>Pre-header Text</mj-preview> |
| 30 | + <mj-attributes> |
| 31 | + <mj-all font-family="'Helvetica Neue', Helvetica, Arial, sans-serif"></mj-all> |
| 32 | + <mj-text font-weight="400" font-size="16px" color="#000000" line-height="24px" font-family="'Helvetica Neue', Helvetica, Arial, sans-serif"></mj-text> |
| 33 | + </mj-attributes> |
| 34 | + <mj-style inline="inline"> |
| 35 | + .body-section { -webkit-box-shadow: 1px 4px 11px 0px rgba(0, 0, 0, 0.15); -moz-box-shadow: 1px 4px 11px 0px rgba(0, 0, 0, 0.15); box-shadow: 1px 4px 11px 0px rgba(0, 0, 0, 0.15); } |
| 36 | + </mj-style> |
| 37 | + <mj-style inline="inline"> |
| 38 | + .text-link { color: #5e6ebf } |
| 39 | + </mj-style> |
| 40 | + <mj-style inline="inline"> |
| 41 | + .footer-link { color: #888888 } |
| 42 | + </mj-style> |
| 43 | +
|
| 44 | + </mj-head> |
| 45 | + <mj-body background-color="#002B34" width="600px"> |
| 46 | + <mj-section full-width="full-width" background-color="#183a42" padding-bottom="0"> |
| 47 | + <mj-column width="100%"> |
| 48 | + <mj-text color="#17CBC4" font-weight="bold" align="center" font-size="18px" letter-spacing="1px" padding-top="20px"> |
| 49 | + coderplanets |
| 50 | + <br/> |
| 51 | + </mj-text> |
| 52 | + <mj-text color="#0d8396" align="center" font-size="13px" padding-top="0" font-weight="bold" letter-spacing="1px" line-height="20px"> |
| 53 | + the most sexiest community for developers, ever. |
| 54 | + </mj-text> |
| 55 | +
|
| 56 | + </mj-column> |
| 57 | + </mj-section> |
| 58 | +
|
| 59 | + <mj-wrapper padding-top="0" padding-bottom="0" css-class="body-section"> |
| 60 | + <mj-section background-color="#042f3a" padding-left="6px" padding-right="6px"> |
| 61 | + <mj-column width="100%"> |
| 62 | + <mj-text color="#6f8696" font-weight="bold" font-size="18px"> |
| 63 | + <br/> |
| 64 | + xxx 在文章/评论标题里提及/回复了你 |
| 65 | + </mj-text> |
| 66 | + <mj-text color="#637381" font-size="16px"> |
| 67 | + 文章内容或评论内容摘要 |
| 68 | + </mj-text> |
| 69 | +
|
| 70 | + <mj-divider border-width="1px" border-style="dashed" border-color="#113A41" /> |
| 71 | +
|
| 72 | +
|
| 73 | + <mj-text color="#637381" font-size="16px" padding-top="10px" align="center"> |
| 74 | + <a class="text-link" href="https://github.com/coderplanets.com">去看看 -></a> |
| 75 | + </mj-text> |
| 76 | +
|
| 77 | + </mj-column> |
| 78 | + </mj-section> |
| 79 | +
|
| 80 | + </mj-wrapper> |
| 81 | +
|
| 82 | + <mj-wrapper full-width="full-width"> |
| 83 | + <mj-section> |
| 84 | + <mj-column width="100%" padding="0"> |
| 85 | + <mj-social font-size="15px" icon-size="30px" mode="horizontal" padding="0" align="center"> |
| 86 | + <mj-social-element name="github" href="https://github.com/coderplanets" background-color="#296C7D"> |
| 87 | + </mj-social-element> |
| 88 | + </mj-social> |
| 89 | +
|
| 90 | +
|
| 91 | + <mj-text color="#445566" font-size="11px" align="center" line-height="16px"> |
| 92 | + © Coderplanets Inc., All Rights Reserved. |
| 93 | + </mj-text> |
| 94 | + </mj-column> |
| 95 | + </mj-section> |
| 96 | + <mj-section padding-top="0"> |
| 97 | + <mj-group> |
| 98 | + <mj-column width="100%" padding-right="0"> |
| 99 | + <mj-text color="#445566" font-size="11px" align="center" line-height="16px" font-weight="bold"> |
| 100 | + <a class="footer-link" href="https://coderplanets.com/home/post/45">Privacy</a>        <a class="footer-link" href="https://www.github.com/coderplanets/coderplanets_web/issues">Unsubscribe</a> |
| 101 | + </mj-text> |
| 102 | + </mj-column> |
| 103 | + </mj-group> |
| 104 | +
|
| 105 | + </mj-section> |
| 106 | + </mj-wrapper> |
| 107 | +
|
| 108 | + </mj-body> |
| 109 | + </mjml> |
| 110 | + """ |
| 111 | + end |
| 112 | +end |
0 commit comments