-
Notifications
You must be signed in to change notification settings - Fork 14
/
blocks-starter-modern.html
523 lines (471 loc) · 22.7 KB
/
blocks-starter-modern.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
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
<meta name="color-scheme" content="light dark">
<title>Starter Email Boilerplate Modern</title>
<style>
/* Dark mode settings */
:root {
color-scheme: light dark;
}
/* Reset */
html, body {
margin: 0 auto !important;
padding: 0 !important;
height: 100% !important;
width: 100% !important;
}
.main {
box-sizing: border-box;
}
/* Content */
body {
background: #ffffff;
font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
font-size: 18px;
line-height: 24px;
color: #333333;
font-weight: 300;
}
img {
display: block;
margin: 0 auto;
}
img.fill {
width: 100%;
height: auto;
}
.preview {
display: none;
}
.wrapper {
background: #ffffff;
}
.main {
max-width: 600px;
margin: 0 auto;
}
.content {
margin: 0;
text-align: left;
}
.row {
display: table;
width: 100%;
}
.row-alt {
background-color: #eeeeee;
}
.col {
display: table-cell;
vertical-align: top;
}
.row-alt .col {
padding: 14px;
}
.col-3 {
width: 25%;
}
.col-4 {
width: 33.3%;
}
.col-6 {
width: 50%;
}
.col-8 {
width: 66.6%;
}
h1, h2, h3 {
margin: 0;
font-family: Georgia, Times New Roman, serif;
color: #333333;
font-weight: normal;
}
h1 {
font-size: 18px;
line-height: 24px;
}
h2 {
margin-bottom: 10px;
font-size: 28px;
line-height: 32px;
}
h3 {
margin-bottom: 10px;
font-size: 22px;
line-height: 28px;
}
p {
margin: 0;
margin-bottom: 10px;
}
p:last-child {
margin-bottom: 0;
}
a {
text-decoration: underline;
color: #1467ac;
}
ul {
margin: 0;
padding-left: 30px;
}
.btn {
margin: 0;
display: inline-block;
border-radius: 50px;
padding: 12px 25px;
background: #333333;
color: #ffffff !important;
font-weight: 400;
line-height: 1;
text-decoration: none;
text-align: center;
}
.spacer-sm, .spacer-md {
display: inline-block;
margin: 0;
margin-bottom: 14px;
width: 100%;
line-height: 0;
}
.spacer-md {
margin-bottom: 28px;
}
.bg-image {
background-repeat: no-repeat;
background-size: cover;
background-position: top center;
width: 100%;
min-height: 300px;
text-align: center;
}
.bg-image h2 {
padding-top: 40px;
}
.footer {
margin: 30px 20px;
}
.footer p {
font-size: 14px;
line-height: 18px;
text-align: center;
}
/* Responsive adjustments */
@media screen and (max-width: 480px) {
.column {
display: block !important;
width: 100% !important;
box-sizing: border-box;
padding: 0 14px 14px 14px !important;
}
.column:last-child {
padding-bottom: 0 !important;
}
.column.alt {
padding-top: 14px !important;
padding-bottom: 0 !important;
}
.column.alt:last-child {
padding-bottom: 14px !important;
}
.icons .column {
width: 50% !important;
float: left;
}
.icons .column:nth-child(3) {
padding-bottom: 0 !important;
}
.icons .column.alt:nth-child(3) {
padding-bottom: 14px !important;
}
}
/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
body, .wrapper {
background-color: #222 !important;
}
h1, h2, h3, p, ul li, code {
color: #f1f1f1 !important;
}
.column.alt {
background-color: #1b1b1b !important;
}
.btn a {
background: #a6a6a6 !important;
color: #404040 !important;
}
}
</style>
</head>
<body>
<div class="preview block-preview"> </div>
<div role="article" lang="en" dir="ltr" class="wrapper">
<!-- Container -->
<!--[if mso]>
<p style="text-align: center;">Email may not look quite right in Outlook for Windows. <a href="#" style="text-decoration: underline; color: #1467ac;">View it in your browser.</a></p>
<![endif]-->
<div class="main">
<!-- Header -->
<div class="content">
<div class="spacer-sm"> </div>
<div class="header block-region block-remove" data-group="header">
<div class="row">
<div class="column col col-4">
<img class="block-edit" data-block="header-logo" height="auto" src="https://dummyimage.com/400x160/60bcde/ffffff&text= Logo " width="200" alt="" style="height: auto;">
</div>
<div class="column col col-8" style="text-align: center; vertical-align: middle;">
<h1 class="block-edit block-maxchar-30 block-remove" data-block="header-tagline">Tagline/title</h1>
</div>
</div>
</div>
<div class="column block-region block-remove" data-group="header" style="text-align: center;">
<img class="block-edit" data-block="header-logo" height="auto" src="https://dummyimage.com/400x160/60bcde/ffffff&text= Logo " width="200" alt="" style="height: auto;">
<h1 class="block-edit block-maxchar-30 block-remove" data-block="header-tagline">Tagline/title</h1>
</div>
<!-- Content -->
<!-- Code block section -->
<code class="block-section be-code-edit" data-group="section-code" data-title="Code" style="font-size: 16px; line-height: 18px;">/* Code block */ %%[ IF @member=="True" THEN ]%%</code>
<!-- Spacer section -->
<div class="block-section" data-group="section-spacer" data-title="Spacer" style="width: 100%;"><p class="spacer-sm"> </p></div>
<div class="block-section" data-group="section-spacer" style="width: 100%;"><p class="spacer-md"> </p></div>
<!-- Featured image section -->
<div class="block-section" data-group="featured-image" data-title="Featured image">
<img src="https://dummyimage.com/1200x600/60bcde/ffffff&text= Feature+Image " width="600" height="auto" alt="" class="fill block-edit" data-block="featured-image-image" style="height: auto;">
</div>
<!-- Standard content section -->
<div class="column block-section" data-group="content-standard" data-title="Standard content">
<p class="block-edit block-remove" data-block="content-standard-text">Text copy goes here. Sometimes it includes email provider tokens to pull in audience info, like %%first_name%%. And some additional text that may also include a <a href="https://blocksedit.com/#">link</a>.</p>
<!-- Standalone Components -->
<!-- Fluid image -->
<div class="block-component" data-group="fluid-image" data-title="Fluid image">
<img src="https://dummyimage.com/1200x600/60bcde/ffffff&text= Content+Image " width="600" height="auto" alt="" class="fill block-edit" data-block="fluid-image-image" style="height: auto;">
</div>
<!-- Code block -->
<code class="block-component be-code-edit" data-group="component-code" data-title="Code" style="font-size: 16px; line-height: 18px;">/* Code block */ %%[ IF @member=="True" THEN ]%%</code>
<!-- Spacer -->
<p class="spacer-sm block-component" data-group="component-spacer" data-title="Spacer"> </p>
<p class="spacer-md block-component" data-group="component-spacer"> </p>
<!-- Titles -->
<div class="block-component" data-group="compontent-title" data-title="Title">
<h2 class="block-edit" data-block="component-title-title">Headline/primary title text</h2>
</div>
<div class="block-component" data-group="component-subtitle" data-title="Subtitle">
<h3 class="block-edit" data-block="compontent-subtitle-subtitle">Subheadline/secondary title text</h3>
</div>
<!-- Text -->
<div class="block-component" data-group="component-text" data-title="Text">
<p class="block-edit" data-block="component-text-text">More text copy goes here. It could be as long as you need it to be as there is plenty of room to let it flow!</p>
</div>
<div class="block-component" data-group="compontent-list" data-title="Unordered List">
<ul>
<li class="block-edit" data-block="component-list-item">List item</li>
</ul>
</div>
<!-- Button -->
<a href="https://blocksedit.com/#" class="btn block-edit" data-block="component-button-cta" target="_blank">Call to Action</a>
</div>
<!-- Standard content section with centered text -->
<div class="row block-section" data-group="content-standard" style="text-align: center;">
<p class="block-edit block-remove" data-block="content-standard-text">More text copy goes here. It could be as long as you need it to be as there is plenty of room to let it flow!</p>
</div>
<!-- Standard content section with background color -->
<div class="row row-alt block-section" data-group="content-standard">
<div class="col">
<p class="block-edit block-remove" data-block="content-standard-text">More text copy goes here. It could be as long as you need it to be as there is plenty of room to let it flow!</p>
</div>
</div>
<!-- Standard content section with background color and centered text -->
<div class="row row-alt block-section" data-group="content-standard" style="text-align: center;">
<div class="col">
<p class="block-edit block-remove" data-block="content-standard-text">More text copy goes here. It could be as long as you need it to be as there is plenty of room to let it flow!</p>
</div>
</div>
<!-- Featured section with background image -->
<div class="block-section" data-group="feature-bg-image" data-title="Featured background image">
<div class="bg-image block-background" data-block="feature-bg-image-image" style="background-image: url(https://dummyimage.com/1200x600/60bcde/ffffff&text= Background+Image );">
<h2 class="block-edit block-remove" data-block="feature-bg-image-title">Headline/primary title text</h2>
</div>
</div>
<!-- Two-column section with left image -->
<div class="block-section" data-group="image-left" data-title="Two-column with left image">
<div class="row">
<div class="column col col-6">
<img height="auto" src="https://dummyimage.com/600x400/60bcde/ffffff&text=Content+Image" width="300" alt="" class="fill block-edit" data-block="image-left-image" style="height: auto;">
</div>
<div class="column col col-6" style="padding-left: 14px; vertical-align: middle;">
<p class="block-edit block-remove" data-block="image-left-text">Text next to an image, in a two-colum section, split 50/50.</p>
</div>
</div>
</div>
<!-- Two-column section with left image and background color -->
<div class="block-section" data-group="image-left">
<div class="row row-alt block-bgcolor" data-block="image-left-bgcolor">
<div class="column alt col col-6" style="padding-right: 0;">
<img height="auto" src="https://dummyimage.com/600x400/60bcde/ffffff&text=Content+Image" width="286" alt="" class="fill block-edit" data-block="image-left-image" style="height: auto;">
</div>
<div class="column alt col col-6" style="vertical-align: middle;">
<p class="block-edit block-remove" data-block="image-left-text">Text next to an image, in a two-colum section, split 50/50.</p>
</div>
</div>
</div>
<!-- Two-column section with right image -->
<div class="block-section" data-group="image-right" data-title="Two-column with right image" style="direction: rtl;">
<div class="row">
<div class="column col col-6" style="direction: ltr;">
<img height="auto" src="https://dummyimage.com/600x400/60bcde/ffffff&text=Content+Image" width="300" alt="" class="fill block-edit" data-block="image-right-image" style="height: auto;">
</div>
<div class="column col col-6" style="padding-right: 14px; direction: ltr; vertical-align: middle;">
<p class="block-edit block-remove" data-block="image-right-text">Text next to an image, in a two-colum section, split 50/50.</p>
</div>
</div>
</div>
<!-- Two-column section with image on the right and background color -->
<div class="block-section" data-group="image-right" style="direction: rtl;">
<div class="row row-alt block-bgcolor">
<div class="column alt col col-6" style="padding-left: 0; direction: ltr;">
<img height="auto" src="https://dummyimage.com/600x400/60bcde/ffffff&text=Content+Image" width="286" alt="" class="fill block-edit" data-block="image-right-image" style="height: auto;">
</div>
<div class="column alt col col-6" style="direction: ltr; vertical-align: middle;">
<p class="block-edit block-remove" data-block="image-right-text">Text next to an image, in a two-colum section, split 50/50.</p>
</div>
</div>
</div>
<!-- Two-column section with images -->
<div class="block-section" data-group="two-column" data-title="Two-column with images">
<div class="row">
<div class="column col col-6" style="padding-right: 7px;">
<img height="auto" src="https://dummyimage.com/600x300/60bcde/ffffff&text=Content+Image" width="293" alt="" class="fill block-edit" data-block="two-column-image-1" style="height: auto;">
<p class="block-edit block-remove" data-block="two-column-text-1">Text under an image, part of a two-column section, split 50/50.</p>
</div>
<div class="column col col-6" style="padding-left: 7px;">
<img height="auto" src="https://dummyimage.com/600x300/60bcde/ffffff&text=Content+Image" width="293" alt="" class="fill block-edit" data-block="two-column-image-2" style="height: auto;">
<p class="block-edit block-remove" data-block="two-column-text-2">Text under an image, part of a two-column section, split 50/50.</p>
</div>
</div>
</div>
<!-- Two-column section with images and background color -->
<div class="block-section" data-group="two-column">
<div class="row row-alt block-bgcolor">
<div class="column alt col col-6" style="padding-right: 7px;">
<img height="auto" src="https://dummyimage.com/600x300/60bcde/ffffff&text=Content+Image" width="278" alt="" class="fill block-edit" data-block="two-column-image-1" style="height: auto;">
<p class="block-edit block-remove" data-block="two-column-text-1">Text under an image, part of a two-column section, split 50/50.</p>
</div>
<div class="column alt col col-6" style="padding-left: 7px;">
<img height="auto" src="https://dummyimage.com/600x300/60bcde/ffffff&text=Content+Image" width="278" alt="" class="fill block-edit" data-block="two-column-image-2" style="height: auto;">
<p class="block-edit block-remove" data-block="two-column-text-2">Text under an image, part of a two-column section, split 50/50.</p>
</div>
</div>
</div>
<!-- Three-column section with images -->
<div class="block-section" data-group="three-column" data-title="Three-column with images">
<div class="row">
<div class="column col col-4" style="padding-right: 7px;">
<img height="auto" src="https://dummyimage.com/400x200/60bcde/ffffff&text=Content+Image" width="190" alt="" class="fill block-edit" data-block="three-column-image-1" style="height: auto;">
<p class="block-edit block-remove" data-block="three-column-text-1">Text under an image, part of a three-column section, split into thirds.</p>
</div>
<div class="column col col-4" style="padding-right: 7px; padding-left: 7px;">
<img height="auto" src="https://dummyimage.com/400x200/60bcde/ffffff&text=Content+Image" width="190" alt="" class="fill block-edit" data-block="three-column-image-2" style="height: auto;">
<p class="block-edit block-remove" data-block="three-column-text-2">Text under an image, part of a three-column section, split into thirds.</p>
</div>
<div class="column col col-4" style="padding-left: 7px;">
<img height="auto" src="https://dummyimage.com/400x200/60bcde/ffffff&text=Content+Image" width="190" alt="" class="fill block-edit" data-block="three-column-image-3" style="height: auto;">
<p class="block-edit block-remove" data-block="three-column-text-3">Text under an image, part of a three-column section, split into thirds.</p>
</div>
</div>
</div>
<!-- Three-column section with images and background color -->
<div class="block-section" data-group="three-column">
<div class="row row-alt block-bgcolor">
<div class="column alt col col-4" style="padding-right: 7px;">
<img height="auto" src="https://dummyimage.com/400x200/60bcde/ffffff&text=Content+Image" width="181" alt="" class="fill block-edit" data-block="three-column-image-1" style="height: auto;">
<p class="block-edit block-remove" data-block="three-column-text-1">Text under an image, part of a three-column section, split into thirds.</p>
</div>
<div class="column alt col col-4" style="padding-right: 7px; padding-left: 7px;">
<img height="auto" src="https://dummyimage.com/400x200/60bcde/ffffff&text=Content+Image" width="181" alt="" class="fill block-edit" data-block="three-column-image-2" style="height: auto;">
<p class="block-edit block-remove" data-block="three-column-text-2">Text under an image, part of a three-column section, split into thirds.</p>
</div>
<div class="column alt col col-4" style="padding-left: 7px;">
<img height="auto" src="https://dummyimage.com/400x200/60bcde/ffffff&text=Content+Image" width="181" alt="" class="fill block-edit" data-block="three-column-image-3" style="height: auto;">
<p class="block-edit block-remove" data-block="three-column-text-3">Text under an image, part of a three-column section, split into thirds.</p>
</div>
</div>
</div>
<!-- Four-column icons section -->
<div class="icons block-section" data-group="icons-column" data-title="Four-column icons">
<div class="row">
<div class="column col col-3" style="text-align: center;">
<img src="https://dummyimage.com/160x160/60bcde/ffffff&text=Icon" width="80" height="80" alt="" class="block-edit" data-block="icons-column-image-1">
<p class="block-edit block-remove" data-block="icons-column-text-1">Text with icons</p>
</div>
<div class="column col col-3" style="text-align: center;">
<img src="https://dummyimage.com/160x160/60bcde/ffffff&text=Icon" width="80" height="80" alt="" class="block-edit" data-block="icons-column-image-2">
<p class="block-edit block-remove" data-block="icons-column-text-2">Text with icons</p>
</div>
<div class="column col col-3" style="text-align: center;">
<img src="https://dummyimage.com/160x160/60bcde/ffffff&text=Icon" width="80" height="80" alt="" class="block-edit" data-block="icons-column-image-3">
<p class="block-edit block-remove" data-block="icons-column-text-3">Text with icons</p>
</div>
<div class="column col col-3" style="text-align: center;">
<img src="https://dummyimage.com/160x160/60bcde/ffffff&text=Icon" width="80" height="80" alt="" class="block-edit" data-block="icons-column-image-4">
<p class="block-edit block-remove" data-block="icons-column-text-4">Text with icons</p>
</div>
</div>
</div>
<!-- Four-column icons section with background color -->
<div class="icons block-section" data-group="icons-column">
<div class="row row-alt block-bgcolor">
<div class="column alt col col-3" style="text-align: center;">
<img src="https://dummyimage.com/160x160/60bcde/ffffff&text=Icon" width="80" height="80" alt="" class="block-edit" data-block="icons-column-image-1">
<p class="block-edit block-remove" data-block="icons-column-text-1">Text with icons</p>
</div>
<div class="column alt col col-3" style="text-align: center;">
<img src="https://dummyimage.com/160x160/60bcde/ffffff&text=Icon" width="80" height="80" alt="" class="block-edit" data-block="icons-column-image-2">
<p class="block-edit block-remove" data-block="icons-column-text-2">Text with icons</p>
</div>
<div class="column alt col col-3" style="text-align: center;">
<img src="https://dummyimage.com/160x160/60bcde/ffffff&text=Icon" width="80" height="80" alt="" class="block-edit" data-block="icons-column-image-3">
<p class="block-edit block-remove" data-block="icons-column-text-3">Text with icons</p>
</div>
<div class="column alt col col-3" style="text-align: center;">
<img src="https://dummyimage.com/160x160/60bcde/ffffff&text=Icon" width="80" height="80" alt="" class="block-edit" data-block="icons-column-image-4">
<p class="block-edit block-remove" data-block="icons-column-text-4">Text with icons</p>
</div>
</div>
</div>
<!-- Listings section -->
<div class="block-section" data-group="listing" data-title="Listings">
<div class="row">
<div class="column col col-4">
<img height="auto" src="https://dummyimage.com/400x200/60bcde/ffffff&text=Content+Image" width="200" alt="" class="fill block-edit" data-block="listing-image" style="height: auto;">
</div>
<div class="column col col-8" style="padding-left: 14px; vertical-align: middle;">
<p class="block-edit block-remove" data-block="listing-text">Text in a listing section, with an image a third of its width on the left.</p>
</div>
</div>
</div>
<!-- Listings section with background color -->
<div class="block-section" data-group="listing">
<div class="row row-alt block-bgcolor">
<div class="column alt col col-4" style="padding-right: 0;">
<img height="auto" src="https://dummyimage.com/400x200/60bcde/ffffff&text=Content+Image" width="200" alt="" class="fill block-edit" data-block="listing-image"style="height: auto;">
</div>
<div class="column alt col col-8" style="vertical-align: middle;">
<p class="block-edit block-remove" data-block="listing-text">Text in a listing section, with an image a third of its width on the left.</p>
</div>
</div>
</div>
</div>
<!-- Footer -->
<div class="footer">
<p class="block-edit" data-block="footer-reason">
Reason for email being sent.<br>Mailing address<br>
<a href="https://blocksedit.com/#" target="_blank">Unsubscribe</a>
</p>
</div>
</div>
</div>
</body>
</html>