@mailquilt/templates 0.0.0-stage → 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 +134 -2
- 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 +58 -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,828 @@
|
|
|
1
|
+
import {
|
|
2
|
+
bold,
|
|
3
|
+
br,
|
|
4
|
+
buttonBlock,
|
|
5
|
+
col,
|
|
6
|
+
defineStarterEmail,
|
|
7
|
+
dividerBlock,
|
|
8
|
+
doc,
|
|
9
|
+
emailDoc,
|
|
10
|
+
FONT_SANS,
|
|
11
|
+
FONT_TAHOMA,
|
|
12
|
+
headingBlock,
|
|
13
|
+
headingDoc,
|
|
14
|
+
linkText,
|
|
15
|
+
menuBlock,
|
|
16
|
+
ol,
|
|
17
|
+
p,
|
|
18
|
+
row,
|
|
19
|
+
singleColRow,
|
|
20
|
+
socialBlock,
|
|
21
|
+
tag,
|
|
22
|
+
tagLink,
|
|
23
|
+
textBlock,
|
|
24
|
+
ul,
|
|
25
|
+
} from "../builders.js";
|
|
26
|
+
import type { TemplateStarterEmail } from "../types.js";
|
|
27
|
+
|
|
28
|
+
/** SaaS welcome email with clear 3-step setup checklist and resources. */
|
|
29
|
+
export const saasWelcome: TemplateStarterEmail =
|
|
30
|
+
/* #__PURE__ */
|
|
31
|
+
defineStarterEmail(
|
|
32
|
+
{
|
|
33
|
+
category: "onboarding",
|
|
34
|
+
description: "Warm greeting with 3-step setup checklist",
|
|
35
|
+
name: "SaaS welcome",
|
|
36
|
+
},
|
|
37
|
+
() =>
|
|
38
|
+
emailDoc(
|
|
39
|
+
{
|
|
40
|
+
backgroundColor: "#f8fafc",
|
|
41
|
+
fontFamily: FONT_SANS,
|
|
42
|
+
language: "en",
|
|
43
|
+
preheader:
|
|
44
|
+
"Welcome to {{company_name}} — three quick steps to get your workspace ready.",
|
|
45
|
+
style: {
|
|
46
|
+
buttonBackgroundColor: "#4338ca",
|
|
47
|
+
buttonBorderRadius: 8,
|
|
48
|
+
emailBackgroundColor: "#ffffff",
|
|
49
|
+
heading1FontSize: 30,
|
|
50
|
+
heading2FontSize: 20,
|
|
51
|
+
heading3FontSize: 16,
|
|
52
|
+
linkColor: "#4338ca",
|
|
53
|
+
textColor: "#0f172a",
|
|
54
|
+
textFontSize: 16,
|
|
55
|
+
},
|
|
56
|
+
width: 600,
|
|
57
|
+
},
|
|
58
|
+
[
|
|
59
|
+
row(
|
|
60
|
+
"sw-header-row",
|
|
61
|
+
[
|
|
62
|
+
col(
|
|
63
|
+
"sw-header-brand-col",
|
|
64
|
+
33,
|
|
65
|
+
[
|
|
66
|
+
textBlock(
|
|
67
|
+
"sw-brand",
|
|
68
|
+
doc(
|
|
69
|
+
p(
|
|
70
|
+
tagLink("company_name", "{{website_url}}", [
|
|
71
|
+
{ type: "bold" },
|
|
72
|
+
])
|
|
73
|
+
)
|
|
74
|
+
),
|
|
75
|
+
{
|
|
76
|
+
color: "#0f172a",
|
|
77
|
+
fontSize: 18,
|
|
78
|
+
paddingBottom: 8,
|
|
79
|
+
paddingLeft: 0,
|
|
80
|
+
paddingRight: 8,
|
|
81
|
+
paddingTop: 8,
|
|
82
|
+
}
|
|
83
|
+
),
|
|
84
|
+
],
|
|
85
|
+
{ verticalAlign: "middle" }
|
|
86
|
+
),
|
|
87
|
+
col(
|
|
88
|
+
"sw-header-nav-col",
|
|
89
|
+
67,
|
|
90
|
+
[
|
|
91
|
+
menuBlock(
|
|
92
|
+
"sw-nav",
|
|
93
|
+
[
|
|
94
|
+
{ label: "Workspace", url: "{{app_url}}" },
|
|
95
|
+
{ label: "Help center", url: "{{help_url}}" },
|
|
96
|
+
{ label: "Updates", url: "{{changelog_url}}" },
|
|
97
|
+
],
|
|
98
|
+
{
|
|
99
|
+
align: "right",
|
|
100
|
+
color: "#334155",
|
|
101
|
+
fontSize: 14,
|
|
102
|
+
gap: 18,
|
|
103
|
+
paddingBottom: 8,
|
|
104
|
+
paddingLeft: 8,
|
|
105
|
+
paddingRight: 0,
|
|
106
|
+
paddingTop: 8,
|
|
107
|
+
}
|
|
108
|
+
),
|
|
109
|
+
],
|
|
110
|
+
{ verticalAlign: "middle" }
|
|
111
|
+
),
|
|
112
|
+
],
|
|
113
|
+
{
|
|
114
|
+
backgroundColor: "#ffffff",
|
|
115
|
+
paddingBottom: 12,
|
|
116
|
+
paddingLeft: 28,
|
|
117
|
+
paddingRight: 28,
|
|
118
|
+
paddingTop: 20,
|
|
119
|
+
phone: { paddingLeft: 20, paddingRight: 20 },
|
|
120
|
+
}
|
|
121
|
+
),
|
|
122
|
+
singleColRow(
|
|
123
|
+
"sw-hero-row",
|
|
124
|
+
"sw-hero-col",
|
|
125
|
+
[
|
|
126
|
+
textBlock("sw-eyebrow", doc(p(bold("WELCOME ABOARD"))), {
|
|
127
|
+
color: "#3730a3",
|
|
128
|
+
fontSize: 12,
|
|
129
|
+
paddingBottom: 8,
|
|
130
|
+
paddingLeft: 0,
|
|
131
|
+
paddingRight: 0,
|
|
132
|
+
paddingTop: 0,
|
|
133
|
+
}),
|
|
134
|
+
headingBlock(
|
|
135
|
+
"sw-title",
|
|
136
|
+
1,
|
|
137
|
+
headingDoc(
|
|
138
|
+
p("Welcome to ", tag("company_name"), ", ", tag("first_name"))
|
|
139
|
+
),
|
|
140
|
+
{
|
|
141
|
+
color: "#1e1b4b",
|
|
142
|
+
paddingBottom: 12,
|
|
143
|
+
paddingLeft: 0,
|
|
144
|
+
paddingRight: 0,
|
|
145
|
+
paddingTop: 0,
|
|
146
|
+
phone: { fontSize: 25 },
|
|
147
|
+
}
|
|
148
|
+
),
|
|
149
|
+
textBlock(
|
|
150
|
+
"sw-hero-copy",
|
|
151
|
+
doc(
|
|
152
|
+
p(
|
|
153
|
+
"Your workspace is ready. Whether you are sending weekly updates or onboarding flows, everything is set up so you can ship your first message today."
|
|
154
|
+
)
|
|
155
|
+
),
|
|
156
|
+
{
|
|
157
|
+
color: "#312e81",
|
|
158
|
+
paddingBottom: 20,
|
|
159
|
+
paddingLeft: 0,
|
|
160
|
+
paddingRight: 0,
|
|
161
|
+
paddingTop: 0,
|
|
162
|
+
}
|
|
163
|
+
),
|
|
164
|
+
buttonBlock("sw-hero-btn", "Open your workspace", "{{app_url}}", {
|
|
165
|
+
align: "left",
|
|
166
|
+
paddingBottom: 0,
|
|
167
|
+
paddingLeft: 0,
|
|
168
|
+
paddingRight: 0,
|
|
169
|
+
paddingTop: 0,
|
|
170
|
+
}),
|
|
171
|
+
],
|
|
172
|
+
{
|
|
173
|
+
backgroundColor: "#eef2ff",
|
|
174
|
+
paddingBottom: 32,
|
|
175
|
+
paddingLeft: 32,
|
|
176
|
+
paddingRight: 32,
|
|
177
|
+
paddingTop: 32,
|
|
178
|
+
phone: {
|
|
179
|
+
paddingBottom: 24,
|
|
180
|
+
paddingLeft: 20,
|
|
181
|
+
paddingRight: 20,
|
|
182
|
+
paddingTop: 24,
|
|
183
|
+
},
|
|
184
|
+
}
|
|
185
|
+
),
|
|
186
|
+
singleColRow(
|
|
187
|
+
"sw-checklist-row",
|
|
188
|
+
"sw-checklist-col",
|
|
189
|
+
[
|
|
190
|
+
headingBlock(
|
|
191
|
+
"sw-checklist-title",
|
|
192
|
+
2,
|
|
193
|
+
headingDoc(p("Three steps to get live in five minutes")),
|
|
194
|
+
{
|
|
195
|
+
paddingBottom: 12,
|
|
196
|
+
paddingLeft: 0,
|
|
197
|
+
paddingRight: 0,
|
|
198
|
+
paddingTop: 4,
|
|
199
|
+
}
|
|
200
|
+
),
|
|
201
|
+
textBlock(
|
|
202
|
+
"sw-checklist-list",
|
|
203
|
+
doc(
|
|
204
|
+
ol(
|
|
205
|
+
p(
|
|
206
|
+
bold("Set your shared defaults: "),
|
|
207
|
+
"Pick your brand colors, heading font, and button corners once in Style mode."
|
|
208
|
+
),
|
|
209
|
+
p(
|
|
210
|
+
bold("Save your recurring footer: "),
|
|
211
|
+
"Store your company address and unsubscribe links as a reusable row."
|
|
212
|
+
),
|
|
213
|
+
p(
|
|
214
|
+
bold("Send a live test: "),
|
|
215
|
+
"Run pre-send checks and inspect desktop and phone previews before exporting."
|
|
216
|
+
)
|
|
217
|
+
)
|
|
218
|
+
),
|
|
219
|
+
{
|
|
220
|
+
paddingBottom: 8,
|
|
221
|
+
paddingLeft: 0,
|
|
222
|
+
paddingRight: 0,
|
|
223
|
+
paddingTop: 0,
|
|
224
|
+
}
|
|
225
|
+
),
|
|
226
|
+
],
|
|
227
|
+
{
|
|
228
|
+
backgroundColor: "#ffffff",
|
|
229
|
+
paddingBottom: 16,
|
|
230
|
+
paddingLeft: 32,
|
|
231
|
+
paddingRight: 32,
|
|
232
|
+
paddingTop: 28,
|
|
233
|
+
phone: { paddingLeft: 20, paddingRight: 20 },
|
|
234
|
+
}
|
|
235
|
+
),
|
|
236
|
+
row(
|
|
237
|
+
"sw-resources-row",
|
|
238
|
+
[
|
|
239
|
+
col(
|
|
240
|
+
"sw-res-1-col",
|
|
241
|
+
50,
|
|
242
|
+
[
|
|
243
|
+
headingBlock(
|
|
244
|
+
"sw-res-1-title",
|
|
245
|
+
3,
|
|
246
|
+
headingDoc(p("Setup guide")),
|
|
247
|
+
{
|
|
248
|
+
paddingBottom: 6,
|
|
249
|
+
paddingLeft: 16,
|
|
250
|
+
paddingRight: 16,
|
|
251
|
+
paddingTop: 16,
|
|
252
|
+
}
|
|
253
|
+
),
|
|
254
|
+
textBlock(
|
|
255
|
+
"sw-res-1-body",
|
|
256
|
+
doc(
|
|
257
|
+
p(
|
|
258
|
+
"Step-by-step walkthroughs for merge tags, image hosting, and HTML exports."
|
|
259
|
+
),
|
|
260
|
+
p(linkText("Explore the setup guide", "{{help_url}}"))
|
|
261
|
+
),
|
|
262
|
+
{
|
|
263
|
+
color: "#334155",
|
|
264
|
+
fontSize: 14,
|
|
265
|
+
paddingBottom: 16,
|
|
266
|
+
paddingLeft: 16,
|
|
267
|
+
paddingRight: 16,
|
|
268
|
+
paddingTop: 0,
|
|
269
|
+
}
|
|
270
|
+
),
|
|
271
|
+
],
|
|
272
|
+
{
|
|
273
|
+
backgroundColor: "#f8fafc",
|
|
274
|
+
borderColor: "#e2e8f0",
|
|
275
|
+
borderStyle: "solid",
|
|
276
|
+
borderWidth: 1,
|
|
277
|
+
}
|
|
278
|
+
),
|
|
279
|
+
col(
|
|
280
|
+
"sw-res-2-col",
|
|
281
|
+
50,
|
|
282
|
+
[
|
|
283
|
+
headingBlock(
|
|
284
|
+
"sw-res-2-title",
|
|
285
|
+
3,
|
|
286
|
+
headingDoc(p("Live office hours")),
|
|
287
|
+
{
|
|
288
|
+
paddingBottom: 6,
|
|
289
|
+
paddingLeft: 16,
|
|
290
|
+
paddingRight: 16,
|
|
291
|
+
paddingTop: 16,
|
|
292
|
+
}
|
|
293
|
+
),
|
|
294
|
+
textBlock(
|
|
295
|
+
"sw-res-2-body",
|
|
296
|
+
doc(
|
|
297
|
+
p(
|
|
298
|
+
"Drop into a short Q&A session with our product team every Tuesday and Thursday."
|
|
299
|
+
),
|
|
300
|
+
p(linkText("Reserve an office-hours slot", "{{cta_url}}"))
|
|
301
|
+
),
|
|
302
|
+
{
|
|
303
|
+
color: "#334155",
|
|
304
|
+
fontSize: 14,
|
|
305
|
+
paddingBottom: 16,
|
|
306
|
+
paddingLeft: 16,
|
|
307
|
+
paddingRight: 16,
|
|
308
|
+
paddingTop: 0,
|
|
309
|
+
}
|
|
310
|
+
),
|
|
311
|
+
],
|
|
312
|
+
{
|
|
313
|
+
backgroundColor: "#f8fafc",
|
|
314
|
+
borderColor: "#e2e8f0",
|
|
315
|
+
borderStyle: "solid",
|
|
316
|
+
borderWidth: 1,
|
|
317
|
+
}
|
|
318
|
+
),
|
|
319
|
+
],
|
|
320
|
+
{
|
|
321
|
+
backgroundColor: "#ffffff",
|
|
322
|
+
paddingBottom: 28,
|
|
323
|
+
paddingLeft: 32,
|
|
324
|
+
paddingRight: 32,
|
|
325
|
+
paddingTop: 8,
|
|
326
|
+
phone: { paddingLeft: 20, paddingRight: 20 },
|
|
327
|
+
}
|
|
328
|
+
),
|
|
329
|
+
singleColRow(
|
|
330
|
+
"sw-footer-row",
|
|
331
|
+
"sw-footer-col",
|
|
332
|
+
[
|
|
333
|
+
socialBlock(
|
|
334
|
+
"sw-social",
|
|
335
|
+
[
|
|
336
|
+
{ network: "website", url: "{{website_url}}" },
|
|
337
|
+
{
|
|
338
|
+
network: "linkedin",
|
|
339
|
+
url: "https://linkedin.com/company/northstar",
|
|
340
|
+
},
|
|
341
|
+
{ network: "x", url: "https://x.com/northstar" },
|
|
342
|
+
],
|
|
343
|
+
{
|
|
344
|
+
align: "center",
|
|
345
|
+
iconSize: 32,
|
|
346
|
+
iconStyle: "color",
|
|
347
|
+
paddingBottom: 12,
|
|
348
|
+
paddingLeft: 0,
|
|
349
|
+
paddingRight: 0,
|
|
350
|
+
paddingTop: 4,
|
|
351
|
+
}
|
|
352
|
+
),
|
|
353
|
+
textBlock(
|
|
354
|
+
"sw-footer-text",
|
|
355
|
+
doc(
|
|
356
|
+
p(
|
|
357
|
+
tag("company_name"),
|
|
358
|
+
" · ",
|
|
359
|
+
tag("company_address"),
|
|
360
|
+
br(),
|
|
361
|
+
linkText("Manage preferences", "{{preferences_url}}"),
|
|
362
|
+
" · ",
|
|
363
|
+
linkText("Unsubscribe", "{{unsubscribe_url}}")
|
|
364
|
+
)
|
|
365
|
+
),
|
|
366
|
+
{
|
|
367
|
+
align: "center",
|
|
368
|
+
color: "#475569",
|
|
369
|
+
fontSize: 13,
|
|
370
|
+
paddingBottom: 0,
|
|
371
|
+
paddingLeft: 0,
|
|
372
|
+
paddingRight: 0,
|
|
373
|
+
paddingTop: 0,
|
|
374
|
+
}
|
|
375
|
+
),
|
|
376
|
+
],
|
|
377
|
+
{
|
|
378
|
+
backgroundColor: "#f8fafc",
|
|
379
|
+
paddingBottom: 28,
|
|
380
|
+
paddingLeft: 28,
|
|
381
|
+
paddingRight: 28,
|
|
382
|
+
paddingTop: 18,
|
|
383
|
+
phone: { paddingLeft: 20, paddingRight: 20 },
|
|
384
|
+
}
|
|
385
|
+
),
|
|
386
|
+
]
|
|
387
|
+
)
|
|
388
|
+
);
|
|
389
|
+
|
|
390
|
+
/** Day-3 product activation tip with a practical 60-second workflow box. */
|
|
391
|
+
export const onboardingTip: TemplateStarterEmail =
|
|
392
|
+
/* #__PURE__ */
|
|
393
|
+
defineStarterEmail(
|
|
394
|
+
{
|
|
395
|
+
category: "onboarding",
|
|
396
|
+
description: "Day-3 activation tip with 60-second setup box",
|
|
397
|
+
name: "Onboarding tip",
|
|
398
|
+
},
|
|
399
|
+
() =>
|
|
400
|
+
emailDoc(
|
|
401
|
+
{
|
|
402
|
+
backgroundColor: "#f4f4f5",
|
|
403
|
+
fontFamily: FONT_TAHOMA,
|
|
404
|
+
language: "en",
|
|
405
|
+
preheader:
|
|
406
|
+
"A 60-second workflow trick that saves teams two hours every week.",
|
|
407
|
+
style: {
|
|
408
|
+
buttonBackgroundColor: "#0f766e",
|
|
409
|
+
buttonBorderRadius: 6,
|
|
410
|
+
emailBackgroundColor: "#ffffff",
|
|
411
|
+
heading1FontSize: 28,
|
|
412
|
+
heading2FontSize: 20,
|
|
413
|
+
heading3FontSize: 16,
|
|
414
|
+
linkColor: "#0f766e",
|
|
415
|
+
textColor: "#18181b",
|
|
416
|
+
textFontSize: 15,
|
|
417
|
+
},
|
|
418
|
+
width: 580,
|
|
419
|
+
},
|
|
420
|
+
[
|
|
421
|
+
singleColRow(
|
|
422
|
+
"ot-header-row",
|
|
423
|
+
"ot-header-col",
|
|
424
|
+
[
|
|
425
|
+
textBlock(
|
|
426
|
+
"ot-header-eyebrow",
|
|
427
|
+
doc(p(bold("DAY 3 · QUICK TIP"), " · ", tag("company_name"))),
|
|
428
|
+
{
|
|
429
|
+
color: "#0f766e",
|
|
430
|
+
fontSize: 12,
|
|
431
|
+
paddingBottom: 12,
|
|
432
|
+
paddingLeft: 0,
|
|
433
|
+
paddingRight: 0,
|
|
434
|
+
paddingTop: 4,
|
|
435
|
+
}
|
|
436
|
+
),
|
|
437
|
+
dividerBlock("ot-top-rule", {
|
|
438
|
+
color: "#e4e4e7",
|
|
439
|
+
paddingBottom: 0,
|
|
440
|
+
paddingLeft: 0,
|
|
441
|
+
paddingRight: 0,
|
|
442
|
+
paddingTop: 0,
|
|
443
|
+
thickness: 1,
|
|
444
|
+
}),
|
|
445
|
+
],
|
|
446
|
+
{
|
|
447
|
+
backgroundColor: "#ffffff",
|
|
448
|
+
paddingBottom: 8,
|
|
449
|
+
paddingLeft: 32,
|
|
450
|
+
paddingRight: 32,
|
|
451
|
+
paddingTop: 24,
|
|
452
|
+
phone: { paddingLeft: 20, paddingRight: 20 },
|
|
453
|
+
}
|
|
454
|
+
),
|
|
455
|
+
singleColRow(
|
|
456
|
+
"ot-body-row",
|
|
457
|
+
"ot-body-col",
|
|
458
|
+
[
|
|
459
|
+
headingBlock(
|
|
460
|
+
"ot-title",
|
|
461
|
+
1,
|
|
462
|
+
headingDoc(p("Save two hours a week with reusable saved rows")),
|
|
463
|
+
{
|
|
464
|
+
paddingBottom: 14,
|
|
465
|
+
paddingLeft: 0,
|
|
466
|
+
paddingRight: 0,
|
|
467
|
+
paddingTop: 12,
|
|
468
|
+
phone: { fontSize: 24 },
|
|
469
|
+
}
|
|
470
|
+
),
|
|
471
|
+
textBlock(
|
|
472
|
+
"ot-intro",
|
|
473
|
+
doc(
|
|
474
|
+
p("Hi ", tag("first_name"), ","),
|
|
475
|
+
p(
|
|
476
|
+
"Teams that ship consistent updates rarely rebuild headers, callouts, or legal footers from scratch. Saving your favorite sections once means anyone on your team can assemble a polished campaign in minutes."
|
|
477
|
+
)
|
|
478
|
+
),
|
|
479
|
+
{
|
|
480
|
+
paddingBottom: 16,
|
|
481
|
+
paddingLeft: 0,
|
|
482
|
+
paddingRight: 0,
|
|
483
|
+
paddingTop: 0,
|
|
484
|
+
}
|
|
485
|
+
),
|
|
486
|
+
textBlock(
|
|
487
|
+
"ot-tip-box",
|
|
488
|
+
doc(
|
|
489
|
+
p(bold("Try this 60-second setup")),
|
|
490
|
+
ul(
|
|
491
|
+
p(
|
|
492
|
+
"Open any existing campaign and pick your cleanest header or CTA row."
|
|
493
|
+
),
|
|
494
|
+
p(
|
|
495
|
+
"Keep links and addresses parameterized with merge tags so they stay accurate automatically."
|
|
496
|
+
),
|
|
497
|
+
p(
|
|
498
|
+
"Drop that row into your next draft from the Add panel whenever you need it."
|
|
499
|
+
)
|
|
500
|
+
)
|
|
501
|
+
),
|
|
502
|
+
{
|
|
503
|
+
borderColor: "#99f6e4",
|
|
504
|
+
borderRadius: 8,
|
|
505
|
+
borderStyle: "solid",
|
|
506
|
+
borderWidth: 1,
|
|
507
|
+
boxBackgroundColor: "#f0fdfa",
|
|
508
|
+
color: "#134e4a",
|
|
509
|
+
fontSize: 15,
|
|
510
|
+
paddingBottom: 18,
|
|
511
|
+
paddingLeft: 20,
|
|
512
|
+
paddingRight: 20,
|
|
513
|
+
paddingTop: 18,
|
|
514
|
+
}
|
|
515
|
+
),
|
|
516
|
+
buttonBlock(
|
|
517
|
+
"ot-cta",
|
|
518
|
+
"Create your first saved row",
|
|
519
|
+
"{{app_url}}",
|
|
520
|
+
{
|
|
521
|
+
align: "left",
|
|
522
|
+
paddingBottom: 18,
|
|
523
|
+
paddingLeft: 0,
|
|
524
|
+
paddingRight: 0,
|
|
525
|
+
paddingTop: 22,
|
|
526
|
+
}
|
|
527
|
+
),
|
|
528
|
+
textBlock(
|
|
529
|
+
"ot-closing",
|
|
530
|
+
doc(
|
|
531
|
+
p(
|
|
532
|
+
"Want more practical shortcuts? ",
|
|
533
|
+
linkText("Browse our workflow guides", "{{help_url}}"),
|
|
534
|
+
" or reply with what you are working on this week."
|
|
535
|
+
),
|
|
536
|
+
p(
|
|
537
|
+
"— ",
|
|
538
|
+
tag("sender_name", [{ type: "bold" }]),
|
|
539
|
+
", ",
|
|
540
|
+
tag("sender_role")
|
|
541
|
+
)
|
|
542
|
+
),
|
|
543
|
+
{
|
|
544
|
+
paddingBottom: 8,
|
|
545
|
+
paddingLeft: 0,
|
|
546
|
+
paddingRight: 0,
|
|
547
|
+
paddingTop: 0,
|
|
548
|
+
}
|
|
549
|
+
),
|
|
550
|
+
],
|
|
551
|
+
{
|
|
552
|
+
backgroundColor: "#ffffff",
|
|
553
|
+
paddingBottom: 24,
|
|
554
|
+
paddingLeft: 32,
|
|
555
|
+
paddingRight: 32,
|
|
556
|
+
paddingTop: 4,
|
|
557
|
+
phone: { paddingLeft: 20, paddingRight: 20 },
|
|
558
|
+
}
|
|
559
|
+
),
|
|
560
|
+
singleColRow(
|
|
561
|
+
"ot-footer-row",
|
|
562
|
+
"ot-footer-col",
|
|
563
|
+
[
|
|
564
|
+
textBlock(
|
|
565
|
+
"ot-footer-text",
|
|
566
|
+
doc(
|
|
567
|
+
p(
|
|
568
|
+
tag("company_name"),
|
|
569
|
+
" · ",
|
|
570
|
+
tag("company_address"),
|
|
571
|
+
br(),
|
|
572
|
+
linkText("Manage preferences", "{{preferences_url}}"),
|
|
573
|
+
" · ",
|
|
574
|
+
linkText(
|
|
575
|
+
"Unsubscribe from onboarding tips",
|
|
576
|
+
"{{unsubscribe_url}}"
|
|
577
|
+
)
|
|
578
|
+
)
|
|
579
|
+
),
|
|
580
|
+
{
|
|
581
|
+
align: "center",
|
|
582
|
+
color: "#52525b",
|
|
583
|
+
fontSize: 13,
|
|
584
|
+
paddingBottom: 0,
|
|
585
|
+
paddingLeft: 0,
|
|
586
|
+
paddingRight: 0,
|
|
587
|
+
paddingTop: 0,
|
|
588
|
+
}
|
|
589
|
+
),
|
|
590
|
+
],
|
|
591
|
+
{
|
|
592
|
+
backgroundColor: "#f4f4f5",
|
|
593
|
+
paddingBottom: 24,
|
|
594
|
+
paddingLeft: 24,
|
|
595
|
+
paddingRight: 24,
|
|
596
|
+
paddingTop: 20,
|
|
597
|
+
}
|
|
598
|
+
),
|
|
599
|
+
]
|
|
600
|
+
)
|
|
601
|
+
);
|
|
602
|
+
|
|
603
|
+
/** Trial expiration reminder with plan summary card and calm upgrade CTA. */
|
|
604
|
+
export const trialEnding: TemplateStarterEmail =
|
|
605
|
+
/* #__PURE__ */
|
|
606
|
+
defineStarterEmail(
|
|
607
|
+
{
|
|
608
|
+
category: "onboarding",
|
|
609
|
+
description: "Clear upgrade reminder with plan summary",
|
|
610
|
+
name: "Trial ending",
|
|
611
|
+
},
|
|
612
|
+
() =>
|
|
613
|
+
emailDoc(
|
|
614
|
+
{
|
|
615
|
+
backgroundColor: "#f3f4f6",
|
|
616
|
+
fontFamily: FONT_SANS,
|
|
617
|
+
language: "en",
|
|
618
|
+
preheader:
|
|
619
|
+
"Your {{plan_name}} trial ends in {{trial_days_left}} days — upgrade anytime to keep your team running.",
|
|
620
|
+
style: {
|
|
621
|
+
buttonBackgroundColor: "#1d4ed8",
|
|
622
|
+
buttonBorderRadius: 8,
|
|
623
|
+
emailBackgroundColor: "#ffffff",
|
|
624
|
+
heading1FontSize: 28,
|
|
625
|
+
heading2FontSize: 20,
|
|
626
|
+
heading3FontSize: 16,
|
|
627
|
+
linkColor: "#1d4ed8",
|
|
628
|
+
textColor: "#0f172a",
|
|
629
|
+
textFontSize: 16,
|
|
630
|
+
},
|
|
631
|
+
width: 600,
|
|
632
|
+
},
|
|
633
|
+
[
|
|
634
|
+
singleColRow(
|
|
635
|
+
"te-notice-row",
|
|
636
|
+
"te-notice-col",
|
|
637
|
+
[
|
|
638
|
+
textBlock(
|
|
639
|
+
"te-notice-text",
|
|
640
|
+
doc(
|
|
641
|
+
p(
|
|
642
|
+
bold("Trial reminder: "),
|
|
643
|
+
"Your ",
|
|
644
|
+
tag("plan_name"),
|
|
645
|
+
" trial ends in ",
|
|
646
|
+
tag("trial_days_left", [{ type: "bold" }]),
|
|
647
|
+
" days."
|
|
648
|
+
)
|
|
649
|
+
),
|
|
650
|
+
{
|
|
651
|
+
align: "center",
|
|
652
|
+
color: "#92400e",
|
|
653
|
+
fontSize: 14,
|
|
654
|
+
paddingBottom: 10,
|
|
655
|
+
paddingLeft: 12,
|
|
656
|
+
paddingRight: 12,
|
|
657
|
+
paddingTop: 10,
|
|
658
|
+
}
|
|
659
|
+
),
|
|
660
|
+
],
|
|
661
|
+
{
|
|
662
|
+
backgroundColor: "#fffbeb",
|
|
663
|
+
paddingBottom: 4,
|
|
664
|
+
paddingLeft: 16,
|
|
665
|
+
paddingRight: 16,
|
|
666
|
+
paddingTop: 4,
|
|
667
|
+
}
|
|
668
|
+
),
|
|
669
|
+
singleColRow(
|
|
670
|
+
"te-body-row",
|
|
671
|
+
"te-body-col",
|
|
672
|
+
[
|
|
673
|
+
textBlock(
|
|
674
|
+
"te-brand",
|
|
675
|
+
doc(p(tag("company_name", [{ type: "bold" }]))),
|
|
676
|
+
{
|
|
677
|
+
color: "#0f172a",
|
|
678
|
+
fontSize: 16,
|
|
679
|
+
paddingBottom: 14,
|
|
680
|
+
paddingLeft: 0,
|
|
681
|
+
paddingRight: 0,
|
|
682
|
+
paddingTop: 8,
|
|
683
|
+
}
|
|
684
|
+
),
|
|
685
|
+
headingBlock(
|
|
686
|
+
"te-title",
|
|
687
|
+
1,
|
|
688
|
+
headingDoc(
|
|
689
|
+
p("Keep your workspace running without interruption")
|
|
690
|
+
),
|
|
691
|
+
{
|
|
692
|
+
paddingBottom: 12,
|
|
693
|
+
paddingLeft: 0,
|
|
694
|
+
paddingRight: 0,
|
|
695
|
+
paddingTop: 0,
|
|
696
|
+
phone: { fontSize: 24 },
|
|
697
|
+
}
|
|
698
|
+
),
|
|
699
|
+
textBlock(
|
|
700
|
+
"te-copy",
|
|
701
|
+
doc(
|
|
702
|
+
p("Hi ", tag("first_name"), ","),
|
|
703
|
+
p(
|
|
704
|
+
"Your ",
|
|
705
|
+
tag("plan_name"),
|
|
706
|
+
" trial wraps up in ",
|
|
707
|
+
tag("trial_days_left"),
|
|
708
|
+
" days. Everything you created stays saved, and upgrading takes less than a minute so your team never loses momentum."
|
|
709
|
+
)
|
|
710
|
+
),
|
|
711
|
+
{
|
|
712
|
+
paddingBottom: 18,
|
|
713
|
+
paddingLeft: 0,
|
|
714
|
+
paddingRight: 0,
|
|
715
|
+
paddingTop: 0,
|
|
716
|
+
}
|
|
717
|
+
),
|
|
718
|
+
textBlock(
|
|
719
|
+
"te-plan-card",
|
|
720
|
+
doc(
|
|
721
|
+
p(
|
|
722
|
+
bold("What stays unlocked on "),
|
|
723
|
+
tag("plan_name", [{ type: "bold" }])
|
|
724
|
+
),
|
|
725
|
+
ul(
|
|
726
|
+
p("Unlimited team seats and shared saved rows"),
|
|
727
|
+
p("Automated pre-send accessibility and contrast checks"),
|
|
728
|
+
p("Full HTML and plain-text export history"),
|
|
729
|
+
p("Priority support directly from our product engineers")
|
|
730
|
+
)
|
|
731
|
+
),
|
|
732
|
+
{
|
|
733
|
+
borderColor: "#cbd5e1",
|
|
734
|
+
borderRadius: 8,
|
|
735
|
+
borderStyle: "solid",
|
|
736
|
+
borderWidth: 1,
|
|
737
|
+
boxBackgroundColor: "#f8fafc",
|
|
738
|
+
color: "#1e293b",
|
|
739
|
+
fontSize: 15,
|
|
740
|
+
paddingBottom: 18,
|
|
741
|
+
paddingLeft: 20,
|
|
742
|
+
paddingRight: 20,
|
|
743
|
+
paddingTop: 18,
|
|
744
|
+
}
|
|
745
|
+
),
|
|
746
|
+
buttonBlock(
|
|
747
|
+
"te-cta",
|
|
748
|
+
"Upgrade to {{plan_name}}",
|
|
749
|
+
"{{upgrade_url}}",
|
|
750
|
+
{
|
|
751
|
+
align: "center",
|
|
752
|
+
paddingBottom: 16,
|
|
753
|
+
paddingLeft: 0,
|
|
754
|
+
paddingRight: 0,
|
|
755
|
+
paddingTop: 22,
|
|
756
|
+
}
|
|
757
|
+
),
|
|
758
|
+
textBlock(
|
|
759
|
+
"te-help",
|
|
760
|
+
doc(
|
|
761
|
+
p(
|
|
762
|
+
"Need a few extra days to finish your evaluation? Reply directly to this email or write to ",
|
|
763
|
+
tagLink("support_email", "mailto:{{support_email}}"),
|
|
764
|
+
" and we will gladly extend your trial."
|
|
765
|
+
)
|
|
766
|
+
),
|
|
767
|
+
{
|
|
768
|
+
align: "center",
|
|
769
|
+
color: "#475569",
|
|
770
|
+
fontSize: 14,
|
|
771
|
+
paddingBottom: 4,
|
|
772
|
+
paddingLeft: 0,
|
|
773
|
+
paddingRight: 0,
|
|
774
|
+
paddingTop: 0,
|
|
775
|
+
}
|
|
776
|
+
),
|
|
777
|
+
],
|
|
778
|
+
{
|
|
779
|
+
backgroundColor: "#ffffff",
|
|
780
|
+
paddingBottom: 28,
|
|
781
|
+
paddingLeft: 32,
|
|
782
|
+
paddingRight: 32,
|
|
783
|
+
paddingTop: 20,
|
|
784
|
+
phone: { paddingLeft: 20, paddingRight: 20 },
|
|
785
|
+
}
|
|
786
|
+
),
|
|
787
|
+
singleColRow(
|
|
788
|
+
"te-footer-row",
|
|
789
|
+
"te-footer-col",
|
|
790
|
+
[
|
|
791
|
+
textBlock(
|
|
792
|
+
"te-footer-text",
|
|
793
|
+
doc(
|
|
794
|
+
p(
|
|
795
|
+
tag("company_name"),
|
|
796
|
+
" · ",
|
|
797
|
+
tag("company_address"),
|
|
798
|
+
br(),
|
|
799
|
+
linkText(
|
|
800
|
+
"Manage notification preferences",
|
|
801
|
+
"{{preferences_url}}"
|
|
802
|
+
),
|
|
803
|
+
" · ",
|
|
804
|
+
linkText("Unsubscribe", "{{unsubscribe_url}}")
|
|
805
|
+
)
|
|
806
|
+
),
|
|
807
|
+
{
|
|
808
|
+
align: "center",
|
|
809
|
+
color: "#475569",
|
|
810
|
+
fontSize: 13,
|
|
811
|
+
paddingBottom: 0,
|
|
812
|
+
paddingLeft: 0,
|
|
813
|
+
paddingRight: 0,
|
|
814
|
+
paddingTop: 0,
|
|
815
|
+
}
|
|
816
|
+
),
|
|
817
|
+
],
|
|
818
|
+
{
|
|
819
|
+
backgroundColor: "#f3f4f6",
|
|
820
|
+
paddingBottom: 24,
|
|
821
|
+
paddingLeft: 24,
|
|
822
|
+
paddingRight: 24,
|
|
823
|
+
paddingTop: 20,
|
|
824
|
+
}
|
|
825
|
+
),
|
|
826
|
+
]
|
|
827
|
+
)
|
|
828
|
+
);
|