GrapeJS MJML Template Aves
This commit is contained in:
parent
0f91533210
commit
ae2b07b222
8 changed files with 96 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -26,3 +26,4 @@ public/grapejs/uploads/*
|
|||
!public/grapejs/uploads/README.md
|
||||
public/grapejs/templates/*
|
||||
!public/grapejs/templates/demo
|
||||
!public/grapejs/templates/aves
|
||||
|
|
9
public/grapejs/templates/aves/CREDITS.md
Normal file
9
public/grapejs/templates/aves/CREDITS.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
#### Image Credits
|
||||
|
||||
All images CC0. Thanks to the Pixabay community.
|
||||
|
||||
* [bird-1.jpg](https://pixabay.com/de/zoo-pfau-kopf-tier-federn-vogel-866181/)
|
||||
* [bird-2.jpg](https://pixabay.com/de/möwe-himmel-urlaub-vogel-schnabel-249638/)
|
||||
* [bird-3.jpg](https://pixabay.com/de/porträt-vogel-natur-wild-räuber-1072696/)
|
||||
* [bird-4.jpg](https://pixabay.com/de/goldener-fasan-vogel-exotische-317503/)
|
||||
* [clouds.jpg](https://pixabay.com/de/luft-atmosphäre-blau-klar-klima-2716/)
|
BIN
public/grapejs/templates/aves/images/bird-1.jpg
Normal file
BIN
public/grapejs/templates/aves/images/bird-1.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 88 KiB |
BIN
public/grapejs/templates/aves/images/bird-2.jpg
Normal file
BIN
public/grapejs/templates/aves/images/bird-2.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 59 KiB |
BIN
public/grapejs/templates/aves/images/bird-3.jpg
Normal file
BIN
public/grapejs/templates/aves/images/bird-3.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 104 KiB |
BIN
public/grapejs/templates/aves/images/bird-4.jpg
Normal file
BIN
public/grapejs/templates/aves/images/bird-4.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 145 KiB |
BIN
public/grapejs/templates/aves/images/clouds.jpg
Normal file
BIN
public/grapejs/templates/aves/images/clouds.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 77 KiB |
86
public/grapejs/templates/aves/index.mjml
Normal file
86
public/grapejs/templates/aves/index.mjml
Normal file
|
@ -0,0 +1,86 @@
|
|||
<mjml>
|
||||
<mj-head>
|
||||
<mj-title>Hello World</mj-title>
|
||||
</mj-head>
|
||||
<mj-body>
|
||||
<mj-container>
|
||||
|
||||
<!-- Company Header -->
|
||||
<mj-section background-color="#f0f0f0">
|
||||
<mj-column>
|
||||
<mj-text font-style="italic" font-size="20" color="#626262">
|
||||
My Company
|
||||
</mj-text>
|
||||
</mj-column>
|
||||
</mj-section>
|
||||
|
||||
<!-- Image Header -->
|
||||
<mj-section background-url="./images/clouds.jpg" background-size="cover" background-repeat="no-repeat">
|
||||
<mj-column>
|
||||
<mj-text align="center" color="#fff" font-size="40" font-family="Helvetica Neue" padding-top="30px" padding-bottom="30px">Slogan here</mj-text>
|
||||
<mj-button background-color="#F63A4D" href="#">
|
||||
Promotion
|
||||
</mj-button>
|
||||
</mj-column>
|
||||
</mj-section>
|
||||
|
||||
<!-- Intro text -->
|
||||
<mj-section background-color="#fafafa">
|
||||
<mj-column width="400">
|
||||
<mj-text font-style="italic" font-size="20" font-family="Helvetica Neue" color="#cc2d2d">Attention!</mj-text>
|
||||
<mj-text color="#525252">
|
||||
The MJML Mode is currently experimental and there're a few bugs you should avoid.
|
||||
<ul>
|
||||
<li>Don't toggle visibility in the layer manager.</li>
|
||||
<li>Don't import the mj-head if you import a custom template.</li>
|
||||
<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>
|
||||
<li>Don't use % values.</li>
|
||||
</ul>
|
||||
It's generally working great and very promising. Thanks to @artf for making this all possible.
|
||||
</mj-text>
|
||||
<mj-button background-color="#F45E43" href="https://github.com/artf/grapesjs-mjml">Learn more about GrapesJS MJML</mj-button>
|
||||
</mj-column>
|
||||
</mj-section>
|
||||
|
||||
<!-- Side image -->
|
||||
<mj-section background-color="white">
|
||||
<mj-column>
|
||||
<mj-image src="./images/bird-1.jpg" />
|
||||
</mj-column>
|
||||
<mj-column>
|
||||
<mj-text font-style="italic" font-size="20" font-family="Helvetica Neue" color="#626262">
|
||||
Amazing Birds
|
||||
</mj-text>
|
||||
<mj-text color="#525252">
|
||||
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>
|
||||
</mj-column>
|
||||
</mj-section>
|
||||
|
||||
<!-- Icons -->
|
||||
<mj-section background-color="#fbfbfb">
|
||||
<mj-column>
|
||||
<mj-image width="200" src="./images/bird-2.jpg" />
|
||||
</mj-column>
|
||||
<mj-column>
|
||||
<mj-image width="200" src="./images/bird-3.jpg" />
|
||||
</mj-column>
|
||||
<mj-column>
|
||||
<mj-image width="200" src="./images/bird-4.jpg" />
|
||||
</mj-column>
|
||||
</mj-section>
|
||||
|
||||
<!-- Footer -->
|
||||
<mj-section background-color="#e7e7e7">
|
||||
<mj-column>
|
||||
<mj-text color="#525252">
|
||||
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
|
||||
nulla elit. Nulla aliquet mollis faucibus.
|
||||
</mj-text>
|
||||
<mj-button href="#">Hello There!</mj-button>
|
||||
<mj-social display="facebook twitter" />
|
||||
</mj-column>
|
||||
</mj-section>
|
||||
|
||||
</mj-container>
|
||||
</mj-body>
|
||||
</mjml>
|
Loading…
Reference in a new issue