|
| 1 | +<mjml> |
| 2 | + <mj-head> |
| 3 | + <mj-title>Hello World</mj-title> |
| 4 | + </mj-head> |
| 5 | + <mj-body> |
| 6 | + <mj-container> |
| 7 | + |
| 8 | + <!-- Company Header --> |
| 9 | + <mj-section background-color="#f0f0f0"> |
| 10 | + <mj-column> |
| 11 | + <mj-text font-style="italic" font-size="20" color="#626262"> |
| 12 | + My Company |
| 13 | + </mj-text> |
| 14 | + </mj-column> |
| 15 | + </mj-section> |
| 16 | + |
| 17 | + <!-- Image Header --> |
| 18 | + <mj-section background-url="./images/clouds.jpg" background-size="cover" background-repeat="no-repeat"> |
| 19 | + <mj-column> |
| 20 | + <mj-text align="center" color="#fff" font-size="40" font-family="Helvetica Neue" padding-top="30px" padding-bottom="30px">Slogan here</mj-text> |
| 21 | + <mj-button background-color="#F63A4D" href="#"> |
| 22 | + Promotion |
| 23 | + </mj-button> |
| 24 | + </mj-column> |
| 25 | + </mj-section> |
| 26 | + |
| 27 | + <!-- Intro text --> |
| 28 | + <mj-section background-color="#fafafa"> |
| 29 | + <mj-column width="400"> |
| 30 | + <mj-text font-style="italic" font-size="20" font-family="Helvetica Neue" color="#cc2d2d">Attention!</mj-text> |
| 31 | + <mj-text color="#525252"> |
| 32 | + The MJML Mode is currently experimental and there're a few bugs you should avoid. |
| 33 | + <ul> |
| 34 | + <li>Don't toggle visibility in the layer manager.</li> |
| 35 | + <li>Don't import the mj-head if you import a custom template.</li> |
| 36 | + <li>Don't duplicate mj-image as the duplicate is missing the src attribute on export. This bug is probably not limited to mj-image.</li> |
| 37 | + <li>Don't use % values.</li> |
| 38 | + </ul> |
| 39 | + It's generally working great and very promising. Thanks to @artf for making this all possible. |
| 40 | + </mj-text> |
| 41 | + <mj-button background-color="#F45E43" href="https://github.com/artf/grapesjs-mjml">Learn more about GrapesJS MJML</mj-button> |
| 42 | + </mj-column> |
| 43 | + </mj-section> |
| 44 | + |
| 45 | + <!-- Side image --> |
| 46 | + <mj-section background-color="white"> |
| 47 | + <mj-column> |
| 48 | + <mj-image src="./images/bird-1.jpg" /> |
| 49 | + </mj-column> |
| 50 | + <mj-column> |
| 51 | + <mj-text font-style="italic" font-size="20" font-family="Helvetica Neue" color="#626262"> |
| 52 | + Amazing Birds |
| 53 | + </mj-text> |
| 54 | + <mj-text color="#525252"> |
| 55 | + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin rutrum enim eget magna efficitur, eu semper augue semper. Aliquam erat volutpat. Cras id dui lectus. Vestibulum sed finibus lectus.</mj-text> |
| 56 | + </mj-column> |
| 57 | + </mj-section> |
| 58 | + |
| 59 | + <!-- Icons --> |
| 60 | + <mj-section background-color="#fbfbfb"> |
| 61 | + <mj-column> |
| 62 | + <mj-image width="200" src="./images/bird-2.jpg" /> |
| 63 | + </mj-column> |
| 64 | + <mj-column> |
| 65 | + <mj-image width="200" src="./images/bird-3.jpg" /> |
| 66 | + </mj-column> |
| 67 | + <mj-column> |
| 68 | + <mj-image width="200" src="./images/bird-4.jpg" /> |
| 69 | + </mj-column> |
| 70 | + </mj-section> |
| 71 | + |
| 72 | + <!-- Footer --> |
| 73 | + <mj-section background-color="#e7e7e7"> |
| 74 | + <mj-column> |
| 75 | + <mj-text color="#525252"> |
| 76 | + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin rutrum enim eget magna efficitur, eu semper augue semper. Aliquam erat volutpat. Cras id dui lectus. Vestibulum sed finibus lectus, sit amet suscipit nibh. Proin nec commodo purus. Sed eget |
| 77 | + nulla elit. Nulla aliquet mollis faucibus. |
| 78 | + </mj-text> |
| 79 | + <mj-button href="#">Hello There!</mj-button> |
| 80 | + <mj-social display="facebook twitter" /> |
| 81 | + </mj-column> |
| 82 | + </mj-section> |
| 83 | + |
| 84 | + </mj-container> |
| 85 | + </mj-body> |
| 86 | +</mjml> |
0 commit comments