@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
package/dist/index.js
ADDED
|
@@ -0,0 +1,3948 @@
|
|
|
1
|
+
// src/categories.ts
|
|
2
|
+
/** Category metadata for Starter emails, in display order. */
|
|
3
|
+
const STARTER_EMAIL_CATEGORIES = [
|
|
4
|
+
{
|
|
5
|
+
description: "Welcome flows, day-three product tips, and trial-ending reminders.",
|
|
6
|
+
id: "onboarding",
|
|
7
|
+
label: "Onboarding"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
description: "Feature launches, monthly release notes, and video walkthroughs.",
|
|
11
|
+
id: "product",
|
|
12
|
+
label: "Product"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
description: "Founder letters, newsletters, weekly digests, and company updates.",
|
|
16
|
+
id: "editorial",
|
|
17
|
+
label: "Editorial"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
description: "High-clarity receipts and account security messages.",
|
|
21
|
+
id: "transactional",
|
|
22
|
+
label: "Transactional"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
description: "Event invitations, win-back notes, seasonal offers, and surveys.",
|
|
26
|
+
id: "engagement",
|
|
27
|
+
label: "Engagement"
|
|
28
|
+
}
|
|
29
|
+
];
|
|
30
|
+
/** Category metadata for Saved Rows, in display order. */
|
|
31
|
+
const SAVED_ROW_CATEGORIES = [
|
|
32
|
+
{
|
|
33
|
+
description: "Minimal brand wordmarks and navigation bars.",
|
|
34
|
+
id: "header",
|
|
35
|
+
label: "Headers"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
description: "Centered and split-column opening sections.",
|
|
39
|
+
id: "hero",
|
|
40
|
+
label: "Heroes"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
description: "Feature grids, metrics, quotes, pricing cards, video, and sign-offs.",
|
|
44
|
+
id: "content",
|
|
45
|
+
label: "Content"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
description: "High-contrast dark bands and subtle tinted action cards.",
|
|
49
|
+
id: "cta",
|
|
50
|
+
label: "Calls to action"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
description: "Social icon bars and light or dark legal footers.",
|
|
54
|
+
id: "footer",
|
|
55
|
+
label: "Footers & social"
|
|
56
|
+
}
|
|
57
|
+
];
|
|
58
|
+
// src/merge-tags.ts
|
|
59
|
+
/**
|
|
60
|
+
* Shared Merge Tags used across the Starter emails and Saved Rows in
|
|
61
|
+
* `@mailquilt/templates`. Pass directly to `<mail-quilt>`'s `mergeTags`
|
|
62
|
+
* property or `@mailquilt/renderer`'s `checkEmail()`.
|
|
63
|
+
*/
|
|
64
|
+
const TEMPLATE_MERGE_TAGS = [
|
|
65
|
+
{
|
|
66
|
+
label: "First name",
|
|
67
|
+
name: "first_name",
|
|
68
|
+
sample: "Maya"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
label: "Company name",
|
|
72
|
+
name: "company_name",
|
|
73
|
+
sample: "Northstar"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
label: "Company address",
|
|
77
|
+
name: "company_address",
|
|
78
|
+
sample: "548 Market Street, San Francisco, CA 94104"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
label: "Sender name",
|
|
82
|
+
name: "sender_name",
|
|
83
|
+
sample: "Elena Rostova"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
label: "Sender role",
|
|
87
|
+
name: "sender_role",
|
|
88
|
+
sample: "Co-founder, Northstar"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
label: "Website URL",
|
|
92
|
+
name: "website_url",
|
|
93
|
+
sample: "https://northstar.example"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
label: "App URL",
|
|
97
|
+
name: "app_url",
|
|
98
|
+
sample: "https://app.northstar.example"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
label: "Primary CTA URL",
|
|
102
|
+
name: "cta_url",
|
|
103
|
+
sample: "https://northstar.example/explore"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
label: "Help center URL",
|
|
107
|
+
name: "help_url",
|
|
108
|
+
sample: "https://northstar.example/help"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
label: "Support email",
|
|
112
|
+
name: "support_email",
|
|
113
|
+
sample: "support@northstar.example"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
label: "Preferences URL",
|
|
117
|
+
name: "preferences_url",
|
|
118
|
+
sample: "https://northstar.example/preferences"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
label: "Unsubscribe URL",
|
|
122
|
+
name: "unsubscribe_url",
|
|
123
|
+
sample: "https://northstar.example/unsubscribe",
|
|
124
|
+
unsubscribe: true
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
label: "Release notes URL",
|
|
128
|
+
name: "changelog_url",
|
|
129
|
+
sample: "https://northstar.example/changelog"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
label: "Status page URL",
|
|
133
|
+
name: "status_url",
|
|
134
|
+
sample: "https://status.northstar.example"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
label: "Plan name",
|
|
138
|
+
name: "plan_name",
|
|
139
|
+
sample: "Team Pro"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
label: "Invoice number",
|
|
143
|
+
name: "invoice_number",
|
|
144
|
+
sample: "INV-2026-0418"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
label: "Invoice date",
|
|
148
|
+
name: "invoice_date",
|
|
149
|
+
sample: "April 12, 2026"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
label: "Amount paid",
|
|
153
|
+
name: "amount_paid",
|
|
154
|
+
sample: "$49.00"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
label: "Payment method",
|
|
158
|
+
name: "payment_method",
|
|
159
|
+
sample: "Visa ending in 4242"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
label: "Invoice URL",
|
|
163
|
+
name: "invoice_url",
|
|
164
|
+
sample: "https://app.northstar.example/billing/invoices/INV-2026-0418"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
label: "Password reset URL",
|
|
168
|
+
name: "reset_url",
|
|
169
|
+
sample: "https://app.northstar.example/auth/reset"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
label: "Link expiry (minutes)",
|
|
173
|
+
name: "expiry_minutes",
|
|
174
|
+
sample: "30"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
label: "Trial days remaining",
|
|
178
|
+
name: "trial_days_left",
|
|
179
|
+
sample: "3"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
label: "Upgrade URL",
|
|
183
|
+
name: "upgrade_url",
|
|
184
|
+
sample: "https://app.northstar.example/billing/upgrade"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
label: "Event date",
|
|
188
|
+
name: "event_date",
|
|
189
|
+
sample: "Thursday, May 14 at 11:00 AM PT"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
label: "Registration URL",
|
|
193
|
+
name: "rsvp_url",
|
|
194
|
+
sample: "https://northstar.example/events/register"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
label: "Offer code",
|
|
198
|
+
name: "offer_code",
|
|
199
|
+
sample: "SPRING25"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
label: "Offer end date",
|
|
203
|
+
name: "offer_expires",
|
|
204
|
+
sample: "May 31, 2026"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
label: "Survey URL",
|
|
208
|
+
name: "survey_url",
|
|
209
|
+
sample: "https://northstar.example/feedback"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
label: "Video URL",
|
|
213
|
+
name: "video_url",
|
|
214
|
+
sample: "https://northstar.example/watch/workspace-walkthrough"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
label: "Video thumbnail URL",
|
|
218
|
+
name: "video_thumbnail_url",
|
|
219
|
+
sample: "https://northstar.example/media/walkthrough-thumb.jpg"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
label: "Hero image URL",
|
|
223
|
+
name: "hero_image_url",
|
|
224
|
+
sample: "https://northstar.example/media/hero-workspace.jpg"
|
|
225
|
+
}
|
|
226
|
+
];
|
|
227
|
+
// src/builders.ts
|
|
228
|
+
const FONT_SANS = "Arial, Helvetica, sans-serif";
|
|
229
|
+
const FONT_SERIF = "Georgia, 'Times New Roman', serif";
|
|
230
|
+
const FONT_TAHOMA = "Tahoma, Verdana, sans-serif";
|
|
231
|
+
const toInline = (item) => typeof item === "string" ? {
|
|
232
|
+
text: item,
|
|
233
|
+
type: "text"
|
|
234
|
+
} : item;
|
|
235
|
+
const textRun = (text, marks) => marks === void 0 ? {
|
|
236
|
+
text,
|
|
237
|
+
type: "text"
|
|
238
|
+
} : {
|
|
239
|
+
marks,
|
|
240
|
+
text,
|
|
241
|
+
type: "text"
|
|
242
|
+
};
|
|
243
|
+
const bold = (text) => textRun(text, [{ type: "bold" }]);
|
|
244
|
+
const italic = (text) => textRun(text, [{ type: "italic" }]);
|
|
245
|
+
const linkText = (text, href, extraMarks = []) => ({
|
|
246
|
+
marks: [...extraMarks, {
|
|
247
|
+
attrs: { href },
|
|
248
|
+
type: "link"
|
|
249
|
+
}],
|
|
250
|
+
text,
|
|
251
|
+
type: "text"
|
|
252
|
+
});
|
|
253
|
+
const tag = (name, marks) => marks === void 0 ? {
|
|
254
|
+
attrs: { name },
|
|
255
|
+
type: "mergeTag"
|
|
256
|
+
} : {
|
|
257
|
+
attrs: { name },
|
|
258
|
+
marks,
|
|
259
|
+
type: "mergeTag"
|
|
260
|
+
};
|
|
261
|
+
const tagLink = (name, href, extraMarks = []) => ({
|
|
262
|
+
attrs: { name },
|
|
263
|
+
marks: [...extraMarks, {
|
|
264
|
+
attrs: { href },
|
|
265
|
+
type: "link"
|
|
266
|
+
}],
|
|
267
|
+
type: "mergeTag"
|
|
268
|
+
});
|
|
269
|
+
const br = () => ({ type: "hardBreak" });
|
|
270
|
+
const p = (...items) => items.length === 0 ? { type: "paragraph" } : {
|
|
271
|
+
content: items.map(toInline),
|
|
272
|
+
type: "paragraph"
|
|
273
|
+
};
|
|
274
|
+
const ul = (...items) => ({
|
|
275
|
+
content: items.map((paragraph) => ({
|
|
276
|
+
content: [paragraph],
|
|
277
|
+
type: "listItem"
|
|
278
|
+
})),
|
|
279
|
+
type: "bulletList"
|
|
280
|
+
});
|
|
281
|
+
const ol = (...items) => ({
|
|
282
|
+
content: items.map((paragraph) => ({
|
|
283
|
+
content: [paragraph],
|
|
284
|
+
type: "listItem"
|
|
285
|
+
})),
|
|
286
|
+
type: "orderedList"
|
|
287
|
+
});
|
|
288
|
+
const doc = (...content) => ({
|
|
289
|
+
content,
|
|
290
|
+
type: "doc"
|
|
291
|
+
});
|
|
292
|
+
const headingDoc = (...content) => ({
|
|
293
|
+
content,
|
|
294
|
+
type: "doc"
|
|
295
|
+
});
|
|
296
|
+
const headingBlock = (id, level, content, props = {}) => ({
|
|
297
|
+
id,
|
|
298
|
+
props: {
|
|
299
|
+
...props,
|
|
300
|
+
content,
|
|
301
|
+
level
|
|
302
|
+
},
|
|
303
|
+
type: "heading"
|
|
304
|
+
});
|
|
305
|
+
const textBlock = (id, content, props = {}) => ({
|
|
306
|
+
id,
|
|
307
|
+
props: {
|
|
308
|
+
...props,
|
|
309
|
+
content
|
|
310
|
+
},
|
|
311
|
+
type: "text"
|
|
312
|
+
});
|
|
313
|
+
const buttonBlock = (id, label, href, props = {}) => ({
|
|
314
|
+
id,
|
|
315
|
+
props: {
|
|
316
|
+
...props,
|
|
317
|
+
href,
|
|
318
|
+
label
|
|
319
|
+
},
|
|
320
|
+
type: "button"
|
|
321
|
+
});
|
|
322
|
+
const dividerBlock = (id, props = {}) => ({
|
|
323
|
+
id,
|
|
324
|
+
props,
|
|
325
|
+
type: "divider"
|
|
326
|
+
});
|
|
327
|
+
const imageBlock = (id, props) => ({
|
|
328
|
+
id,
|
|
329
|
+
props,
|
|
330
|
+
type: "image"
|
|
331
|
+
});
|
|
332
|
+
const menuBlock = (id, links, props = {}) => ({
|
|
333
|
+
id,
|
|
334
|
+
props: {
|
|
335
|
+
...props,
|
|
336
|
+
links
|
|
337
|
+
},
|
|
338
|
+
type: "menu"
|
|
339
|
+
});
|
|
340
|
+
const socialBlock = (id, links, props = {}) => ({
|
|
341
|
+
id,
|
|
342
|
+
props: {
|
|
343
|
+
...props,
|
|
344
|
+
links
|
|
345
|
+
},
|
|
346
|
+
type: "social"
|
|
347
|
+
});
|
|
348
|
+
const videoBlock = (id, props) => ({
|
|
349
|
+
id,
|
|
350
|
+
props,
|
|
351
|
+
type: "video"
|
|
352
|
+
});
|
|
353
|
+
const col = (id, width, blocks, props = {}) => ({
|
|
354
|
+
blocks,
|
|
355
|
+
id,
|
|
356
|
+
props,
|
|
357
|
+
width
|
|
358
|
+
});
|
|
359
|
+
const row = (id, columns, props = {}) => ({
|
|
360
|
+
columns,
|
|
361
|
+
id,
|
|
362
|
+
props
|
|
363
|
+
});
|
|
364
|
+
const singleColRow = (id, columnId, blocks, rowProps = {}, columnProps = {}) => row(id, [col(columnId, 100, blocks, columnProps)], rowProps);
|
|
365
|
+
const emailDoc = (settings, rows) => ({
|
|
366
|
+
kind: "blocks",
|
|
367
|
+
rows,
|
|
368
|
+
settings,
|
|
369
|
+
version: 4
|
|
370
|
+
});
|
|
371
|
+
const defineSavedRow = (meta, build) => ({
|
|
372
|
+
...meta,
|
|
373
|
+
row: build(),
|
|
374
|
+
version: 4
|
|
375
|
+
});
|
|
376
|
+
const defineStarterEmail = (meta, build) => ({
|
|
377
|
+
...meta,
|
|
378
|
+
email: build()
|
|
379
|
+
});
|
|
380
|
+
// src/rows/content.ts
|
|
381
|
+
/** Two-column feature highlights in subtle bordered cards. */
|
|
382
|
+
const featureGridTwoCol = /* #__PURE__ */ defineSavedRow({
|
|
383
|
+
category: "content",
|
|
384
|
+
name: "Two-column features"
|
|
385
|
+
}, () => row("sr-feat2-row", [col("sr-feat2-left", 50, [headingBlock("sr-feat2-left-title", 3, headingDoc(p("Shared building blocks")), {
|
|
386
|
+
color: "#0f172a",
|
|
387
|
+
fontSize: 18,
|
|
388
|
+
paddingBottom: 6,
|
|
389
|
+
paddingLeft: 16,
|
|
390
|
+
paddingRight: 16,
|
|
391
|
+
paddingTop: 18
|
|
392
|
+
}), textBlock("sr-feat2-left-body", doc(p("Drop approved headers, callouts, and footers into any campaign without rebuilding layouts from scratch."), p(linkText("Browse saved patterns", "{{cta_url}}"))), {
|
|
393
|
+
color: "#334155",
|
|
394
|
+
fontSize: 14,
|
|
395
|
+
paddingBottom: 18,
|
|
396
|
+
paddingLeft: 16,
|
|
397
|
+
paddingRight: 16,
|
|
398
|
+
paddingTop: 0
|
|
399
|
+
})], {
|
|
400
|
+
backgroundColor: "#f8fafc",
|
|
401
|
+
borderColor: "#e2e8f0",
|
|
402
|
+
borderStyle: "solid",
|
|
403
|
+
borderWidth: 1
|
|
404
|
+
}), col("sr-feat2-right", 50, [headingBlock("sr-feat2-right-title", 3, headingDoc(p("Automatic pre-send checks")), {
|
|
405
|
+
color: "#0f172a",
|
|
406
|
+
fontSize: 18,
|
|
407
|
+
paddingBottom: 6,
|
|
408
|
+
paddingLeft: 16,
|
|
409
|
+
paddingRight: 16,
|
|
410
|
+
paddingTop: 18
|
|
411
|
+
}), textBlock("sr-feat2-right-body", doc(p("Catch missing alt text, low contrast ratios, and broken merge tags before your email reaches a single reader."), p(linkText("Review pre-send checks", "{{help_url}}"))), {
|
|
412
|
+
color: "#334155",
|
|
413
|
+
fontSize: 14,
|
|
414
|
+
paddingBottom: 18,
|
|
415
|
+
paddingLeft: 16,
|
|
416
|
+
paddingRight: 16,
|
|
417
|
+
paddingTop: 0
|
|
418
|
+
})], {
|
|
419
|
+
backgroundColor: "#f8fafc",
|
|
420
|
+
borderColor: "#e2e8f0",
|
|
421
|
+
borderStyle: "solid",
|
|
422
|
+
borderWidth: 1
|
|
423
|
+
})], {
|
|
424
|
+
backgroundColor: "#ffffff",
|
|
425
|
+
paddingBottom: 24,
|
|
426
|
+
paddingLeft: 24,
|
|
427
|
+
paddingRight: 24,
|
|
428
|
+
paddingTop: 24,
|
|
429
|
+
phone: {
|
|
430
|
+
paddingLeft: 16,
|
|
431
|
+
paddingRight: 16
|
|
432
|
+
}
|
|
433
|
+
}));
|
|
434
|
+
/** Three-column benefits strip with numbered eyebrows. */
|
|
435
|
+
const featureGridThreeCol = /* #__PURE__ */ defineSavedRow({
|
|
436
|
+
category: "content",
|
|
437
|
+
name: "Three-column benefits"
|
|
438
|
+
}, () => row("sr-feat3-row", [
|
|
439
|
+
col("sr-feat3-col-1", 33.33, [
|
|
440
|
+
textBlock("sr-feat3-num-1", doc(p(bold("01"))), {
|
|
441
|
+
color: "#1d4ed8",
|
|
442
|
+
fontSize: 12,
|
|
443
|
+
paddingBottom: 4,
|
|
444
|
+
paddingLeft: 10,
|
|
445
|
+
paddingRight: 10,
|
|
446
|
+
paddingTop: 8
|
|
447
|
+
}),
|
|
448
|
+
headingBlock("sr-feat3-head-1", 3, headingDoc(p("Fast setup")), {
|
|
449
|
+
color: "#0f172a",
|
|
450
|
+
fontSize: 16,
|
|
451
|
+
paddingBottom: 6,
|
|
452
|
+
paddingLeft: 10,
|
|
453
|
+
paddingRight: 10,
|
|
454
|
+
paddingTop: 0
|
|
455
|
+
}),
|
|
456
|
+
textBlock("sr-feat3-text-1", doc(p("Start from a structured layout and tailor colors and fonts in seconds.")), {
|
|
457
|
+
color: "#475569",
|
|
458
|
+
fontSize: 14,
|
|
459
|
+
paddingBottom: 8,
|
|
460
|
+
paddingLeft: 10,
|
|
461
|
+
paddingRight: 10,
|
|
462
|
+
paddingTop: 0
|
|
463
|
+
})
|
|
464
|
+
]),
|
|
465
|
+
col("sr-feat3-col-2", 33.33, [
|
|
466
|
+
textBlock("sr-feat3-num-2", doc(p(bold("02"))), {
|
|
467
|
+
color: "#1d4ed8",
|
|
468
|
+
fontSize: 12,
|
|
469
|
+
paddingBottom: 4,
|
|
470
|
+
paddingLeft: 10,
|
|
471
|
+
paddingRight: 10,
|
|
472
|
+
paddingTop: 8
|
|
473
|
+
}),
|
|
474
|
+
headingBlock("sr-feat3-head-2", 3, headingDoc(p("Clean HTML")), {
|
|
475
|
+
color: "#0f172a",
|
|
476
|
+
fontSize: 16,
|
|
477
|
+
paddingBottom: 6,
|
|
478
|
+
paddingLeft: 10,
|
|
479
|
+
paddingRight: 10,
|
|
480
|
+
paddingTop: 0
|
|
481
|
+
}),
|
|
482
|
+
textBlock("sr-feat3-text-2", doc(p("Tested across Gmail, Apple Mail, and Outlook without bloated markup.")), {
|
|
483
|
+
color: "#475569",
|
|
484
|
+
fontSize: 14,
|
|
485
|
+
paddingBottom: 8,
|
|
486
|
+
paddingLeft: 10,
|
|
487
|
+
paddingRight: 10,
|
|
488
|
+
paddingTop: 0
|
|
489
|
+
})
|
|
490
|
+
]),
|
|
491
|
+
col("sr-feat3-col-3", 33.34, [
|
|
492
|
+
textBlock("sr-feat3-num-3", doc(p(bold("03"))), {
|
|
493
|
+
color: "#1d4ed8",
|
|
494
|
+
fontSize: 12,
|
|
495
|
+
paddingBottom: 4,
|
|
496
|
+
paddingLeft: 10,
|
|
497
|
+
paddingRight: 10,
|
|
498
|
+
paddingTop: 8
|
|
499
|
+
}),
|
|
500
|
+
headingBlock("sr-feat3-head-3", 3, headingDoc(p("Full ownership")), {
|
|
501
|
+
color: "#0f172a",
|
|
502
|
+
fontSize: 16,
|
|
503
|
+
paddingBottom: 6,
|
|
504
|
+
paddingLeft: 10,
|
|
505
|
+
paddingRight: 10,
|
|
506
|
+
paddingTop: 0
|
|
507
|
+
}),
|
|
508
|
+
textBlock("sr-feat3-text-3", doc(p("Store plain JSON documents in your own database and render on demand.")), {
|
|
509
|
+
color: "#475569",
|
|
510
|
+
fontSize: 14,
|
|
511
|
+
paddingBottom: 8,
|
|
512
|
+
paddingLeft: 10,
|
|
513
|
+
paddingRight: 10,
|
|
514
|
+
paddingTop: 0
|
|
515
|
+
})
|
|
516
|
+
])
|
|
517
|
+
], {
|
|
518
|
+
backgroundColor: "#ffffff",
|
|
519
|
+
paddingBottom: 24,
|
|
520
|
+
paddingLeft: 18,
|
|
521
|
+
paddingRight: 18,
|
|
522
|
+
paddingTop: 24,
|
|
523
|
+
phone: {
|
|
524
|
+
paddingLeft: 12,
|
|
525
|
+
paddingRight: 12
|
|
526
|
+
}
|
|
527
|
+
}));
|
|
528
|
+
/** Three-column key metrics strip on a soft slate surface. */
|
|
529
|
+
const statStrip = /* #__PURE__ */ defineSavedRow({
|
|
530
|
+
category: "content",
|
|
531
|
+
name: "Key metrics strip"
|
|
532
|
+
}, () => row("sr-stats-row", [
|
|
533
|
+
col("sr-stats-col-1", 33.33, [textBlock("sr-stats-val-1", doc(p(bold("99.98%"))), {
|
|
534
|
+
align: "center",
|
|
535
|
+
color: "#0f172a",
|
|
536
|
+
fontSize: 26,
|
|
537
|
+
paddingBottom: 2,
|
|
538
|
+
paddingLeft: 8,
|
|
539
|
+
paddingRight: 8,
|
|
540
|
+
paddingTop: 8
|
|
541
|
+
}), textBlock("sr-stats-lbl-1", doc(p("Delivery uptime")), {
|
|
542
|
+
align: "center",
|
|
543
|
+
color: "#475569",
|
|
544
|
+
fontSize: 13,
|
|
545
|
+
paddingBottom: 8,
|
|
546
|
+
paddingLeft: 8,
|
|
547
|
+
paddingRight: 8,
|
|
548
|
+
paddingTop: 0
|
|
549
|
+
})]),
|
|
550
|
+
col("sr-stats-col-2", 33.33, [textBlock("sr-stats-val-2", doc(p(bold("42 ms"))), {
|
|
551
|
+
align: "center",
|
|
552
|
+
color: "#0f172a",
|
|
553
|
+
fontSize: 26,
|
|
554
|
+
paddingBottom: 2,
|
|
555
|
+
paddingLeft: 8,
|
|
556
|
+
paddingRight: 8,
|
|
557
|
+
paddingTop: 8
|
|
558
|
+
}), textBlock("sr-stats-lbl-2", doc(p("Median render time")), {
|
|
559
|
+
align: "center",
|
|
560
|
+
color: "#475569",
|
|
561
|
+
fontSize: 13,
|
|
562
|
+
paddingBottom: 8,
|
|
563
|
+
paddingLeft: 8,
|
|
564
|
+
paddingRight: 8,
|
|
565
|
+
paddingTop: 0
|
|
566
|
+
})]),
|
|
567
|
+
col("sr-stats-col-3", 33.34, [textBlock("sr-stats-val-3", doc(p(bold("4.9 / 5"))), {
|
|
568
|
+
align: "center",
|
|
569
|
+
color: "#0f172a",
|
|
570
|
+
fontSize: 26,
|
|
571
|
+
paddingBottom: 2,
|
|
572
|
+
paddingLeft: 8,
|
|
573
|
+
paddingRight: 8,
|
|
574
|
+
paddingTop: 8
|
|
575
|
+
}), textBlock("sr-stats-lbl-3", doc(p("Customer rating")), {
|
|
576
|
+
align: "center",
|
|
577
|
+
color: "#475569",
|
|
578
|
+
fontSize: 13,
|
|
579
|
+
paddingBottom: 8,
|
|
580
|
+
paddingLeft: 8,
|
|
581
|
+
paddingRight: 8,
|
|
582
|
+
paddingTop: 0
|
|
583
|
+
})])
|
|
584
|
+
], {
|
|
585
|
+
backgroundColor: "#f8fafc",
|
|
586
|
+
paddingBottom: 20,
|
|
587
|
+
paddingLeft: 16,
|
|
588
|
+
paddingRight: 16,
|
|
589
|
+
paddingTop: 20
|
|
590
|
+
}));
|
|
591
|
+
/** Highlighted customer quote box with attribution. */
|
|
592
|
+
const testimonialQuote = /* #__PURE__ */ defineSavedRow({
|
|
593
|
+
category: "content",
|
|
594
|
+
name: "Customer testimonial"
|
|
595
|
+
}, () => singleColRow("sr-quote-row", "sr-quote-col", [textBlock("sr-quote-box", doc(p(italic("“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.”")), p(bold("Priya Nair"), " · Head of Lifecycle, Brightline")), {
|
|
596
|
+
borderColor: "#cbd5e1",
|
|
597
|
+
borderRadius: 8,
|
|
598
|
+
borderStyle: "solid",
|
|
599
|
+
borderWidth: 1,
|
|
600
|
+
boxBackgroundColor: "#f8fafc",
|
|
601
|
+
color: "#1e293b",
|
|
602
|
+
fontSize: 15,
|
|
603
|
+
paddingBottom: 22,
|
|
604
|
+
paddingLeft: 24,
|
|
605
|
+
paddingRight: 24,
|
|
606
|
+
paddingTop: 22,
|
|
607
|
+
phone: {
|
|
608
|
+
paddingLeft: 18,
|
|
609
|
+
paddingRight: 18
|
|
610
|
+
}
|
|
611
|
+
})], {
|
|
612
|
+
backgroundColor: "#ffffff",
|
|
613
|
+
paddingBottom: 24,
|
|
614
|
+
paddingLeft: 28,
|
|
615
|
+
paddingRight: 28,
|
|
616
|
+
paddingTop: 24,
|
|
617
|
+
phone: {
|
|
618
|
+
paddingLeft: 16,
|
|
619
|
+
paddingRight: 16
|
|
620
|
+
}
|
|
621
|
+
}));
|
|
622
|
+
/** Clean single-plan highlight card with included capabilities and upgrade CTA. */
|
|
623
|
+
const pricingHighlight = /* #__PURE__ */ defineSavedRow({
|
|
624
|
+
category: "content",
|
|
625
|
+
name: "Pricing highlight"
|
|
626
|
+
}, () => singleColRow("sr-price-row", "sr-price-col", [
|
|
627
|
+
textBlock("sr-price-plan", doc(p(tag("plan_name", [{ type: "bold" }]))), {
|
|
628
|
+
color: "#1d4ed8",
|
|
629
|
+
fontSize: 13,
|
|
630
|
+
paddingBottom: 4,
|
|
631
|
+
paddingLeft: 0,
|
|
632
|
+
paddingRight: 0,
|
|
633
|
+
paddingTop: 0
|
|
634
|
+
}),
|
|
635
|
+
headingBlock("sr-price-amount", 2, headingDoc(p("$49 per month")), {
|
|
636
|
+
color: "#0f172a",
|
|
637
|
+
fontSize: 28,
|
|
638
|
+
paddingBottom: 8,
|
|
639
|
+
paddingLeft: 0,
|
|
640
|
+
paddingRight: 0,
|
|
641
|
+
paddingTop: 0
|
|
642
|
+
}),
|
|
643
|
+
textBlock("sr-price-desc", doc(p("Everything growing teams need to collaborate, review, and publish customer communications."), ul(p("Unlimited shared workspaces and saved rows"), p("Automated accessibility and inbox-readiness checks"), p("Priority email support with same-day response"))), {
|
|
644
|
+
color: "#334155",
|
|
645
|
+
fontSize: 15,
|
|
646
|
+
paddingBottom: 18,
|
|
647
|
+
paddingLeft: 0,
|
|
648
|
+
paddingRight: 0,
|
|
649
|
+
paddingTop: 0
|
|
650
|
+
}),
|
|
651
|
+
buttonBlock("sr-price-cta", "Upgrade to {{plan_name}}", "{{upgrade_url}}", {
|
|
652
|
+
align: "left",
|
|
653
|
+
backgroundColor: "#1d4ed8",
|
|
654
|
+
borderRadius: 6,
|
|
655
|
+
color: "#ffffff",
|
|
656
|
+
paddingBottom: 0,
|
|
657
|
+
paddingLeft: 0,
|
|
658
|
+
paddingRight: 0,
|
|
659
|
+
paddingTop: 0
|
|
660
|
+
})
|
|
661
|
+
], {
|
|
662
|
+
backgroundColor: "#ffffff",
|
|
663
|
+
paddingBottom: 24,
|
|
664
|
+
paddingLeft: 28,
|
|
665
|
+
paddingRight: 28,
|
|
666
|
+
paddingTop: 24,
|
|
667
|
+
phone: {
|
|
668
|
+
paddingLeft: 16,
|
|
669
|
+
paddingRight: 16
|
|
670
|
+
}
|
|
671
|
+
}, {
|
|
672
|
+
backgroundColor: "#f8fafc",
|
|
673
|
+
borderColor: "#cbd5e1",
|
|
674
|
+
borderStyle: "solid",
|
|
675
|
+
borderWidth: 1,
|
|
676
|
+
paddingBottom: 24,
|
|
677
|
+
paddingLeft: 24,
|
|
678
|
+
paddingRight: 24,
|
|
679
|
+
paddingTop: 24,
|
|
680
|
+
phone: {
|
|
681
|
+
paddingLeft: 18,
|
|
682
|
+
paddingRight: 18
|
|
683
|
+
}
|
|
684
|
+
}));
|
|
685
|
+
/** Video Block spotlight row with headline, intro, and descriptive play line. */
|
|
686
|
+
const videoCard = /* #__PURE__ */ defineSavedRow({
|
|
687
|
+
category: "content",
|
|
688
|
+
name: "Video spotlight"
|
|
689
|
+
}, () => singleColRow("sr-video-row", "sr-video-col", [
|
|
690
|
+
headingBlock("sr-video-title", 2, headingDoc(p("Watch the 3-minute product walkthrough")), {
|
|
691
|
+
color: "#0f172a",
|
|
692
|
+
fontSize: 22,
|
|
693
|
+
paddingBottom: 8,
|
|
694
|
+
paddingLeft: 0,
|
|
695
|
+
paddingRight: 0,
|
|
696
|
+
paddingTop: 0
|
|
697
|
+
}),
|
|
698
|
+
textBlock("sr-video-intro", doc(p("See how teams build a complete release email from reusable rows and verify mobile layout in under three minutes.")), {
|
|
699
|
+
color: "#475569",
|
|
700
|
+
fontSize: 15,
|
|
701
|
+
paddingBottom: 16,
|
|
702
|
+
paddingLeft: 0,
|
|
703
|
+
paddingRight: 0,
|
|
704
|
+
paddingTop: 0
|
|
705
|
+
}),
|
|
706
|
+
videoBlock("sr-video-block", {
|
|
707
|
+
alt: "Three-minute walkthrough of building a release email and checking mobile previews",
|
|
708
|
+
color: "#1d4ed8",
|
|
709
|
+
label: "Watch the 3-minute walkthrough",
|
|
710
|
+
paddingBottom: 0,
|
|
711
|
+
paddingLeft: 0,
|
|
712
|
+
paddingRight: 0,
|
|
713
|
+
paddingTop: 0,
|
|
714
|
+
play: "below",
|
|
715
|
+
thumbnail: "{{video_thumbnail_url}}",
|
|
716
|
+
url: "{{video_url}}"
|
|
717
|
+
})
|
|
718
|
+
], {
|
|
719
|
+
backgroundColor: "#ffffff",
|
|
720
|
+
paddingBottom: 28,
|
|
721
|
+
paddingLeft: 28,
|
|
722
|
+
paddingRight: 28,
|
|
723
|
+
paddingTop: 28,
|
|
724
|
+
phone: {
|
|
725
|
+
paddingLeft: 20,
|
|
726
|
+
paddingRight: 20
|
|
727
|
+
}
|
|
728
|
+
}));
|
|
729
|
+
/** Warm signature block for plain-style letters and personal updates. */
|
|
730
|
+
const founderSignOff = /* #__PURE__ */ defineSavedRow({
|
|
731
|
+
category: "content",
|
|
732
|
+
name: "Founder sign-off"
|
|
733
|
+
}, () => singleColRow("sr-signoff-row", "sr-signoff-col", [textBlock("sr-signoff-note", doc(p("Thanks for reading — hit reply any time if you have questions, feedback, or ideas you want us to prioritize next."), p("Warmly,", br(), tag("sender_name", [{ type: "bold" }]), br(), tag("sender_role"))), {
|
|
734
|
+
color: "#27272a",
|
|
735
|
+
fontSize: 15,
|
|
736
|
+
paddingBottom: 8,
|
|
737
|
+
paddingLeft: 0,
|
|
738
|
+
paddingRight: 0,
|
|
739
|
+
paddingTop: 8
|
|
740
|
+
})], {
|
|
741
|
+
backgroundColor: "#ffffff",
|
|
742
|
+
paddingBottom: 24,
|
|
743
|
+
paddingLeft: 32,
|
|
744
|
+
paddingRight: 32,
|
|
745
|
+
paddingTop: 12,
|
|
746
|
+
phone: {
|
|
747
|
+
paddingLeft: 20,
|
|
748
|
+
paddingRight: 20
|
|
749
|
+
}
|
|
750
|
+
}));
|
|
751
|
+
// src/rows/cta.ts
|
|
752
|
+
/** High-contrast dark slate CTA band with light button. */
|
|
753
|
+
const ctaBannerDark = /* #__PURE__ */ defineSavedRow({
|
|
754
|
+
category: "cta",
|
|
755
|
+
name: "Dark CTA banner"
|
|
756
|
+
}, () => singleColRow("sr-cta-dark-row", "sr-cta-dark-col", [
|
|
757
|
+
headingBlock("sr-cta-dark-title", 2, headingDoc(p("Ready to streamline your next release?")), {
|
|
758
|
+
align: "center",
|
|
759
|
+
color: "#ffffff",
|
|
760
|
+
fontSize: 24,
|
|
761
|
+
paddingBottom: 10,
|
|
762
|
+
paddingLeft: 0,
|
|
763
|
+
paddingRight: 0,
|
|
764
|
+
paddingTop: 0,
|
|
765
|
+
phone: { fontSize: 22 }
|
|
766
|
+
}),
|
|
767
|
+
textBlock("sr-cta-dark-body", doc(p("Invite your team, set shared email styles once, and publish accessible campaigns in minutes.")), {
|
|
768
|
+
align: "center",
|
|
769
|
+
color: "#cbd5e1",
|
|
770
|
+
fontSize: 15,
|
|
771
|
+
paddingBottom: 20,
|
|
772
|
+
paddingLeft: 12,
|
|
773
|
+
paddingRight: 12,
|
|
774
|
+
paddingTop: 0,
|
|
775
|
+
phone: {
|
|
776
|
+
paddingLeft: 0,
|
|
777
|
+
paddingRight: 0
|
|
778
|
+
}
|
|
779
|
+
}),
|
|
780
|
+
buttonBlock("sr-cta-dark-btn", "Get started in minutes", "{{cta_url}}", {
|
|
781
|
+
align: "center",
|
|
782
|
+
backgroundColor: "#ffffff",
|
|
783
|
+
borderRadius: 8,
|
|
784
|
+
color: "#0f172a",
|
|
785
|
+
paddingBottom: 0,
|
|
786
|
+
paddingLeft: 0,
|
|
787
|
+
paddingRight: 0,
|
|
788
|
+
paddingTop: 0
|
|
789
|
+
})
|
|
790
|
+
], {
|
|
791
|
+
backgroundColor: "#0f172a",
|
|
792
|
+
paddingBottom: 36,
|
|
793
|
+
paddingLeft: 32,
|
|
794
|
+
paddingRight: 32,
|
|
795
|
+
paddingTop: 36,
|
|
796
|
+
phone: {
|
|
797
|
+
paddingBottom: 28,
|
|
798
|
+
paddingLeft: 20,
|
|
799
|
+
paddingRight: 20,
|
|
800
|
+
paddingTop: 28
|
|
801
|
+
}
|
|
802
|
+
}));
|
|
803
|
+
/** Subtle tinted indigo CTA card with crisp WCAG AA contrast. */
|
|
804
|
+
const ctaBannerSoft = /* #__PURE__ */ defineSavedRow({
|
|
805
|
+
category: "cta",
|
|
806
|
+
name: "Soft CTA card"
|
|
807
|
+
}, () => singleColRow("sr-cta-soft-row", "sr-cta-soft-col", [
|
|
808
|
+
headingBlock("sr-cta-soft-title", 2, headingDoc(p("See how teams save hours every week")), {
|
|
809
|
+
align: "center",
|
|
810
|
+
color: "#1e1b4b",
|
|
811
|
+
fontSize: 22,
|
|
812
|
+
paddingBottom: 8,
|
|
813
|
+
paddingLeft: 0,
|
|
814
|
+
paddingRight: 0,
|
|
815
|
+
paddingTop: 0
|
|
816
|
+
}),
|
|
817
|
+
textBlock("sr-cta-soft-body", doc(p("Try your saved layouts inside the workspace with live desktop and phone inbox previews.")), {
|
|
818
|
+
align: "center",
|
|
819
|
+
color: "#312e81",
|
|
820
|
+
fontSize: 15,
|
|
821
|
+
paddingBottom: 18,
|
|
822
|
+
paddingLeft: 12,
|
|
823
|
+
paddingRight: 12,
|
|
824
|
+
paddingTop: 0,
|
|
825
|
+
phone: {
|
|
826
|
+
paddingLeft: 0,
|
|
827
|
+
paddingRight: 0
|
|
828
|
+
}
|
|
829
|
+
}),
|
|
830
|
+
buttonBlock("sr-cta-soft-btn", "Open your workspace", "{{app_url}}", {
|
|
831
|
+
align: "center",
|
|
832
|
+
backgroundColor: "#4338ca",
|
|
833
|
+
borderRadius: 8,
|
|
834
|
+
color: "#ffffff",
|
|
835
|
+
paddingBottom: 0,
|
|
836
|
+
paddingLeft: 0,
|
|
837
|
+
paddingRight: 0,
|
|
838
|
+
paddingTop: 0
|
|
839
|
+
})
|
|
840
|
+
], {
|
|
841
|
+
backgroundColor: "#eef2ff",
|
|
842
|
+
paddingBottom: 32,
|
|
843
|
+
paddingLeft: 28,
|
|
844
|
+
paddingRight: 28,
|
|
845
|
+
paddingTop: 32,
|
|
846
|
+
phone: {
|
|
847
|
+
paddingBottom: 24,
|
|
848
|
+
paddingLeft: 20,
|
|
849
|
+
paddingRight: 20,
|
|
850
|
+
paddingTop: 24
|
|
851
|
+
}
|
|
852
|
+
}));
|
|
853
|
+
// src/rows/footers.ts
|
|
854
|
+
/** Centered Social Block row for light email layouts. */
|
|
855
|
+
const socialBar = /* #__PURE__ */ defineSavedRow({
|
|
856
|
+
category: "footer",
|
|
857
|
+
name: "Social links bar"
|
|
858
|
+
}, () => singleColRow("sr-social-row", "sr-social-col", [socialBlock("sr-social-links", [
|
|
859
|
+
{
|
|
860
|
+
network: "website",
|
|
861
|
+
url: "{{website_url}}"
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
network: "linkedin",
|
|
865
|
+
url: "https://linkedin.com/company/northstar"
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
network: "x",
|
|
869
|
+
url: "https://x.com/northstar"
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
network: "youtube",
|
|
873
|
+
url: "https://youtube.com/@northstar"
|
|
874
|
+
}
|
|
875
|
+
], {
|
|
876
|
+
align: "center",
|
|
877
|
+
iconSize: 32,
|
|
878
|
+
iconStyle: "color",
|
|
879
|
+
paddingBottom: 8,
|
|
880
|
+
paddingLeft: 0,
|
|
881
|
+
paddingRight: 0,
|
|
882
|
+
paddingTop: 8
|
|
883
|
+
})], {
|
|
884
|
+
backgroundColor: "#ffffff",
|
|
885
|
+
paddingBottom: 16,
|
|
886
|
+
paddingLeft: 24,
|
|
887
|
+
paddingRight: 24,
|
|
888
|
+
paddingTop: 16
|
|
889
|
+
}));
|
|
890
|
+
/** Clean light footer with company address, preferences, and unsubscribe link. */
|
|
891
|
+
const footerLight = /* #__PURE__ */ defineSavedRow({
|
|
892
|
+
category: "footer",
|
|
893
|
+
name: "Light footer"
|
|
894
|
+
}, () => singleColRow("sr-footer-light-row", "sr-footer-light-col", [dividerBlock("sr-footer-light-rule", {
|
|
895
|
+
color: "#d4d4d8",
|
|
896
|
+
paddingBottom: 18,
|
|
897
|
+
paddingLeft: 0,
|
|
898
|
+
paddingRight: 0,
|
|
899
|
+
paddingTop: 0,
|
|
900
|
+
thickness: 1
|
|
901
|
+
}), textBlock("sr-footer-light-text", doc(p(tag("company_name"), " · ", tag("company_address"), br(), linkText("Manage email preferences", "{{preferences_url}}"), " · ", linkText("Unsubscribe", "{{unsubscribe_url}}"))), {
|
|
902
|
+
align: "center",
|
|
903
|
+
color: "#52525b",
|
|
904
|
+
fontSize: 13,
|
|
905
|
+
paddingBottom: 0,
|
|
906
|
+
paddingLeft: 0,
|
|
907
|
+
paddingRight: 0,
|
|
908
|
+
paddingTop: 0
|
|
909
|
+
})], {
|
|
910
|
+
backgroundColor: "#f4f4f5",
|
|
911
|
+
paddingBottom: 28,
|
|
912
|
+
paddingLeft: 28,
|
|
913
|
+
paddingRight: 28,
|
|
914
|
+
paddingTop: 20,
|
|
915
|
+
phone: {
|
|
916
|
+
paddingLeft: 20,
|
|
917
|
+
paddingRight: 20
|
|
918
|
+
}
|
|
919
|
+
}));
|
|
920
|
+
/** High-contrast dark footer with white social icons, address, and unsubscribe link. */
|
|
921
|
+
const footerDark = /* #__PURE__ */ defineSavedRow({
|
|
922
|
+
category: "footer",
|
|
923
|
+
name: "Dark footer"
|
|
924
|
+
}, () => singleColRow("sr-footer-dark-row", "sr-footer-dark-col", [
|
|
925
|
+
socialBlock("sr-footer-dark-social", [
|
|
926
|
+
{
|
|
927
|
+
network: "website",
|
|
928
|
+
url: "{{website_url}}"
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
network: "linkedin",
|
|
932
|
+
url: "https://linkedin.com/company/northstar"
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
network: "x",
|
|
936
|
+
url: "https://x.com/northstar"
|
|
937
|
+
}
|
|
938
|
+
], {
|
|
939
|
+
align: "center",
|
|
940
|
+
iconSize: 32,
|
|
941
|
+
iconStyle: "white",
|
|
942
|
+
paddingBottom: 16,
|
|
943
|
+
paddingLeft: 0,
|
|
944
|
+
paddingRight: 0,
|
|
945
|
+
paddingTop: 0
|
|
946
|
+
}),
|
|
947
|
+
dividerBlock("sr-footer-dark-rule", {
|
|
948
|
+
color: "#3f3f46",
|
|
949
|
+
paddingBottom: 16,
|
|
950
|
+
paddingLeft: 0,
|
|
951
|
+
paddingRight: 0,
|
|
952
|
+
paddingTop: 0,
|
|
953
|
+
thickness: 1
|
|
954
|
+
}),
|
|
955
|
+
textBlock("sr-footer-dark-text", doc(p(tag("company_name"), " · ", tag("company_address"), br(), linkText("Manage email preferences", "{{preferences_url}}"), " · ", linkText("Unsubscribe", "{{unsubscribe_url}}"))), {
|
|
956
|
+
align: "center",
|
|
957
|
+
color: "#d4d4d8",
|
|
958
|
+
fontSize: 13,
|
|
959
|
+
paddingBottom: 0,
|
|
960
|
+
paddingLeft: 0,
|
|
961
|
+
paddingRight: 0,
|
|
962
|
+
paddingTop: 0
|
|
963
|
+
})
|
|
964
|
+
], {
|
|
965
|
+
backgroundColor: "#18181b",
|
|
966
|
+
paddingBottom: 32,
|
|
967
|
+
paddingLeft: 28,
|
|
968
|
+
paddingRight: 28,
|
|
969
|
+
paddingTop: 28,
|
|
970
|
+
phone: {
|
|
971
|
+
paddingLeft: 20,
|
|
972
|
+
paddingRight: 20
|
|
973
|
+
}
|
|
974
|
+
}));
|
|
975
|
+
// src/rows/headers.ts
|
|
976
|
+
/** Simple brand wordmark header with a subtle bottom rule. */
|
|
977
|
+
const headerMinimal = /* #__PURE__ */ defineSavedRow({
|
|
978
|
+
category: "header",
|
|
979
|
+
name: "Minimal header"
|
|
980
|
+
}, () => singleColRow("sr-header-min-row", "sr-header-min-col", [textBlock("sr-header-min-brand", doc(p(tagLink("company_name", "{{website_url}}", [{ type: "bold" }]))), {
|
|
981
|
+
color: "#0f172a",
|
|
982
|
+
fontSize: 18,
|
|
983
|
+
paddingBottom: 14,
|
|
984
|
+
paddingLeft: 0,
|
|
985
|
+
paddingRight: 0,
|
|
986
|
+
paddingTop: 4
|
|
987
|
+
}), dividerBlock("sr-header-min-rule", {
|
|
988
|
+
color: "#e2e8f0",
|
|
989
|
+
paddingBottom: 0,
|
|
990
|
+
paddingLeft: 0,
|
|
991
|
+
paddingRight: 0,
|
|
992
|
+
paddingTop: 0,
|
|
993
|
+
thickness: 1
|
|
994
|
+
})], {
|
|
995
|
+
backgroundColor: "#ffffff",
|
|
996
|
+
paddingBottom: 8,
|
|
997
|
+
paddingLeft: 32,
|
|
998
|
+
paddingRight: 32,
|
|
999
|
+
paddingTop: 24,
|
|
1000
|
+
phone: {
|
|
1001
|
+
paddingLeft: 20,
|
|
1002
|
+
paddingRight: 20,
|
|
1003
|
+
paddingTop: 20
|
|
1004
|
+
}
|
|
1005
|
+
}));
|
|
1006
|
+
/** Two-column header pairing a linked brand wordmark with a Menu Block. */
|
|
1007
|
+
const headerWithNav = /* #__PURE__ */ defineSavedRow({
|
|
1008
|
+
category: "header",
|
|
1009
|
+
name: "Header with navigation"
|
|
1010
|
+
}, () => row("sr-header-nav-row", [col("sr-header-nav-brand-col", 33, [textBlock("sr-header-nav-brand", doc(p(tagLink("company_name", "{{website_url}}", [{ type: "bold" }]))), {
|
|
1011
|
+
color: "#0f172a",
|
|
1012
|
+
fontSize: 18,
|
|
1013
|
+
paddingBottom: 8,
|
|
1014
|
+
paddingLeft: 0,
|
|
1015
|
+
paddingRight: 8,
|
|
1016
|
+
paddingTop: 8
|
|
1017
|
+
})], { verticalAlign: "middle" }), col("sr-header-nav-menu-col", 67, [menuBlock("sr-header-nav-menu", [
|
|
1018
|
+
{
|
|
1019
|
+
label: "Product",
|
|
1020
|
+
url: "{{website_url}}"
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
label: "Updates",
|
|
1024
|
+
url: "{{changelog_url}}"
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
label: "Help center",
|
|
1028
|
+
url: "{{help_url}}"
|
|
1029
|
+
}
|
|
1030
|
+
], {
|
|
1031
|
+
align: "right",
|
|
1032
|
+
color: "#334155",
|
|
1033
|
+
fontSize: 14,
|
|
1034
|
+
gap: 20,
|
|
1035
|
+
paddingBottom: 8,
|
|
1036
|
+
paddingLeft: 8,
|
|
1037
|
+
paddingRight: 0,
|
|
1038
|
+
paddingTop: 8
|
|
1039
|
+
})], { verticalAlign: "middle" })], {
|
|
1040
|
+
backgroundColor: "#ffffff",
|
|
1041
|
+
paddingBottom: 16,
|
|
1042
|
+
paddingLeft: 28,
|
|
1043
|
+
paddingRight: 28,
|
|
1044
|
+
paddingTop: 20,
|
|
1045
|
+
phone: {
|
|
1046
|
+
paddingLeft: 20,
|
|
1047
|
+
paddingRight: 20
|
|
1048
|
+
}
|
|
1049
|
+
}));
|
|
1050
|
+
// src/rows/heroes.ts
|
|
1051
|
+
/** Centered eyebrow, headline, subhead, and primary Button. */
|
|
1052
|
+
const heroCentered = /* #__PURE__ */ defineSavedRow({
|
|
1053
|
+
category: "hero",
|
|
1054
|
+
name: "Centered hero"
|
|
1055
|
+
}, () => singleColRow("sr-hero-center-row", "sr-hero-center-col", [
|
|
1056
|
+
textBlock("sr-hero-center-eyebrow", doc(p(bold("FEATURED UPDATE"))), {
|
|
1057
|
+
align: "center",
|
|
1058
|
+
color: "#1d4ed8",
|
|
1059
|
+
fontSize: 12,
|
|
1060
|
+
paddingBottom: 8,
|
|
1061
|
+
paddingLeft: 0,
|
|
1062
|
+
paddingRight: 0,
|
|
1063
|
+
paddingTop: 0
|
|
1064
|
+
}),
|
|
1065
|
+
headingBlock("sr-hero-center-title", 1, headingDoc(p("Send clearer customer updates in half the time")), {
|
|
1066
|
+
align: "center",
|
|
1067
|
+
color: "#0f172a",
|
|
1068
|
+
fontSize: 32,
|
|
1069
|
+
paddingBottom: 12,
|
|
1070
|
+
paddingLeft: 0,
|
|
1071
|
+
paddingRight: 0,
|
|
1072
|
+
paddingTop: 0,
|
|
1073
|
+
phone: { fontSize: 26 }
|
|
1074
|
+
}),
|
|
1075
|
+
textBlock("sr-hero-center-sub", doc(p("Build structured emails from reusable rows, check readability before sending, and export reliable HTML for every inbox.")), {
|
|
1076
|
+
align: "center",
|
|
1077
|
+
color: "#475569",
|
|
1078
|
+
fontSize: 16,
|
|
1079
|
+
paddingBottom: 20,
|
|
1080
|
+
paddingLeft: 12,
|
|
1081
|
+
paddingRight: 12,
|
|
1082
|
+
paddingTop: 0,
|
|
1083
|
+
phone: {
|
|
1084
|
+
paddingLeft: 0,
|
|
1085
|
+
paddingRight: 0
|
|
1086
|
+
}
|
|
1087
|
+
}),
|
|
1088
|
+
buttonBlock("sr-hero-center-cta", "Explore the new workflow", "{{cta_url}}", {
|
|
1089
|
+
align: "center",
|
|
1090
|
+
backgroundColor: "#1d4ed8",
|
|
1091
|
+
borderRadius: 8,
|
|
1092
|
+
color: "#ffffff",
|
|
1093
|
+
paddingBottom: 0,
|
|
1094
|
+
paddingLeft: 0,
|
|
1095
|
+
paddingRight: 0,
|
|
1096
|
+
paddingTop: 4
|
|
1097
|
+
})
|
|
1098
|
+
], {
|
|
1099
|
+
backgroundColor: "#ffffff",
|
|
1100
|
+
paddingBottom: 40,
|
|
1101
|
+
paddingLeft: 32,
|
|
1102
|
+
paddingRight: 32,
|
|
1103
|
+
paddingTop: 40,
|
|
1104
|
+
phone: {
|
|
1105
|
+
paddingBottom: 28,
|
|
1106
|
+
paddingLeft: 20,
|
|
1107
|
+
paddingRight: 20,
|
|
1108
|
+
paddingTop: 28
|
|
1109
|
+
}
|
|
1110
|
+
}));
|
|
1111
|
+
/** Two-column hero pairing left-aligned copy and CTA with a visual slot. */
|
|
1112
|
+
const heroSplit = /* #__PURE__ */ defineSavedRow({
|
|
1113
|
+
category: "hero",
|
|
1114
|
+
name: "Split hero"
|
|
1115
|
+
}, () => row("sr-hero-split-row", [col("sr-hero-split-copy-col", 50, [
|
|
1116
|
+
headingBlock("sr-hero-split-title", 2, headingDoc(p("Ship every campaign with confidence")), {
|
|
1117
|
+
color: "#0f172a",
|
|
1118
|
+
fontSize: 24,
|
|
1119
|
+
paddingBottom: 10,
|
|
1120
|
+
paddingLeft: 0,
|
|
1121
|
+
paddingRight: 12,
|
|
1122
|
+
paddingTop: 0,
|
|
1123
|
+
phone: { paddingRight: 0 }
|
|
1124
|
+
}),
|
|
1125
|
+
textBlock("sr-hero-split-body", doc(p("Review desktop and phone previews side by side so your layout stays crisp before a single message goes out.")), {
|
|
1126
|
+
color: "#475569",
|
|
1127
|
+
fontSize: 15,
|
|
1128
|
+
paddingBottom: 18,
|
|
1129
|
+
paddingLeft: 0,
|
|
1130
|
+
paddingRight: 12,
|
|
1131
|
+
paddingTop: 0,
|
|
1132
|
+
phone: { paddingRight: 0 }
|
|
1133
|
+
}),
|
|
1134
|
+
buttonBlock("sr-hero-split-cta", "Open your workspace", "{{app_url}}", {
|
|
1135
|
+
align: "left",
|
|
1136
|
+
backgroundColor: "#0f172a",
|
|
1137
|
+
borderRadius: 6,
|
|
1138
|
+
color: "#ffffff",
|
|
1139
|
+
paddingBottom: 0,
|
|
1140
|
+
paddingLeft: 0,
|
|
1141
|
+
paddingRight: 0,
|
|
1142
|
+
paddingTop: 0
|
|
1143
|
+
})
|
|
1144
|
+
], {
|
|
1145
|
+
paddingBottom: 8,
|
|
1146
|
+
paddingTop: 8,
|
|
1147
|
+
verticalAlign: "middle"
|
|
1148
|
+
}), col("sr-hero-split-media-col", 50, [imageBlock("sr-hero-split-img", {
|
|
1149
|
+
alt: "Overview of the campaign workspace and live preview",
|
|
1150
|
+
borderRadius: 8,
|
|
1151
|
+
paddingBottom: 0,
|
|
1152
|
+
paddingLeft: 8,
|
|
1153
|
+
paddingRight: 0,
|
|
1154
|
+
paddingTop: 0,
|
|
1155
|
+
phone: {
|
|
1156
|
+
paddingLeft: 0,
|
|
1157
|
+
paddingTop: 16
|
|
1158
|
+
},
|
|
1159
|
+
src: "{{hero_image_url}}"
|
|
1160
|
+
})], { verticalAlign: "middle" })], {
|
|
1161
|
+
backgroundColor: "#ffffff",
|
|
1162
|
+
paddingBottom: 32,
|
|
1163
|
+
paddingLeft: 28,
|
|
1164
|
+
paddingRight: 28,
|
|
1165
|
+
paddingTop: 32,
|
|
1166
|
+
phone: {
|
|
1167
|
+
paddingBottom: 24,
|
|
1168
|
+
paddingLeft: 20,
|
|
1169
|
+
paddingRight: 20,
|
|
1170
|
+
paddingTop: 24
|
|
1171
|
+
}
|
|
1172
|
+
}));
|
|
1173
|
+
// src/rows/index.ts
|
|
1174
|
+
/** All 16 Saved Rows in catalog order, ready for `<mail-quilt>`'s `savedRows` property. */
|
|
1175
|
+
const SAVED_ROWS = [
|
|
1176
|
+
headerMinimal,
|
|
1177
|
+
headerWithNav,
|
|
1178
|
+
heroCentered,
|
|
1179
|
+
heroSplit,
|
|
1180
|
+
featureGridTwoCol,
|
|
1181
|
+
featureGridThreeCol,
|
|
1182
|
+
statStrip,
|
|
1183
|
+
testimonialQuote,
|
|
1184
|
+
ctaBannerDark,
|
|
1185
|
+
ctaBannerSoft,
|
|
1186
|
+
pricingHighlight,
|
|
1187
|
+
videoCard,
|
|
1188
|
+
founderSignOff,
|
|
1189
|
+
socialBar,
|
|
1190
|
+
footerLight,
|
|
1191
|
+
footerDark
|
|
1192
|
+
];
|
|
1193
|
+
// src/starters/editorial.ts
|
|
1194
|
+
/** Simple personal founder update with plain-letter pacing and signature. */
|
|
1195
|
+
const founderLetter = /* #__PURE__ */ defineStarterEmail({
|
|
1196
|
+
category: "editorial",
|
|
1197
|
+
description: "Plain personal note with signature",
|
|
1198
|
+
name: "Founder letter"
|
|
1199
|
+
}, () => emailDoc({
|
|
1200
|
+
backgroundColor: "#ffffff",
|
|
1201
|
+
fontFamily: FONT_SERIF,
|
|
1202
|
+
language: "en",
|
|
1203
|
+
preheader: "A brief note on what our team is focusing on this quarter and why.",
|
|
1204
|
+
style: {
|
|
1205
|
+
buttonBackgroundColor: "#9a3412",
|
|
1206
|
+
buttonBorderRadius: 4,
|
|
1207
|
+
emailBackgroundColor: "#ffffff",
|
|
1208
|
+
heading1FontSize: 28,
|
|
1209
|
+
heading2FontSize: 21,
|
|
1210
|
+
headingFontFamily: FONT_SERIF,
|
|
1211
|
+
linkColor: "#9a3412",
|
|
1212
|
+
textColor: "#1c1917",
|
|
1213
|
+
textFontSize: 16
|
|
1214
|
+
},
|
|
1215
|
+
width: 560
|
|
1216
|
+
}, [
|
|
1217
|
+
singleColRow("fl-header-row", "fl-header-col", [textBlock("fl-brand", doc(p(tagLink("company_name", "{{website_url}}", [{ type: "bold" }]))), {
|
|
1218
|
+
color: "#1c1917",
|
|
1219
|
+
fontSize: 16,
|
|
1220
|
+
paddingBottom: 14,
|
|
1221
|
+
paddingLeft: 0,
|
|
1222
|
+
paddingRight: 0,
|
|
1223
|
+
paddingTop: 4
|
|
1224
|
+
}), dividerBlock("fl-top-rule", {
|
|
1225
|
+
color: "#e7e5e4",
|
|
1226
|
+
paddingBottom: 0,
|
|
1227
|
+
paddingLeft: 0,
|
|
1228
|
+
paddingRight: 0,
|
|
1229
|
+
paddingTop: 0,
|
|
1230
|
+
thickness: 1
|
|
1231
|
+
})], {
|
|
1232
|
+
paddingBottom: 8,
|
|
1233
|
+
paddingLeft: 28,
|
|
1234
|
+
paddingRight: 28,
|
|
1235
|
+
paddingTop: 28,
|
|
1236
|
+
phone: {
|
|
1237
|
+
paddingLeft: 20,
|
|
1238
|
+
paddingRight: 20,
|
|
1239
|
+
paddingTop: 20
|
|
1240
|
+
}
|
|
1241
|
+
}),
|
|
1242
|
+
singleColRow("fl-body-row", "fl-body-col", [headingBlock("fl-title", 1, headingDoc(p("A quick note on what we're building next")), {
|
|
1243
|
+
paddingBottom: 16,
|
|
1244
|
+
paddingLeft: 0,
|
|
1245
|
+
paddingRight: 0,
|
|
1246
|
+
paddingTop: 12,
|
|
1247
|
+
phone: { fontSize: 24 }
|
|
1248
|
+
}), textBlock("fl-letter", doc(p("Hi ", tag("first_name"), ","), p("Over the past six weeks I spoke with forty teams using ", tag("company_name"), " every day. One theme came up in almost every conversation: you don't want more settings panels — you want faster ways to publish work you trust."), p("That feedback shaped our roadmap for the next ninety days. Rather than launching sprawling add-ons, we are concentrating on three areas:"), ul(p(bold("Faster drafting: "), "Fewer clicks from opening a blank message to sending a final test."), p(bold("Stronger team defaults: "), "Define typography, spacing, and approved footers once so every contributor starts on-brand."), p(bold("Transparent release notes: "), "Clear monthly write-ups of what changed, with zero surprise migrations.")), p("You can follow our progress on the ", linkText("public release log", "{{changelog_url}}"), ", or simply reply to this email — I read every message that comes in."), p("Thank you for building with us.", br(), br(), tag("sender_name", [{ type: "bold" }]), br(), tag("sender_role"))), {
|
|
1249
|
+
paddingBottom: 12,
|
|
1250
|
+
paddingLeft: 0,
|
|
1251
|
+
paddingRight: 0,
|
|
1252
|
+
paddingTop: 0
|
|
1253
|
+
})], {
|
|
1254
|
+
paddingBottom: 16,
|
|
1255
|
+
paddingLeft: 28,
|
|
1256
|
+
paddingRight: 28,
|
|
1257
|
+
paddingTop: 8,
|
|
1258
|
+
phone: {
|
|
1259
|
+
paddingLeft: 20,
|
|
1260
|
+
paddingRight: 20
|
|
1261
|
+
}
|
|
1262
|
+
}),
|
|
1263
|
+
singleColRow("fl-footer-row", "fl-footer-col", [dividerBlock("fl-bottom-rule", {
|
|
1264
|
+
color: "#e7e5e4",
|
|
1265
|
+
paddingBottom: 18,
|
|
1266
|
+
paddingLeft: 0,
|
|
1267
|
+
paddingRight: 0,
|
|
1268
|
+
paddingTop: 0,
|
|
1269
|
+
thickness: 1
|
|
1270
|
+
}), textBlock("fl-footer-text", doc(p(tag("company_name"), " · ", tag("company_address"), br(), linkText("Unsubscribe from founder updates", "{{unsubscribe_url}}"))), {
|
|
1271
|
+
color: "#57534e",
|
|
1272
|
+
fontSize: 13,
|
|
1273
|
+
paddingBottom: 0,
|
|
1274
|
+
paddingLeft: 0,
|
|
1275
|
+
paddingRight: 0,
|
|
1276
|
+
paddingTop: 0
|
|
1277
|
+
})], {
|
|
1278
|
+
paddingBottom: 32,
|
|
1279
|
+
paddingLeft: 28,
|
|
1280
|
+
paddingRight: 28,
|
|
1281
|
+
paddingTop: 8,
|
|
1282
|
+
phone: {
|
|
1283
|
+
paddingLeft: 20,
|
|
1284
|
+
paddingRight: 20
|
|
1285
|
+
}
|
|
1286
|
+
})
|
|
1287
|
+
]));
|
|
1288
|
+
/** Editorial multi-section newsletter with lead essay, curated picks, and reader quote. */
|
|
1289
|
+
const newsletter = /* #__PURE__ */ defineStarterEmail({
|
|
1290
|
+
category: "editorial",
|
|
1291
|
+
description: "Lead essay, curated picks, and reader quote",
|
|
1292
|
+
name: "Editorial newsletter"
|
|
1293
|
+
}, () => emailDoc({
|
|
1294
|
+
backgroundColor: "#f5f5f4",
|
|
1295
|
+
fontFamily: FONT_SANS,
|
|
1296
|
+
language: "en",
|
|
1297
|
+
preheader: "Issue 42: Why calm interfaces convert better, plus two curated picks for your team.",
|
|
1298
|
+
style: {
|
|
1299
|
+
buttonBackgroundColor: "#065f46",
|
|
1300
|
+
buttonBorderRadius: 0,
|
|
1301
|
+
emailBackgroundColor: "#ffffff",
|
|
1302
|
+
heading1FontSize: 32,
|
|
1303
|
+
heading2FontSize: 22,
|
|
1304
|
+
heading3FontSize: 18,
|
|
1305
|
+
headingFontFamily: FONT_SERIF,
|
|
1306
|
+
linkColor: "#065f46",
|
|
1307
|
+
textColor: "#1c1917",
|
|
1308
|
+
textFontSize: 16
|
|
1309
|
+
},
|
|
1310
|
+
width: 600
|
|
1311
|
+
}, [
|
|
1312
|
+
row("nl-masthead-row", [col("nl-masthead-left", 50, [textBlock("nl-brand", doc(p(tag("company_name", [{ type: "bold" }]), bold(" Dispatch"))), {
|
|
1313
|
+
color: "#1c1917",
|
|
1314
|
+
fontSize: 18,
|
|
1315
|
+
paddingBottom: 8,
|
|
1316
|
+
paddingLeft: 0,
|
|
1317
|
+
paddingRight: 8,
|
|
1318
|
+
paddingTop: 8
|
|
1319
|
+
})], { verticalAlign: "middle" }), col("nl-masthead-right", 50, [textBlock("nl-issue", doc(p("Issue 42 · Spring Edition")), {
|
|
1320
|
+
align: "right",
|
|
1321
|
+
color: "#57534e",
|
|
1322
|
+
fontSize: 13,
|
|
1323
|
+
paddingBottom: 8,
|
|
1324
|
+
paddingLeft: 8,
|
|
1325
|
+
paddingRight: 0,
|
|
1326
|
+
paddingTop: 8
|
|
1327
|
+
})], { verticalAlign: "middle" })], {
|
|
1328
|
+
backgroundColor: "#ffffff",
|
|
1329
|
+
paddingBottom: 8,
|
|
1330
|
+
paddingLeft: 32,
|
|
1331
|
+
paddingRight: 32,
|
|
1332
|
+
paddingTop: 24,
|
|
1333
|
+
phone: {
|
|
1334
|
+
paddingLeft: 20,
|
|
1335
|
+
paddingRight: 20
|
|
1336
|
+
},
|
|
1337
|
+
stackOnPhone: false
|
|
1338
|
+
}),
|
|
1339
|
+
singleColRow("nl-nav-row", "nl-nav-col", [
|
|
1340
|
+
dividerBlock("nl-nav-rule", {
|
|
1341
|
+
color: "#e7e5e4",
|
|
1342
|
+
paddingBottom: 10,
|
|
1343
|
+
paddingLeft: 0,
|
|
1344
|
+
paddingRight: 0,
|
|
1345
|
+
paddingTop: 0,
|
|
1346
|
+
thickness: 1
|
|
1347
|
+
}),
|
|
1348
|
+
menuBlock("nl-nav-menu", [
|
|
1349
|
+
{
|
|
1350
|
+
label: "Essays",
|
|
1351
|
+
url: "{{website_url}}"
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
label: "Release notes",
|
|
1355
|
+
url: "{{changelog_url}}"
|
|
1356
|
+
},
|
|
1357
|
+
{
|
|
1358
|
+
label: "Guides",
|
|
1359
|
+
url: "{{help_url}}"
|
|
1360
|
+
}
|
|
1361
|
+
], {
|
|
1362
|
+
align: "left",
|
|
1363
|
+
color: "#44403c",
|
|
1364
|
+
fontSize: 13,
|
|
1365
|
+
gap: 20,
|
|
1366
|
+
paddingBottom: 10,
|
|
1367
|
+
paddingLeft: 0,
|
|
1368
|
+
paddingRight: 0,
|
|
1369
|
+
paddingTop: 0
|
|
1370
|
+
}),
|
|
1371
|
+
dividerBlock("nl-nav-rule-bottom", {
|
|
1372
|
+
color: "#1c1917",
|
|
1373
|
+
paddingBottom: 0,
|
|
1374
|
+
paddingLeft: 0,
|
|
1375
|
+
paddingRight: 0,
|
|
1376
|
+
paddingTop: 0,
|
|
1377
|
+
thickness: 2
|
|
1378
|
+
})
|
|
1379
|
+
], {
|
|
1380
|
+
backgroundColor: "#ffffff",
|
|
1381
|
+
paddingBottom: 8,
|
|
1382
|
+
paddingLeft: 32,
|
|
1383
|
+
paddingRight: 32,
|
|
1384
|
+
paddingTop: 0,
|
|
1385
|
+
phone: {
|
|
1386
|
+
paddingLeft: 20,
|
|
1387
|
+
paddingRight: 20
|
|
1388
|
+
}
|
|
1389
|
+
}),
|
|
1390
|
+
singleColRow("nl-lead-row", "nl-lead-col", [
|
|
1391
|
+
textBlock("nl-lead-eyebrow", doc(p(bold("LEAD ESSAY"))), {
|
|
1392
|
+
color: "#065f46",
|
|
1393
|
+
fontSize: 12,
|
|
1394
|
+
paddingBottom: 8,
|
|
1395
|
+
paddingLeft: 0,
|
|
1396
|
+
paddingRight: 0,
|
|
1397
|
+
paddingTop: 16
|
|
1398
|
+
}),
|
|
1399
|
+
headingBlock("nl-lead-title", 1, headingDoc(p("Why calm interfaces convert better than loud ones")), {
|
|
1400
|
+
paddingBottom: 14,
|
|
1401
|
+
paddingLeft: 0,
|
|
1402
|
+
paddingRight: 0,
|
|
1403
|
+
paddingTop: 0,
|
|
1404
|
+
phone: { fontSize: 26 }
|
|
1405
|
+
}),
|
|
1406
|
+
textBlock("nl-lead-copy", doc(p("Good morning, ", tag("first_name"), "."), p("When every announcement competes with flashing banners and competing buttons, readers tune out. Teams that strip an email back to one clear argument, generous whitespace, and a single obvious action consistently earn higher replies and steadier clicks."), p("In this issue, we break down real campaign before-and-afters from four product teams that simplified their weekly dispatches.")), {
|
|
1407
|
+
paddingBottom: 18,
|
|
1408
|
+
paddingLeft: 0,
|
|
1409
|
+
paddingRight: 0,
|
|
1410
|
+
paddingTop: 0
|
|
1411
|
+
}),
|
|
1412
|
+
buttonBlock("nl-lead-cta", "Read the full essay", "{{cta_url}}", {
|
|
1413
|
+
align: "left",
|
|
1414
|
+
paddingBottom: 8,
|
|
1415
|
+
paddingLeft: 0,
|
|
1416
|
+
paddingRight: 0,
|
|
1417
|
+
paddingTop: 0
|
|
1418
|
+
})
|
|
1419
|
+
], {
|
|
1420
|
+
backgroundColor: "#ffffff",
|
|
1421
|
+
paddingBottom: 20,
|
|
1422
|
+
paddingLeft: 32,
|
|
1423
|
+
paddingRight: 32,
|
|
1424
|
+
paddingTop: 8,
|
|
1425
|
+
phone: {
|
|
1426
|
+
paddingLeft: 20,
|
|
1427
|
+
paddingRight: 20
|
|
1428
|
+
}
|
|
1429
|
+
}),
|
|
1430
|
+
row("nl-picks-row", [col("nl-pick-1-col", 50, [
|
|
1431
|
+
textBlock("nl-pick-1-kicker", doc(p(bold("TYPOGRAPHY"))), {
|
|
1432
|
+
color: "#065f46",
|
|
1433
|
+
fontSize: 11,
|
|
1434
|
+
paddingBottom: 4,
|
|
1435
|
+
paddingLeft: 16,
|
|
1436
|
+
paddingRight: 16,
|
|
1437
|
+
paddingTop: 16
|
|
1438
|
+
}),
|
|
1439
|
+
headingBlock("nl-pick-1-title", 3, headingDoc(p("Pairing serif headings with clean sans copy")), {
|
|
1440
|
+
paddingBottom: 8,
|
|
1441
|
+
paddingLeft: 16,
|
|
1442
|
+
paddingRight: 16,
|
|
1443
|
+
paddingTop: 0
|
|
1444
|
+
}),
|
|
1445
|
+
textBlock("nl-pick-1-body", doc(p("How system font stacks hold their proportions across Apple Mail, Gmail, and Outlook without extra downloads."), p(linkText("Open the typography notes", "{{help_url}}"))), {
|
|
1446
|
+
fontSize: 14,
|
|
1447
|
+
paddingBottom: 16,
|
|
1448
|
+
paddingLeft: 16,
|
|
1449
|
+
paddingRight: 16,
|
|
1450
|
+
paddingTop: 0
|
|
1451
|
+
})
|
|
1452
|
+
], {
|
|
1453
|
+
backgroundColor: "#fafaf9",
|
|
1454
|
+
borderColor: "#e7e5e4",
|
|
1455
|
+
borderStyle: "solid",
|
|
1456
|
+
borderWidth: 1
|
|
1457
|
+
}), col("nl-pick-2-col", 50, [
|
|
1458
|
+
textBlock("nl-pick-2-kicker", doc(p(bold("MEASUREMENT"))), {
|
|
1459
|
+
color: "#065f46",
|
|
1460
|
+
fontSize: 11,
|
|
1461
|
+
paddingBottom: 4,
|
|
1462
|
+
paddingLeft: 16,
|
|
1463
|
+
paddingRight: 16,
|
|
1464
|
+
paddingTop: 16
|
|
1465
|
+
}),
|
|
1466
|
+
headingBlock("nl-pick-2-title", 3, headingDoc(p("Looking past open rates to real engagement")), {
|
|
1467
|
+
paddingBottom: 8,
|
|
1468
|
+
paddingLeft: 16,
|
|
1469
|
+
paddingRight: 16,
|
|
1470
|
+
paddingTop: 0
|
|
1471
|
+
}),
|
|
1472
|
+
textBlock("nl-pick-2-body", doc(p("Why reply rate, link-click depth, and unsubscribes per thousand tell a far truer story about reader trust."), p(linkText("See the metrics guide", "{{cta_url}}"))), {
|
|
1473
|
+
fontSize: 14,
|
|
1474
|
+
paddingBottom: 16,
|
|
1475
|
+
paddingLeft: 16,
|
|
1476
|
+
paddingRight: 16,
|
|
1477
|
+
paddingTop: 0
|
|
1478
|
+
})
|
|
1479
|
+
], {
|
|
1480
|
+
backgroundColor: "#fafaf9",
|
|
1481
|
+
borderColor: "#e7e5e4",
|
|
1482
|
+
borderStyle: "solid",
|
|
1483
|
+
borderWidth: 1
|
|
1484
|
+
})], {
|
|
1485
|
+
backgroundColor: "#ffffff",
|
|
1486
|
+
paddingBottom: 24,
|
|
1487
|
+
paddingLeft: 32,
|
|
1488
|
+
paddingRight: 32,
|
|
1489
|
+
paddingTop: 8,
|
|
1490
|
+
phone: {
|
|
1491
|
+
paddingLeft: 20,
|
|
1492
|
+
paddingRight: 20
|
|
1493
|
+
}
|
|
1494
|
+
}),
|
|
1495
|
+
singleColRow("nl-quote-row", "nl-quote-col", [textBlock("nl-quote-box", doc(p(italic("“Once we cut our newsletter down to one lead idea and two short links, readers started forwarding issues to their teammates every week.”")), p(bold("Hannah Morales"), " · Editorial Lead, Harborline")), {
|
|
1496
|
+
borderColor: "#a7f3d0",
|
|
1497
|
+
borderStyle: "solid",
|
|
1498
|
+
borderWidth: 1,
|
|
1499
|
+
boxBackgroundColor: "#ecfdf5",
|
|
1500
|
+
color: "#064e3b",
|
|
1501
|
+
fontSize: 15,
|
|
1502
|
+
paddingBottom: 20,
|
|
1503
|
+
paddingLeft: 22,
|
|
1504
|
+
paddingRight: 22,
|
|
1505
|
+
paddingTop: 20
|
|
1506
|
+
})], {
|
|
1507
|
+
backgroundColor: "#ffffff",
|
|
1508
|
+
paddingBottom: 28,
|
|
1509
|
+
paddingLeft: 32,
|
|
1510
|
+
paddingRight: 32,
|
|
1511
|
+
paddingTop: 4,
|
|
1512
|
+
phone: {
|
|
1513
|
+
paddingLeft: 20,
|
|
1514
|
+
paddingRight: 20
|
|
1515
|
+
}
|
|
1516
|
+
}),
|
|
1517
|
+
singleColRow("nl-footer-row", "nl-footer-col", [socialBlock("nl-social", [
|
|
1518
|
+
{
|
|
1519
|
+
network: "website",
|
|
1520
|
+
url: "{{website_url}}"
|
|
1521
|
+
},
|
|
1522
|
+
{
|
|
1523
|
+
network: "linkedin",
|
|
1524
|
+
url: "https://linkedin.com/company/northstar"
|
|
1525
|
+
},
|
|
1526
|
+
{
|
|
1527
|
+
network: "x",
|
|
1528
|
+
url: "https://x.com/northstar"
|
|
1529
|
+
}
|
|
1530
|
+
], {
|
|
1531
|
+
align: "center",
|
|
1532
|
+
iconSize: 32,
|
|
1533
|
+
iconStyle: "color",
|
|
1534
|
+
paddingBottom: 14,
|
|
1535
|
+
paddingLeft: 0,
|
|
1536
|
+
paddingRight: 0,
|
|
1537
|
+
paddingTop: 4
|
|
1538
|
+
}), textBlock("nl-footer-text", doc(p(tag("company_name"), " · ", tag("company_address"), br(), linkText("Manage preferences", "{{preferences_url}}"), " · ", linkText("Unsubscribe", "{{unsubscribe_url}}"))), {
|
|
1539
|
+
align: "center",
|
|
1540
|
+
color: "#57534e",
|
|
1541
|
+
fontSize: 13,
|
|
1542
|
+
paddingBottom: 0,
|
|
1543
|
+
paddingLeft: 0,
|
|
1544
|
+
paddingRight: 0,
|
|
1545
|
+
paddingTop: 0
|
|
1546
|
+
})], {
|
|
1547
|
+
backgroundColor: "#fafaf9",
|
|
1548
|
+
paddingBottom: 28,
|
|
1549
|
+
paddingLeft: 32,
|
|
1550
|
+
paddingRight: 32,
|
|
1551
|
+
paddingTop: 20,
|
|
1552
|
+
phone: {
|
|
1553
|
+
paddingLeft: 20,
|
|
1554
|
+
paddingRight: 20
|
|
1555
|
+
}
|
|
1556
|
+
})
|
|
1557
|
+
]));
|
|
1558
|
+
/** Curated 2-column weekly digest designed for fast Monday scanning. */
|
|
1559
|
+
const weeklyDigest = /* #__PURE__ */ defineStarterEmail({
|
|
1560
|
+
category: "editorial",
|
|
1561
|
+
description: "Curated 2-column roundup for busy teams",
|
|
1562
|
+
name: "Weekly digest"
|
|
1563
|
+
}, () => emailDoc({
|
|
1564
|
+
backgroundColor: "#f1f5f9",
|
|
1565
|
+
fontFamily: FONT_SANS,
|
|
1566
|
+
language: "en",
|
|
1567
|
+
preheader: "Four practical stories from engineering, design, and operations in under three minutes.",
|
|
1568
|
+
style: {
|
|
1569
|
+
buttonBackgroundColor: "#1d4ed8",
|
|
1570
|
+
buttonBorderRadius: 6,
|
|
1571
|
+
emailBackgroundColor: "#ffffff",
|
|
1572
|
+
heading1FontSize: 28,
|
|
1573
|
+
heading2FontSize: 20,
|
|
1574
|
+
heading3FontSize: 17,
|
|
1575
|
+
linkColor: "#1d4ed8",
|
|
1576
|
+
textColor: "#0f172a",
|
|
1577
|
+
textFontSize: 15
|
|
1578
|
+
},
|
|
1579
|
+
width: 600
|
|
1580
|
+
}, [
|
|
1581
|
+
singleColRow("wd-banner-row", "wd-banner-col", [
|
|
1582
|
+
textBlock("wd-banner-eyebrow", doc(p(bold("MONDAY BRIEFING"))), {
|
|
1583
|
+
color: "#93c5fd",
|
|
1584
|
+
fontSize: 11,
|
|
1585
|
+
paddingBottom: 6,
|
|
1586
|
+
paddingLeft: 0,
|
|
1587
|
+
paddingRight: 0,
|
|
1588
|
+
paddingTop: 0
|
|
1589
|
+
}),
|
|
1590
|
+
headingBlock("wd-banner-title", 1, headingDoc(p(tag("company_name"), " Weekly Digest")), {
|
|
1591
|
+
color: "#ffffff",
|
|
1592
|
+
fontSize: 28,
|
|
1593
|
+
paddingBottom: 6,
|
|
1594
|
+
paddingLeft: 0,
|
|
1595
|
+
paddingRight: 0,
|
|
1596
|
+
paddingTop: 0,
|
|
1597
|
+
phone: { fontSize: 24 }
|
|
1598
|
+
}),
|
|
1599
|
+
textBlock("wd-banner-sub", doc(p("Four stories curated for ", tag("first_name"), " — distilled so you can scan in two minutes.")), {
|
|
1600
|
+
color: "#cbd5e1",
|
|
1601
|
+
fontSize: 15,
|
|
1602
|
+
paddingBottom: 0,
|
|
1603
|
+
paddingLeft: 0,
|
|
1604
|
+
paddingRight: 0,
|
|
1605
|
+
paddingTop: 0
|
|
1606
|
+
})
|
|
1607
|
+
], {
|
|
1608
|
+
backgroundColor: "#0f172a",
|
|
1609
|
+
paddingBottom: 28,
|
|
1610
|
+
paddingLeft: 32,
|
|
1611
|
+
paddingRight: 32,
|
|
1612
|
+
paddingTop: 28,
|
|
1613
|
+
phone: {
|
|
1614
|
+
paddingLeft: 20,
|
|
1615
|
+
paddingRight: 20
|
|
1616
|
+
}
|
|
1617
|
+
}),
|
|
1618
|
+
row("wd-grid-top-row", [col("wd-card-1-col", 50, [
|
|
1619
|
+
textBlock("wd-card-1-cat", doc(p(bold("DESIGN SYSTEMS"))), {
|
|
1620
|
+
color: "#1d4ed8",
|
|
1621
|
+
fontSize: 11,
|
|
1622
|
+
paddingBottom: 4,
|
|
1623
|
+
paddingLeft: 16,
|
|
1624
|
+
paddingRight: 16,
|
|
1625
|
+
paddingTop: 16
|
|
1626
|
+
}),
|
|
1627
|
+
headingBlock("wd-card-1-title", 3, headingDoc(p("Cutting review cycles with shared tokens")), {
|
|
1628
|
+
paddingBottom: 6,
|
|
1629
|
+
paddingLeft: 16,
|
|
1630
|
+
paddingRight: 16,
|
|
1631
|
+
paddingTop: 0
|
|
1632
|
+
}),
|
|
1633
|
+
textBlock("wd-card-1-body", doc(p("One small set of semantic color and spacing rules keeps multi-brand products consistent without slowing designers down."), p(linkText("Read the design breakdown", "{{cta_url}}"))), {
|
|
1634
|
+
color: "#334155",
|
|
1635
|
+
fontSize: 14,
|
|
1636
|
+
paddingBottom: 16,
|
|
1637
|
+
paddingLeft: 16,
|
|
1638
|
+
paddingRight: 16,
|
|
1639
|
+
paddingTop: 0
|
|
1640
|
+
})
|
|
1641
|
+
], {
|
|
1642
|
+
backgroundColor: "#ffffff",
|
|
1643
|
+
borderColor: "#e2e8f0",
|
|
1644
|
+
borderStyle: "solid",
|
|
1645
|
+
borderWidth: 1
|
|
1646
|
+
}), col("wd-card-2-col", 50, [
|
|
1647
|
+
textBlock("wd-card-2-cat", doc(p(bold("ENGINEERING"))), {
|
|
1648
|
+
color: "#1d4ed8",
|
|
1649
|
+
fontSize: 11,
|
|
1650
|
+
paddingBottom: 4,
|
|
1651
|
+
paddingLeft: 16,
|
|
1652
|
+
paddingRight: 16,
|
|
1653
|
+
paddingTop: 16
|
|
1654
|
+
}),
|
|
1655
|
+
headingBlock("wd-card-2-title", 3, headingDoc(p("Zero-downtime schema upgrades")), {
|
|
1656
|
+
paddingBottom: 6,
|
|
1657
|
+
paddingLeft: 16,
|
|
1658
|
+
paddingRight: 16,
|
|
1659
|
+
paddingTop: 0
|
|
1660
|
+
}),
|
|
1661
|
+
textBlock("wd-card-2-body", doc(p("How expand-and-contract migrations let distributed teams ship document format versions safely without blocking active sessions."), p(linkText("View the migration checklist", "{{changelog_url}}"))), {
|
|
1662
|
+
color: "#334155",
|
|
1663
|
+
fontSize: 14,
|
|
1664
|
+
paddingBottom: 16,
|
|
1665
|
+
paddingLeft: 16,
|
|
1666
|
+
paddingRight: 16,
|
|
1667
|
+
paddingTop: 0
|
|
1668
|
+
})
|
|
1669
|
+
], {
|
|
1670
|
+
backgroundColor: "#ffffff",
|
|
1671
|
+
borderColor: "#e2e8f0",
|
|
1672
|
+
borderStyle: "solid",
|
|
1673
|
+
borderWidth: 1
|
|
1674
|
+
})], {
|
|
1675
|
+
backgroundColor: "#ffffff",
|
|
1676
|
+
paddingBottom: 12,
|
|
1677
|
+
paddingLeft: 24,
|
|
1678
|
+
paddingRight: 24,
|
|
1679
|
+
paddingTop: 24,
|
|
1680
|
+
phone: {
|
|
1681
|
+
paddingLeft: 16,
|
|
1682
|
+
paddingRight: 16
|
|
1683
|
+
}
|
|
1684
|
+
}),
|
|
1685
|
+
row("wd-grid-bot-row", [col("wd-card-3-col", 50, [
|
|
1686
|
+
textBlock("wd-card-3-cat", doc(p(bold("CUSTOMER CRAFT"))), {
|
|
1687
|
+
color: "#1d4ed8",
|
|
1688
|
+
fontSize: 11,
|
|
1689
|
+
paddingBottom: 4,
|
|
1690
|
+
paddingLeft: 16,
|
|
1691
|
+
paddingRight: 16,
|
|
1692
|
+
paddingTop: 16
|
|
1693
|
+
}),
|
|
1694
|
+
headingBlock("wd-card-3-title", 3, headingDoc(p("Turning support tickets into roadmap wins")), {
|
|
1695
|
+
paddingBottom: 6,
|
|
1696
|
+
paddingLeft: 16,
|
|
1697
|
+
paddingRight: 16,
|
|
1698
|
+
paddingTop: 0
|
|
1699
|
+
}),
|
|
1700
|
+
textBlock("wd-card-3-body", doc(p("Tagging recurring customer friction in five minutes a week reveals which small fixes unlock the biggest retention gains."), p(linkText("Explore the workflow template", "{{help_url}}"))), {
|
|
1701
|
+
color: "#334155",
|
|
1702
|
+
fontSize: 14,
|
|
1703
|
+
paddingBottom: 16,
|
|
1704
|
+
paddingLeft: 16,
|
|
1705
|
+
paddingRight: 16,
|
|
1706
|
+
paddingTop: 0
|
|
1707
|
+
})
|
|
1708
|
+
], {
|
|
1709
|
+
backgroundColor: "#ffffff",
|
|
1710
|
+
borderColor: "#e2e8f0",
|
|
1711
|
+
borderStyle: "solid",
|
|
1712
|
+
borderWidth: 1
|
|
1713
|
+
}), col("wd-card-4-col", 50, [
|
|
1714
|
+
textBlock("wd-card-4-cat", doc(p(bold("OPERATIONS"))), {
|
|
1715
|
+
color: "#1d4ed8",
|
|
1716
|
+
fontSize: 11,
|
|
1717
|
+
paddingBottom: 4,
|
|
1718
|
+
paddingLeft: 16,
|
|
1719
|
+
paddingRight: 16,
|
|
1720
|
+
paddingTop: 16
|
|
1721
|
+
}),
|
|
1722
|
+
headingBlock("wd-card-4-title", 3, headingDoc(p("The 15-minute Monday metrics review")), {
|
|
1723
|
+
paddingBottom: 6,
|
|
1724
|
+
paddingLeft: 16,
|
|
1725
|
+
paddingRight: 16,
|
|
1726
|
+
paddingTop: 0
|
|
1727
|
+
}),
|
|
1728
|
+
textBlock("wd-card-4-body", doc(p("A concise meeting format that tracks activation, delivery health, and customer response times without sprawling slide decks."), p(linkText("Get the review agenda", "{{website_url}}"))), {
|
|
1729
|
+
color: "#334155",
|
|
1730
|
+
fontSize: 14,
|
|
1731
|
+
paddingBottom: 16,
|
|
1732
|
+
paddingLeft: 16,
|
|
1733
|
+
paddingRight: 16,
|
|
1734
|
+
paddingTop: 0
|
|
1735
|
+
})
|
|
1736
|
+
], {
|
|
1737
|
+
backgroundColor: "#ffffff",
|
|
1738
|
+
borderColor: "#e2e8f0",
|
|
1739
|
+
borderStyle: "solid",
|
|
1740
|
+
borderWidth: 1
|
|
1741
|
+
})], {
|
|
1742
|
+
backgroundColor: "#ffffff",
|
|
1743
|
+
paddingBottom: 20,
|
|
1744
|
+
paddingLeft: 24,
|
|
1745
|
+
paddingRight: 24,
|
|
1746
|
+
paddingTop: 0,
|
|
1747
|
+
phone: {
|
|
1748
|
+
paddingLeft: 16,
|
|
1749
|
+
paddingRight: 16
|
|
1750
|
+
}
|
|
1751
|
+
}),
|
|
1752
|
+
singleColRow("wd-cta-row", "wd-cta-col", [buttonBlock("wd-cta-btn", "Browse the full weekly archive", "{{cta_url}}", {
|
|
1753
|
+
align: "center",
|
|
1754
|
+
paddingBottom: 8,
|
|
1755
|
+
paddingLeft: 0,
|
|
1756
|
+
paddingRight: 0,
|
|
1757
|
+
paddingTop: 4
|
|
1758
|
+
})], {
|
|
1759
|
+
backgroundColor: "#ffffff",
|
|
1760
|
+
paddingBottom: 28,
|
|
1761
|
+
paddingLeft: 24,
|
|
1762
|
+
paddingRight: 24,
|
|
1763
|
+
paddingTop: 4
|
|
1764
|
+
}),
|
|
1765
|
+
singleColRow("wd-footer-row", "wd-footer-col", [textBlock("wd-footer-text", doc(p(tag("company_name"), " · ", tag("company_address"), br(), linkText("Manage digest preferences", "{{preferences_url}}"), " · ", linkText("Unsubscribe from weekly digests", "{{unsubscribe_url}}"))), {
|
|
1766
|
+
align: "center",
|
|
1767
|
+
color: "#475569",
|
|
1768
|
+
fontSize: 13,
|
|
1769
|
+
paddingBottom: 0,
|
|
1770
|
+
paddingLeft: 0,
|
|
1771
|
+
paddingRight: 0,
|
|
1772
|
+
paddingTop: 0
|
|
1773
|
+
})], {
|
|
1774
|
+
backgroundColor: "#f8fafc",
|
|
1775
|
+
paddingBottom: 24,
|
|
1776
|
+
paddingLeft: 24,
|
|
1777
|
+
paddingRight: 24,
|
|
1778
|
+
paddingTop: 20
|
|
1779
|
+
})
|
|
1780
|
+
]));
|
|
1781
|
+
/** Minimal executive or operational status announcement with clear timeline. */
|
|
1782
|
+
const companyAnnouncement = /* #__PURE__ */ defineStarterEmail({
|
|
1783
|
+
category: "editorial",
|
|
1784
|
+
description: "Minimal executive update and timeline",
|
|
1785
|
+
name: "Company announcement"
|
|
1786
|
+
}, () => emailDoc({
|
|
1787
|
+
backgroundColor: "#f4f4f5",
|
|
1788
|
+
fontFamily: FONT_SANS,
|
|
1789
|
+
language: "en",
|
|
1790
|
+
preheader: "Important update on our European infrastructure expansion and reliability milestones.",
|
|
1791
|
+
style: {
|
|
1792
|
+
buttonBackgroundColor: "#1e3a8a",
|
|
1793
|
+
buttonBorderRadius: 4,
|
|
1794
|
+
emailBackgroundColor: "#ffffff",
|
|
1795
|
+
heading1FontSize: 28,
|
|
1796
|
+
heading2FontSize: 20,
|
|
1797
|
+
heading3FontSize: 16,
|
|
1798
|
+
headingFontFamily: FONT_SERIF,
|
|
1799
|
+
linkColor: "#1e3a8a",
|
|
1800
|
+
textColor: "#18181b",
|
|
1801
|
+
textFontSize: 16
|
|
1802
|
+
},
|
|
1803
|
+
width: 600
|
|
1804
|
+
}, [
|
|
1805
|
+
singleColRow("ca-header-row", "ca-header-col", [dividerBlock("ca-top-accent", {
|
|
1806
|
+
color: "#1e3a8a",
|
|
1807
|
+
paddingBottom: 20,
|
|
1808
|
+
paddingLeft: 0,
|
|
1809
|
+
paddingRight: 0,
|
|
1810
|
+
paddingTop: 0,
|
|
1811
|
+
thickness: 3
|
|
1812
|
+
}), textBlock("ca-header-label", doc(p(tag("company_name", [{ type: "bold" }]), " · Company Announcement")), {
|
|
1813
|
+
color: "#52525b",
|
|
1814
|
+
fontSize: 13,
|
|
1815
|
+
paddingBottom: 8,
|
|
1816
|
+
paddingLeft: 0,
|
|
1817
|
+
paddingRight: 0,
|
|
1818
|
+
paddingTop: 0
|
|
1819
|
+
})], {
|
|
1820
|
+
backgroundColor: "#ffffff",
|
|
1821
|
+
paddingBottom: 0,
|
|
1822
|
+
paddingLeft: 32,
|
|
1823
|
+
paddingRight: 32,
|
|
1824
|
+
paddingTop: 0,
|
|
1825
|
+
phone: {
|
|
1826
|
+
paddingLeft: 20,
|
|
1827
|
+
paddingRight: 20
|
|
1828
|
+
}
|
|
1829
|
+
}),
|
|
1830
|
+
singleColRow("ca-body-row", "ca-body-col", [
|
|
1831
|
+
headingBlock("ca-title", 1, headingDoc(p("Expanding our European infrastructure and reliability commitments")), {
|
|
1832
|
+
paddingBottom: 14,
|
|
1833
|
+
paddingLeft: 0,
|
|
1834
|
+
paddingRight: 0,
|
|
1835
|
+
paddingTop: 8,
|
|
1836
|
+
phone: { fontSize: 24 }
|
|
1837
|
+
}),
|
|
1838
|
+
textBlock("ca-intro", doc(p("Hi ", tag("first_name"), ","), p("Next month, we are opening our Frankfurt data region to serve European workspaces with lower latency and local data residency. Every existing workspace remains unaffected, and no downtime or configuration changes are required.")), {
|
|
1839
|
+
paddingBottom: 16,
|
|
1840
|
+
paddingLeft: 0,
|
|
1841
|
+
paddingRight: 0,
|
|
1842
|
+
paddingTop: 0
|
|
1843
|
+
}),
|
|
1844
|
+
textBlock("ca-timeline-box", doc(p(bold("Rollout schedule")), ol(p(bold("May 4: "), "New workspaces can select the EU region during setup."), p(bold("May 18: "), "Self-serve region migration opens for existing Team plans."), p(bold("June 1: "), "Published 99.98% uptime commitments take effect across all regions."))), {
|
|
1845
|
+
borderColor: "#d4d4d8",
|
|
1846
|
+
borderRadius: 6,
|
|
1847
|
+
borderStyle: "solid",
|
|
1848
|
+
borderWidth: 1,
|
|
1849
|
+
boxBackgroundColor: "#f4f4f5",
|
|
1850
|
+
color: "#18181b",
|
|
1851
|
+
fontSize: 15,
|
|
1852
|
+
paddingBottom: 18,
|
|
1853
|
+
paddingLeft: 20,
|
|
1854
|
+
paddingRight: 20,
|
|
1855
|
+
paddingTop: 18
|
|
1856
|
+
}),
|
|
1857
|
+
buttonBlock("ca-status-btn", "View live status and migration FAQ", "{{status_url}}", {
|
|
1858
|
+
align: "left",
|
|
1859
|
+
paddingBottom: 18,
|
|
1860
|
+
paddingLeft: 0,
|
|
1861
|
+
paddingRight: 0,
|
|
1862
|
+
paddingTop: 20
|
|
1863
|
+
}),
|
|
1864
|
+
textBlock("ca-signoff", doc(p("If your security or compliance team needs our updated regional documentation, reach us any time at ", tagLink("support_email", "mailto:{{support_email}}"), "."), p(tag("sender_name", [{ type: "bold" }]), br(), tag("sender_role"))), {
|
|
1865
|
+
paddingBottom: 8,
|
|
1866
|
+
paddingLeft: 0,
|
|
1867
|
+
paddingRight: 0,
|
|
1868
|
+
paddingTop: 0
|
|
1869
|
+
})
|
|
1870
|
+
], {
|
|
1871
|
+
backgroundColor: "#ffffff",
|
|
1872
|
+
paddingBottom: 24,
|
|
1873
|
+
paddingLeft: 32,
|
|
1874
|
+
paddingRight: 32,
|
|
1875
|
+
paddingTop: 8,
|
|
1876
|
+
phone: {
|
|
1877
|
+
paddingLeft: 20,
|
|
1878
|
+
paddingRight: 20
|
|
1879
|
+
}
|
|
1880
|
+
}),
|
|
1881
|
+
singleColRow("ca-footer-row", "ca-footer-col", [dividerBlock("ca-footer-rule", {
|
|
1882
|
+
color: "#e4e4e7",
|
|
1883
|
+
paddingBottom: 16,
|
|
1884
|
+
paddingLeft: 0,
|
|
1885
|
+
paddingRight: 0,
|
|
1886
|
+
paddingTop: 0,
|
|
1887
|
+
thickness: 1
|
|
1888
|
+
}), textBlock("ca-footer-text", doc(p(tag("company_name"), " · ", tag("company_address"), br(), linkText("Manage preferences", "{{preferences_url}}"), " · ", linkText("Unsubscribe", "{{unsubscribe_url}}"))), {
|
|
1889
|
+
color: "#52525b",
|
|
1890
|
+
fontSize: 13,
|
|
1891
|
+
paddingBottom: 0,
|
|
1892
|
+
paddingLeft: 0,
|
|
1893
|
+
paddingRight: 0,
|
|
1894
|
+
paddingTop: 0
|
|
1895
|
+
})], {
|
|
1896
|
+
backgroundColor: "#fafafa",
|
|
1897
|
+
paddingBottom: 28,
|
|
1898
|
+
paddingLeft: 32,
|
|
1899
|
+
paddingRight: 32,
|
|
1900
|
+
paddingTop: 16,
|
|
1901
|
+
phone: {
|
|
1902
|
+
paddingLeft: 20,
|
|
1903
|
+
paddingRight: 20
|
|
1904
|
+
}
|
|
1905
|
+
})
|
|
1906
|
+
]));
|
|
1907
|
+
// src/starters/engagement.ts
|
|
1908
|
+
/** Live workshop or webinar invitation with date band, agenda, and speaker cards. */
|
|
1909
|
+
const eventInvite = /* #__PURE__ */ defineStarterEmail({
|
|
1910
|
+
category: "engagement",
|
|
1911
|
+
description: "Live session invite with date details and agenda",
|
|
1912
|
+
name: "Event invitation"
|
|
1913
|
+
}, () => emailDoc({
|
|
1914
|
+
backgroundColor: "#f1f5f9",
|
|
1915
|
+
fontFamily: FONT_SANS,
|
|
1916
|
+
language: "en",
|
|
1917
|
+
preheader: "Join us live on {{event_date}} for a 45-minute workshop plus open Q&A.",
|
|
1918
|
+
style: {
|
|
1919
|
+
buttonBackgroundColor: "#0f766e",
|
|
1920
|
+
buttonBorderRadius: 100,
|
|
1921
|
+
emailBackgroundColor: "#ffffff",
|
|
1922
|
+
heading1FontSize: 30,
|
|
1923
|
+
heading2FontSize: 20,
|
|
1924
|
+
heading3FontSize: 16,
|
|
1925
|
+
headingFontFamily: FONT_SERIF,
|
|
1926
|
+
linkColor: "#0f766e",
|
|
1927
|
+
textColor: "#0f172a",
|
|
1928
|
+
textFontSize: 16
|
|
1929
|
+
},
|
|
1930
|
+
width: 600
|
|
1931
|
+
}, [
|
|
1932
|
+
singleColRow("ei-hero-row", "ei-hero-col", [
|
|
1933
|
+
textBlock("ei-eyebrow", doc(p(bold("LIVE WORKSHOP"), " · ", tag("company_name"))), {
|
|
1934
|
+
color: "#ccfbf1",
|
|
1935
|
+
fontSize: 12,
|
|
1936
|
+
paddingBottom: 10,
|
|
1937
|
+
paddingLeft: 0,
|
|
1938
|
+
paddingRight: 0,
|
|
1939
|
+
paddingTop: 0
|
|
1940
|
+
}),
|
|
1941
|
+
headingBlock("ei-title", 1, headingDoc(p("Designing emails that render reliably in every inbox")), {
|
|
1942
|
+
color: "#ffffff",
|
|
1943
|
+
paddingBottom: 12,
|
|
1944
|
+
paddingLeft: 0,
|
|
1945
|
+
paddingRight: 0,
|
|
1946
|
+
paddingTop: 0,
|
|
1947
|
+
phone: { fontSize: 24 }
|
|
1948
|
+
}),
|
|
1949
|
+
textBlock("ei-date-line", doc(p(tag("event_date", [{ type: "bold" }]), " · 45 min + live Q&A")), {
|
|
1950
|
+
color: "#f0fdfa",
|
|
1951
|
+
fontSize: 15,
|
|
1952
|
+
paddingBottom: 0,
|
|
1953
|
+
paddingLeft: 0,
|
|
1954
|
+
paddingRight: 0,
|
|
1955
|
+
paddingTop: 0
|
|
1956
|
+
})
|
|
1957
|
+
], {
|
|
1958
|
+
backgroundColor: "#115e59",
|
|
1959
|
+
paddingBottom: 34,
|
|
1960
|
+
paddingLeft: 32,
|
|
1961
|
+
paddingRight: 32,
|
|
1962
|
+
paddingTop: 34,
|
|
1963
|
+
phone: {
|
|
1964
|
+
paddingBottom: 26,
|
|
1965
|
+
paddingLeft: 20,
|
|
1966
|
+
paddingRight: 20,
|
|
1967
|
+
paddingTop: 26
|
|
1968
|
+
}
|
|
1969
|
+
}),
|
|
1970
|
+
singleColRow("ei-body-row", "ei-body-col", [
|
|
1971
|
+
textBlock("ei-intro", doc(p("Hi ", tag("first_name"), ","), p("Join our engineering and design leads for a practical live walkthrough on structuring responsive campaigns, handling Outlook quirks cleanly, and automating pre-send checks. Everyone who registers receives the recording and starter files.")), {
|
|
1972
|
+
paddingBottom: 18,
|
|
1973
|
+
paddingLeft: 0,
|
|
1974
|
+
paddingRight: 0,
|
|
1975
|
+
paddingTop: 8
|
|
1976
|
+
}),
|
|
1977
|
+
buttonBlock("ei-rsvp-btn", "Reserve your seat", "{{rsvp_url}}", {
|
|
1978
|
+
align: "left",
|
|
1979
|
+
paddingBottom: 22,
|
|
1980
|
+
paddingLeft: 0,
|
|
1981
|
+
paddingRight: 0,
|
|
1982
|
+
paddingTop: 0
|
|
1983
|
+
}),
|
|
1984
|
+
headingBlock("ei-agenda-title", 2, headingDoc(p("What we will cover")), {
|
|
1985
|
+
paddingBottom: 10,
|
|
1986
|
+
paddingLeft: 0,
|
|
1987
|
+
paddingRight: 0,
|
|
1988
|
+
paddingTop: 0
|
|
1989
|
+
}),
|
|
1990
|
+
textBlock("ei-agenda-list", doc(ul(p(bold("Responsive column patterns: "), "When to stack columns on phones and when to keep metadata side by side."), p(bold("Accessible contrast in dark and light rows: "), "Testing text, buttons, and links before hitting send."), p(bold("Live Q&A: "), "Bring your toughest client rendering question for real-time troubleshooting."))), {
|
|
1991
|
+
color: "#334155",
|
|
1992
|
+
fontSize: 15,
|
|
1993
|
+
paddingBottom: 8,
|
|
1994
|
+
paddingLeft: 0,
|
|
1995
|
+
paddingRight: 0,
|
|
1996
|
+
paddingTop: 0
|
|
1997
|
+
})
|
|
1998
|
+
], {
|
|
1999
|
+
backgroundColor: "#ffffff",
|
|
2000
|
+
paddingBottom: 16,
|
|
2001
|
+
paddingLeft: 32,
|
|
2002
|
+
paddingRight: 32,
|
|
2003
|
+
paddingTop: 20,
|
|
2004
|
+
phone: {
|
|
2005
|
+
paddingLeft: 20,
|
|
2006
|
+
paddingRight: 20
|
|
2007
|
+
}
|
|
2008
|
+
}),
|
|
2009
|
+
row("ei-speakers-row", [col("ei-speaker-1-col", 50, [textBlock("ei-speaker-1", doc(p(bold("Nadia Patel"), br(), "Principal Email Engineer")), {
|
|
2010
|
+
color: "#1e293b",
|
|
2011
|
+
fontSize: 14,
|
|
2012
|
+
paddingBottom: 14,
|
|
2013
|
+
paddingLeft: 16,
|
|
2014
|
+
paddingRight: 16,
|
|
2015
|
+
paddingTop: 14
|
|
2016
|
+
})], {
|
|
2017
|
+
backgroundColor: "#f8fafc",
|
|
2018
|
+
borderColor: "#e2e8f0",
|
|
2019
|
+
borderStyle: "solid",
|
|
2020
|
+
borderWidth: 1
|
|
2021
|
+
}), col("ei-speaker-2-col", 50, [textBlock("ei-speaker-2", doc(p(bold("David Chen"), br(), "Head of Design Systems")), {
|
|
2022
|
+
color: "#1e293b",
|
|
2023
|
+
fontSize: 14,
|
|
2024
|
+
paddingBottom: 14,
|
|
2025
|
+
paddingLeft: 16,
|
|
2026
|
+
paddingRight: 16,
|
|
2027
|
+
paddingTop: 14
|
|
2028
|
+
})], {
|
|
2029
|
+
backgroundColor: "#f8fafc",
|
|
2030
|
+
borderColor: "#e2e8f0",
|
|
2031
|
+
borderStyle: "solid",
|
|
2032
|
+
borderWidth: 1
|
|
2033
|
+
})], {
|
|
2034
|
+
backgroundColor: "#ffffff",
|
|
2035
|
+
paddingBottom: 28,
|
|
2036
|
+
paddingLeft: 32,
|
|
2037
|
+
paddingRight: 32,
|
|
2038
|
+
paddingTop: 8,
|
|
2039
|
+
phone: {
|
|
2040
|
+
paddingLeft: 20,
|
|
2041
|
+
paddingRight: 20
|
|
2042
|
+
}
|
|
2043
|
+
}),
|
|
2044
|
+
singleColRow("ei-footer-row", "ei-footer-col", [socialBlock("ei-social", [
|
|
2045
|
+
{
|
|
2046
|
+
network: "website",
|
|
2047
|
+
url: "{{website_url}}"
|
|
2048
|
+
},
|
|
2049
|
+
{
|
|
2050
|
+
network: "linkedin",
|
|
2051
|
+
url: "https://linkedin.com/company/northstar"
|
|
2052
|
+
},
|
|
2053
|
+
{
|
|
2054
|
+
network: "youtube",
|
|
2055
|
+
url: "https://youtube.com/@northstar"
|
|
2056
|
+
}
|
|
2057
|
+
], {
|
|
2058
|
+
align: "center",
|
|
2059
|
+
iconSize: 32,
|
|
2060
|
+
iconStyle: "color",
|
|
2061
|
+
paddingBottom: 12,
|
|
2062
|
+
paddingLeft: 0,
|
|
2063
|
+
paddingRight: 0,
|
|
2064
|
+
paddingTop: 4
|
|
2065
|
+
}), textBlock("ei-footer-text", doc(p(tag("company_name"), " · ", tag("company_address"), br(), linkText("Manage preferences", "{{preferences_url}}"), " · ", linkText("Unsubscribe from event invitations", "{{unsubscribe_url}}"))), {
|
|
2066
|
+
align: "center",
|
|
2067
|
+
color: "#475569",
|
|
2068
|
+
fontSize: 13,
|
|
2069
|
+
paddingBottom: 0,
|
|
2070
|
+
paddingLeft: 0,
|
|
2071
|
+
paddingRight: 0,
|
|
2072
|
+
paddingTop: 0
|
|
2073
|
+
})], {
|
|
2074
|
+
backgroundColor: "#f8fafc",
|
|
2075
|
+
paddingBottom: 24,
|
|
2076
|
+
paddingLeft: 28,
|
|
2077
|
+
paddingRight: 28,
|
|
2078
|
+
paddingTop: 18,
|
|
2079
|
+
phone: {
|
|
2080
|
+
paddingLeft: 20,
|
|
2081
|
+
paddingRight: 20
|
|
2082
|
+
}
|
|
2083
|
+
})
|
|
2084
|
+
]));
|
|
2085
|
+
/** Friendly win-back and check-in email with zero guilt and clear opt-out. */
|
|
2086
|
+
const reengagement = /* #__PURE__ */ defineStarterEmail({
|
|
2087
|
+
category: "engagement",
|
|
2088
|
+
description: "Friendly low-pressure check-in with what's new",
|
|
2089
|
+
name: "Win-back check-in"
|
|
2090
|
+
}, () => emailDoc({
|
|
2091
|
+
backgroundColor: "#fafaf9",
|
|
2092
|
+
fontFamily: FONT_SANS,
|
|
2093
|
+
language: "en",
|
|
2094
|
+
preheader: "Three upgrades waiting in your workspace whenever you are ready to drop back in.",
|
|
2095
|
+
style: {
|
|
2096
|
+
buttonBackgroundColor: "#9a3412",
|
|
2097
|
+
buttonBorderRadius: 6,
|
|
2098
|
+
emailBackgroundColor: "#ffffff",
|
|
2099
|
+
heading1FontSize: 28,
|
|
2100
|
+
heading3FontSize: 16,
|
|
2101
|
+
headingFontFamily: FONT_SERIF,
|
|
2102
|
+
linkColor: "#9a3412",
|
|
2103
|
+
textColor: "#1c1917",
|
|
2104
|
+
textFontSize: 16
|
|
2105
|
+
},
|
|
2106
|
+
width: 560
|
|
2107
|
+
}, [
|
|
2108
|
+
singleColRow("re-header-row", "re-header-col", [textBlock("re-brand", doc(p(tag("company_name", [{ type: "bold" }]))), {
|
|
2109
|
+
color: "#1c1917",
|
|
2110
|
+
fontSize: 17,
|
|
2111
|
+
paddingBottom: 14,
|
|
2112
|
+
paddingLeft: 0,
|
|
2113
|
+
paddingRight: 0,
|
|
2114
|
+
paddingTop: 4
|
|
2115
|
+
}), dividerBlock("re-top-rule", {
|
|
2116
|
+
color: "#e7e5e4",
|
|
2117
|
+
paddingBottom: 0,
|
|
2118
|
+
paddingLeft: 0,
|
|
2119
|
+
paddingRight: 0,
|
|
2120
|
+
paddingTop: 0,
|
|
2121
|
+
thickness: 1
|
|
2122
|
+
})], {
|
|
2123
|
+
backgroundColor: "#ffffff",
|
|
2124
|
+
paddingBottom: 8,
|
|
2125
|
+
paddingLeft: 32,
|
|
2126
|
+
paddingRight: 32,
|
|
2127
|
+
paddingTop: 24,
|
|
2128
|
+
phone: {
|
|
2129
|
+
paddingLeft: 20,
|
|
2130
|
+
paddingRight: 20
|
|
2131
|
+
}
|
|
2132
|
+
}),
|
|
2133
|
+
singleColRow("re-body-row", "re-body-col", [
|
|
2134
|
+
headingBlock("re-title", 1, headingDoc(p("It has been a while, ", tag("first_name"))), {
|
|
2135
|
+
paddingBottom: 12,
|
|
2136
|
+
paddingLeft: 0,
|
|
2137
|
+
paddingRight: 0,
|
|
2138
|
+
paddingTop: 12,
|
|
2139
|
+
phone: { fontSize: 24 }
|
|
2140
|
+
}),
|
|
2141
|
+
textBlock("re-intro", doc(p("We noticed you have not opened your ", tag("company_name"), " workspace recently, so we wanted to share a brief update on what changed since your last visit.")), {
|
|
2142
|
+
paddingBottom: 16,
|
|
2143
|
+
paddingLeft: 0,
|
|
2144
|
+
paddingRight: 0,
|
|
2145
|
+
paddingTop: 0
|
|
2146
|
+
}),
|
|
2147
|
+
textBlock("re-updates-box", doc(p(bold("Three upgrades waiting in your account")), ul(p(bold("Saved row library: "), "Reuse approved headers, metrics, and footers across every new email."), p(bold("Phone-specific spacing: "), "Tune font sizes and padding for small screens without breaking desktop layout."), p(bold("One-click pre-send checks: "), "Verify contrast, alt text, and unsubscribe links before exporting."))), {
|
|
2148
|
+
borderColor: "#e7e5e4",
|
|
2149
|
+
borderRadius: 8,
|
|
2150
|
+
borderStyle: "solid",
|
|
2151
|
+
borderWidth: 1,
|
|
2152
|
+
boxBackgroundColor: "#f5f5f4",
|
|
2153
|
+
color: "#1c1917",
|
|
2154
|
+
fontSize: 15,
|
|
2155
|
+
paddingBottom: 18,
|
|
2156
|
+
paddingLeft: 20,
|
|
2157
|
+
paddingRight: 20,
|
|
2158
|
+
paddingTop: 18
|
|
2159
|
+
}),
|
|
2160
|
+
buttonBlock("re-cta", "Return to your workspace", "{{app_url}}", {
|
|
2161
|
+
align: "left",
|
|
2162
|
+
paddingBottom: 18,
|
|
2163
|
+
paddingLeft: 0,
|
|
2164
|
+
paddingRight: 0,
|
|
2165
|
+
paddingTop: 22
|
|
2166
|
+
}),
|
|
2167
|
+
textBlock("re-choice", doc(p("If this is not the right time, no problem at all — you can ", linkText("unsubscribe in one click", "{{unsubscribe_url}}"), " and we will stop sending check-ins."), p("— ", tag("sender_name", [{ type: "bold" }]))), {
|
|
2168
|
+
color: "#44403c",
|
|
2169
|
+
fontSize: 15,
|
|
2170
|
+
paddingBottom: 8,
|
|
2171
|
+
paddingLeft: 0,
|
|
2172
|
+
paddingRight: 0,
|
|
2173
|
+
paddingTop: 0
|
|
2174
|
+
})
|
|
2175
|
+
], {
|
|
2176
|
+
backgroundColor: "#ffffff",
|
|
2177
|
+
paddingBottom: 24,
|
|
2178
|
+
paddingLeft: 32,
|
|
2179
|
+
paddingRight: 32,
|
|
2180
|
+
paddingTop: 4,
|
|
2181
|
+
phone: {
|
|
2182
|
+
paddingLeft: 20,
|
|
2183
|
+
paddingRight: 20
|
|
2184
|
+
}
|
|
2185
|
+
}),
|
|
2186
|
+
singleColRow("re-footer-row", "re-footer-col", [textBlock("re-footer-text", doc(p(tag("company_name"), " · ", tag("company_address"), br(), linkText("Manage preferences", "{{preferences_url}}"), " · ", linkText("Unsubscribe", "{{unsubscribe_url}}"))), {
|
|
2187
|
+
align: "center",
|
|
2188
|
+
color: "#57534e",
|
|
2189
|
+
fontSize: 13,
|
|
2190
|
+
paddingBottom: 0,
|
|
2191
|
+
paddingLeft: 0,
|
|
2192
|
+
paddingRight: 0,
|
|
2193
|
+
paddingTop: 0
|
|
2194
|
+
})], {
|
|
2195
|
+
backgroundColor: "#f5f5f4",
|
|
2196
|
+
paddingBottom: 24,
|
|
2197
|
+
paddingLeft: 24,
|
|
2198
|
+
paddingRight: 24,
|
|
2199
|
+
paddingTop: 20
|
|
2200
|
+
})
|
|
2201
|
+
]));
|
|
2202
|
+
/** Clean retail or seasonal offer without visual clutter. */
|
|
2203
|
+
const promoOffer = /* #__PURE__ */ defineStarterEmail({
|
|
2204
|
+
category: "engagement",
|
|
2205
|
+
description: "Clean retail promotion with offer code box",
|
|
2206
|
+
name: "Seasonal offer"
|
|
2207
|
+
}, () => emailDoc({
|
|
2208
|
+
backgroundColor: "#f5f5f4",
|
|
2209
|
+
fontFamily: FONT_SANS,
|
|
2210
|
+
language: "en",
|
|
2211
|
+
preheader: "Save 25% through {{offer_expires}} with code {{offer_code}} at checkout.",
|
|
2212
|
+
style: {
|
|
2213
|
+
buttonBackgroundColor: "#9f1239",
|
|
2214
|
+
buttonBorderRadius: 0,
|
|
2215
|
+
emailBackgroundColor: "#ffffff",
|
|
2216
|
+
heading1FontSize: 34,
|
|
2217
|
+
heading2FontSize: 22,
|
|
2218
|
+
heading3FontSize: 17,
|
|
2219
|
+
headingFontFamily: FONT_SERIF,
|
|
2220
|
+
linkColor: "#9f1239",
|
|
2221
|
+
textColor: "#18181b",
|
|
2222
|
+
textFontSize: 15
|
|
2223
|
+
},
|
|
2224
|
+
width: 600
|
|
2225
|
+
}, [
|
|
2226
|
+
singleColRow("po-header-row", "po-header-col", [textBlock("po-brand", doc(p(tag("company_name", [{ type: "bold" }]))), {
|
|
2227
|
+
align: "center",
|
|
2228
|
+
color: "#18181b",
|
|
2229
|
+
fontSize: 20,
|
|
2230
|
+
paddingBottom: 8,
|
|
2231
|
+
paddingLeft: 0,
|
|
2232
|
+
paddingRight: 0,
|
|
2233
|
+
paddingTop: 4
|
|
2234
|
+
}), menuBlock("po-menu", [
|
|
2235
|
+
{
|
|
2236
|
+
label: "New arrivals",
|
|
2237
|
+
url: "{{cta_url}}"
|
|
2238
|
+
},
|
|
2239
|
+
{
|
|
2240
|
+
label: "Bestsellers",
|
|
2241
|
+
url: "{{website_url}}"
|
|
2242
|
+
},
|
|
2243
|
+
{
|
|
2244
|
+
label: "Gift sets",
|
|
2245
|
+
url: "{{cta_url}}"
|
|
2246
|
+
}
|
|
2247
|
+
], {
|
|
2248
|
+
align: "center",
|
|
2249
|
+
color: "#3f3f46",
|
|
2250
|
+
fontSize: 13,
|
|
2251
|
+
gap: 24,
|
|
2252
|
+
paddingBottom: 4,
|
|
2253
|
+
paddingLeft: 0,
|
|
2254
|
+
paddingRight: 0,
|
|
2255
|
+
paddingTop: 0
|
|
2256
|
+
})], {
|
|
2257
|
+
backgroundColor: "#ffffff",
|
|
2258
|
+
paddingBottom: 16,
|
|
2259
|
+
paddingLeft: 24,
|
|
2260
|
+
paddingRight: 24,
|
|
2261
|
+
paddingTop: 20
|
|
2262
|
+
}),
|
|
2263
|
+
singleColRow("po-hero-row", "po-hero-col", [
|
|
2264
|
+
textBlock("po-eyebrow", doc(p(bold("SEASONAL OFFER"))), {
|
|
2265
|
+
align: "center",
|
|
2266
|
+
color: "#fde68a",
|
|
2267
|
+
fontSize: 12,
|
|
2268
|
+
paddingBottom: 10,
|
|
2269
|
+
paddingLeft: 0,
|
|
2270
|
+
paddingRight: 0,
|
|
2271
|
+
paddingTop: 0
|
|
2272
|
+
}),
|
|
2273
|
+
headingBlock("po-title", 1, headingDoc(p("Save 25% on your spring refresh")), {
|
|
2274
|
+
align: "center",
|
|
2275
|
+
color: "#ffffff",
|
|
2276
|
+
paddingBottom: 12,
|
|
2277
|
+
paddingLeft: 0,
|
|
2278
|
+
paddingRight: 0,
|
|
2279
|
+
paddingTop: 0,
|
|
2280
|
+
phone: { fontSize: 26 }
|
|
2281
|
+
}),
|
|
2282
|
+
textBlock("po-sub", doc(p("Thoughtfully crafted essentials for ", tag("first_name"), " — available through ", tag("offer_expires"), ".")), {
|
|
2283
|
+
align: "center",
|
|
2284
|
+
color: "#e4e4e7",
|
|
2285
|
+
fontSize: 16,
|
|
2286
|
+
paddingBottom: 24,
|
|
2287
|
+
paddingLeft: 12,
|
|
2288
|
+
paddingRight: 12,
|
|
2289
|
+
paddingTop: 0,
|
|
2290
|
+
phone: {
|
|
2291
|
+
paddingLeft: 0,
|
|
2292
|
+
paddingRight: 0
|
|
2293
|
+
}
|
|
2294
|
+
}),
|
|
2295
|
+
buttonBlock("po-hero-btn", "Shop the seasonal collection", "{{cta_url}}", {
|
|
2296
|
+
align: "center",
|
|
2297
|
+
backgroundColor: "#ffffff",
|
|
2298
|
+
borderRadius: 0,
|
|
2299
|
+
color: "#18181b",
|
|
2300
|
+
paddingBottom: 0,
|
|
2301
|
+
paddingLeft: 0,
|
|
2302
|
+
paddingRight: 0,
|
|
2303
|
+
paddingTop: 0
|
|
2304
|
+
})
|
|
2305
|
+
], {
|
|
2306
|
+
backgroundColor: "#18181b",
|
|
2307
|
+
paddingBottom: 40,
|
|
2308
|
+
paddingLeft: 32,
|
|
2309
|
+
paddingRight: 32,
|
|
2310
|
+
paddingTop: 40,
|
|
2311
|
+
phone: {
|
|
2312
|
+
paddingBottom: 30,
|
|
2313
|
+
paddingLeft: 20,
|
|
2314
|
+
paddingRight: 20,
|
|
2315
|
+
paddingTop: 30
|
|
2316
|
+
}
|
|
2317
|
+
}),
|
|
2318
|
+
singleColRow("po-code-row", "po-code-col", [textBlock("po-code-box", doc(p("Enter code ", tag("offer_code", [{ type: "bold" }]), " at checkout before ", tag("offer_expires"), ".")), {
|
|
2319
|
+
align: "center",
|
|
2320
|
+
borderColor: "#a8a29e",
|
|
2321
|
+
borderStyle: "dashed",
|
|
2322
|
+
borderWidth: 1,
|
|
2323
|
+
boxBackgroundColor: "#fafaf9",
|
|
2324
|
+
color: "#18181b",
|
|
2325
|
+
fontSize: 15,
|
|
2326
|
+
paddingBottom: 16,
|
|
2327
|
+
paddingLeft: 20,
|
|
2328
|
+
paddingRight: 20,
|
|
2329
|
+
paddingTop: 16
|
|
2330
|
+
})], {
|
|
2331
|
+
backgroundColor: "#ffffff",
|
|
2332
|
+
paddingBottom: 12,
|
|
2333
|
+
paddingLeft: 32,
|
|
2334
|
+
paddingRight: 32,
|
|
2335
|
+
paddingTop: 24,
|
|
2336
|
+
phone: {
|
|
2337
|
+
paddingLeft: 20,
|
|
2338
|
+
paddingRight: 20
|
|
2339
|
+
}
|
|
2340
|
+
}),
|
|
2341
|
+
row("po-picks-row", [col("po-pick-1-col", 50, [headingBlock("po-pick-1-title", 3, headingDoc(p("Everyday starter bundle")), {
|
|
2342
|
+
paddingBottom: 6,
|
|
2343
|
+
paddingLeft: 16,
|
|
2344
|
+
paddingRight: 16,
|
|
2345
|
+
paddingTop: 16
|
|
2346
|
+
}), textBlock("po-pick-1-body", doc(p("Our three most-requested daily staples paired in one reusable travel case with free ground shipping."), p(linkText("View the starter bundle", "{{cta_url}}"))), {
|
|
2347
|
+
color: "#3f3f46",
|
|
2348
|
+
fontSize: 14,
|
|
2349
|
+
paddingBottom: 16,
|
|
2350
|
+
paddingLeft: 16,
|
|
2351
|
+
paddingRight: 16,
|
|
2352
|
+
paddingTop: 0
|
|
2353
|
+
})], {
|
|
2354
|
+
backgroundColor: "#fafaf9",
|
|
2355
|
+
borderColor: "#e7e5e4",
|
|
2356
|
+
borderStyle: "solid",
|
|
2357
|
+
borderWidth: 1
|
|
2358
|
+
}), col("po-pick-2-col", 50, [headingBlock("po-pick-2-title", 3, headingDoc(p("Flexible refill cadence")), {
|
|
2359
|
+
paddingBottom: 6,
|
|
2360
|
+
paddingLeft: 16,
|
|
2361
|
+
paddingRight: 16,
|
|
2362
|
+
paddingTop: 16
|
|
2363
|
+
}), textBlock("po-pick-2-body", doc(p("Apply 25% off your first scheduled refill delivery and pause or adjust your schedule any time."), p(linkText("Explore refill options", "{{website_url}}"))), {
|
|
2364
|
+
color: "#3f3f46",
|
|
2365
|
+
fontSize: 14,
|
|
2366
|
+
paddingBottom: 16,
|
|
2367
|
+
paddingLeft: 16,
|
|
2368
|
+
paddingRight: 16,
|
|
2369
|
+
paddingTop: 0
|
|
2370
|
+
})], {
|
|
2371
|
+
backgroundColor: "#fafaf9",
|
|
2372
|
+
borderColor: "#e7e5e4",
|
|
2373
|
+
borderStyle: "solid",
|
|
2374
|
+
borderWidth: 1
|
|
2375
|
+
})], {
|
|
2376
|
+
backgroundColor: "#ffffff",
|
|
2377
|
+
paddingBottom: 28,
|
|
2378
|
+
paddingLeft: 32,
|
|
2379
|
+
paddingRight: 32,
|
|
2380
|
+
paddingTop: 12,
|
|
2381
|
+
phone: {
|
|
2382
|
+
paddingLeft: 20,
|
|
2383
|
+
paddingRight: 20
|
|
2384
|
+
}
|
|
2385
|
+
}),
|
|
2386
|
+
singleColRow("po-footer-row", "po-footer-col", [socialBlock("po-social", [
|
|
2387
|
+
{
|
|
2388
|
+
network: "instagram",
|
|
2389
|
+
url: "https://instagram.com/northstar"
|
|
2390
|
+
},
|
|
2391
|
+
{
|
|
2392
|
+
network: "pinterest",
|
|
2393
|
+
url: "https://pinterest.com/northstar"
|
|
2394
|
+
},
|
|
2395
|
+
{
|
|
2396
|
+
network: "website",
|
|
2397
|
+
url: "{{website_url}}"
|
|
2398
|
+
}
|
|
2399
|
+
], {
|
|
2400
|
+
align: "center",
|
|
2401
|
+
iconSize: 32,
|
|
2402
|
+
iconStyle: "color",
|
|
2403
|
+
paddingBottom: 12,
|
|
2404
|
+
paddingLeft: 0,
|
|
2405
|
+
paddingRight: 0,
|
|
2406
|
+
paddingTop: 4
|
|
2407
|
+
}), textBlock("po-footer-text", doc(p(tag("company_name"), " · ", tag("company_address"), br(), linkText("Manage preferences", "{{preferences_url}}"), " · ", linkText("Unsubscribe", "{{unsubscribe_url}}"))), {
|
|
2408
|
+
align: "center",
|
|
2409
|
+
color: "#57534e",
|
|
2410
|
+
fontSize: 13,
|
|
2411
|
+
paddingBottom: 0,
|
|
2412
|
+
paddingLeft: 0,
|
|
2413
|
+
paddingRight: 0,
|
|
2414
|
+
paddingTop: 0
|
|
2415
|
+
})], {
|
|
2416
|
+
backgroundColor: "#f5f5f4",
|
|
2417
|
+
paddingBottom: 24,
|
|
2418
|
+
paddingLeft: 24,
|
|
2419
|
+
paddingRight: 24,
|
|
2420
|
+
paddingTop: 18
|
|
2421
|
+
})
|
|
2422
|
+
]));
|
|
2423
|
+
/** Quick customer feedback and NPS check-in with one-click response buttons. */
|
|
2424
|
+
const feedbackRequest = /* #__PURE__ */ defineStarterEmail({
|
|
2425
|
+
category: "engagement",
|
|
2426
|
+
description: "Quick customer check-in and 2-minute survey",
|
|
2427
|
+
name: "Feedback request"
|
|
2428
|
+
}, () => emailDoc({
|
|
2429
|
+
backgroundColor: "#f8fafc",
|
|
2430
|
+
fontFamily: FONT_SANS,
|
|
2431
|
+
language: "en",
|
|
2432
|
+
preheader: "One quick question about your experience with {{company_name}} — takes under two minutes.",
|
|
2433
|
+
style: {
|
|
2434
|
+
buttonBackgroundColor: "#4338ca",
|
|
2435
|
+
buttonBorderRadius: 8,
|
|
2436
|
+
emailBackgroundColor: "#ffffff",
|
|
2437
|
+
heading1FontSize: 26,
|
|
2438
|
+
linkColor: "#4338ca",
|
|
2439
|
+
textColor: "#0f172a",
|
|
2440
|
+
textFontSize: 16
|
|
2441
|
+
},
|
|
2442
|
+
width: 560
|
|
2443
|
+
}, [
|
|
2444
|
+
singleColRow("fr-header-row", "fr-header-col", [textBlock("fr-brand", doc(p(tag("company_name", [{ type: "bold" }]))), {
|
|
2445
|
+
color: "#0f172a",
|
|
2446
|
+
fontSize: 17,
|
|
2447
|
+
paddingBottom: 14,
|
|
2448
|
+
paddingLeft: 0,
|
|
2449
|
+
paddingRight: 0,
|
|
2450
|
+
paddingTop: 4
|
|
2451
|
+
}), dividerBlock("fr-top-rule", {
|
|
2452
|
+
color: "#e2e8f0",
|
|
2453
|
+
paddingBottom: 0,
|
|
2454
|
+
paddingLeft: 0,
|
|
2455
|
+
paddingRight: 0,
|
|
2456
|
+
paddingTop: 0,
|
|
2457
|
+
thickness: 1
|
|
2458
|
+
})], {
|
|
2459
|
+
backgroundColor: "#ffffff",
|
|
2460
|
+
paddingBottom: 8,
|
|
2461
|
+
paddingLeft: 32,
|
|
2462
|
+
paddingRight: 32,
|
|
2463
|
+
paddingTop: 24,
|
|
2464
|
+
phone: {
|
|
2465
|
+
paddingLeft: 20,
|
|
2466
|
+
paddingRight: 20
|
|
2467
|
+
}
|
|
2468
|
+
}),
|
|
2469
|
+
singleColRow("fr-body-row", "fr-body-col", [headingBlock("fr-title", 1, headingDoc(p("How is ", tag("company_name"), " working for you, ", tag("first_name"), "?")), {
|
|
2470
|
+
paddingBottom: 12,
|
|
2471
|
+
paddingLeft: 0,
|
|
2472
|
+
paddingRight: 0,
|
|
2473
|
+
paddingTop: 12,
|
|
2474
|
+
phone: { fontSize: 23 }
|
|
2475
|
+
}), textBlock("fr-copy", doc(p("Your honest feedback goes straight to our product and engineering team and guides what we improve next. Pick the option below that best reflects your experience so far:")), {
|
|
2476
|
+
color: "#334155",
|
|
2477
|
+
paddingBottom: 8,
|
|
2478
|
+
paddingLeft: 0,
|
|
2479
|
+
paddingRight: 0,
|
|
2480
|
+
paddingTop: 0
|
|
2481
|
+
})], {
|
|
2482
|
+
backgroundColor: "#ffffff",
|
|
2483
|
+
paddingBottom: 4,
|
|
2484
|
+
paddingLeft: 32,
|
|
2485
|
+
paddingRight: 32,
|
|
2486
|
+
paddingTop: 4,
|
|
2487
|
+
phone: {
|
|
2488
|
+
paddingLeft: 20,
|
|
2489
|
+
paddingRight: 20
|
|
2490
|
+
}
|
|
2491
|
+
}),
|
|
2492
|
+
row("fr-rating-row", [
|
|
2493
|
+
col("fr-rate-low-col", 33.33, [buttonBlock("fr-rate-low", "Needs work", "{{survey_url}}?score=low", {
|
|
2494
|
+
align: "center",
|
|
2495
|
+
backgroundColor: "#e2e8f0",
|
|
2496
|
+
borderRadius: 8,
|
|
2497
|
+
color: "#0f172a",
|
|
2498
|
+
paddingBottom: 8,
|
|
2499
|
+
paddingLeft: 6,
|
|
2500
|
+
paddingRight: 6,
|
|
2501
|
+
paddingTop: 8
|
|
2502
|
+
})]),
|
|
2503
|
+
col("fr-rate-mid-col", 33.33, [buttonBlock("fr-rate-mid", "Working well", "{{survey_url}}?score=mid", {
|
|
2504
|
+
align: "center",
|
|
2505
|
+
backgroundColor: "#e0e7ff",
|
|
2506
|
+
borderRadius: 8,
|
|
2507
|
+
color: "#312e81",
|
|
2508
|
+
paddingBottom: 8,
|
|
2509
|
+
paddingLeft: 6,
|
|
2510
|
+
paddingRight: 6,
|
|
2511
|
+
paddingTop: 8
|
|
2512
|
+
})]),
|
|
2513
|
+
col("fr-rate-high-col", 33.34, [buttonBlock("fr-rate-high", "Love using it", "{{survey_url}}?score=high", {
|
|
2514
|
+
align: "center",
|
|
2515
|
+
backgroundColor: "#4338ca",
|
|
2516
|
+
borderRadius: 8,
|
|
2517
|
+
color: "#ffffff",
|
|
2518
|
+
paddingBottom: 8,
|
|
2519
|
+
paddingLeft: 6,
|
|
2520
|
+
paddingRight: 6,
|
|
2521
|
+
paddingTop: 8
|
|
2522
|
+
})])
|
|
2523
|
+
], {
|
|
2524
|
+
backgroundColor: "#ffffff",
|
|
2525
|
+
paddingBottom: 12,
|
|
2526
|
+
paddingLeft: 24,
|
|
2527
|
+
paddingRight: 24,
|
|
2528
|
+
paddingTop: 8,
|
|
2529
|
+
phone: {
|
|
2530
|
+
paddingLeft: 16,
|
|
2531
|
+
paddingRight: 16
|
|
2532
|
+
}
|
|
2533
|
+
}),
|
|
2534
|
+
singleColRow("fr-closing-row", "fr-closing-col", [textBlock("fr-closing", doc(p("Have specific suggestions? You can also ", linkText("open the 3-question feedback form", "{{survey_url}}"), " or reply directly to this message."), p("Thank you for taking a moment,", br(), tag("sender_name", [{ type: "bold" }]), br(), tag("sender_role"))), {
|
|
2535
|
+
color: "#334155",
|
|
2536
|
+
fontSize: 15,
|
|
2537
|
+
paddingBottom: 8,
|
|
2538
|
+
paddingLeft: 0,
|
|
2539
|
+
paddingRight: 0,
|
|
2540
|
+
paddingTop: 8
|
|
2541
|
+
})], {
|
|
2542
|
+
backgroundColor: "#ffffff",
|
|
2543
|
+
paddingBottom: 24,
|
|
2544
|
+
paddingLeft: 32,
|
|
2545
|
+
paddingRight: 32,
|
|
2546
|
+
paddingTop: 4,
|
|
2547
|
+
phone: {
|
|
2548
|
+
paddingLeft: 20,
|
|
2549
|
+
paddingRight: 20
|
|
2550
|
+
}
|
|
2551
|
+
}),
|
|
2552
|
+
singleColRow("fr-footer-row", "fr-footer-col", [textBlock("fr-footer-text", doc(p(tag("company_name"), " · ", tag("company_address"), br(), linkText("Manage preferences", "{{preferences_url}}"), " · ", linkText("Unsubscribe from feedback requests", "{{unsubscribe_url}}"))), {
|
|
2553
|
+
align: "center",
|
|
2554
|
+
color: "#475569",
|
|
2555
|
+
fontSize: 13,
|
|
2556
|
+
paddingBottom: 0,
|
|
2557
|
+
paddingLeft: 0,
|
|
2558
|
+
paddingRight: 0,
|
|
2559
|
+
paddingTop: 0
|
|
2560
|
+
})], {
|
|
2561
|
+
backgroundColor: "#f8fafc",
|
|
2562
|
+
paddingBottom: 24,
|
|
2563
|
+
paddingLeft: 24,
|
|
2564
|
+
paddingRight: 24,
|
|
2565
|
+
paddingTop: 20
|
|
2566
|
+
})
|
|
2567
|
+
]));
|
|
2568
|
+
// src/starters/onboarding.ts
|
|
2569
|
+
/** SaaS welcome email with clear 3-step setup checklist and resources. */
|
|
2570
|
+
const saasWelcome = /* #__PURE__ */ defineStarterEmail({
|
|
2571
|
+
category: "onboarding",
|
|
2572
|
+
description: "Warm greeting with 3-step setup checklist",
|
|
2573
|
+
name: "SaaS welcome"
|
|
2574
|
+
}, () => emailDoc({
|
|
2575
|
+
backgroundColor: "#f8fafc",
|
|
2576
|
+
fontFamily: FONT_SANS,
|
|
2577
|
+
language: "en",
|
|
2578
|
+
preheader: "Welcome to {{company_name}} — three quick steps to get your workspace ready.",
|
|
2579
|
+
style: {
|
|
2580
|
+
buttonBackgroundColor: "#4338ca",
|
|
2581
|
+
buttonBorderRadius: 8,
|
|
2582
|
+
emailBackgroundColor: "#ffffff",
|
|
2583
|
+
heading1FontSize: 30,
|
|
2584
|
+
heading2FontSize: 20,
|
|
2585
|
+
heading3FontSize: 16,
|
|
2586
|
+
linkColor: "#4338ca",
|
|
2587
|
+
textColor: "#0f172a",
|
|
2588
|
+
textFontSize: 16
|
|
2589
|
+
},
|
|
2590
|
+
width: 600
|
|
2591
|
+
}, [
|
|
2592
|
+
row("sw-header-row", [col("sw-header-brand-col", 33, [textBlock("sw-brand", doc(p(tagLink("company_name", "{{website_url}}", [{ type: "bold" }]))), {
|
|
2593
|
+
color: "#0f172a",
|
|
2594
|
+
fontSize: 18,
|
|
2595
|
+
paddingBottom: 8,
|
|
2596
|
+
paddingLeft: 0,
|
|
2597
|
+
paddingRight: 8,
|
|
2598
|
+
paddingTop: 8
|
|
2599
|
+
})], { verticalAlign: "middle" }), col("sw-header-nav-col", 67, [menuBlock("sw-nav", [
|
|
2600
|
+
{
|
|
2601
|
+
label: "Workspace",
|
|
2602
|
+
url: "{{app_url}}"
|
|
2603
|
+
},
|
|
2604
|
+
{
|
|
2605
|
+
label: "Help center",
|
|
2606
|
+
url: "{{help_url}}"
|
|
2607
|
+
},
|
|
2608
|
+
{
|
|
2609
|
+
label: "Updates",
|
|
2610
|
+
url: "{{changelog_url}}"
|
|
2611
|
+
}
|
|
2612
|
+
], {
|
|
2613
|
+
align: "right",
|
|
2614
|
+
color: "#334155",
|
|
2615
|
+
fontSize: 14,
|
|
2616
|
+
gap: 18,
|
|
2617
|
+
paddingBottom: 8,
|
|
2618
|
+
paddingLeft: 8,
|
|
2619
|
+
paddingRight: 0,
|
|
2620
|
+
paddingTop: 8
|
|
2621
|
+
})], { verticalAlign: "middle" })], {
|
|
2622
|
+
backgroundColor: "#ffffff",
|
|
2623
|
+
paddingBottom: 12,
|
|
2624
|
+
paddingLeft: 28,
|
|
2625
|
+
paddingRight: 28,
|
|
2626
|
+
paddingTop: 20,
|
|
2627
|
+
phone: {
|
|
2628
|
+
paddingLeft: 20,
|
|
2629
|
+
paddingRight: 20
|
|
2630
|
+
}
|
|
2631
|
+
}),
|
|
2632
|
+
singleColRow("sw-hero-row", "sw-hero-col", [
|
|
2633
|
+
textBlock("sw-eyebrow", doc(p(bold("WELCOME ABOARD"))), {
|
|
2634
|
+
color: "#3730a3",
|
|
2635
|
+
fontSize: 12,
|
|
2636
|
+
paddingBottom: 8,
|
|
2637
|
+
paddingLeft: 0,
|
|
2638
|
+
paddingRight: 0,
|
|
2639
|
+
paddingTop: 0
|
|
2640
|
+
}),
|
|
2641
|
+
headingBlock("sw-title", 1, headingDoc(p("Welcome to ", tag("company_name"), ", ", tag("first_name"))), {
|
|
2642
|
+
color: "#1e1b4b",
|
|
2643
|
+
paddingBottom: 12,
|
|
2644
|
+
paddingLeft: 0,
|
|
2645
|
+
paddingRight: 0,
|
|
2646
|
+
paddingTop: 0,
|
|
2647
|
+
phone: { fontSize: 25 }
|
|
2648
|
+
}),
|
|
2649
|
+
textBlock("sw-hero-copy", doc(p("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.")), {
|
|
2650
|
+
color: "#312e81",
|
|
2651
|
+
paddingBottom: 20,
|
|
2652
|
+
paddingLeft: 0,
|
|
2653
|
+
paddingRight: 0,
|
|
2654
|
+
paddingTop: 0
|
|
2655
|
+
}),
|
|
2656
|
+
buttonBlock("sw-hero-btn", "Open your workspace", "{{app_url}}", {
|
|
2657
|
+
align: "left",
|
|
2658
|
+
paddingBottom: 0,
|
|
2659
|
+
paddingLeft: 0,
|
|
2660
|
+
paddingRight: 0,
|
|
2661
|
+
paddingTop: 0
|
|
2662
|
+
})
|
|
2663
|
+
], {
|
|
2664
|
+
backgroundColor: "#eef2ff",
|
|
2665
|
+
paddingBottom: 32,
|
|
2666
|
+
paddingLeft: 32,
|
|
2667
|
+
paddingRight: 32,
|
|
2668
|
+
paddingTop: 32,
|
|
2669
|
+
phone: {
|
|
2670
|
+
paddingBottom: 24,
|
|
2671
|
+
paddingLeft: 20,
|
|
2672
|
+
paddingRight: 20,
|
|
2673
|
+
paddingTop: 24
|
|
2674
|
+
}
|
|
2675
|
+
}),
|
|
2676
|
+
singleColRow("sw-checklist-row", "sw-checklist-col", [headingBlock("sw-checklist-title", 2, headingDoc(p("Three steps to get live in five minutes")), {
|
|
2677
|
+
paddingBottom: 12,
|
|
2678
|
+
paddingLeft: 0,
|
|
2679
|
+
paddingRight: 0,
|
|
2680
|
+
paddingTop: 4
|
|
2681
|
+
}), textBlock("sw-checklist-list", doc(ol(p(bold("Set your shared defaults: "), "Pick your brand colors, heading font, and button corners once in Style mode."), p(bold("Save your recurring footer: "), "Store your company address and unsubscribe links as a reusable row."), p(bold("Send a live test: "), "Run pre-send checks and inspect desktop and phone previews before exporting."))), {
|
|
2682
|
+
paddingBottom: 8,
|
|
2683
|
+
paddingLeft: 0,
|
|
2684
|
+
paddingRight: 0,
|
|
2685
|
+
paddingTop: 0
|
|
2686
|
+
})], {
|
|
2687
|
+
backgroundColor: "#ffffff",
|
|
2688
|
+
paddingBottom: 16,
|
|
2689
|
+
paddingLeft: 32,
|
|
2690
|
+
paddingRight: 32,
|
|
2691
|
+
paddingTop: 28,
|
|
2692
|
+
phone: {
|
|
2693
|
+
paddingLeft: 20,
|
|
2694
|
+
paddingRight: 20
|
|
2695
|
+
}
|
|
2696
|
+
}),
|
|
2697
|
+
row("sw-resources-row", [col("sw-res-1-col", 50, [headingBlock("sw-res-1-title", 3, headingDoc(p("Setup guide")), {
|
|
2698
|
+
paddingBottom: 6,
|
|
2699
|
+
paddingLeft: 16,
|
|
2700
|
+
paddingRight: 16,
|
|
2701
|
+
paddingTop: 16
|
|
2702
|
+
}), textBlock("sw-res-1-body", doc(p("Step-by-step walkthroughs for merge tags, image hosting, and HTML exports."), p(linkText("Explore the setup guide", "{{help_url}}"))), {
|
|
2703
|
+
color: "#334155",
|
|
2704
|
+
fontSize: 14,
|
|
2705
|
+
paddingBottom: 16,
|
|
2706
|
+
paddingLeft: 16,
|
|
2707
|
+
paddingRight: 16,
|
|
2708
|
+
paddingTop: 0
|
|
2709
|
+
})], {
|
|
2710
|
+
backgroundColor: "#f8fafc",
|
|
2711
|
+
borderColor: "#e2e8f0",
|
|
2712
|
+
borderStyle: "solid",
|
|
2713
|
+
borderWidth: 1
|
|
2714
|
+
}), col("sw-res-2-col", 50, [headingBlock("sw-res-2-title", 3, headingDoc(p("Live office hours")), {
|
|
2715
|
+
paddingBottom: 6,
|
|
2716
|
+
paddingLeft: 16,
|
|
2717
|
+
paddingRight: 16,
|
|
2718
|
+
paddingTop: 16
|
|
2719
|
+
}), textBlock("sw-res-2-body", doc(p("Drop into a short Q&A session with our product team every Tuesday and Thursday."), p(linkText("Reserve an office-hours slot", "{{cta_url}}"))), {
|
|
2720
|
+
color: "#334155",
|
|
2721
|
+
fontSize: 14,
|
|
2722
|
+
paddingBottom: 16,
|
|
2723
|
+
paddingLeft: 16,
|
|
2724
|
+
paddingRight: 16,
|
|
2725
|
+
paddingTop: 0
|
|
2726
|
+
})], {
|
|
2727
|
+
backgroundColor: "#f8fafc",
|
|
2728
|
+
borderColor: "#e2e8f0",
|
|
2729
|
+
borderStyle: "solid",
|
|
2730
|
+
borderWidth: 1
|
|
2731
|
+
})], {
|
|
2732
|
+
backgroundColor: "#ffffff",
|
|
2733
|
+
paddingBottom: 28,
|
|
2734
|
+
paddingLeft: 32,
|
|
2735
|
+
paddingRight: 32,
|
|
2736
|
+
paddingTop: 8,
|
|
2737
|
+
phone: {
|
|
2738
|
+
paddingLeft: 20,
|
|
2739
|
+
paddingRight: 20
|
|
2740
|
+
}
|
|
2741
|
+
}),
|
|
2742
|
+
singleColRow("sw-footer-row", "sw-footer-col", [socialBlock("sw-social", [
|
|
2743
|
+
{
|
|
2744
|
+
network: "website",
|
|
2745
|
+
url: "{{website_url}}"
|
|
2746
|
+
},
|
|
2747
|
+
{
|
|
2748
|
+
network: "linkedin",
|
|
2749
|
+
url: "https://linkedin.com/company/northstar"
|
|
2750
|
+
},
|
|
2751
|
+
{
|
|
2752
|
+
network: "x",
|
|
2753
|
+
url: "https://x.com/northstar"
|
|
2754
|
+
}
|
|
2755
|
+
], {
|
|
2756
|
+
align: "center",
|
|
2757
|
+
iconSize: 32,
|
|
2758
|
+
iconStyle: "color",
|
|
2759
|
+
paddingBottom: 12,
|
|
2760
|
+
paddingLeft: 0,
|
|
2761
|
+
paddingRight: 0,
|
|
2762
|
+
paddingTop: 4
|
|
2763
|
+
}), textBlock("sw-footer-text", doc(p(tag("company_name"), " · ", tag("company_address"), br(), linkText("Manage preferences", "{{preferences_url}}"), " · ", linkText("Unsubscribe", "{{unsubscribe_url}}"))), {
|
|
2764
|
+
align: "center",
|
|
2765
|
+
color: "#475569",
|
|
2766
|
+
fontSize: 13,
|
|
2767
|
+
paddingBottom: 0,
|
|
2768
|
+
paddingLeft: 0,
|
|
2769
|
+
paddingRight: 0,
|
|
2770
|
+
paddingTop: 0
|
|
2771
|
+
})], {
|
|
2772
|
+
backgroundColor: "#f8fafc",
|
|
2773
|
+
paddingBottom: 28,
|
|
2774
|
+
paddingLeft: 28,
|
|
2775
|
+
paddingRight: 28,
|
|
2776
|
+
paddingTop: 18,
|
|
2777
|
+
phone: {
|
|
2778
|
+
paddingLeft: 20,
|
|
2779
|
+
paddingRight: 20
|
|
2780
|
+
}
|
|
2781
|
+
})
|
|
2782
|
+
]));
|
|
2783
|
+
/** Day-3 product activation tip with a practical 60-second workflow box. */
|
|
2784
|
+
const onboardingTip = /* #__PURE__ */ defineStarterEmail({
|
|
2785
|
+
category: "onboarding",
|
|
2786
|
+
description: "Day-3 activation tip with 60-second setup box",
|
|
2787
|
+
name: "Onboarding tip"
|
|
2788
|
+
}, () => emailDoc({
|
|
2789
|
+
backgroundColor: "#f4f4f5",
|
|
2790
|
+
fontFamily: FONT_TAHOMA,
|
|
2791
|
+
language: "en",
|
|
2792
|
+
preheader: "A 60-second workflow trick that saves teams two hours every week.",
|
|
2793
|
+
style: {
|
|
2794
|
+
buttonBackgroundColor: "#0f766e",
|
|
2795
|
+
buttonBorderRadius: 6,
|
|
2796
|
+
emailBackgroundColor: "#ffffff",
|
|
2797
|
+
heading1FontSize: 28,
|
|
2798
|
+
heading2FontSize: 20,
|
|
2799
|
+
heading3FontSize: 16,
|
|
2800
|
+
linkColor: "#0f766e",
|
|
2801
|
+
textColor: "#18181b",
|
|
2802
|
+
textFontSize: 15
|
|
2803
|
+
},
|
|
2804
|
+
width: 580
|
|
2805
|
+
}, [
|
|
2806
|
+
singleColRow("ot-header-row", "ot-header-col", [textBlock("ot-header-eyebrow", doc(p(bold("DAY 3 · QUICK TIP"), " · ", tag("company_name"))), {
|
|
2807
|
+
color: "#0f766e",
|
|
2808
|
+
fontSize: 12,
|
|
2809
|
+
paddingBottom: 12,
|
|
2810
|
+
paddingLeft: 0,
|
|
2811
|
+
paddingRight: 0,
|
|
2812
|
+
paddingTop: 4
|
|
2813
|
+
}), dividerBlock("ot-top-rule", {
|
|
2814
|
+
color: "#e4e4e7",
|
|
2815
|
+
paddingBottom: 0,
|
|
2816
|
+
paddingLeft: 0,
|
|
2817
|
+
paddingRight: 0,
|
|
2818
|
+
paddingTop: 0,
|
|
2819
|
+
thickness: 1
|
|
2820
|
+
})], {
|
|
2821
|
+
backgroundColor: "#ffffff",
|
|
2822
|
+
paddingBottom: 8,
|
|
2823
|
+
paddingLeft: 32,
|
|
2824
|
+
paddingRight: 32,
|
|
2825
|
+
paddingTop: 24,
|
|
2826
|
+
phone: {
|
|
2827
|
+
paddingLeft: 20,
|
|
2828
|
+
paddingRight: 20
|
|
2829
|
+
}
|
|
2830
|
+
}),
|
|
2831
|
+
singleColRow("ot-body-row", "ot-body-col", [
|
|
2832
|
+
headingBlock("ot-title", 1, headingDoc(p("Save two hours a week with reusable saved rows")), {
|
|
2833
|
+
paddingBottom: 14,
|
|
2834
|
+
paddingLeft: 0,
|
|
2835
|
+
paddingRight: 0,
|
|
2836
|
+
paddingTop: 12,
|
|
2837
|
+
phone: { fontSize: 24 }
|
|
2838
|
+
}),
|
|
2839
|
+
textBlock("ot-intro", doc(p("Hi ", tag("first_name"), ","), p("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.")), {
|
|
2840
|
+
paddingBottom: 16,
|
|
2841
|
+
paddingLeft: 0,
|
|
2842
|
+
paddingRight: 0,
|
|
2843
|
+
paddingTop: 0
|
|
2844
|
+
}),
|
|
2845
|
+
textBlock("ot-tip-box", doc(p(bold("Try this 60-second setup")), ul(p("Open any existing campaign and pick your cleanest header or CTA row."), p("Keep links and addresses parameterized with merge tags so they stay accurate automatically."), p("Drop that row into your next draft from the Add panel whenever you need it."))), {
|
|
2846
|
+
borderColor: "#99f6e4",
|
|
2847
|
+
borderRadius: 8,
|
|
2848
|
+
borderStyle: "solid",
|
|
2849
|
+
borderWidth: 1,
|
|
2850
|
+
boxBackgroundColor: "#f0fdfa",
|
|
2851
|
+
color: "#134e4a",
|
|
2852
|
+
fontSize: 15,
|
|
2853
|
+
paddingBottom: 18,
|
|
2854
|
+
paddingLeft: 20,
|
|
2855
|
+
paddingRight: 20,
|
|
2856
|
+
paddingTop: 18
|
|
2857
|
+
}),
|
|
2858
|
+
buttonBlock("ot-cta", "Create your first saved row", "{{app_url}}", {
|
|
2859
|
+
align: "left",
|
|
2860
|
+
paddingBottom: 18,
|
|
2861
|
+
paddingLeft: 0,
|
|
2862
|
+
paddingRight: 0,
|
|
2863
|
+
paddingTop: 22
|
|
2864
|
+
}),
|
|
2865
|
+
textBlock("ot-closing", doc(p("Want more practical shortcuts? ", linkText("Browse our workflow guides", "{{help_url}}"), " or reply with what you are working on this week."), p("— ", tag("sender_name", [{ type: "bold" }]), ", ", tag("sender_role"))), {
|
|
2866
|
+
paddingBottom: 8,
|
|
2867
|
+
paddingLeft: 0,
|
|
2868
|
+
paddingRight: 0,
|
|
2869
|
+
paddingTop: 0
|
|
2870
|
+
})
|
|
2871
|
+
], {
|
|
2872
|
+
backgroundColor: "#ffffff",
|
|
2873
|
+
paddingBottom: 24,
|
|
2874
|
+
paddingLeft: 32,
|
|
2875
|
+
paddingRight: 32,
|
|
2876
|
+
paddingTop: 4,
|
|
2877
|
+
phone: {
|
|
2878
|
+
paddingLeft: 20,
|
|
2879
|
+
paddingRight: 20
|
|
2880
|
+
}
|
|
2881
|
+
}),
|
|
2882
|
+
singleColRow("ot-footer-row", "ot-footer-col", [textBlock("ot-footer-text", doc(p(tag("company_name"), " · ", tag("company_address"), br(), linkText("Manage preferences", "{{preferences_url}}"), " · ", linkText("Unsubscribe from onboarding tips", "{{unsubscribe_url}}"))), {
|
|
2883
|
+
align: "center",
|
|
2884
|
+
color: "#52525b",
|
|
2885
|
+
fontSize: 13,
|
|
2886
|
+
paddingBottom: 0,
|
|
2887
|
+
paddingLeft: 0,
|
|
2888
|
+
paddingRight: 0,
|
|
2889
|
+
paddingTop: 0
|
|
2890
|
+
})], {
|
|
2891
|
+
backgroundColor: "#f4f4f5",
|
|
2892
|
+
paddingBottom: 24,
|
|
2893
|
+
paddingLeft: 24,
|
|
2894
|
+
paddingRight: 24,
|
|
2895
|
+
paddingTop: 20
|
|
2896
|
+
})
|
|
2897
|
+
]));
|
|
2898
|
+
/** Trial expiration reminder with plan summary card and calm upgrade CTA. */
|
|
2899
|
+
const trialEnding = /* #__PURE__ */ defineStarterEmail({
|
|
2900
|
+
category: "onboarding",
|
|
2901
|
+
description: "Clear upgrade reminder with plan summary",
|
|
2902
|
+
name: "Trial ending"
|
|
2903
|
+
}, () => emailDoc({
|
|
2904
|
+
backgroundColor: "#f3f4f6",
|
|
2905
|
+
fontFamily: FONT_SANS,
|
|
2906
|
+
language: "en",
|
|
2907
|
+
preheader: "Your {{plan_name}} trial ends in {{trial_days_left}} days — upgrade anytime to keep your team running.",
|
|
2908
|
+
style: {
|
|
2909
|
+
buttonBackgroundColor: "#1d4ed8",
|
|
2910
|
+
buttonBorderRadius: 8,
|
|
2911
|
+
emailBackgroundColor: "#ffffff",
|
|
2912
|
+
heading1FontSize: 28,
|
|
2913
|
+
heading2FontSize: 20,
|
|
2914
|
+
heading3FontSize: 16,
|
|
2915
|
+
linkColor: "#1d4ed8",
|
|
2916
|
+
textColor: "#0f172a",
|
|
2917
|
+
textFontSize: 16
|
|
2918
|
+
},
|
|
2919
|
+
width: 600
|
|
2920
|
+
}, [
|
|
2921
|
+
singleColRow("te-notice-row", "te-notice-col", [textBlock("te-notice-text", doc(p(bold("Trial reminder: "), "Your ", tag("plan_name"), " trial ends in ", tag("trial_days_left", [{ type: "bold" }]), " days.")), {
|
|
2922
|
+
align: "center",
|
|
2923
|
+
color: "#92400e",
|
|
2924
|
+
fontSize: 14,
|
|
2925
|
+
paddingBottom: 10,
|
|
2926
|
+
paddingLeft: 12,
|
|
2927
|
+
paddingRight: 12,
|
|
2928
|
+
paddingTop: 10
|
|
2929
|
+
})], {
|
|
2930
|
+
backgroundColor: "#fffbeb",
|
|
2931
|
+
paddingBottom: 4,
|
|
2932
|
+
paddingLeft: 16,
|
|
2933
|
+
paddingRight: 16,
|
|
2934
|
+
paddingTop: 4
|
|
2935
|
+
}),
|
|
2936
|
+
singleColRow("te-body-row", "te-body-col", [
|
|
2937
|
+
textBlock("te-brand", doc(p(tag("company_name", [{ type: "bold" }]))), {
|
|
2938
|
+
color: "#0f172a",
|
|
2939
|
+
fontSize: 16,
|
|
2940
|
+
paddingBottom: 14,
|
|
2941
|
+
paddingLeft: 0,
|
|
2942
|
+
paddingRight: 0,
|
|
2943
|
+
paddingTop: 8
|
|
2944
|
+
}),
|
|
2945
|
+
headingBlock("te-title", 1, headingDoc(p("Keep your workspace running without interruption")), {
|
|
2946
|
+
paddingBottom: 12,
|
|
2947
|
+
paddingLeft: 0,
|
|
2948
|
+
paddingRight: 0,
|
|
2949
|
+
paddingTop: 0,
|
|
2950
|
+
phone: { fontSize: 24 }
|
|
2951
|
+
}),
|
|
2952
|
+
textBlock("te-copy", doc(p("Hi ", tag("first_name"), ","), p("Your ", tag("plan_name"), " trial wraps up in ", tag("trial_days_left"), " days. Everything you created stays saved, and upgrading takes less than a minute so your team never loses momentum.")), {
|
|
2953
|
+
paddingBottom: 18,
|
|
2954
|
+
paddingLeft: 0,
|
|
2955
|
+
paddingRight: 0,
|
|
2956
|
+
paddingTop: 0
|
|
2957
|
+
}),
|
|
2958
|
+
textBlock("te-plan-card", doc(p(bold("What stays unlocked on "), tag("plan_name", [{ type: "bold" }])), ul(p("Unlimited team seats and shared saved rows"), p("Automated pre-send accessibility and contrast checks"), p("Full HTML and plain-text export history"), p("Priority support directly from our product engineers"))), {
|
|
2959
|
+
borderColor: "#cbd5e1",
|
|
2960
|
+
borderRadius: 8,
|
|
2961
|
+
borderStyle: "solid",
|
|
2962
|
+
borderWidth: 1,
|
|
2963
|
+
boxBackgroundColor: "#f8fafc",
|
|
2964
|
+
color: "#1e293b",
|
|
2965
|
+
fontSize: 15,
|
|
2966
|
+
paddingBottom: 18,
|
|
2967
|
+
paddingLeft: 20,
|
|
2968
|
+
paddingRight: 20,
|
|
2969
|
+
paddingTop: 18
|
|
2970
|
+
}),
|
|
2971
|
+
buttonBlock("te-cta", "Upgrade to {{plan_name}}", "{{upgrade_url}}", {
|
|
2972
|
+
align: "center",
|
|
2973
|
+
paddingBottom: 16,
|
|
2974
|
+
paddingLeft: 0,
|
|
2975
|
+
paddingRight: 0,
|
|
2976
|
+
paddingTop: 22
|
|
2977
|
+
}),
|
|
2978
|
+
textBlock("te-help", doc(p("Need a few extra days to finish your evaluation? Reply directly to this email or write to ", tagLink("support_email", "mailto:{{support_email}}"), " and we will gladly extend your trial.")), {
|
|
2979
|
+
align: "center",
|
|
2980
|
+
color: "#475569",
|
|
2981
|
+
fontSize: 14,
|
|
2982
|
+
paddingBottom: 4,
|
|
2983
|
+
paddingLeft: 0,
|
|
2984
|
+
paddingRight: 0,
|
|
2985
|
+
paddingTop: 0
|
|
2986
|
+
})
|
|
2987
|
+
], {
|
|
2988
|
+
backgroundColor: "#ffffff",
|
|
2989
|
+
paddingBottom: 28,
|
|
2990
|
+
paddingLeft: 32,
|
|
2991
|
+
paddingRight: 32,
|
|
2992
|
+
paddingTop: 20,
|
|
2993
|
+
phone: {
|
|
2994
|
+
paddingLeft: 20,
|
|
2995
|
+
paddingRight: 20
|
|
2996
|
+
}
|
|
2997
|
+
}),
|
|
2998
|
+
singleColRow("te-footer-row", "te-footer-col", [textBlock("te-footer-text", doc(p(tag("company_name"), " · ", tag("company_address"), br(), linkText("Manage notification preferences", "{{preferences_url}}"), " · ", linkText("Unsubscribe", "{{unsubscribe_url}}"))), {
|
|
2999
|
+
align: "center",
|
|
3000
|
+
color: "#475569",
|
|
3001
|
+
fontSize: 13,
|
|
3002
|
+
paddingBottom: 0,
|
|
3003
|
+
paddingLeft: 0,
|
|
3004
|
+
paddingRight: 0,
|
|
3005
|
+
paddingTop: 0
|
|
3006
|
+
})], {
|
|
3007
|
+
backgroundColor: "#f3f4f6",
|
|
3008
|
+
paddingBottom: 24,
|
|
3009
|
+
paddingLeft: 24,
|
|
3010
|
+
paddingRight: 24,
|
|
3011
|
+
paddingTop: 20
|
|
3012
|
+
})
|
|
3013
|
+
]));
|
|
3014
|
+
// src/starters/product.ts
|
|
3015
|
+
/** Flagship feature or product launch announcement with dark hero, feature grid, and stat strip. */
|
|
3016
|
+
const productLaunch = /* #__PURE__ */ defineStarterEmail({
|
|
3017
|
+
category: "product",
|
|
3018
|
+
description: "Dark hero announcement with feature grid",
|
|
3019
|
+
name: "Product launch"
|
|
3020
|
+
}, () => emailDoc({
|
|
3021
|
+
backgroundColor: "#f1f5f9",
|
|
3022
|
+
fontFamily: FONT_SANS,
|
|
3023
|
+
language: "en",
|
|
3024
|
+
preheader: "Scheduled Workflows 2.0 is live: dry-run previews, per-timezone delivery, and 3x faster runs.",
|
|
3025
|
+
style: {
|
|
3026
|
+
buttonBackgroundColor: "#1d4ed8",
|
|
3027
|
+
buttonBorderRadius: 8,
|
|
3028
|
+
emailBackgroundColor: "#ffffff",
|
|
3029
|
+
heading1FontSize: 34,
|
|
3030
|
+
heading2FontSize: 22,
|
|
3031
|
+
heading3FontSize: 17,
|
|
3032
|
+
linkColor: "#1d4ed8",
|
|
3033
|
+
textColor: "#0f172a",
|
|
3034
|
+
textFontSize: 16
|
|
3035
|
+
},
|
|
3036
|
+
width: 600
|
|
3037
|
+
}, [
|
|
3038
|
+
singleColRow("pl-hero-row", "pl-hero-col", [
|
|
3039
|
+
textBlock("pl-hero-eyebrow", doc(p(bold("NEW RELEASE"), " · ", tag("company_name"))), {
|
|
3040
|
+
color: "#93c5fd",
|
|
3041
|
+
fontSize: 12,
|
|
3042
|
+
paddingBottom: 10,
|
|
3043
|
+
paddingLeft: 0,
|
|
3044
|
+
paddingRight: 0,
|
|
3045
|
+
paddingTop: 0
|
|
3046
|
+
}),
|
|
3047
|
+
headingBlock("pl-hero-title", 1, headingDoc(p("Meet Scheduled Workflows 2.0")), {
|
|
3048
|
+
color: "#ffffff",
|
|
3049
|
+
paddingBottom: 12,
|
|
3050
|
+
paddingLeft: 0,
|
|
3051
|
+
paddingRight: 0,
|
|
3052
|
+
paddingTop: 0,
|
|
3053
|
+
phone: { fontSize: 26 }
|
|
3054
|
+
}),
|
|
3055
|
+
textBlock("pl-hero-sub", doc(p("Plan multi-step campaigns with live dry-run checks, recipient-timezone windows, and instant rollback — now live in every workspace.")), {
|
|
3056
|
+
color: "#e2e8f0",
|
|
3057
|
+
fontSize: 16,
|
|
3058
|
+
paddingBottom: 22,
|
|
3059
|
+
paddingLeft: 0,
|
|
3060
|
+
paddingRight: 0,
|
|
3061
|
+
paddingTop: 0
|
|
3062
|
+
}),
|
|
3063
|
+
buttonBlock("pl-hero-btn", "Try Scheduled Workflows now", "{{app_url}}", {
|
|
3064
|
+
align: "left",
|
|
3065
|
+
backgroundColor: "#ffffff",
|
|
3066
|
+
borderRadius: 8,
|
|
3067
|
+
color: "#0f172a",
|
|
3068
|
+
paddingBottom: 0,
|
|
3069
|
+
paddingLeft: 0,
|
|
3070
|
+
paddingRight: 0,
|
|
3071
|
+
paddingTop: 0
|
|
3072
|
+
})
|
|
3073
|
+
], {
|
|
3074
|
+
backgroundColor: "#0f172a",
|
|
3075
|
+
paddingBottom: 38,
|
|
3076
|
+
paddingLeft: 32,
|
|
3077
|
+
paddingRight: 32,
|
|
3078
|
+
paddingTop: 38,
|
|
3079
|
+
phone: {
|
|
3080
|
+
paddingBottom: 28,
|
|
3081
|
+
paddingLeft: 20,
|
|
3082
|
+
paddingRight: 20,
|
|
3083
|
+
paddingTop: 28
|
|
3084
|
+
}
|
|
3085
|
+
}),
|
|
3086
|
+
singleColRow("pl-intro-row", "pl-intro-col", [textBlock("pl-intro-text", doc(p("Hi ", tag("first_name"), ","), p("We rebuilt our scheduling engine from the ground up based on how operations and product teams actually ship launches. Every existing workflow runs faster today with zero manual migration.")), {
|
|
3087
|
+
paddingBottom: 4,
|
|
3088
|
+
paddingLeft: 0,
|
|
3089
|
+
paddingRight: 0,
|
|
3090
|
+
paddingTop: 8
|
|
3091
|
+
})], {
|
|
3092
|
+
backgroundColor: "#ffffff",
|
|
3093
|
+
paddingBottom: 8,
|
|
3094
|
+
paddingLeft: 32,
|
|
3095
|
+
paddingRight: 32,
|
|
3096
|
+
paddingTop: 24,
|
|
3097
|
+
phone: {
|
|
3098
|
+
paddingLeft: 20,
|
|
3099
|
+
paddingRight: 20
|
|
3100
|
+
}
|
|
3101
|
+
}),
|
|
3102
|
+
row("pl-features-row", [col("pl-feat-1-col", 50, [headingBlock("pl-feat-1-title", 3, headingDoc(p("Instant dry-run previews")), {
|
|
3103
|
+
paddingBottom: 6,
|
|
3104
|
+
paddingLeft: 0,
|
|
3105
|
+
paddingRight: 12,
|
|
3106
|
+
paddingTop: 8,
|
|
3107
|
+
phone: { paddingRight: 0 }
|
|
3108
|
+
}), textBlock("pl-feat-1-body", doc(p("Inspect rendered messages with real sample values before activating a schedule, catching missing merge tags early.")), {
|
|
3109
|
+
color: "#475569",
|
|
3110
|
+
fontSize: 14,
|
|
3111
|
+
paddingBottom: 8,
|
|
3112
|
+
paddingLeft: 0,
|
|
3113
|
+
paddingRight: 12,
|
|
3114
|
+
paddingTop: 0,
|
|
3115
|
+
phone: { paddingRight: 0 }
|
|
3116
|
+
})]), col("pl-feat-2-col", 50, [headingBlock("pl-feat-2-title", 3, headingDoc(p("Per-timezone delivery windows")), {
|
|
3117
|
+
paddingBottom: 6,
|
|
3118
|
+
paddingLeft: 12,
|
|
3119
|
+
paddingRight: 0,
|
|
3120
|
+
paddingTop: 8,
|
|
3121
|
+
phone: { paddingLeft: 0 }
|
|
3122
|
+
}), textBlock("pl-feat-2-body", doc(p("Hold sends until morning in each recipient's local time zone, with automatic quiet-hour safeguards built in.")), {
|
|
3123
|
+
color: "#475569",
|
|
3124
|
+
fontSize: 14,
|
|
3125
|
+
paddingBottom: 8,
|
|
3126
|
+
paddingLeft: 12,
|
|
3127
|
+
paddingRight: 0,
|
|
3128
|
+
paddingTop: 0,
|
|
3129
|
+
phone: { paddingLeft: 0 }
|
|
3130
|
+
})])], {
|
|
3131
|
+
backgroundColor: "#ffffff",
|
|
3132
|
+
paddingBottom: 24,
|
|
3133
|
+
paddingLeft: 32,
|
|
3134
|
+
paddingRight: 32,
|
|
3135
|
+
paddingTop: 8,
|
|
3136
|
+
phone: {
|
|
3137
|
+
paddingLeft: 20,
|
|
3138
|
+
paddingRight: 20
|
|
3139
|
+
}
|
|
3140
|
+
}),
|
|
3141
|
+
row("pl-stats-row", [
|
|
3142
|
+
col("pl-stat-1-col", 33.33, [textBlock("pl-stat-1-val", doc(p(bold("3x"))), {
|
|
3143
|
+
align: "center",
|
|
3144
|
+
color: "#0f172a",
|
|
3145
|
+
fontSize: 26,
|
|
3146
|
+
paddingBottom: 2,
|
|
3147
|
+
paddingLeft: 8,
|
|
3148
|
+
paddingRight: 8,
|
|
3149
|
+
paddingTop: 8
|
|
3150
|
+
}), textBlock("pl-stat-1-lbl", doc(p("Faster batch runs")), {
|
|
3151
|
+
align: "center",
|
|
3152
|
+
color: "#475569",
|
|
3153
|
+
fontSize: 13,
|
|
3154
|
+
paddingBottom: 8,
|
|
3155
|
+
paddingLeft: 8,
|
|
3156
|
+
paddingRight: 8,
|
|
3157
|
+
paddingTop: 0
|
|
3158
|
+
})]),
|
|
3159
|
+
col("pl-stat-2-col", 33.33, [textBlock("pl-stat-2-val", doc(p(bold("99.98%"))), {
|
|
3160
|
+
align: "center",
|
|
3161
|
+
color: "#0f172a",
|
|
3162
|
+
fontSize: 26,
|
|
3163
|
+
paddingBottom: 2,
|
|
3164
|
+
paddingLeft: 8,
|
|
3165
|
+
paddingRight: 8,
|
|
3166
|
+
paddingTop: 8
|
|
3167
|
+
}), textBlock("pl-stat-2-lbl", doc(p("Delivery uptime")), {
|
|
3168
|
+
align: "center",
|
|
3169
|
+
color: "#475569",
|
|
3170
|
+
fontSize: 13,
|
|
3171
|
+
paddingBottom: 8,
|
|
3172
|
+
paddingLeft: 8,
|
|
3173
|
+
paddingRight: 8,
|
|
3174
|
+
paddingTop: 0
|
|
3175
|
+
})]),
|
|
3176
|
+
col("pl-stat-3-col", 33.34, [textBlock("pl-stat-3-val", doc(p(bold("0"))), {
|
|
3177
|
+
align: "center",
|
|
3178
|
+
color: "#0f172a",
|
|
3179
|
+
fontSize: 26,
|
|
3180
|
+
paddingBottom: 2,
|
|
3181
|
+
paddingLeft: 8,
|
|
3182
|
+
paddingRight: 8,
|
|
3183
|
+
paddingTop: 8
|
|
3184
|
+
}), textBlock("pl-stat-3-lbl", doc(p("Migration steps")), {
|
|
3185
|
+
align: "center",
|
|
3186
|
+
color: "#475569",
|
|
3187
|
+
fontSize: 13,
|
|
3188
|
+
paddingBottom: 8,
|
|
3189
|
+
paddingLeft: 8,
|
|
3190
|
+
paddingRight: 8,
|
|
3191
|
+
paddingTop: 0
|
|
3192
|
+
})])
|
|
3193
|
+
], {
|
|
3194
|
+
backgroundColor: "#f8fafc",
|
|
3195
|
+
paddingBottom: 16,
|
|
3196
|
+
paddingLeft: 20,
|
|
3197
|
+
paddingRight: 20,
|
|
3198
|
+
paddingTop: 16
|
|
3199
|
+
}),
|
|
3200
|
+
singleColRow("pl-cta-row", "pl-cta-col", [buttonBlock("pl-bottom-cta", "Explore the full launch guide", "{{cta_url}}", {
|
|
3201
|
+
align: "center",
|
|
3202
|
+
paddingBottom: 4,
|
|
3203
|
+
paddingLeft: 0,
|
|
3204
|
+
paddingRight: 0,
|
|
3205
|
+
paddingTop: 4
|
|
3206
|
+
})], {
|
|
3207
|
+
backgroundColor: "#ffffff",
|
|
3208
|
+
paddingBottom: 28,
|
|
3209
|
+
paddingLeft: 32,
|
|
3210
|
+
paddingRight: 32,
|
|
3211
|
+
paddingTop: 24
|
|
3212
|
+
}),
|
|
3213
|
+
singleColRow("pl-footer-row", "pl-footer-col", [socialBlock("pl-social", [
|
|
3214
|
+
{
|
|
3215
|
+
network: "website",
|
|
3216
|
+
url: "{{website_url}}"
|
|
3217
|
+
},
|
|
3218
|
+
{
|
|
3219
|
+
network: "linkedin",
|
|
3220
|
+
url: "https://linkedin.com/company/northstar"
|
|
3221
|
+
},
|
|
3222
|
+
{
|
|
3223
|
+
network: "x",
|
|
3224
|
+
url: "https://x.com/northstar"
|
|
3225
|
+
}
|
|
3226
|
+
], {
|
|
3227
|
+
align: "center",
|
|
3228
|
+
iconSize: 32,
|
|
3229
|
+
iconStyle: "white",
|
|
3230
|
+
paddingBottom: 14,
|
|
3231
|
+
paddingLeft: 0,
|
|
3232
|
+
paddingRight: 0,
|
|
3233
|
+
paddingTop: 0
|
|
3234
|
+
}), textBlock("pl-footer-text", doc(p(tag("company_name"), " · ", tag("company_address"), br(), linkText("Manage preferences", "{{preferences_url}}"), " · ", linkText("Unsubscribe", "{{unsubscribe_url}}"))), {
|
|
3235
|
+
align: "center",
|
|
3236
|
+
color: "#cbd5e1",
|
|
3237
|
+
fontSize: 13,
|
|
3238
|
+
paddingBottom: 0,
|
|
3239
|
+
paddingLeft: 0,
|
|
3240
|
+
paddingRight: 0,
|
|
3241
|
+
paddingTop: 0
|
|
3242
|
+
})], {
|
|
3243
|
+
backgroundColor: "#0f172a",
|
|
3244
|
+
paddingBottom: 32,
|
|
3245
|
+
paddingLeft: 28,
|
|
3246
|
+
paddingRight: 28,
|
|
3247
|
+
paddingTop: 28,
|
|
3248
|
+
phone: {
|
|
3249
|
+
paddingLeft: 20,
|
|
3250
|
+
paddingRight: 20
|
|
3251
|
+
}
|
|
3252
|
+
})
|
|
3253
|
+
]));
|
|
3254
|
+
/** Monthly release notes and structured product changelog. */
|
|
3255
|
+
const changelog = /* #__PURE__ */ defineStarterEmail({
|
|
3256
|
+
category: "product",
|
|
3257
|
+
description: "Structured release notes for product updates",
|
|
3258
|
+
name: "Monthly changelog"
|
|
3259
|
+
}, () => emailDoc({
|
|
3260
|
+
backgroundColor: "#f4f4f5",
|
|
3261
|
+
fontFamily: FONT_SANS,
|
|
3262
|
+
language: "en",
|
|
3263
|
+
preheader: "April release notes: real-time webhook replay, faster keyboard navigation, and 4 fixes.",
|
|
3264
|
+
style: {
|
|
3265
|
+
buttonBackgroundColor: "#4338ca",
|
|
3266
|
+
buttonBorderRadius: 6,
|
|
3267
|
+
emailBackgroundColor: "#ffffff",
|
|
3268
|
+
heading1FontSize: 30,
|
|
3269
|
+
heading2FontSize: 20,
|
|
3270
|
+
heading3FontSize: 16,
|
|
3271
|
+
linkColor: "#4338ca",
|
|
3272
|
+
textColor: "#18181b",
|
|
3273
|
+
textFontSize: 15
|
|
3274
|
+
},
|
|
3275
|
+
width: 600
|
|
3276
|
+
}, [
|
|
3277
|
+
row("cl-header-row", [col("cl-header-left", 67, [textBlock("cl-brand", doc(p(tag("company_name", [{ type: "bold" }]), bold(" Changelog"))), {
|
|
3278
|
+
color: "#18181b",
|
|
3279
|
+
fontSize: 17,
|
|
3280
|
+
paddingBottom: 8,
|
|
3281
|
+
paddingLeft: 0,
|
|
3282
|
+
paddingRight: 8,
|
|
3283
|
+
paddingTop: 8
|
|
3284
|
+
})], { verticalAlign: "middle" }), col("cl-header-right", 33, [textBlock("cl-date", doc(p("April 2026")), {
|
|
3285
|
+
align: "right",
|
|
3286
|
+
color: "#52525b",
|
|
3287
|
+
fontSize: 13,
|
|
3288
|
+
paddingBottom: 8,
|
|
3289
|
+
paddingLeft: 8,
|
|
3290
|
+
paddingRight: 0,
|
|
3291
|
+
paddingTop: 8
|
|
3292
|
+
})], { verticalAlign: "middle" })], {
|
|
3293
|
+
backgroundColor: "#ffffff",
|
|
3294
|
+
paddingBottom: 8,
|
|
3295
|
+
paddingLeft: 32,
|
|
3296
|
+
paddingRight: 32,
|
|
3297
|
+
paddingTop: 24,
|
|
3298
|
+
phone: {
|
|
3299
|
+
paddingLeft: 20,
|
|
3300
|
+
paddingRight: 20
|
|
3301
|
+
},
|
|
3302
|
+
stackOnPhone: false
|
|
3303
|
+
}),
|
|
3304
|
+
singleColRow("cl-body-row", "cl-body-col", [
|
|
3305
|
+
dividerBlock("cl-top-rule", {
|
|
3306
|
+
color: "#e4e4e7",
|
|
3307
|
+
paddingBottom: 20,
|
|
3308
|
+
paddingLeft: 0,
|
|
3309
|
+
paddingRight: 0,
|
|
3310
|
+
paddingTop: 0,
|
|
3311
|
+
thickness: 1
|
|
3312
|
+
}),
|
|
3313
|
+
headingBlock("cl-title", 1, headingDoc(p("What shipped in April")), {
|
|
3314
|
+
paddingBottom: 10,
|
|
3315
|
+
paddingLeft: 0,
|
|
3316
|
+
paddingRight: 0,
|
|
3317
|
+
paddingTop: 0,
|
|
3318
|
+
phone: { fontSize: 25 }
|
|
3319
|
+
}),
|
|
3320
|
+
textBlock("cl-intro", doc(p("Hi ", tag("first_name"), " — here is a quick summary of the new capabilities and polish improvements that landed in ", tag("company_name"), " this month.")), {
|
|
3321
|
+
color: "#3f3f46",
|
|
3322
|
+
paddingBottom: 20,
|
|
3323
|
+
paddingLeft: 0,
|
|
3324
|
+
paddingRight: 0,
|
|
3325
|
+
paddingTop: 0
|
|
3326
|
+
}),
|
|
3327
|
+
textBlock("cl-f1-tag", doc(p(bold("NEW"))), {
|
|
3328
|
+
color: "#4338ca",
|
|
3329
|
+
fontSize: 11,
|
|
3330
|
+
paddingBottom: 4,
|
|
3331
|
+
paddingLeft: 0,
|
|
3332
|
+
paddingRight: 0,
|
|
3333
|
+
paddingTop: 4
|
|
3334
|
+
}),
|
|
3335
|
+
headingBlock("cl-f1-title", 2, headingDoc(p("Real-time webhook replay")), {
|
|
3336
|
+
paddingBottom: 8,
|
|
3337
|
+
paddingLeft: 0,
|
|
3338
|
+
paddingRight: 0,
|
|
3339
|
+
paddingTop: 0
|
|
3340
|
+
}),
|
|
3341
|
+
textBlock("cl-f1-body", doc(p("Inspect failed delivery payloads and replay individual events from your workspace log without writing a single script. ", linkText("Read the webhook replay docs", "{{changelog_url}}"))), {
|
|
3342
|
+
paddingBottom: 18,
|
|
3343
|
+
paddingLeft: 0,
|
|
3344
|
+
paddingRight: 0,
|
|
3345
|
+
paddingTop: 0
|
|
3346
|
+
}),
|
|
3347
|
+
dividerBlock("cl-mid-rule", {
|
|
3348
|
+
color: "#e4e4e7",
|
|
3349
|
+
paddingBottom: 18,
|
|
3350
|
+
paddingLeft: 0,
|
|
3351
|
+
paddingRight: 0,
|
|
3352
|
+
paddingTop: 0,
|
|
3353
|
+
thickness: 1
|
|
3354
|
+
}),
|
|
3355
|
+
textBlock("cl-f2-tag", doc(p(bold("IMPROVED"))), {
|
|
3356
|
+
color: "#047857",
|
|
3357
|
+
fontSize: 11,
|
|
3358
|
+
paddingBottom: 4,
|
|
3359
|
+
paddingLeft: 0,
|
|
3360
|
+
paddingRight: 0,
|
|
3361
|
+
paddingTop: 0
|
|
3362
|
+
}),
|
|
3363
|
+
headingBlock("cl-f2-title", 2, headingDoc(p("Faster keyboard navigation across tables")), {
|
|
3364
|
+
paddingBottom: 8,
|
|
3365
|
+
paddingLeft: 0,
|
|
3366
|
+
paddingRight: 0,
|
|
3367
|
+
paddingTop: 0
|
|
3368
|
+
}),
|
|
3369
|
+
textBlock("cl-f2-body", doc(p("Move between rows, open filters, and copy document IDs with single-key shortcuts. Focus rings now stay visible across both light and dark themes.")), {
|
|
3370
|
+
paddingBottom: 20,
|
|
3371
|
+
paddingLeft: 0,
|
|
3372
|
+
paddingRight: 0,
|
|
3373
|
+
paddingTop: 0
|
|
3374
|
+
}),
|
|
3375
|
+
textBlock("cl-fixes-box", doc(p(bold("Also shipped this month")), ul(p("Reduced cold HTML export latency by 34% on large digests."), p("Added automatic phone-padding scaling for three-column rows."), p("Fixed duplicate focus announcements in nested menus."), p("Improved CSV export formatting for custom timestamp columns."))), {
|
|
3376
|
+
borderColor: "#e4e4e7",
|
|
3377
|
+
borderRadius: 6,
|
|
3378
|
+
borderStyle: "solid",
|
|
3379
|
+
borderWidth: 1,
|
|
3380
|
+
boxBackgroundColor: "#f4f4f5",
|
|
3381
|
+
color: "#18181b",
|
|
3382
|
+
fontSize: 14,
|
|
3383
|
+
paddingBottom: 18,
|
|
3384
|
+
paddingLeft: 20,
|
|
3385
|
+
paddingRight: 20,
|
|
3386
|
+
paddingTop: 18
|
|
3387
|
+
}),
|
|
3388
|
+
buttonBlock("cl-cta", "Read the full April release notes", "{{changelog_url}}", {
|
|
3389
|
+
align: "left",
|
|
3390
|
+
paddingBottom: 8,
|
|
3391
|
+
paddingLeft: 0,
|
|
3392
|
+
paddingRight: 0,
|
|
3393
|
+
paddingTop: 22
|
|
3394
|
+
})
|
|
3395
|
+
], {
|
|
3396
|
+
backgroundColor: "#ffffff",
|
|
3397
|
+
paddingBottom: 24,
|
|
3398
|
+
paddingLeft: 32,
|
|
3399
|
+
paddingRight: 32,
|
|
3400
|
+
paddingTop: 0,
|
|
3401
|
+
phone: {
|
|
3402
|
+
paddingLeft: 20,
|
|
3403
|
+
paddingRight: 20
|
|
3404
|
+
}
|
|
3405
|
+
}),
|
|
3406
|
+
singleColRow("cl-footer-row", "cl-footer-col", [textBlock("cl-footer-text", doc(p(tag("company_name"), " · ", tag("company_address"), br(), linkText("Manage preferences", "{{preferences_url}}"), " · ", linkText("Unsubscribe from release notes", "{{unsubscribe_url}}"))), {
|
|
3407
|
+
align: "center",
|
|
3408
|
+
color: "#52525b",
|
|
3409
|
+
fontSize: 13,
|
|
3410
|
+
paddingBottom: 0,
|
|
3411
|
+
paddingLeft: 0,
|
|
3412
|
+
paddingRight: 0,
|
|
3413
|
+
paddingTop: 0
|
|
3414
|
+
})], {
|
|
3415
|
+
backgroundColor: "#f4f4f5",
|
|
3416
|
+
paddingBottom: 24,
|
|
3417
|
+
paddingLeft: 24,
|
|
3418
|
+
paddingRight: 24,
|
|
3419
|
+
paddingTop: 20
|
|
3420
|
+
})
|
|
3421
|
+
]));
|
|
3422
|
+
/** Video demo and walkthrough spotlight built around a format v4 Video Block. */
|
|
3423
|
+
const videoSpotlight = /* #__PURE__ */ defineStarterEmail({
|
|
3424
|
+
category: "product",
|
|
3425
|
+
description: "Walkthrough highlight built around a Video Block",
|
|
3426
|
+
name: "Video spotlight"
|
|
3427
|
+
}, () => emailDoc({
|
|
3428
|
+
backgroundColor: "#f1f5f9",
|
|
3429
|
+
fontFamily: FONT_SANS,
|
|
3430
|
+
language: "en",
|
|
3431
|
+
preheader: "Watch our 3-minute walkthrough on building reusable rows and checking mobile layout.",
|
|
3432
|
+
style: {
|
|
3433
|
+
buttonBackgroundColor: "#1d4ed8",
|
|
3434
|
+
buttonBorderRadius: 8,
|
|
3435
|
+
emailBackgroundColor: "#ffffff",
|
|
3436
|
+
heading1FontSize: 28,
|
|
3437
|
+
heading2FontSize: 20,
|
|
3438
|
+
heading3FontSize: 16,
|
|
3439
|
+
linkColor: "#1d4ed8",
|
|
3440
|
+
textColor: "#0f172a",
|
|
3441
|
+
textFontSize: 16
|
|
3442
|
+
},
|
|
3443
|
+
width: 600
|
|
3444
|
+
}, [
|
|
3445
|
+
singleColRow("vs-header-row", "vs-header-col", [textBlock("vs-brand", doc(p(tag("company_name", [{ type: "bold" }]), " · Product Walkthrough")), {
|
|
3446
|
+
color: "#475569",
|
|
3447
|
+
fontSize: 13,
|
|
3448
|
+
paddingBottom: 12,
|
|
3449
|
+
paddingLeft: 0,
|
|
3450
|
+
paddingRight: 0,
|
|
3451
|
+
paddingTop: 4
|
|
3452
|
+
}), dividerBlock("vs-top-rule", {
|
|
3453
|
+
color: "#e2e8f0",
|
|
3454
|
+
paddingBottom: 0,
|
|
3455
|
+
paddingLeft: 0,
|
|
3456
|
+
paddingRight: 0,
|
|
3457
|
+
paddingTop: 0,
|
|
3458
|
+
thickness: 1
|
|
3459
|
+
})], {
|
|
3460
|
+
backgroundColor: "#ffffff",
|
|
3461
|
+
paddingBottom: 8,
|
|
3462
|
+
paddingLeft: 32,
|
|
3463
|
+
paddingRight: 32,
|
|
3464
|
+
paddingTop: 24,
|
|
3465
|
+
phone: {
|
|
3466
|
+
paddingLeft: 20,
|
|
3467
|
+
paddingRight: 20
|
|
3468
|
+
}
|
|
3469
|
+
}),
|
|
3470
|
+
singleColRow("vs-video-row", "vs-video-col", [
|
|
3471
|
+
headingBlock("vs-title", 1, headingDoc(p("Build a complete launch email in three minutes")), {
|
|
3472
|
+
paddingBottom: 10,
|
|
3473
|
+
paddingLeft: 0,
|
|
3474
|
+
paddingRight: 0,
|
|
3475
|
+
paddingTop: 12,
|
|
3476
|
+
phone: { fontSize: 24 }
|
|
3477
|
+
}),
|
|
3478
|
+
textBlock("vs-intro", doc(p("Hi ", tag("first_name"), " — we recorded a short, unscripted walkthrough showing how teams compose reusable layouts, adjust phone spacing, and pass every pre-send check.")), {
|
|
3479
|
+
color: "#334155",
|
|
3480
|
+
paddingBottom: 18,
|
|
3481
|
+
paddingLeft: 0,
|
|
3482
|
+
paddingRight: 0,
|
|
3483
|
+
paddingTop: 0
|
|
3484
|
+
}),
|
|
3485
|
+
videoBlock("vs-video", {
|
|
3486
|
+
alt: "Three-minute walkthrough showing email layout assembly and desktop-to-phone previews",
|
|
3487
|
+
color: "#1d4ed8",
|
|
3488
|
+
label: "Watch the 3-minute walkthrough",
|
|
3489
|
+
paddingBottom: 16,
|
|
3490
|
+
paddingLeft: 0,
|
|
3491
|
+
paddingRight: 0,
|
|
3492
|
+
paddingTop: 0,
|
|
3493
|
+
play: "below",
|
|
3494
|
+
thumbnail: "{{video_thumbnail_url}}",
|
|
3495
|
+
url: "{{video_url}}"
|
|
3496
|
+
})
|
|
3497
|
+
], {
|
|
3498
|
+
backgroundColor: "#ffffff",
|
|
3499
|
+
paddingBottom: 12,
|
|
3500
|
+
paddingLeft: 32,
|
|
3501
|
+
paddingRight: 32,
|
|
3502
|
+
paddingTop: 4,
|
|
3503
|
+
phone: {
|
|
3504
|
+
paddingLeft: 20,
|
|
3505
|
+
paddingRight: 20
|
|
3506
|
+
}
|
|
3507
|
+
}),
|
|
3508
|
+
singleColRow("vs-chapters-row", "vs-chapters-col", [
|
|
3509
|
+
headingBlock("vs-chapters-title", 2, headingDoc(p("Inside this walkthrough")), {
|
|
3510
|
+
paddingBottom: 8,
|
|
3511
|
+
paddingLeft: 0,
|
|
3512
|
+
paddingRight: 0,
|
|
3513
|
+
paddingTop: 4
|
|
3514
|
+
}),
|
|
3515
|
+
textBlock("vs-chapters-list", doc(ul(p(bold("0:00 — Shared styles: "), "Setting fonts, link colors, and button corners once."), p(bold("1:12 — Saved rows: "), "Dropping pre-approved headers, feature grids, and footers."), p(bold("2:25 — Check mode: "), "Verifying contrast ratios, merge tags, and plain-text output."))), {
|
|
3516
|
+
color: "#334155",
|
|
3517
|
+
fontSize: 15,
|
|
3518
|
+
paddingBottom: 18,
|
|
3519
|
+
paddingLeft: 0,
|
|
3520
|
+
paddingRight: 0,
|
|
3521
|
+
paddingTop: 0
|
|
3522
|
+
}),
|
|
3523
|
+
buttonBlock("vs-cta", "Open your workspace to try it", "{{app_url}}", {
|
|
3524
|
+
align: "left",
|
|
3525
|
+
paddingBottom: 8,
|
|
3526
|
+
paddingLeft: 0,
|
|
3527
|
+
paddingRight: 0,
|
|
3528
|
+
paddingTop: 4
|
|
3529
|
+
})
|
|
3530
|
+
], {
|
|
3531
|
+
backgroundColor: "#ffffff",
|
|
3532
|
+
paddingBottom: 28,
|
|
3533
|
+
paddingLeft: 32,
|
|
3534
|
+
paddingRight: 32,
|
|
3535
|
+
paddingTop: 8,
|
|
3536
|
+
phone: {
|
|
3537
|
+
paddingLeft: 20,
|
|
3538
|
+
paddingRight: 20
|
|
3539
|
+
}
|
|
3540
|
+
}),
|
|
3541
|
+
singleColRow("vs-footer-row", "vs-footer-col", [socialBlock("vs-social", [
|
|
3542
|
+
{
|
|
3543
|
+
network: "youtube",
|
|
3544
|
+
url: "https://youtube.com/@northstar"
|
|
3545
|
+
},
|
|
3546
|
+
{
|
|
3547
|
+
network: "website",
|
|
3548
|
+
url: "{{website_url}}"
|
|
3549
|
+
},
|
|
3550
|
+
{
|
|
3551
|
+
network: "linkedin",
|
|
3552
|
+
url: "https://linkedin.com/company/northstar"
|
|
3553
|
+
}
|
|
3554
|
+
], {
|
|
3555
|
+
align: "center",
|
|
3556
|
+
iconSize: 32,
|
|
3557
|
+
iconStyle: "color",
|
|
3558
|
+
paddingBottom: 12,
|
|
3559
|
+
paddingLeft: 0,
|
|
3560
|
+
paddingRight: 0,
|
|
3561
|
+
paddingTop: 4
|
|
3562
|
+
}), textBlock("vs-footer-text", doc(p(tag("company_name"), " · ", tag("company_address"), br(), linkText("Manage preferences", "{{preferences_url}}"), " · ", linkText("Unsubscribe", "{{unsubscribe_url}}"))), {
|
|
3563
|
+
align: "center",
|
|
3564
|
+
color: "#475569",
|
|
3565
|
+
fontSize: 13,
|
|
3566
|
+
paddingBottom: 0,
|
|
3567
|
+
paddingLeft: 0,
|
|
3568
|
+
paddingRight: 0,
|
|
3569
|
+
paddingTop: 0
|
|
3570
|
+
})], {
|
|
3571
|
+
backgroundColor: "#f8fafc",
|
|
3572
|
+
paddingBottom: 24,
|
|
3573
|
+
paddingLeft: 28,
|
|
3574
|
+
paddingRight: 28,
|
|
3575
|
+
paddingTop: 18,
|
|
3576
|
+
phone: {
|
|
3577
|
+
paddingLeft: 20,
|
|
3578
|
+
paddingRight: 20
|
|
3579
|
+
}
|
|
3580
|
+
})
|
|
3581
|
+
]));
|
|
3582
|
+
// src/starters/transactional.ts
|
|
3583
|
+
/** Transactional payment receipt with structured invoice metadata and total. */
|
|
3584
|
+
const receipt = /* #__PURE__ */ defineStarterEmail({
|
|
3585
|
+
category: "transactional",
|
|
3586
|
+
description: "Clean invoice summary and billing details",
|
|
3587
|
+
name: "Payment receipt"
|
|
3588
|
+
}, () => emailDoc({
|
|
3589
|
+
backgroundColor: "#f4f4f5",
|
|
3590
|
+
fontFamily: FONT_SANS,
|
|
3591
|
+
language: "en",
|
|
3592
|
+
preheader: "Payment received: {{amount_paid}} for {{plan_name}} (Invoice {{invoice_number}}).",
|
|
3593
|
+
style: {
|
|
3594
|
+
buttonBackgroundColor: "#111827",
|
|
3595
|
+
buttonBorderRadius: 6,
|
|
3596
|
+
emailBackgroundColor: "#ffffff",
|
|
3597
|
+
heading1FontSize: 26,
|
|
3598
|
+
heading2FontSize: 18,
|
|
3599
|
+
linkColor: "#1d4ed8",
|
|
3600
|
+
textColor: "#111827",
|
|
3601
|
+
textFontSize: 15
|
|
3602
|
+
},
|
|
3603
|
+
width: 560
|
|
3604
|
+
}, [
|
|
3605
|
+
row("rc-header-row", [col("rc-header-left", 50, [textBlock("rc-brand", doc(p(tag("company_name", [{ type: "bold" }]))), {
|
|
3606
|
+
color: "#111827",
|
|
3607
|
+
fontSize: 17,
|
|
3608
|
+
paddingBottom: 8,
|
|
3609
|
+
paddingLeft: 0,
|
|
3610
|
+
paddingRight: 8,
|
|
3611
|
+
paddingTop: 8
|
|
3612
|
+
})], { verticalAlign: "middle" }), col("rc-header-right", 50, [textBlock("rc-status", doc(p(bold("PAID RECEIPT"))), {
|
|
3613
|
+
align: "right",
|
|
3614
|
+
color: "#047857",
|
|
3615
|
+
fontSize: 12,
|
|
3616
|
+
paddingBottom: 8,
|
|
3617
|
+
paddingLeft: 8,
|
|
3618
|
+
paddingRight: 0,
|
|
3619
|
+
paddingTop: 8
|
|
3620
|
+
})], { verticalAlign: "middle" })], {
|
|
3621
|
+
backgroundColor: "#ffffff",
|
|
3622
|
+
paddingBottom: 8,
|
|
3623
|
+
paddingLeft: 32,
|
|
3624
|
+
paddingRight: 32,
|
|
3625
|
+
paddingTop: 24,
|
|
3626
|
+
phone: {
|
|
3627
|
+
paddingLeft: 20,
|
|
3628
|
+
paddingRight: 20
|
|
3629
|
+
},
|
|
3630
|
+
stackOnPhone: false
|
|
3631
|
+
}),
|
|
3632
|
+
singleColRow("rc-summary-row", "rc-summary-col", [
|
|
3633
|
+
dividerBlock("rc-top-rule", {
|
|
3634
|
+
color: "#e5e7eb",
|
|
3635
|
+
paddingBottom: 20,
|
|
3636
|
+
paddingLeft: 0,
|
|
3637
|
+
paddingRight: 0,
|
|
3638
|
+
paddingTop: 0,
|
|
3639
|
+
thickness: 1
|
|
3640
|
+
}),
|
|
3641
|
+
headingBlock("rc-title", 1, headingDoc(p("Receipt for ", tag("amount_paid"))), {
|
|
3642
|
+
paddingBottom: 8,
|
|
3643
|
+
paddingLeft: 0,
|
|
3644
|
+
paddingRight: 0,
|
|
3645
|
+
paddingTop: 0
|
|
3646
|
+
}),
|
|
3647
|
+
textBlock("rc-intro", doc(p("Hi ", tag("first_name"), ", thank you for your payment. Keep this receipt for your accounting records.")), {
|
|
3648
|
+
color: "#4b5563",
|
|
3649
|
+
paddingBottom: 16,
|
|
3650
|
+
paddingLeft: 0,
|
|
3651
|
+
paddingRight: 0,
|
|
3652
|
+
paddingTop: 0
|
|
3653
|
+
})
|
|
3654
|
+
], {
|
|
3655
|
+
backgroundColor: "#ffffff",
|
|
3656
|
+
paddingBottom: 4,
|
|
3657
|
+
paddingLeft: 32,
|
|
3658
|
+
paddingRight: 32,
|
|
3659
|
+
paddingTop: 0,
|
|
3660
|
+
phone: {
|
|
3661
|
+
paddingLeft: 20,
|
|
3662
|
+
paddingRight: 20
|
|
3663
|
+
}
|
|
3664
|
+
}),
|
|
3665
|
+
row("rc-meta-row", [col("rc-meta-left", 50, [textBlock("rc-meta-1", doc(p(bold("Invoice number"), br(), tag("invoice_number")), p(bold("Date paid"), br(), tag("invoice_date"))), {
|
|
3666
|
+
color: "#111827",
|
|
3667
|
+
fontSize: 14,
|
|
3668
|
+
paddingBottom: 14,
|
|
3669
|
+
paddingLeft: 16,
|
|
3670
|
+
paddingRight: 16,
|
|
3671
|
+
paddingTop: 14
|
|
3672
|
+
})], {
|
|
3673
|
+
backgroundColor: "#f9fafb",
|
|
3674
|
+
borderColor: "#e5e7eb",
|
|
3675
|
+
borderStyle: "solid",
|
|
3676
|
+
borderWidth: 1
|
|
3677
|
+
}), col("rc-meta-right", 50, [textBlock("rc-meta-2", doc(p(bold("Plan"), br(), tag("plan_name")), p(bold("Payment method"), br(), tag("payment_method"))), {
|
|
3678
|
+
color: "#111827",
|
|
3679
|
+
fontSize: 14,
|
|
3680
|
+
paddingBottom: 14,
|
|
3681
|
+
paddingLeft: 16,
|
|
3682
|
+
paddingRight: 16,
|
|
3683
|
+
paddingTop: 14
|
|
3684
|
+
})], {
|
|
3685
|
+
backgroundColor: "#f9fafb",
|
|
3686
|
+
borderColor: "#e5e7eb",
|
|
3687
|
+
borderStyle: "solid",
|
|
3688
|
+
borderWidth: 1
|
|
3689
|
+
})], {
|
|
3690
|
+
backgroundColor: "#ffffff",
|
|
3691
|
+
paddingBottom: 18,
|
|
3692
|
+
paddingLeft: 32,
|
|
3693
|
+
paddingRight: 32,
|
|
3694
|
+
paddingTop: 4,
|
|
3695
|
+
phone: {
|
|
3696
|
+
paddingLeft: 20,
|
|
3697
|
+
paddingRight: 20
|
|
3698
|
+
}
|
|
3699
|
+
}),
|
|
3700
|
+
row("rc-line-item-row", [col("rc-item-desc-col", 67, [textBlock("rc-item-desc", doc(p(tag("plan_name"), " — Monthly subscription")), {
|
|
3701
|
+
color: "#374151",
|
|
3702
|
+
fontSize: 14,
|
|
3703
|
+
paddingBottom: 10,
|
|
3704
|
+
paddingLeft: 0,
|
|
3705
|
+
paddingRight: 8,
|
|
3706
|
+
paddingTop: 8
|
|
3707
|
+
})]), col("rc-item-price-col", 33, [textBlock("rc-item-price", doc(p(tag("amount_paid", [{ type: "bold" }]))), {
|
|
3708
|
+
align: "right",
|
|
3709
|
+
color: "#111827",
|
|
3710
|
+
fontSize: 14,
|
|
3711
|
+
paddingBottom: 10,
|
|
3712
|
+
paddingLeft: 8,
|
|
3713
|
+
paddingRight: 0,
|
|
3714
|
+
paddingTop: 8
|
|
3715
|
+
})])], {
|
|
3716
|
+
backgroundColor: "#ffffff",
|
|
3717
|
+
paddingBottom: 4,
|
|
3718
|
+
paddingLeft: 32,
|
|
3719
|
+
paddingRight: 32,
|
|
3720
|
+
paddingTop: 4,
|
|
3721
|
+
phone: {
|
|
3722
|
+
paddingLeft: 20,
|
|
3723
|
+
paddingRight: 20
|
|
3724
|
+
},
|
|
3725
|
+
stackOnPhone: false
|
|
3726
|
+
}),
|
|
3727
|
+
singleColRow("rc-total-divider-row", "rc-total-divider-col", [dividerBlock("rc-total-rule", {
|
|
3728
|
+
color: "#d1d5db",
|
|
3729
|
+
paddingBottom: 0,
|
|
3730
|
+
paddingLeft: 0,
|
|
3731
|
+
paddingRight: 0,
|
|
3732
|
+
paddingTop: 0,
|
|
3733
|
+
thickness: 1
|
|
3734
|
+
})], {
|
|
3735
|
+
backgroundColor: "#ffffff",
|
|
3736
|
+
paddingBottom: 4,
|
|
3737
|
+
paddingLeft: 32,
|
|
3738
|
+
paddingRight: 32,
|
|
3739
|
+
paddingTop: 4,
|
|
3740
|
+
phone: {
|
|
3741
|
+
paddingLeft: 20,
|
|
3742
|
+
paddingRight: 20
|
|
3743
|
+
}
|
|
3744
|
+
}),
|
|
3745
|
+
row("rc-total-row", [col("rc-total-label-col", 67, [textBlock("rc-total-label", doc(p(bold("Total paid"))), {
|
|
3746
|
+
color: "#111827",
|
|
3747
|
+
fontSize: 15,
|
|
3748
|
+
paddingBottom: 12,
|
|
3749
|
+
paddingLeft: 0,
|
|
3750
|
+
paddingRight: 8,
|
|
3751
|
+
paddingTop: 8
|
|
3752
|
+
})]), col("rc-total-val-col", 33, [textBlock("rc-total-val", doc(p(tag("amount_paid", [{ type: "bold" }]))), {
|
|
3753
|
+
align: "right",
|
|
3754
|
+
color: "#111827",
|
|
3755
|
+
fontSize: 15,
|
|
3756
|
+
paddingBottom: 12,
|
|
3757
|
+
paddingLeft: 8,
|
|
3758
|
+
paddingRight: 0,
|
|
3759
|
+
paddingTop: 8
|
|
3760
|
+
})])], {
|
|
3761
|
+
backgroundColor: "#ffffff",
|
|
3762
|
+
paddingBottom: 8,
|
|
3763
|
+
paddingLeft: 32,
|
|
3764
|
+
paddingRight: 32,
|
|
3765
|
+
paddingTop: 0,
|
|
3766
|
+
phone: {
|
|
3767
|
+
paddingLeft: 20,
|
|
3768
|
+
paddingRight: 20
|
|
3769
|
+
},
|
|
3770
|
+
stackOnPhone: false
|
|
3771
|
+
}),
|
|
3772
|
+
singleColRow("rc-action-row", "rc-action-col", [buttonBlock("rc-pdf-btn", "Download PDF invoice", "{{invoice_url}}", {
|
|
3773
|
+
align: "left",
|
|
3774
|
+
paddingBottom: 16,
|
|
3775
|
+
paddingLeft: 0,
|
|
3776
|
+
paddingRight: 0,
|
|
3777
|
+
paddingTop: 8
|
|
3778
|
+
}), textBlock("rc-support", doc(p("Questions about this charge or need a billing address update? Contact ", tagLink("support_email", "mailto:{{support_email}}"), ".")), {
|
|
3779
|
+
color: "#4b5563",
|
|
3780
|
+
fontSize: 14,
|
|
3781
|
+
paddingBottom: 4,
|
|
3782
|
+
paddingLeft: 0,
|
|
3783
|
+
paddingRight: 0,
|
|
3784
|
+
paddingTop: 0
|
|
3785
|
+
})], {
|
|
3786
|
+
backgroundColor: "#ffffff",
|
|
3787
|
+
paddingBottom: 28,
|
|
3788
|
+
paddingLeft: 32,
|
|
3789
|
+
paddingRight: 32,
|
|
3790
|
+
paddingTop: 4,
|
|
3791
|
+
phone: {
|
|
3792
|
+
paddingLeft: 20,
|
|
3793
|
+
paddingRight: 20
|
|
3794
|
+
}
|
|
3795
|
+
}),
|
|
3796
|
+
singleColRow("rc-footer-row", "rc-footer-col", [textBlock("rc-footer-text", doc(p(tag("company_name"), " · ", tag("company_address"), br(), linkText("Manage billing email preferences", "{{unsubscribe_url}}"))), {
|
|
3797
|
+
align: "center",
|
|
3798
|
+
color: "#52525b",
|
|
3799
|
+
fontSize: 13,
|
|
3800
|
+
paddingBottom: 0,
|
|
3801
|
+
paddingLeft: 0,
|
|
3802
|
+
paddingRight: 0,
|
|
3803
|
+
paddingTop: 0
|
|
3804
|
+
})], {
|
|
3805
|
+
backgroundColor: "#f4f4f5",
|
|
3806
|
+
paddingBottom: 24,
|
|
3807
|
+
paddingLeft: 24,
|
|
3808
|
+
paddingRight: 24,
|
|
3809
|
+
paddingTop: 20
|
|
3810
|
+
})
|
|
3811
|
+
]));
|
|
3812
|
+
/** High-clarity password reset and account security notice. */
|
|
3813
|
+
const passwordReset = /* #__PURE__ */ defineStarterEmail({
|
|
3814
|
+
category: "transactional",
|
|
3815
|
+
description: "High-clarity security link with expiry notice",
|
|
3816
|
+
name: "Password reset"
|
|
3817
|
+
}, () => emailDoc({
|
|
3818
|
+
backgroundColor: "#f4f4f5",
|
|
3819
|
+
fontFamily: FONT_SANS,
|
|
3820
|
+
language: "en",
|
|
3821
|
+
preheader: "Use this one-time link within {{expiry_minutes}} minutes to reset your password.",
|
|
3822
|
+
style: {
|
|
3823
|
+
buttonBackgroundColor: "#0f172a",
|
|
3824
|
+
buttonBorderRadius: 6,
|
|
3825
|
+
emailBackgroundColor: "#ffffff",
|
|
3826
|
+
heading1FontSize: 26,
|
|
3827
|
+
linkColor: "#1d4ed8",
|
|
3828
|
+
textColor: "#111827",
|
|
3829
|
+
textFontSize: 16
|
|
3830
|
+
},
|
|
3831
|
+
width: 540
|
|
3832
|
+
}, [
|
|
3833
|
+
singleColRow("pr-header-row", "pr-header-col", [textBlock("pr-brand", doc(p(tag("company_name", [{ type: "bold" }]), " · Account Security")), {
|
|
3834
|
+
color: "#475569",
|
|
3835
|
+
fontSize: 13,
|
|
3836
|
+
paddingBottom: 14,
|
|
3837
|
+
paddingLeft: 0,
|
|
3838
|
+
paddingRight: 0,
|
|
3839
|
+
paddingTop: 4
|
|
3840
|
+
}), dividerBlock("pr-top-rule", {
|
|
3841
|
+
color: "#e4e4e7",
|
|
3842
|
+
paddingBottom: 0,
|
|
3843
|
+
paddingLeft: 0,
|
|
3844
|
+
paddingRight: 0,
|
|
3845
|
+
paddingTop: 0,
|
|
3846
|
+
thickness: 1
|
|
3847
|
+
})], {
|
|
3848
|
+
backgroundColor: "#ffffff",
|
|
3849
|
+
paddingBottom: 8,
|
|
3850
|
+
paddingLeft: 32,
|
|
3851
|
+
paddingRight: 32,
|
|
3852
|
+
paddingTop: 24,
|
|
3853
|
+
phone: {
|
|
3854
|
+
paddingLeft: 20,
|
|
3855
|
+
paddingRight: 20
|
|
3856
|
+
}
|
|
3857
|
+
}),
|
|
3858
|
+
singleColRow("pr-body-row", "pr-body-col", [
|
|
3859
|
+
headingBlock("pr-title", 1, headingDoc(p("Reset your password")), {
|
|
3860
|
+
paddingBottom: 12,
|
|
3861
|
+
paddingLeft: 0,
|
|
3862
|
+
paddingRight: 0,
|
|
3863
|
+
paddingTop: 12
|
|
3864
|
+
}),
|
|
3865
|
+
textBlock("pr-copy", doc(p("Hi ", tag("first_name"), ", we received a request to reset the password for your ", tag("company_name"), " account. Use the button below to choose a new password.")), {
|
|
3866
|
+
paddingBottom: 20,
|
|
3867
|
+
paddingLeft: 0,
|
|
3868
|
+
paddingRight: 0,
|
|
3869
|
+
paddingTop: 0
|
|
3870
|
+
}),
|
|
3871
|
+
buttonBlock("pr-cta", "Choose a new password", "{{reset_url}}", {
|
|
3872
|
+
align: "left",
|
|
3873
|
+
paddingBottom: 22,
|
|
3874
|
+
paddingLeft: 0,
|
|
3875
|
+
paddingRight: 0,
|
|
3876
|
+
paddingTop: 0
|
|
3877
|
+
}),
|
|
3878
|
+
textBlock("pr-notice-box", doc(p(bold("Security details: "), "This link expires in ", tag("expiry_minutes", [{ type: "bold" }]), " minutes and can only be used once. If you did not request a password reset, you can safely ignore this email — your password has not changed.")), {
|
|
3879
|
+
borderColor: "#cbd5e1",
|
|
3880
|
+
borderRadius: 6,
|
|
3881
|
+
borderStyle: "solid",
|
|
3882
|
+
borderWidth: 1,
|
|
3883
|
+
boxBackgroundColor: "#f8fafc",
|
|
3884
|
+
color: "#1e293b",
|
|
3885
|
+
fontSize: 14,
|
|
3886
|
+
paddingBottom: 16,
|
|
3887
|
+
paddingLeft: 18,
|
|
3888
|
+
paddingRight: 18,
|
|
3889
|
+
paddingTop: 16
|
|
3890
|
+
}),
|
|
3891
|
+
textBlock("pr-help", doc(p("Need help securing your account? ", linkText("Visit the security help center", "{{help_url}}"), " or contact ", tagLink("support_email", "mailto:{{support_email}}"), ".")), {
|
|
3892
|
+
color: "#475569",
|
|
3893
|
+
fontSize: 14,
|
|
3894
|
+
paddingBottom: 4,
|
|
3895
|
+
paddingLeft: 0,
|
|
3896
|
+
paddingRight: 0,
|
|
3897
|
+
paddingTop: 18
|
|
3898
|
+
})
|
|
3899
|
+
], {
|
|
3900
|
+
backgroundColor: "#ffffff",
|
|
3901
|
+
paddingBottom: 28,
|
|
3902
|
+
paddingLeft: 32,
|
|
3903
|
+
paddingRight: 32,
|
|
3904
|
+
paddingTop: 4,
|
|
3905
|
+
phone: {
|
|
3906
|
+
paddingLeft: 20,
|
|
3907
|
+
paddingRight: 20
|
|
3908
|
+
}
|
|
3909
|
+
}),
|
|
3910
|
+
singleColRow("pr-footer-row", "pr-footer-col", [textBlock("pr-footer-text", doc(p(tag("company_name"), " · ", tag("company_address"), br(), linkText("Manage security notification preferences", "{{unsubscribe_url}}"))), {
|
|
3911
|
+
align: "center",
|
|
3912
|
+
color: "#52525b",
|
|
3913
|
+
fontSize: 13,
|
|
3914
|
+
paddingBottom: 0,
|
|
3915
|
+
paddingLeft: 0,
|
|
3916
|
+
paddingRight: 0,
|
|
3917
|
+
paddingTop: 0
|
|
3918
|
+
})], {
|
|
3919
|
+
backgroundColor: "#f4f4f5",
|
|
3920
|
+
paddingBottom: 24,
|
|
3921
|
+
paddingLeft: 24,
|
|
3922
|
+
paddingRight: 24,
|
|
3923
|
+
paddingTop: 20
|
|
3924
|
+
})
|
|
3925
|
+
]));
|
|
3926
|
+
// src/starters/index.ts
|
|
3927
|
+
/** All 16 Starter emails in catalog order, ready for `<mail-quilt>`'s `starterEmails` property. */
|
|
3928
|
+
const STARTER_EMAILS = [
|
|
3929
|
+
founderLetter,
|
|
3930
|
+
saasWelcome,
|
|
3931
|
+
productLaunch,
|
|
3932
|
+
changelog,
|
|
3933
|
+
newsletter,
|
|
3934
|
+
receipt,
|
|
3935
|
+
passwordReset,
|
|
3936
|
+
onboardingTip,
|
|
3937
|
+
eventInvite,
|
|
3938
|
+
trialEnding,
|
|
3939
|
+
reengagement,
|
|
3940
|
+
promoOffer,
|
|
3941
|
+
feedbackRequest,
|
|
3942
|
+
weeklyDigest,
|
|
3943
|
+
videoSpotlight,
|
|
3944
|
+
companyAnnouncement
|
|
3945
|
+
];
|
|
3946
|
+
export { SAVED_ROWS, SAVED_ROW_CATEGORIES, STARTER_EMAILS, STARTER_EMAIL_CATEGORIES, TEMPLATE_MERGE_TAGS, changelog, companyAnnouncement, ctaBannerDark, ctaBannerSoft, eventInvite, featureGridThreeCol, featureGridTwoCol, feedbackRequest, footerDark, footerLight, founderLetter, founderSignOff, headerMinimal, headerWithNav, heroCentered, heroSplit, newsletter, onboardingTip, passwordReset, pricingHighlight, productLaunch, promoOffer, receipt, reengagement, saasWelcome, socialBar, statStrip, testimonialQuote, trialEnding, videoCard, videoSpotlight, weeklyDigest };
|
|
3947
|
+
|
|
3948
|
+
//# sourceMappingURL=index.js.map
|