-
Notifications
You must be signed in to change notification settings - Fork 143
/
index.html
462 lines (459 loc) · 14.5 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GrapesJS Newsletter Editor</title>
<link href="https://unpkg.com/grapesjs/dist/css/grapes.min.css" rel="stylesheet">
<script src="https://unpkg.com/grapesjs"></script>
</head>
<style>
body,
html {
height: 100%;
margin: 0;
}
</style>
<body>
<div id="gjs" style="height:0px; overflow:hidden">
<table class="main-body">
<tr class="row">
<td class="main-body-cell">
<table class="container">
<tr>
<td class="container-cell">
<table class="table100 c1790">
<tr>
<td class="top-cell" id="c1793">
<u class="browser-link" id="c307">View in browser
</u>
</td>
</tr>
</table>
<table class="c1766">
<tr>
<td class="cell c1769">
<img class="c926" src="https://grapesjs.com/img/grapesjs-logo.png" alt="GrapesJS."/>
</td>
<td class="cell c1776">
<div class="c1144">GrapesJS Newsletter Builder
<br/>
</div>
</td>
</tr>
</table>
<table class="card">
<tr>
<td class="card-cell">
<img class="c1271" src="https://grapesjs.com/img/tmp-header-txt.jpg" alt="Big image here"/>
<table class="table100 c1357">
<tr>
<td class="card-content">
<h1 class="card-title">Build your newsletters faster than ever
<br/>
</h1>
<p class="card-text">Import, build, test and export responsive newsletter templates faster than ever using the GrapesJS Newsletter Builder.
</p>
<table class="c1542">
<tr>
<td class="card-footer" id="c1545">
<a class="button" href="https://github.com/artf/grapesjs">Free and Open Source
</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table class="list-item">
<tr>
<td class="list-item-cell">
<table class="list-item-content">
<tr class="list-item-row">
<td class="list-cell-left">
<img class="list-item-image" src="https://grapesjs.com/img/tmp-blocks.jpg" alt="Image1"/>
</td>
<td class="list-cell-right">
<h1 class="card-title">Built-in Blocks
</h1>
<p class="card-text">Drag and drop built-in blocks from the right panel and style them in a matter of seconds
</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table class="list-item">
<tr>
<td class="list-item-cell">
<table class="list-item-content">
<tr class="list-item-row">
<td class="list-cell-left">
<img class="list-item-image" src="https://grapesjs.com/img/tmp-tgl-images.jpg" alt="Image2"/>
</td>
<td class="list-cell-right">
<h1 class="card-title">Toggle images
</h1>
<p class="card-text">Build a good looking newsletter even without images enabled by the email clients
</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table class="grid-item-row">
<tr>
<td class="grid-item-cell2-l">
<table class="grid-item-card">
<tr>
<td class="grid-item-card-cell">
<img class="grid-item-image" src="https://grapesjs.com/img/tmp-send-test.jpg" alt="Image1"/>
<table class="grid-item-card-body">
<tr>
<td class="grid-item-card-content">
<h1 class="card-title">Test it
</h1>
<p class="card-text">You can send email tests directly from the editor and check how are looking on your email clients
</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td class="grid-item-cell2-r">
<table class="grid-item-card">
<tr>
<td class="grid-item-card-cell">
<img class="grid-item-image" src="https://grapesjs.com/img/tmp-devices.jpg" alt="Image2"/>
<table class="grid-item-card-body">
<tr>
<td class="grid-item-card-content">
<h1 class="card-title">Responsive
</h1>
<p class="card-text">Using the device manager you'll always send a fully responsive contents
</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table class="footer">
<tr>
<td class="footer-cell">
<div class="c2577">
<p class="footer-info">GrapesJS Newsletter Builder is a free and open source preset (plugin) used on top of the GrapesJS core library.
For more information about and how to integrate it inside your applications check<p>
<a class="link" href="https://github.com/artf/grapesjs-preset-newsletter">GrapesJS Newsletter Preset</a>
<br/>
</div>
<div class="c2421">
MADE BY <a class="link" href="https://github.com/artf">ARTUR ARSENIEV</a>
<p>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<style>
.link {
color: rgb(217, 131, 166);
}
.row{
vertical-align:top;
}
.main-body{
min-height:150px;
padding: 5px;
width:100%;
height:100%;
background-color:rgb(234, 236, 237);
}
.c926{
color:rgb(158, 83, 129);
width:100%;
font-size:50px;
}
.cell.c849{
width:11%;
}
.c1144{
padding: 10px;
font-size:17px;
font-weight: 300;
}
.card{
min-height:150px;
padding: 5px;
margin-bottom:20px;
height:0px;
}
.card-cell{
background-color:rgb(255, 255, 255);
overflow:hidden;
border-radius: 3px;
padding: 0;
text-align:center;
}
.card.sector{
background-color:rgb(255, 255, 255);
border-radius: 3px;
border-collapse:separate;
}
.c1271{
width:100%;
margin: 0 0 15px 0;
font-size:50px;
color:rgb(120, 197, 214);
line-height:250px;
text-align:center;
}
.table100{
width:100%;
}
.c1357{
min-height:150px;
padding: 5px;
margin: auto;
height:0px;
}
.darkerfont{
color:rgb(65, 69, 72);
}
.button{
font-size:12px;
padding: 10px 20px;
background-color:rgb(217, 131, 166);
color:rgb(255, 255, 255);
text-align:center;
border-radius: 3px;
font-weight:300;
}
.table100.c1437{
text-align:left;
}
.cell.cell-bottom{
text-align:center;
height:51px;
}
.card-title{
font-size:25px;
font-weight:300;
color:rgb(68, 68, 68);
}
.card-content{
font-size:13px;
line-height:20px;
color:rgb(111, 119, 125);
padding: 10px 20px 0 20px;
vertical-align:top;
}
.container{
font-family: Helvetica, serif;
min-height:150px;
padding: 5px;
margin:auto;
height:0px;
width:90%;
max-width:550px;
}
.cell.c856{
vertical-align:middle;
}
.container-cell{
vertical-align:top;
font-size:medium;
padding-bottom:50px;
}
.c1790{
min-height:150px;
padding: 5px;
margin:auto;
height:0px;
}
.table100.c1790{
min-height:30px;
border-collapse:separate;
margin: 0 0 10px 0;
}
.browser-link{
font-size:12px;
}
.top-cell{
text-align:right;
color:rgb(152, 156, 165);
}
.table100.c1357{
margin: 0;
border-collapse:collapse;
}
.c1769{
width:30%;
}
.c1776{
width:70%;
}
.c1766{
margin: 0 auto 10px 0;
padding: 5px;
width:100%;
min-height:30px;
}
.cell.c1769{
width:11%;
}
.cell.c1776{
vertical-align:middle;
}
.c1542{
margin: 0 auto 10px auto;
padding:5px;
width:100%;
}
.card-footer{
padding: 20px 0;
text-align:center;
}
.c2280{
height:150px;
margin:0 auto 10px auto;
padding:5px 5px 5px 5px;
width:100%;
}
.c2421{
padding:10px;
}
.c2577{
padding:10px;
}
.footer{
margin-top: 50px;
color:rgb(152, 156, 165);
text-align:center;
font-size:11px;
padding: 5px;
}
.quote {
font-style: italic;
}
.list-item{
height:auto;
width:100%;
margin: 0 auto 10px auto;
padding: 5px;
}
.list-item-cell{
background-color:rgb(255, 255, 255);
border-radius: 3px;
overflow: hidden;
padding: 0;
}
.list-cell-left{
width:30%;
padding: 0;
}
.list-cell-right{
width:70%;
color:rgb(111, 119, 125);
font-size:13px;
line-height:20px;
padding: 10px 20px 0px 20px;
}
.list-item-content{
border-collapse: collapse;
margin: 0 auto;
padding: 5px;
height:150px;
width:100%;
}
.list-item-image{
color:rgb(217, 131, 166);
font-size:45px;
width: 100%;
}
.grid-item-image{
line-height:150px;
font-size:50px;
color:rgb(120, 197, 214);
margin-bottom:15px;
width:100%;
}
.grid-item-row {
margin: 0 auto 10px;
padding: 5px 0;
width: 100%;
}
.grid-item-card {
width:100%;
padding: 5px 0;
margin-bottom: 10px;
}
.grid-item-card-cell{
background-color:rgb(255, 255, 255);
overflow: hidden;
border-radius: 3px;
text-align:center;
padding: 0;
}
.grid-item-card-content{
font-size:13px;
color:rgb(111, 119, 125);
padding: 0 10px 20px 10px;
width:100%;
line-height:20px;
}
.grid-item-cell2-l{
vertical-align:top;
padding-right:10px;
width:50%;
}
.grid-item-cell2-r{
vertical-align:top;
padding-left:10px;
width:50%;
}
</style>
</div>
<script type="text/javascript">
// Set up GrapesJS editor with the Newsletter plugin
window.onload = () => {
window.editor = grapesjs.init({
height: '100%',
storageManager: false,
container: '#gjs',
fromElement: true,
plugins: ['grapesjs-preset-newsletter'],
pluginsOpts: {
'grapesjs-preset-newsletter': {
modalLabelImport: 'Paste all your code here below and click import',
modalLabelExport: 'Copy the code and use it wherever you want',
importPlaceholder: '<table class="table"><tr><td class="cell">Hello world!</td></tr></table>',
cellStyle: {
'font-size': '12px',
'font-weight': 300,
'vertical-align': 'top',
color: 'rgb(111, 119, 125)',
margin: 0,
padding: 0,
}
}
}
});
};
</script>
</body>
</html>