Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ae2b07b

Browse files
committedMay 31, 2017
GrapeJS MJML Template Aves
1 parent 0f91533 commit ae2b07b

File tree

8 files changed

+96
-0
lines changed

8 files changed

+96
-0
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ public/grapejs/uploads/*
2626
!public/grapejs/uploads/README.md
2727
public/grapejs/templates/*
2828
!public/grapejs/templates/demo
29+
!public/grapejs/templates/aves
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#### Image Credits
2+
3+
All images CC0. Thanks to the Pixabay community.
4+
5+
* [bird-1.jpg](https://pixabay.com/de/zoo-pfau-kopf-tier-federn-vogel-866181/)
6+
* [bird-2.jpg](https://pixabay.com/de/möwe-himmel-urlaub-vogel-schnabel-249638/)
7+
* [bird-3.jpg](https://pixabay.com/de/porträt-vogel-natur-wild-räuber-1072696/)
8+
* [bird-4.jpg](https://pixabay.com/de/goldener-fasan-vogel-exotische-317503/)
9+
* [clouds.jpg](https://pixabay.com/de/luft-atmosphäre-blau-klar-klima-2716/)
88.1 KB
Loading
58.6 KB
Loading
Loading
Loading
76.8 KB
Loading
+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
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

Comments
 (0)
Please sign in to comment.