@mailquilt/templates 0.0.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +135 -0
- package/dist/index.d.ts +398 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3948 -0
- package/dist/index.js.map +1 -0
- package/package.json +53 -3
- package/src/builders.ts +256 -0
- package/src/categories.ts +69 -0
- package/src/index.ts +89 -0
- package/src/merge-tags.ts +126 -0
- package/src/rows/content.ts +558 -0
- package/src/rows/cta.ts +151 -0
- package/src/rows/footers.ts +175 -0
- package/src/rows/headers.ts +122 -0
- package/src/rows/heroes.ts +195 -0
- package/src/rows/index.ts +34 -0
- package/src/starters/editorial.ts +1233 -0
- package/src/starters/engagement.ts +1137 -0
- package/src/starters/index.ts +36 -0
- package/src/starters/onboarding.ts +828 -0
- package/src/starters/product.ts +943 -0
- package/src/starters/transactional.ts +609 -0
- package/src/types.ts +335 -0
|
@@ -0,0 +1,558 @@
|
|
|
1
|
+
import {
|
|
2
|
+
bold,
|
|
3
|
+
br,
|
|
4
|
+
buttonBlock,
|
|
5
|
+
col,
|
|
6
|
+
defineSavedRow,
|
|
7
|
+
doc,
|
|
8
|
+
headingBlock,
|
|
9
|
+
headingDoc,
|
|
10
|
+
italic,
|
|
11
|
+
linkText,
|
|
12
|
+
p,
|
|
13
|
+
row,
|
|
14
|
+
singleColRow,
|
|
15
|
+
tag,
|
|
16
|
+
textBlock,
|
|
17
|
+
ul,
|
|
18
|
+
videoBlock,
|
|
19
|
+
} from "../builders.js";
|
|
20
|
+
import type { TemplateSavedRow } from "../types.js";
|
|
21
|
+
|
|
22
|
+
/** Two-column feature highlights in subtle bordered cards. */
|
|
23
|
+
export const featureGridTwoCol: TemplateSavedRow =
|
|
24
|
+
/* #__PURE__ */
|
|
25
|
+
defineSavedRow({ category: "content", name: "Two-column features" }, () =>
|
|
26
|
+
row(
|
|
27
|
+
"sr-feat2-row",
|
|
28
|
+
[
|
|
29
|
+
col(
|
|
30
|
+
"sr-feat2-left",
|
|
31
|
+
50,
|
|
32
|
+
[
|
|
33
|
+
headingBlock(
|
|
34
|
+
"sr-feat2-left-title",
|
|
35
|
+
3,
|
|
36
|
+
headingDoc(p("Shared building blocks")),
|
|
37
|
+
{
|
|
38
|
+
color: "#0f172a",
|
|
39
|
+
fontSize: 18,
|
|
40
|
+
paddingBottom: 6,
|
|
41
|
+
paddingLeft: 16,
|
|
42
|
+
paddingRight: 16,
|
|
43
|
+
paddingTop: 18,
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
textBlock(
|
|
47
|
+
"sr-feat2-left-body",
|
|
48
|
+
doc(
|
|
49
|
+
p(
|
|
50
|
+
"Drop approved headers, callouts, and footers into any campaign without rebuilding layouts from scratch."
|
|
51
|
+
),
|
|
52
|
+
p(linkText("Browse saved patterns", "{{cta_url}}"))
|
|
53
|
+
),
|
|
54
|
+
{
|
|
55
|
+
color: "#334155",
|
|
56
|
+
fontSize: 14,
|
|
57
|
+
paddingBottom: 18,
|
|
58
|
+
paddingLeft: 16,
|
|
59
|
+
paddingRight: 16,
|
|
60
|
+
paddingTop: 0,
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
],
|
|
64
|
+
{
|
|
65
|
+
backgroundColor: "#f8fafc",
|
|
66
|
+
borderColor: "#e2e8f0",
|
|
67
|
+
borderStyle: "solid",
|
|
68
|
+
borderWidth: 1,
|
|
69
|
+
}
|
|
70
|
+
),
|
|
71
|
+
col(
|
|
72
|
+
"sr-feat2-right",
|
|
73
|
+
50,
|
|
74
|
+
[
|
|
75
|
+
headingBlock(
|
|
76
|
+
"sr-feat2-right-title",
|
|
77
|
+
3,
|
|
78
|
+
headingDoc(p("Automatic pre-send checks")),
|
|
79
|
+
{
|
|
80
|
+
color: "#0f172a",
|
|
81
|
+
fontSize: 18,
|
|
82
|
+
paddingBottom: 6,
|
|
83
|
+
paddingLeft: 16,
|
|
84
|
+
paddingRight: 16,
|
|
85
|
+
paddingTop: 18,
|
|
86
|
+
}
|
|
87
|
+
),
|
|
88
|
+
textBlock(
|
|
89
|
+
"sr-feat2-right-body",
|
|
90
|
+
doc(
|
|
91
|
+
p(
|
|
92
|
+
"Catch missing alt text, low contrast ratios, and broken merge tags before your email reaches a single reader."
|
|
93
|
+
),
|
|
94
|
+
p(linkText("Review pre-send checks", "{{help_url}}"))
|
|
95
|
+
),
|
|
96
|
+
{
|
|
97
|
+
color: "#334155",
|
|
98
|
+
fontSize: 14,
|
|
99
|
+
paddingBottom: 18,
|
|
100
|
+
paddingLeft: 16,
|
|
101
|
+
paddingRight: 16,
|
|
102
|
+
paddingTop: 0,
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
],
|
|
106
|
+
{
|
|
107
|
+
backgroundColor: "#f8fafc",
|
|
108
|
+
borderColor: "#e2e8f0",
|
|
109
|
+
borderStyle: "solid",
|
|
110
|
+
borderWidth: 1,
|
|
111
|
+
}
|
|
112
|
+
),
|
|
113
|
+
],
|
|
114
|
+
{
|
|
115
|
+
backgroundColor: "#ffffff",
|
|
116
|
+
paddingBottom: 24,
|
|
117
|
+
paddingLeft: 24,
|
|
118
|
+
paddingRight: 24,
|
|
119
|
+
paddingTop: 24,
|
|
120
|
+
phone: { paddingLeft: 16, paddingRight: 16 },
|
|
121
|
+
}
|
|
122
|
+
)
|
|
123
|
+
);
|
|
124
|
+
|
|
125
|
+
/** Three-column benefits strip with numbered eyebrows. */
|
|
126
|
+
export const featureGridThreeCol: TemplateSavedRow =
|
|
127
|
+
/* #__PURE__ */
|
|
128
|
+
defineSavedRow({ category: "content", name: "Three-column benefits" }, () =>
|
|
129
|
+
row(
|
|
130
|
+
"sr-feat3-row",
|
|
131
|
+
[
|
|
132
|
+
col("sr-feat3-col-1", 33.33, [
|
|
133
|
+
textBlock("sr-feat3-num-1", doc(p(bold("01"))), {
|
|
134
|
+
color: "#1d4ed8",
|
|
135
|
+
fontSize: 12,
|
|
136
|
+
paddingBottom: 4,
|
|
137
|
+
paddingLeft: 10,
|
|
138
|
+
paddingRight: 10,
|
|
139
|
+
paddingTop: 8,
|
|
140
|
+
}),
|
|
141
|
+
headingBlock("sr-feat3-head-1", 3, headingDoc(p("Fast setup")), {
|
|
142
|
+
color: "#0f172a",
|
|
143
|
+
fontSize: 16,
|
|
144
|
+
paddingBottom: 6,
|
|
145
|
+
paddingLeft: 10,
|
|
146
|
+
paddingRight: 10,
|
|
147
|
+
paddingTop: 0,
|
|
148
|
+
}),
|
|
149
|
+
textBlock(
|
|
150
|
+
"sr-feat3-text-1",
|
|
151
|
+
doc(
|
|
152
|
+
p(
|
|
153
|
+
"Start from a structured layout and tailor colors and fonts in seconds."
|
|
154
|
+
)
|
|
155
|
+
),
|
|
156
|
+
{
|
|
157
|
+
color: "#475569",
|
|
158
|
+
fontSize: 14,
|
|
159
|
+
paddingBottom: 8,
|
|
160
|
+
paddingLeft: 10,
|
|
161
|
+
paddingRight: 10,
|
|
162
|
+
paddingTop: 0,
|
|
163
|
+
}
|
|
164
|
+
),
|
|
165
|
+
]),
|
|
166
|
+
col("sr-feat3-col-2", 33.33, [
|
|
167
|
+
textBlock("sr-feat3-num-2", doc(p(bold("02"))), {
|
|
168
|
+
color: "#1d4ed8",
|
|
169
|
+
fontSize: 12,
|
|
170
|
+
paddingBottom: 4,
|
|
171
|
+
paddingLeft: 10,
|
|
172
|
+
paddingRight: 10,
|
|
173
|
+
paddingTop: 8,
|
|
174
|
+
}),
|
|
175
|
+
headingBlock("sr-feat3-head-2", 3, headingDoc(p("Clean HTML")), {
|
|
176
|
+
color: "#0f172a",
|
|
177
|
+
fontSize: 16,
|
|
178
|
+
paddingBottom: 6,
|
|
179
|
+
paddingLeft: 10,
|
|
180
|
+
paddingRight: 10,
|
|
181
|
+
paddingTop: 0,
|
|
182
|
+
}),
|
|
183
|
+
textBlock(
|
|
184
|
+
"sr-feat3-text-2",
|
|
185
|
+
doc(
|
|
186
|
+
p(
|
|
187
|
+
"Tested across Gmail, Apple Mail, and Outlook without bloated markup."
|
|
188
|
+
)
|
|
189
|
+
),
|
|
190
|
+
{
|
|
191
|
+
color: "#475569",
|
|
192
|
+
fontSize: 14,
|
|
193
|
+
paddingBottom: 8,
|
|
194
|
+
paddingLeft: 10,
|
|
195
|
+
paddingRight: 10,
|
|
196
|
+
paddingTop: 0,
|
|
197
|
+
}
|
|
198
|
+
),
|
|
199
|
+
]),
|
|
200
|
+
col("sr-feat3-col-3", 33.34, [
|
|
201
|
+
textBlock("sr-feat3-num-3", doc(p(bold("03"))), {
|
|
202
|
+
color: "#1d4ed8",
|
|
203
|
+
fontSize: 12,
|
|
204
|
+
paddingBottom: 4,
|
|
205
|
+
paddingLeft: 10,
|
|
206
|
+
paddingRight: 10,
|
|
207
|
+
paddingTop: 8,
|
|
208
|
+
}),
|
|
209
|
+
headingBlock("sr-feat3-head-3", 3, headingDoc(p("Full ownership")), {
|
|
210
|
+
color: "#0f172a",
|
|
211
|
+
fontSize: 16,
|
|
212
|
+
paddingBottom: 6,
|
|
213
|
+
paddingLeft: 10,
|
|
214
|
+
paddingRight: 10,
|
|
215
|
+
paddingTop: 0,
|
|
216
|
+
}),
|
|
217
|
+
textBlock(
|
|
218
|
+
"sr-feat3-text-3",
|
|
219
|
+
doc(
|
|
220
|
+
p(
|
|
221
|
+
"Store plain JSON documents in your own database and render on demand."
|
|
222
|
+
)
|
|
223
|
+
),
|
|
224
|
+
{
|
|
225
|
+
color: "#475569",
|
|
226
|
+
fontSize: 14,
|
|
227
|
+
paddingBottom: 8,
|
|
228
|
+
paddingLeft: 10,
|
|
229
|
+
paddingRight: 10,
|
|
230
|
+
paddingTop: 0,
|
|
231
|
+
}
|
|
232
|
+
),
|
|
233
|
+
]),
|
|
234
|
+
],
|
|
235
|
+
{
|
|
236
|
+
backgroundColor: "#ffffff",
|
|
237
|
+
paddingBottom: 24,
|
|
238
|
+
paddingLeft: 18,
|
|
239
|
+
paddingRight: 18,
|
|
240
|
+
paddingTop: 24,
|
|
241
|
+
phone: { paddingLeft: 12, paddingRight: 12 },
|
|
242
|
+
}
|
|
243
|
+
)
|
|
244
|
+
);
|
|
245
|
+
|
|
246
|
+
/** Three-column key metrics strip on a soft slate surface. */
|
|
247
|
+
export const statStrip: TemplateSavedRow =
|
|
248
|
+
/* #__PURE__ */
|
|
249
|
+
defineSavedRow({ category: "content", name: "Key metrics strip" }, () =>
|
|
250
|
+
row(
|
|
251
|
+
"sr-stats-row",
|
|
252
|
+
[
|
|
253
|
+
col("sr-stats-col-1", 33.33, [
|
|
254
|
+
textBlock("sr-stats-val-1", doc(p(bold("99.98%"))), {
|
|
255
|
+
align: "center",
|
|
256
|
+
color: "#0f172a",
|
|
257
|
+
fontSize: 26,
|
|
258
|
+
paddingBottom: 2,
|
|
259
|
+
paddingLeft: 8,
|
|
260
|
+
paddingRight: 8,
|
|
261
|
+
paddingTop: 8,
|
|
262
|
+
}),
|
|
263
|
+
textBlock("sr-stats-lbl-1", doc(p("Delivery uptime")), {
|
|
264
|
+
align: "center",
|
|
265
|
+
color: "#475569",
|
|
266
|
+
fontSize: 13,
|
|
267
|
+
paddingBottom: 8,
|
|
268
|
+
paddingLeft: 8,
|
|
269
|
+
paddingRight: 8,
|
|
270
|
+
paddingTop: 0,
|
|
271
|
+
}),
|
|
272
|
+
]),
|
|
273
|
+
col("sr-stats-col-2", 33.33, [
|
|
274
|
+
textBlock("sr-stats-val-2", doc(p(bold("42 ms"))), {
|
|
275
|
+
align: "center",
|
|
276
|
+
color: "#0f172a",
|
|
277
|
+
fontSize: 26,
|
|
278
|
+
paddingBottom: 2,
|
|
279
|
+
paddingLeft: 8,
|
|
280
|
+
paddingRight: 8,
|
|
281
|
+
paddingTop: 8,
|
|
282
|
+
}),
|
|
283
|
+
textBlock("sr-stats-lbl-2", doc(p("Median render time")), {
|
|
284
|
+
align: "center",
|
|
285
|
+
color: "#475569",
|
|
286
|
+
fontSize: 13,
|
|
287
|
+
paddingBottom: 8,
|
|
288
|
+
paddingLeft: 8,
|
|
289
|
+
paddingRight: 8,
|
|
290
|
+
paddingTop: 0,
|
|
291
|
+
}),
|
|
292
|
+
]),
|
|
293
|
+
col("sr-stats-col-3", 33.34, [
|
|
294
|
+
textBlock("sr-stats-val-3", doc(p(bold("4.9 / 5"))), {
|
|
295
|
+
align: "center",
|
|
296
|
+
color: "#0f172a",
|
|
297
|
+
fontSize: 26,
|
|
298
|
+
paddingBottom: 2,
|
|
299
|
+
paddingLeft: 8,
|
|
300
|
+
paddingRight: 8,
|
|
301
|
+
paddingTop: 8,
|
|
302
|
+
}),
|
|
303
|
+
textBlock("sr-stats-lbl-3", doc(p("Customer rating")), {
|
|
304
|
+
align: "center",
|
|
305
|
+
color: "#475569",
|
|
306
|
+
fontSize: 13,
|
|
307
|
+
paddingBottom: 8,
|
|
308
|
+
paddingLeft: 8,
|
|
309
|
+
paddingRight: 8,
|
|
310
|
+
paddingTop: 0,
|
|
311
|
+
}),
|
|
312
|
+
]),
|
|
313
|
+
],
|
|
314
|
+
{
|
|
315
|
+
backgroundColor: "#f8fafc",
|
|
316
|
+
paddingBottom: 20,
|
|
317
|
+
paddingLeft: 16,
|
|
318
|
+
paddingRight: 16,
|
|
319
|
+
paddingTop: 20,
|
|
320
|
+
}
|
|
321
|
+
)
|
|
322
|
+
);
|
|
323
|
+
|
|
324
|
+
/** Highlighted customer quote box with attribution. */
|
|
325
|
+
export const testimonialQuote: TemplateSavedRow =
|
|
326
|
+
/* #__PURE__ */
|
|
327
|
+
defineSavedRow({ category: "content", name: "Customer testimonial" }, () =>
|
|
328
|
+
singleColRow(
|
|
329
|
+
"sr-quote-row",
|
|
330
|
+
"sr-quote-col",
|
|
331
|
+
[
|
|
332
|
+
textBlock(
|
|
333
|
+
"sr-quote-box",
|
|
334
|
+
doc(
|
|
335
|
+
p(
|
|
336
|
+
italic(
|
|
337
|
+
"“Switching our product updates to reusable rows cut campaign prep from an entire afternoon to twenty minutes, and our support team finally stopped fielding Outlook layout tickets.”"
|
|
338
|
+
)
|
|
339
|
+
),
|
|
340
|
+
p(bold("Priya Nair"), " · Head of Lifecycle, Brightline")
|
|
341
|
+
),
|
|
342
|
+
{
|
|
343
|
+
borderColor: "#cbd5e1",
|
|
344
|
+
borderRadius: 8,
|
|
345
|
+
borderStyle: "solid",
|
|
346
|
+
borderWidth: 1,
|
|
347
|
+
boxBackgroundColor: "#f8fafc",
|
|
348
|
+
color: "#1e293b",
|
|
349
|
+
fontSize: 15,
|
|
350
|
+
paddingBottom: 22,
|
|
351
|
+
paddingLeft: 24,
|
|
352
|
+
paddingRight: 24,
|
|
353
|
+
paddingTop: 22,
|
|
354
|
+
phone: { paddingLeft: 18, paddingRight: 18 },
|
|
355
|
+
}
|
|
356
|
+
),
|
|
357
|
+
],
|
|
358
|
+
{
|
|
359
|
+
backgroundColor: "#ffffff",
|
|
360
|
+
paddingBottom: 24,
|
|
361
|
+
paddingLeft: 28,
|
|
362
|
+
paddingRight: 28,
|
|
363
|
+
paddingTop: 24,
|
|
364
|
+
phone: { paddingLeft: 16, paddingRight: 16 },
|
|
365
|
+
}
|
|
366
|
+
)
|
|
367
|
+
);
|
|
368
|
+
|
|
369
|
+
/** Clean single-plan highlight card with included capabilities and upgrade CTA. */
|
|
370
|
+
export const pricingHighlight: TemplateSavedRow =
|
|
371
|
+
/* #__PURE__ */
|
|
372
|
+
defineSavedRow({ category: "content", name: "Pricing highlight" }, () =>
|
|
373
|
+
singleColRow(
|
|
374
|
+
"sr-price-row",
|
|
375
|
+
"sr-price-col",
|
|
376
|
+
[
|
|
377
|
+
textBlock(
|
|
378
|
+
"sr-price-plan",
|
|
379
|
+
doc(p(tag("plan_name", [{ type: "bold" }]))),
|
|
380
|
+
{
|
|
381
|
+
color: "#1d4ed8",
|
|
382
|
+
fontSize: 13,
|
|
383
|
+
paddingBottom: 4,
|
|
384
|
+
paddingLeft: 0,
|
|
385
|
+
paddingRight: 0,
|
|
386
|
+
paddingTop: 0,
|
|
387
|
+
}
|
|
388
|
+
),
|
|
389
|
+
headingBlock("sr-price-amount", 2, headingDoc(p("$49 per month")), {
|
|
390
|
+
color: "#0f172a",
|
|
391
|
+
fontSize: 28,
|
|
392
|
+
paddingBottom: 8,
|
|
393
|
+
paddingLeft: 0,
|
|
394
|
+
paddingRight: 0,
|
|
395
|
+
paddingTop: 0,
|
|
396
|
+
}),
|
|
397
|
+
textBlock(
|
|
398
|
+
"sr-price-desc",
|
|
399
|
+
doc(
|
|
400
|
+
p(
|
|
401
|
+
"Everything growing teams need to collaborate, review, and publish customer communications."
|
|
402
|
+
),
|
|
403
|
+
ul(
|
|
404
|
+
p("Unlimited shared workspaces and saved rows"),
|
|
405
|
+
p("Automated accessibility and inbox-readiness checks"),
|
|
406
|
+
p("Priority email support with same-day response")
|
|
407
|
+
)
|
|
408
|
+
),
|
|
409
|
+
{
|
|
410
|
+
color: "#334155",
|
|
411
|
+
fontSize: 15,
|
|
412
|
+
paddingBottom: 18,
|
|
413
|
+
paddingLeft: 0,
|
|
414
|
+
paddingRight: 0,
|
|
415
|
+
paddingTop: 0,
|
|
416
|
+
}
|
|
417
|
+
),
|
|
418
|
+
buttonBlock(
|
|
419
|
+
"sr-price-cta",
|
|
420
|
+
"Upgrade to {{plan_name}}",
|
|
421
|
+
"{{upgrade_url}}",
|
|
422
|
+
{
|
|
423
|
+
align: "left",
|
|
424
|
+
backgroundColor: "#1d4ed8",
|
|
425
|
+
borderRadius: 6,
|
|
426
|
+
color: "#ffffff",
|
|
427
|
+
paddingBottom: 0,
|
|
428
|
+
paddingLeft: 0,
|
|
429
|
+
paddingRight: 0,
|
|
430
|
+
paddingTop: 0,
|
|
431
|
+
}
|
|
432
|
+
),
|
|
433
|
+
],
|
|
434
|
+
{
|
|
435
|
+
backgroundColor: "#ffffff",
|
|
436
|
+
paddingBottom: 24,
|
|
437
|
+
paddingLeft: 28,
|
|
438
|
+
paddingRight: 28,
|
|
439
|
+
paddingTop: 24,
|
|
440
|
+
phone: { paddingLeft: 16, paddingRight: 16 },
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
backgroundColor: "#f8fafc",
|
|
444
|
+
borderColor: "#cbd5e1",
|
|
445
|
+
borderStyle: "solid",
|
|
446
|
+
borderWidth: 1,
|
|
447
|
+
paddingBottom: 24,
|
|
448
|
+
paddingLeft: 24,
|
|
449
|
+
paddingRight: 24,
|
|
450
|
+
paddingTop: 24,
|
|
451
|
+
phone: { paddingLeft: 18, paddingRight: 18 },
|
|
452
|
+
}
|
|
453
|
+
)
|
|
454
|
+
);
|
|
455
|
+
|
|
456
|
+
/** Video Block spotlight row with headline, intro, and descriptive play line. */
|
|
457
|
+
export const videoCard: TemplateSavedRow =
|
|
458
|
+
/* #__PURE__ */
|
|
459
|
+
defineSavedRow({ category: "content", name: "Video spotlight" }, () =>
|
|
460
|
+
singleColRow(
|
|
461
|
+
"sr-video-row",
|
|
462
|
+
"sr-video-col",
|
|
463
|
+
[
|
|
464
|
+
headingBlock(
|
|
465
|
+
"sr-video-title",
|
|
466
|
+
2,
|
|
467
|
+
headingDoc(p("Watch the 3-minute product walkthrough")),
|
|
468
|
+
{
|
|
469
|
+
color: "#0f172a",
|
|
470
|
+
fontSize: 22,
|
|
471
|
+
paddingBottom: 8,
|
|
472
|
+
paddingLeft: 0,
|
|
473
|
+
paddingRight: 0,
|
|
474
|
+
paddingTop: 0,
|
|
475
|
+
}
|
|
476
|
+
),
|
|
477
|
+
textBlock(
|
|
478
|
+
"sr-video-intro",
|
|
479
|
+
doc(
|
|
480
|
+
p(
|
|
481
|
+
"See how teams build a complete release email from reusable rows and verify mobile layout in under three minutes."
|
|
482
|
+
)
|
|
483
|
+
),
|
|
484
|
+
{
|
|
485
|
+
color: "#475569",
|
|
486
|
+
fontSize: 15,
|
|
487
|
+
paddingBottom: 16,
|
|
488
|
+
paddingLeft: 0,
|
|
489
|
+
paddingRight: 0,
|
|
490
|
+
paddingTop: 0,
|
|
491
|
+
}
|
|
492
|
+
),
|
|
493
|
+
videoBlock("sr-video-block", {
|
|
494
|
+
alt: "Three-minute walkthrough of building a release email and checking mobile previews",
|
|
495
|
+
color: "#1d4ed8",
|
|
496
|
+
label: "Watch the 3-minute walkthrough",
|
|
497
|
+
paddingBottom: 0,
|
|
498
|
+
paddingLeft: 0,
|
|
499
|
+
paddingRight: 0,
|
|
500
|
+
paddingTop: 0,
|
|
501
|
+
play: "below",
|
|
502
|
+
thumbnail: "{{video_thumbnail_url}}",
|
|
503
|
+
url: "{{video_url}}",
|
|
504
|
+
}),
|
|
505
|
+
],
|
|
506
|
+
{
|
|
507
|
+
backgroundColor: "#ffffff",
|
|
508
|
+
paddingBottom: 28,
|
|
509
|
+
paddingLeft: 28,
|
|
510
|
+
paddingRight: 28,
|
|
511
|
+
paddingTop: 28,
|
|
512
|
+
phone: { paddingLeft: 20, paddingRight: 20 },
|
|
513
|
+
}
|
|
514
|
+
)
|
|
515
|
+
);
|
|
516
|
+
|
|
517
|
+
/** Warm signature block for plain-style letters and personal updates. */
|
|
518
|
+
export const founderSignOff: TemplateSavedRow =
|
|
519
|
+
/* #__PURE__ */
|
|
520
|
+
defineSavedRow({ category: "content", name: "Founder sign-off" }, () =>
|
|
521
|
+
singleColRow(
|
|
522
|
+
"sr-signoff-row",
|
|
523
|
+
"sr-signoff-col",
|
|
524
|
+
[
|
|
525
|
+
textBlock(
|
|
526
|
+
"sr-signoff-note",
|
|
527
|
+
doc(
|
|
528
|
+
p(
|
|
529
|
+
"Thanks for reading — hit reply any time if you have questions, feedback, or ideas you want us to prioritize next."
|
|
530
|
+
),
|
|
531
|
+
p(
|
|
532
|
+
"Warmly,",
|
|
533
|
+
br(),
|
|
534
|
+
tag("sender_name", [{ type: "bold" }]),
|
|
535
|
+
br(),
|
|
536
|
+
tag("sender_role")
|
|
537
|
+
)
|
|
538
|
+
),
|
|
539
|
+
{
|
|
540
|
+
color: "#27272a",
|
|
541
|
+
fontSize: 15,
|
|
542
|
+
paddingBottom: 8,
|
|
543
|
+
paddingLeft: 0,
|
|
544
|
+
paddingRight: 0,
|
|
545
|
+
paddingTop: 8,
|
|
546
|
+
}
|
|
547
|
+
),
|
|
548
|
+
],
|
|
549
|
+
{
|
|
550
|
+
backgroundColor: "#ffffff",
|
|
551
|
+
paddingBottom: 24,
|
|
552
|
+
paddingLeft: 32,
|
|
553
|
+
paddingRight: 32,
|
|
554
|
+
paddingTop: 12,
|
|
555
|
+
phone: { paddingLeft: 20, paddingRight: 20 },
|
|
556
|
+
}
|
|
557
|
+
)
|
|
558
|
+
);
|
package/src/rows/cta.ts
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import {
|
|
2
|
+
buttonBlock,
|
|
3
|
+
defineSavedRow,
|
|
4
|
+
doc,
|
|
5
|
+
headingBlock,
|
|
6
|
+
headingDoc,
|
|
7
|
+
p,
|
|
8
|
+
singleColRow,
|
|
9
|
+
textBlock,
|
|
10
|
+
} from "../builders.js";
|
|
11
|
+
import type { TemplateSavedRow } from "../types.js";
|
|
12
|
+
|
|
13
|
+
/** High-contrast dark slate CTA band with light button. */
|
|
14
|
+
export const ctaBannerDark: TemplateSavedRow =
|
|
15
|
+
/* #__PURE__ */
|
|
16
|
+
defineSavedRow({ category: "cta", name: "Dark CTA banner" }, () =>
|
|
17
|
+
singleColRow(
|
|
18
|
+
"sr-cta-dark-row",
|
|
19
|
+
"sr-cta-dark-col",
|
|
20
|
+
[
|
|
21
|
+
headingBlock(
|
|
22
|
+
"sr-cta-dark-title",
|
|
23
|
+
2,
|
|
24
|
+
headingDoc(p("Ready to streamline your next release?")),
|
|
25
|
+
{
|
|
26
|
+
align: "center",
|
|
27
|
+
color: "#ffffff",
|
|
28
|
+
fontSize: 24,
|
|
29
|
+
paddingBottom: 10,
|
|
30
|
+
paddingLeft: 0,
|
|
31
|
+
paddingRight: 0,
|
|
32
|
+
paddingTop: 0,
|
|
33
|
+
phone: { fontSize: 22 },
|
|
34
|
+
}
|
|
35
|
+
),
|
|
36
|
+
textBlock(
|
|
37
|
+
"sr-cta-dark-body",
|
|
38
|
+
doc(
|
|
39
|
+
p(
|
|
40
|
+
"Invite your team, set shared email styles once, and publish accessible campaigns in minutes."
|
|
41
|
+
)
|
|
42
|
+
),
|
|
43
|
+
{
|
|
44
|
+
align: "center",
|
|
45
|
+
color: "#cbd5e1",
|
|
46
|
+
fontSize: 15,
|
|
47
|
+
paddingBottom: 20,
|
|
48
|
+
paddingLeft: 12,
|
|
49
|
+
paddingRight: 12,
|
|
50
|
+
paddingTop: 0,
|
|
51
|
+
phone: { paddingLeft: 0, paddingRight: 0 },
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
buttonBlock(
|
|
55
|
+
"sr-cta-dark-btn",
|
|
56
|
+
"Get started in minutes",
|
|
57
|
+
"{{cta_url}}",
|
|
58
|
+
{
|
|
59
|
+
align: "center",
|
|
60
|
+
backgroundColor: "#ffffff",
|
|
61
|
+
borderRadius: 8,
|
|
62
|
+
color: "#0f172a",
|
|
63
|
+
paddingBottom: 0,
|
|
64
|
+
paddingLeft: 0,
|
|
65
|
+
paddingRight: 0,
|
|
66
|
+
paddingTop: 0,
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
],
|
|
70
|
+
{
|
|
71
|
+
backgroundColor: "#0f172a",
|
|
72
|
+
paddingBottom: 36,
|
|
73
|
+
paddingLeft: 32,
|
|
74
|
+
paddingRight: 32,
|
|
75
|
+
paddingTop: 36,
|
|
76
|
+
phone: {
|
|
77
|
+
paddingBottom: 28,
|
|
78
|
+
paddingLeft: 20,
|
|
79
|
+
paddingRight: 20,
|
|
80
|
+
paddingTop: 28,
|
|
81
|
+
},
|
|
82
|
+
}
|
|
83
|
+
)
|
|
84
|
+
);
|
|
85
|
+
|
|
86
|
+
/** Subtle tinted indigo CTA card with crisp WCAG AA contrast. */
|
|
87
|
+
export const ctaBannerSoft: TemplateSavedRow =
|
|
88
|
+
/* #__PURE__ */
|
|
89
|
+
defineSavedRow({ category: "cta", name: "Soft CTA card" }, () =>
|
|
90
|
+
singleColRow(
|
|
91
|
+
"sr-cta-soft-row",
|
|
92
|
+
"sr-cta-soft-col",
|
|
93
|
+
[
|
|
94
|
+
headingBlock(
|
|
95
|
+
"sr-cta-soft-title",
|
|
96
|
+
2,
|
|
97
|
+
headingDoc(p("See how teams save hours every week")),
|
|
98
|
+
{
|
|
99
|
+
align: "center",
|
|
100
|
+
color: "#1e1b4b",
|
|
101
|
+
fontSize: 22,
|
|
102
|
+
paddingBottom: 8,
|
|
103
|
+
paddingLeft: 0,
|
|
104
|
+
paddingRight: 0,
|
|
105
|
+
paddingTop: 0,
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
textBlock(
|
|
109
|
+
"sr-cta-soft-body",
|
|
110
|
+
doc(
|
|
111
|
+
p(
|
|
112
|
+
"Try your saved layouts inside the workspace with live desktop and phone inbox previews."
|
|
113
|
+
)
|
|
114
|
+
),
|
|
115
|
+
{
|
|
116
|
+
align: "center",
|
|
117
|
+
color: "#312e81",
|
|
118
|
+
fontSize: 15,
|
|
119
|
+
paddingBottom: 18,
|
|
120
|
+
paddingLeft: 12,
|
|
121
|
+
paddingRight: 12,
|
|
122
|
+
paddingTop: 0,
|
|
123
|
+
phone: { paddingLeft: 0, paddingRight: 0 },
|
|
124
|
+
}
|
|
125
|
+
),
|
|
126
|
+
buttonBlock("sr-cta-soft-btn", "Open your workspace", "{{app_url}}", {
|
|
127
|
+
align: "center",
|
|
128
|
+
backgroundColor: "#4338ca",
|
|
129
|
+
borderRadius: 8,
|
|
130
|
+
color: "#ffffff",
|
|
131
|
+
paddingBottom: 0,
|
|
132
|
+
paddingLeft: 0,
|
|
133
|
+
paddingRight: 0,
|
|
134
|
+
paddingTop: 0,
|
|
135
|
+
}),
|
|
136
|
+
],
|
|
137
|
+
{
|
|
138
|
+
backgroundColor: "#eef2ff",
|
|
139
|
+
paddingBottom: 32,
|
|
140
|
+
paddingLeft: 28,
|
|
141
|
+
paddingRight: 28,
|
|
142
|
+
paddingTop: 32,
|
|
143
|
+
phone: {
|
|
144
|
+
paddingBottom: 24,
|
|
145
|
+
paddingLeft: 20,
|
|
146
|
+
paddingRight: 20,
|
|
147
|
+
paddingTop: 24,
|
|
148
|
+
},
|
|
149
|
+
}
|
|
150
|
+
)
|
|
151
|
+
);
|