Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
n-azimy authored Jul 15, 2021
0 parents commit 6765504
Show file tree
Hide file tree
Showing 6 changed files with 111 additions and 0 deletions.
14 changes: 14 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "mautic/theme-gmail",
"description": "Mautic Gmail Theme",
"type": "mautic-theme",
"keywords": ["mautic","theme"],
"extra": {
"install-directory-name": "gmail"
},
"minimum-stability": "dev",
"require": {
"php": ">=7.4.0 <8.1",

}
}
9 changes: 9 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "Gmail Theme",
"author": "Leuchtfeuer",
"authorUrl": "https://leuchtfeuer.com",
"builder": ["grapesjsbuilder"],
"features": [
"email"
]
}
17 changes: 17 additions & 0 deletions html/base.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% if page is defined %}
<title>{pagetitle}</title>
<meta name="description" content="{pagemetadescription}">
{% endif %}
{% block stylesheets %}{% endblock %}
{{ outputHeadDeclarations() }}
</head>
<body>
{{ outputScripts('bodyOpen') }}
{% block content %}{% endblock %}
{{ outputScripts('bodyClose') }}
</body>
</html>
59 changes: 59 additions & 0 deletions html/email.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<mjml>
<mj-head>
<mj-style>
.body-left>div{
margin: 0px 10px !important;
}
ul {
display: block;
list-style-type: disc;
margin-block-start: 1em;
margin-block-end: 1em;
margin-inline-start: 0px;
margin-inline-end: 0px;
padding-inline-start: 40px;
}
a {
color: #1155CC;
}
mj-text {
font-size: small !important;
font-family: Arial, Helvetica, sans-serif !important;
color: #222222 !important;
line-height: 1.5 !important;
}
</mj-style>
</mj-head>
<mj-body background-color="white">
<mj-raw><div class="body-left"></mj-raw>
<mj-section>
<mj-column>
<mj-text>
<!--text goes here-->
Hello,
<br></br>
The text can be inserted here. This can be a two-line text or a little more.
<br></br>
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et
accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata
sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur
sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna
aliquyam erat, sed diam voluptua. At vero eos et accusam et
<br></br>
The text can also be <b>bold</b> or a <a href="#">link</a>

<ul>
<li>or a list</li>
<li>everything you need</li>
<li>and it looks like Gmail</li>
</ul>
Have fun with creating your email
<br>
<br>
</mj-text>
</mj-column>
</mj-section>
<mj-raw></div></mj-raw>
</mj-body>
</mjml>
12 changes: 12 additions & 0 deletions html/message.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{% extends ":"~template~":base.html.twig" %}
{% block stylesheets %}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" type="text/css" />
{% endblock %}
{% block content %}
<div>
{{ message|raw }}
{% if content is defined %}
<div>{{ content|raw }}</div>
{% endif %}
</div>
{% endblock %}
Binary file added thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6765504

Please sign in to comment.