@tracked/emails 0.2.0 → 0.2.2
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/dist/components/content.d.ts +58 -0
- package/dist/components/content.d.ts.map +1 -0
- package/dist/components/content.js +166 -0
- package/dist/components/content.js.map +1 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +11 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/interactive.d.ts +23 -0
- package/dist/components/interactive.d.ts.map +1 -0
- package/dist/components/interactive.js +66 -0
- package/dist/components/interactive.js.map +1 -0
- package/dist/components/layout.d.ts +27 -0
- package/dist/components/layout.d.ts.map +1 -0
- package/dist/components/layout.js +83 -0
- package/dist/components/layout.js.map +1 -0
- package/dist/components/tokens.d.ts +58 -0
- package/dist/components/tokens.d.ts.map +1 -0
- package/dist/components/tokens.js +64 -0
- package/dist/components/tokens.js.map +1 -0
- package/dist/components/typography.d.ts +31 -0
- package/dist/components/typography.d.ts.map +1 -0
- package/dist/components/typography.js +72 -0
- package/dist/components/typography.js.map +1 -0
- package/dist/emails/anniversary.d.ts +12 -0
- package/dist/emails/anniversary.d.ts.map +1 -0
- package/dist/emails/anniversary.js +41 -0
- package/dist/emails/anniversary.js.map +1 -0
- package/dist/emails/app-review-request.d.ts +11 -0
- package/dist/emails/app-review-request.d.ts.map +1 -0
- package/dist/emails/app-review-request.js +24 -0
- package/dist/emails/app-review-request.js.map +1 -0
- package/dist/emails/bodyweight-goal-reached.d.ts +1 -1
- package/dist/emails/bodyweight-goal-reached.d.ts.map +1 -1
- package/dist/emails/bodyweight-goal-reached.js +86 -159
- package/dist/emails/bodyweight-goal-reached.js.map +1 -1
- package/dist/emails/client-inactive-alert.d.ts +14 -0
- package/dist/emails/client-inactive-alert.d.ts.map +1 -0
- package/dist/emails/client-inactive-alert.js +34 -0
- package/dist/emails/client-inactive-alert.js.map +1 -0
- package/dist/emails/client-onboarded.d.ts.map +1 -1
- package/dist/emails/client-onboarded.js +37 -123
- package/dist/emails/client-onboarded.js.map +1 -1
- package/dist/emails/coach-invite.d.ts +1 -1
- package/dist/emails/coach-invite.d.ts.map +1 -1
- package/dist/emails/coach-invite.js +13 -121
- package/dist/emails/coach-invite.js.map +1 -1
- package/dist/emails/coach-removed-client.d.ts +1 -1
- package/dist/emails/coach-removed-client.d.ts.map +1 -1
- package/dist/emails/coach-removed-client.js +3 -76
- package/dist/emails/coach-removed-client.js.map +1 -1
- package/dist/emails/direct-message.d.ts +1 -1
- package/dist/emails/direct-message.d.ts.map +1 -1
- package/dist/emails/direct-message.js +22 -96
- package/dist/emails/direct-message.js.map +1 -1
- package/dist/emails/feature-discovery.d.ts +2 -1
- package/dist/emails/feature-discovery.d.ts.map +1 -1
- package/dist/emails/feature-discovery.js +20 -117
- package/dist/emails/feature-discovery.js.map +1 -1
- package/dist/emails/first-workout-assigned.d.ts +1 -1
- package/dist/emails/first-workout-assigned.d.ts.map +1 -1
- package/dist/emails/first-workout-assigned.js +3 -94
- package/dist/emails/first-workout-assigned.js.map +1 -1
- package/dist/emails/first-workout-completed.d.ts +1 -1
- package/dist/emails/first-workout-completed.d.ts.map +1 -1
- package/dist/emails/first-workout-completed.js +14 -125
- package/dist/emails/first-workout-completed.js.map +1 -1
- package/dist/emails/inactive-reengagement.d.ts +10 -0
- package/dist/emails/inactive-reengagement.d.ts.map +1 -0
- package/dist/emails/inactive-reengagement.js +31 -0
- package/dist/emails/inactive-reengagement.js.map +1 -0
- package/dist/emails/index.d.ts +20 -4
- package/dist/emails/index.d.ts.map +1 -1
- package/dist/emails/index.js +20 -4
- package/dist/emails/index.js.map +1 -1
- package/dist/emails/monthly-report.d.ts +2 -1
- package/dist/emails/monthly-report.d.ts.map +1 -1
- package/dist/emails/monthly-report.js +14 -166
- package/dist/emails/monthly-report.js.map +1 -1
- package/dist/emails/new-follower.d.ts +1 -1
- package/dist/emails/new-follower.d.ts.map +1 -1
- package/dist/emails/new-follower.js +7 -91
- package/dist/emails/new-follower.js.map +1 -1
- package/dist/emails/nps-survey.d.ts +9 -0
- package/dist/emails/nps-survey.d.ts.map +1 -0
- package/dist/emails/nps-survey.js +51 -0
- package/dist/emails/nps-survey.js.map +1 -0
- package/dist/emails/subscription-canceled.d.ts +1 -1
- package/dist/emails/subscription-canceled.d.ts.map +1 -1
- package/dist/emails/subscription-canceled.js +20 -127
- package/dist/emails/subscription-canceled.js.map +1 -1
- package/dist/emails/support-email.d.ts +1 -1
- package/dist/emails/support-email.d.ts.map +1 -1
- package/dist/emails/support-email.js +3 -38
- package/dist/emails/support-email.js.map +1 -1
- package/dist/emails/team-invite.d.ts.map +1 -1
- package/dist/emails/team-invite.js +7 -96
- package/dist/emails/team-invite.js.map +1 -1
- package/dist/emails/team-member-removed-email.d.ts +1 -1
- package/dist/emails/team-member-removed-email.d.ts.map +1 -1
- package/dist/emails/team-member-removed-email.js +3 -93
- package/dist/emails/team-member-removed-email.js.map +1 -1
- package/dist/emails/tracked-magic-link-activate.d.ts +2 -2
- package/dist/emails/tracked-magic-link-activate.d.ts.map +1 -1
- package/dist/emails/tracked-magic-link-activate.js +3 -91
- package/dist/emails/tracked-magic-link-activate.js.map +1 -1
- package/dist/emails/tracked-magic-link.d.ts +3 -3
- package/dist/emails/tracked-magic-link.d.ts.map +1 -1
- package/dist/emails/tracked-magic-link.js +3 -99
- package/dist/emails/tracked-magic-link.js.map +1 -1
- package/dist/emails/week-one-checkin.d.ts +3 -2
- package/dist/emails/week-one-checkin.d.ts.map +1 -1
- package/dist/emails/week-one-checkin.js +22 -136
- package/dist/emails/week-one-checkin.js.map +1 -1
- package/dist/emails/weekly-progress-digest.d.ts +21 -0
- package/dist/emails/weekly-progress-digest.d.ts.map +1 -0
- package/dist/emails/weekly-progress-digest.js +78 -0
- package/dist/emails/weekly-progress-digest.js.map +1 -0
- package/dist/emails/welcome.d.ts +3 -2
- package/dist/emails/welcome.d.ts.map +1 -1
- package/dist/emails/welcome.js +16 -142
- package/dist/emails/welcome.js.map +1 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/emails/index.tsx +20 -4
|
@@ -1,98 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export const NewFollowerEmail = ({ userName, followerName, followerUsername, followerAvatarUrl, followerProfileUrl, websiteUrl = "https://tracked.gg", }) => {
|
|
2
|
+
import { Section, Img } from "@react-email/components";
|
|
3
|
+
import { EmailLayout, EmailHeader, EmailFooter, Heading, Paragraph, FeatureBox, SmallText, PrimaryButton, DiscordButton, colors, } from "../components";
|
|
4
|
+
export const NewFollowerEmail = ({ userName = "Alex", followerName = "Jordan Smith", followerUsername = "jordanfitness", followerAvatarUrl = "https://cdn.trckd.ca/avatars/default.png", followerProfileUrl = "tracked://app", websiteUrl = "https://tracked.gg", }) => {
|
|
5
5
|
const displayName = followerUsername
|
|
6
6
|
? `${followerName} (@${followerUsername})`
|
|
7
7
|
: followerName;
|
|
8
|
-
return (_jsxs(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}, children: _jsx(Text, { style: {
|
|
13
|
-
fontSize: "28px",
|
|
14
|
-
fontWeight: "900",
|
|
15
|
-
fontFamily: "Raleway, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
|
|
16
|
-
color: "#020617",
|
|
17
|
-
margin: "0",
|
|
18
|
-
lineHeight: "32px",
|
|
19
|
-
letterSpacing: "0.5px",
|
|
20
|
-
}, children: "TRACKED" }) })] }), _jsx(Hr, { style: hr }), _jsx(Text, { style: heading, children: "You Have a New Follower!" }), _jsxs(Text, { style: paragraph, children: ["Hi ", userName, ", ", displayName, " started following you on Tracked."] }), followerAvatarUrl && (_jsx(Section, { style: { textAlign: "center", margin: "24px 0" }, children: _jsx(Img, { src: followerAvatarUrl, width: "80", height: "80", alt: followerName, style: {
|
|
21
|
-
borderRadius: "50%",
|
|
22
|
-
border: "2px solid #4ade80",
|
|
23
|
-
} }) })), _jsx(Section, { style: infoBox, children: _jsxs(Text, { style: infoText, children: [_jsx("strong", { children: displayName }), " is now following your fitness journey and will see your public workouts and achievements."] }) }), _jsx("div", { style: {
|
|
24
|
-
marginTop: "24px",
|
|
25
|
-
marginBottom: "24px",
|
|
26
|
-
textAlign: "left",
|
|
27
|
-
}, children: _jsx("a", { href: followerProfileUrl, style: {
|
|
28
|
-
backgroundColor: "#0f172a",
|
|
29
|
-
borderRadius: "8px",
|
|
30
|
-
fontSize: "16px",
|
|
31
|
-
fontWeight: "bold",
|
|
32
|
-
textDecoration: "none",
|
|
33
|
-
padding: "12px 32px",
|
|
34
|
-
display: "inline-block",
|
|
35
|
-
}, children: _jsx("span", { style: { color: "#ffffff", textDecoration: "none" }, children: "View Profile" }) }) }), _jsx(Text, { style: { ...paragraph }, children: "Check out their profile to see their workouts and consider following them back!" }), _jsx("div", { style: {
|
|
36
|
-
textAlign: "left",
|
|
37
|
-
margin: "24px 0",
|
|
38
|
-
}, children: _jsx("a", { href: "https://www.discord.gg/trackedgg", style: {
|
|
39
|
-
backgroundColor: "#5865F2",
|
|
40
|
-
borderRadius: "8px",
|
|
41
|
-
fontSize: "16px",
|
|
42
|
-
fontWeight: "bold",
|
|
43
|
-
textDecoration: "none",
|
|
44
|
-
padding: "12px 32px",
|
|
45
|
-
display: "inline-block",
|
|
46
|
-
}, children: _jsx("span", { style: { color: "#ffffff", textDecoration: "none" }, children: "Join our Discord Community" }) }) }), _jsx(Hr, { style: hr }), _jsxs(Text, { style: footer, children: ["Copyright \u00A9 Tracked Training Platform Inc. ", _jsx("br", {}), " 9101 Horne Street, Vancouver, BC"] }), _jsxs(Container, { children: [_jsx(Link, { href: `${websiteUrl}/terms`, style: { ...footer, paddingRight: 10 }, children: "Terms" }), _jsx(Link, { style: { ...footer, paddingRight: 10 }, children: " | " }), _jsx(Link, { href: `${websiteUrl}/privacy`, style: { ...footer, paddingRight: 10 }, children: "Privacy" }), _jsx(Link, { style: { ...footer, paddingRight: 10 }, children: " | " }), _jsx(Link, { href: `${websiteUrl}/support`, style: { ...footer, paddingRight: 10 }, children: "Support" })] }), _jsx(Text, { style: footer, children: "This is a service notification by the Tracked Training Platform." })] }) }) })] }));
|
|
47
|
-
};
|
|
48
|
-
const main = {
|
|
49
|
-
backgroundColor: "#020617", // slate-950
|
|
50
|
-
fontFamily: '-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Ubuntu,sans-serif',
|
|
51
|
-
};
|
|
52
|
-
const container = {
|
|
53
|
-
backgroundColor: "#020617", // slate-950
|
|
54
|
-
margin: "0 auto",
|
|
55
|
-
padding: "20px 0 48px",
|
|
56
|
-
marginBottom: "64px",
|
|
57
|
-
borderRadius: "8px",
|
|
58
|
-
};
|
|
59
|
-
const box = {
|
|
60
|
-
padding: "0 24px",
|
|
61
|
-
};
|
|
62
|
-
const hr = {
|
|
63
|
-
borderColor: "#4ade80", // green-400
|
|
64
|
-
margin: "24px 0",
|
|
65
|
-
borderWidth: "1px",
|
|
66
|
-
};
|
|
67
|
-
const paragraph = {
|
|
68
|
-
color: "#ffffff", // white
|
|
69
|
-
fontSize: "16px",
|
|
70
|
-
lineHeight: "24px",
|
|
71
|
-
textAlign: "left",
|
|
72
|
-
};
|
|
73
|
-
const heading = {
|
|
74
|
-
color: "#ffffff", // white
|
|
75
|
-
fontSize: "24px",
|
|
76
|
-
lineHeight: "32px",
|
|
77
|
-
fontWeight: "bold",
|
|
78
|
-
marginBottom: "16px",
|
|
79
|
-
};
|
|
80
|
-
const infoBox = {
|
|
81
|
-
backgroundColor: "#1e293b",
|
|
82
|
-
padding: "16px 24px",
|
|
83
|
-
borderRadius: "8px",
|
|
84
|
-
margin: "24px 0",
|
|
85
|
-
};
|
|
86
|
-
const infoText = {
|
|
87
|
-
color: "#e2e8f0",
|
|
88
|
-
fontSize: "14px",
|
|
89
|
-
lineHeight: "24px",
|
|
90
|
-
marginBottom: "4px",
|
|
91
|
-
};
|
|
92
|
-
const footer = {
|
|
93
|
-
color: "#94a3b8", // slate-400 for subtle footer text
|
|
94
|
-
fontSize: "12px",
|
|
95
|
-
lineHeight: "16px",
|
|
8
|
+
return (_jsxs(EmailLayout, { preview: `${followerName} started following you on Tracked`, children: [_jsx(EmailHeader, {}), _jsx(Heading, { children: "You Have a New Follower!" }), _jsxs(Paragraph, { children: ["Hi ", userName, ", ", displayName, " started following you on Tracked."] }), followerAvatarUrl && (_jsx(Section, { style: { textAlign: "center", margin: "24px 0" }, children: _jsx(Img, { src: followerAvatarUrl, width: "80", height: "80", alt: followerName, style: {
|
|
9
|
+
borderRadius: "50%",
|
|
10
|
+
border: `2px solid ${colors.accent}`,
|
|
11
|
+
} }) })), _jsx(FeatureBox, { children: _jsxs(SmallText, { children: [_jsx("strong", { children: displayName }), " is now following your fitness journey and will see your public workouts and achievements."] }) }), _jsx(PrimaryButton, { href: followerProfileUrl, children: "View Profile" }), _jsx(Paragraph, { children: "Check out their profile to see their workouts and consider following them back!" }), _jsx(DiscordButton, {}), _jsx(EmailFooter, { websiteUrl: websiteUrl })] }));
|
|
96
12
|
};
|
|
97
13
|
export default NewFollowerEmail;
|
|
98
14
|
//# sourceMappingURL=new-follower.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"new-follower.js","sourceRoot":"","sources":["../../src/emails/new-follower.tsx"],"names":[],"mappings":";AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"new-follower.js","sourceRoot":"","sources":["../../src/emails/new-follower.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EACL,WAAW,EACX,WAAW,EACX,WAAW,EACX,OAAO,EACP,SAAS,EACT,UAAU,EACV,SAAS,EACT,aAAa,EACb,aAAa,EACb,MAAM,GACP,MAAM,eAAe,CAAC;AAWvB,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAC/B,QAAQ,GAAG,MAAM,EACjB,YAAY,GAAG,cAAc,EAC7B,gBAAgB,GAAG,eAAe,EAClC,iBAAiB,GAAG,0CAA0C,EAC9D,kBAAkB,GAAG,eAAe,EACpC,UAAU,GAAG,oBAAoB,GACX,EAAE,EAAE;IAC1B,MAAM,WAAW,GAAG,gBAAgB;QAClC,CAAC,CAAC,GAAG,YAAY,MAAM,gBAAgB,GAAG;QAC1C,CAAC,CAAC,YAAY,CAAC;IAEjB,OAAO,CACL,MAAC,WAAW,IAAC,OAAO,EAAE,GAAG,YAAY,mCAAmC,aACtE,KAAC,WAAW,KAAG,EAEf,KAAC,OAAO,2CAAmC,EAC3C,MAAC,SAAS,sBACJ,QAAQ,QAAI,WAAW,0CACjB,EAEX,iBAAiB,IAAI,CACpB,KAAC,OAAO,IAAC,KAAK,EAAE,EAAE,SAAS,EAAE,QAAiB,EAAE,MAAM,EAAE,QAAQ,EAAE,YAChE,KAAC,GAAG,IACF,GAAG,EAAE,iBAAiB,EACtB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,GAAG,EAAE,YAAY,EACjB,KAAK,EAAE;wBACL,YAAY,EAAE,KAAK;wBACnB,MAAM,EAAE,aAAa,MAAM,CAAC,MAAM,EAAE;qBACrC,GACD,GACM,CACX,EAED,KAAC,UAAU,cACT,MAAC,SAAS,eACR,2BAAS,WAAW,GAAU,kGAEpB,GACD,EAEb,KAAC,aAAa,IAAC,IAAI,EAAE,kBAAkB,6BAA8B,EAErE,KAAC,SAAS,kGAGE,EAEZ,KAAC,aAAa,KAAG,EAEjB,KAAC,WAAW,IAAC,UAAU,EAAE,UAAU,GAAI,IAC3B,CACf,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface NpsSurveyEmailProps {
|
|
2
|
+
userName: string;
|
|
3
|
+
surveyBaseUrl: string;
|
|
4
|
+
websiteUrl?: string;
|
|
5
|
+
unsubscribeUrl?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const NpsSurveyEmail: ({ userName, surveyBaseUrl, websiteUrl, unsubscribeUrl, }: NpsSurveyEmailProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default NpsSurveyEmail;
|
|
9
|
+
//# sourceMappingURL=nps-survey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nps-survey.d.ts","sourceRoot":"","sources":["../../src/emails/nps-survey.tsx"],"names":[],"mappings":"AAaA,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAwCD,eAAO,MAAM,cAAc,GAAI,0DAK5B,mBAAmB,4CAmFrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Section, Text } from "@react-email/components";
|
|
3
|
+
import { EmailLayout, EmailHeader, EmailFooter, Heading, Paragraph, colors, spacing, borderRadius, } from "../components";
|
|
4
|
+
const ScoreButton = ({ score, baseUrl, }) => {
|
|
5
|
+
const getColor = () => {
|
|
6
|
+
if (score <= 6)
|
|
7
|
+
return colors.error;
|
|
8
|
+
if (score <= 8)
|
|
9
|
+
return colors.warning;
|
|
10
|
+
return colors.success;
|
|
11
|
+
};
|
|
12
|
+
return (_jsx("td", { style: { padding: "0 2px" }, children: _jsx("a", { href: `${baseUrl}?score=${score}`, style: {
|
|
13
|
+
display: "inline-block",
|
|
14
|
+
width: "36px",
|
|
15
|
+
height: "36px",
|
|
16
|
+
lineHeight: "36px",
|
|
17
|
+
textAlign: "center",
|
|
18
|
+
backgroundColor: colors.surface,
|
|
19
|
+
border: `1px solid ${colors.border}`,
|
|
20
|
+
borderRadius: borderRadius.sm,
|
|
21
|
+
color: colors.textPrimary,
|
|
22
|
+
fontSize: "14px",
|
|
23
|
+
fontWeight: "600",
|
|
24
|
+
textDecoration: "none",
|
|
25
|
+
}, children: score }) }));
|
|
26
|
+
};
|
|
27
|
+
export const NpsSurveyEmail = ({ userName = "Alex", surveyBaseUrl = "https://tracked.gg/survey/nps", websiteUrl = "https://tracked.gg", unsubscribeUrl = "https://tracked.gg/unsubscribe", }) => {
|
|
28
|
+
return (_jsxs(EmailLayout, { preview: "Quick question: How likely are you to recommend Tracked?", children: [_jsx(EmailHeader, {}), _jsx(Heading, { children: "Quick Feedback" }), _jsxs(Paragraph, { children: ["Hi ", userName, ", we'd love your honest feedback. It only takes 10 seconds!"] }), _jsxs(Section, { style: {
|
|
29
|
+
backgroundColor: colors.surface,
|
|
30
|
+
padding: spacing.lg,
|
|
31
|
+
borderRadius: borderRadius.md,
|
|
32
|
+
margin: `${spacing.lg} 0`,
|
|
33
|
+
border: `1px solid ${colors.border}`,
|
|
34
|
+
}, children: [_jsx(Text, { style: {
|
|
35
|
+
color: colors.textPrimary,
|
|
36
|
+
fontSize: "16px",
|
|
37
|
+
fontWeight: "600",
|
|
38
|
+
textAlign: "center",
|
|
39
|
+
margin: "0 0 16px 0",
|
|
40
|
+
}, children: "How likely are you to recommend Tracked to a friend?" }), _jsx("table", { cellPadding: "0", cellSpacing: "0", style: { margin: "0 auto" }, children: _jsx("tr", { children: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map((score) => (_jsx(ScoreButton, { score: score, baseUrl: surveyBaseUrl }, score))) }) }), _jsx("table", { cellPadding: "0", cellSpacing: "0", style: { width: "100%", marginTop: "12px" }, children: _jsxs("tr", { children: [_jsx("td", { style: { textAlign: "left" }, children: _jsx(Text, { style: {
|
|
41
|
+
color: colors.textMuted,
|
|
42
|
+
fontSize: "12px",
|
|
43
|
+
margin: "0",
|
|
44
|
+
}, children: "Not likely" }) }), _jsx("td", { style: { textAlign: "right" }, children: _jsx(Text, { style: {
|
|
45
|
+
color: colors.textMuted,
|
|
46
|
+
fontSize: "12px",
|
|
47
|
+
margin: "0",
|
|
48
|
+
}, children: "Very likely" }) })] }) })] }), _jsx(Paragraph, { muted: true, style: { textAlign: "center" }, children: "Just click a number above - that's it! Your feedback helps us build a better app for everyone." }), _jsx(EmailFooter, { websiteUrl: websiteUrl, marketing: true, unsubscribeUrl: unsubscribeUrl })] }));
|
|
49
|
+
};
|
|
50
|
+
export default NpsSurveyEmail;
|
|
51
|
+
//# sourceMappingURL=nps-survey.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nps-survey.js","sourceRoot":"","sources":["../../src/emails/nps-survey.tsx"],"names":[],"mappings":"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"}
|
|
@@ -3,7 +3,7 @@ interface SubscriptionCanceledEmailProps {
|
|
|
3
3
|
cancellationDate: string;
|
|
4
4
|
feedbackUrl?: string;
|
|
5
5
|
reactivateUrl: string;
|
|
6
|
-
websiteUrl
|
|
6
|
+
websiteUrl?: string;
|
|
7
7
|
}
|
|
8
8
|
export declare const SubscriptionCanceledEmail: ({ userName, cancellationDate, feedbackUrl, reactivateUrl, websiteUrl, }: SubscriptionCanceledEmailProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export default SubscriptionCanceledEmail;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription-canceled.d.ts","sourceRoot":"","sources":["../../src/emails/subscription-canceled.tsx"],"names":[],"mappings":"AAgBA,UAAU,8BAA8B;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"subscription-canceled.d.ts","sourceRoot":"","sources":["../../src/emails/subscription-canceled.tsx"],"names":[],"mappings":"AAgBA,UAAU,8BAA8B;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,yBAAyB,GAAI,yEAMvC,8BAA8B,4CAwEhC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -1,131 +1,24 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export const SubscriptionCanceledEmail = ({ userName, cancellationDate, feedbackUrl, reactivateUrl, websiteUrl = "https://tracked.gg", }) => {
|
|
5
|
-
return (_jsxs(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
backgroundColor: "transparent",
|
|
23
|
-
border: "1px solid #4ade80",
|
|
24
|
-
borderRadius: "8px",
|
|
25
|
-
fontSize: "14px",
|
|
26
|
-
fontWeight: "bold",
|
|
27
|
-
textDecoration: "none",
|
|
28
|
-
padding: "10px 24px",
|
|
29
|
-
display: "inline-block",
|
|
30
|
-
}, children: _jsx("span", { style: {
|
|
31
|
-
color: "#4ade80",
|
|
32
|
-
textDecoration: "none",
|
|
33
|
-
}, children: "Share Feedback" }) }) })), _jsxs(Section, { style: winbackBox, children: [_jsx(Text, { style: winbackHeading, children: "Changed your mind?" }), _jsxs(Text, { style: winbackText, children: ["You can reactivate your subscription at any time before", " ", cancellationDate, "."] }), _jsx("div", { style: {
|
|
34
|
-
marginTop: "16px",
|
|
35
|
-
textAlign: "left",
|
|
36
|
-
}, children: _jsx("a", { href: reactivateUrl, style: {
|
|
37
|
-
backgroundColor: "#0f172a",
|
|
38
|
-
borderRadius: "8px",
|
|
39
|
-
fontSize: "16px",
|
|
40
|
-
fontWeight: "bold",
|
|
41
|
-
textDecoration: "none",
|
|
42
|
-
padding: "12px 32px",
|
|
43
|
-
display: "inline-block",
|
|
44
|
-
}, children: _jsx("span", { style: { color: "#ffffff", textDecoration: "none" }, children: "Reactivate Subscription" }) }) })] }), _jsx("div", { style: {
|
|
45
|
-
textAlign: "left",
|
|
46
|
-
margin: "24px 0",
|
|
47
|
-
}, children: _jsx("a", { href: "https://www.discord.gg/trackedgg", style: {
|
|
48
|
-
backgroundColor: "#5865F2",
|
|
49
|
-
borderRadius: "8px",
|
|
50
|
-
fontSize: "16px",
|
|
51
|
-
fontWeight: "bold",
|
|
52
|
-
textDecoration: "none",
|
|
53
|
-
padding: "12px 32px",
|
|
54
|
-
display: "inline-block",
|
|
55
|
-
}, children: _jsx("span", { style: { color: "#ffffff", textDecoration: "none" }, children: "Join our Discord Community" }) }) }), _jsx(Hr, { style: hr }), _jsxs(Text, { style: footer, children: ["Copyright \u00A9 Tracked Training Platform Inc. ", _jsx("br", {}), " 9101 Horne Street, Vancouver, BC"] }), _jsxs(Container, { children: [_jsx(Link, { href: `${websiteUrl}/terms`, style: { ...footer, paddingRight: 10 }, children: "Terms" }), _jsx(Link, { style: { ...footer, paddingRight: 10 }, children: " | " }), _jsx(Link, { href: `${websiteUrl}/privacy`, style: { ...footer, paddingRight: 10 }, children: "Privacy" }), _jsx(Link, { style: { ...footer, paddingRight: 10 }, children: " | " }), _jsx(Link, { href: `${websiteUrl}/support`, style: { ...footer, paddingRight: 10 }, children: "Support" })] }), _jsx(Text, { style: footer, children: "This is a service notification by the Tracked Training Platform." })] }) }) })] }));
|
|
56
|
-
};
|
|
57
|
-
const main = {
|
|
58
|
-
backgroundColor: "#020617", // slate-950
|
|
59
|
-
fontFamily: '-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Ubuntu,sans-serif',
|
|
60
|
-
};
|
|
61
|
-
const container = {
|
|
62
|
-
backgroundColor: "#020617", // slate-950
|
|
63
|
-
margin: "0 auto",
|
|
64
|
-
padding: "20px 0 48px",
|
|
65
|
-
marginBottom: "64px",
|
|
66
|
-
borderRadius: "8px",
|
|
67
|
-
};
|
|
68
|
-
const box = {
|
|
69
|
-
padding: "0 24px",
|
|
70
|
-
};
|
|
71
|
-
const hr = {
|
|
72
|
-
borderColor: "#4ade80", // green-400
|
|
73
|
-
margin: "24px 0",
|
|
74
|
-
borderWidth: "1px",
|
|
75
|
-
};
|
|
76
|
-
const paragraph = {
|
|
77
|
-
color: "#ffffff", // white
|
|
78
|
-
fontSize: "16px",
|
|
79
|
-
lineHeight: "24px",
|
|
80
|
-
textAlign: "left",
|
|
81
|
-
};
|
|
82
|
-
const heading = {
|
|
83
|
-
color: "#ffffff", // white
|
|
84
|
-
fontSize: "24px",
|
|
85
|
-
lineHeight: "32px",
|
|
86
|
-
fontWeight: "bold",
|
|
87
|
-
marginBottom: "16px",
|
|
88
|
-
};
|
|
89
|
-
const infoBox = {
|
|
90
|
-
backgroundColor: "#1e293b",
|
|
91
|
-
padding: "16px 24px",
|
|
92
|
-
borderRadius: "8px",
|
|
93
|
-
margin: "24px 0",
|
|
94
|
-
};
|
|
95
|
-
const infoHeading = {
|
|
96
|
-
color: "#ffffff",
|
|
97
|
-
fontSize: "16px",
|
|
98
|
-
fontWeight: "bold",
|
|
99
|
-
marginBottom: "12px",
|
|
100
|
-
};
|
|
101
|
-
const infoText = {
|
|
102
|
-
color: "#e2e8f0",
|
|
103
|
-
fontSize: "14px",
|
|
104
|
-
lineHeight: "24px",
|
|
105
|
-
marginBottom: "4px",
|
|
106
|
-
};
|
|
107
|
-
const winbackBox = {
|
|
108
|
-
backgroundColor: "#1e293b",
|
|
109
|
-
padding: "20px 24px",
|
|
110
|
-
borderRadius: "8px",
|
|
111
|
-
margin: "24px 0",
|
|
112
|
-
borderLeft: "4px solid #4ade80",
|
|
113
|
-
};
|
|
114
|
-
const winbackHeading = {
|
|
115
|
-
color: "#4ade80",
|
|
116
|
-
fontSize: "18px",
|
|
117
|
-
fontWeight: "bold",
|
|
118
|
-
marginBottom: "8px",
|
|
119
|
-
};
|
|
120
|
-
const winbackText = {
|
|
121
|
-
color: "#e2e8f0",
|
|
122
|
-
fontSize: "14px",
|
|
123
|
-
lineHeight: "20px",
|
|
124
|
-
};
|
|
125
|
-
const footer = {
|
|
126
|
-
color: "#94a3b8", // slate-400 for subtle footer text
|
|
127
|
-
fontSize: "12px",
|
|
128
|
-
lineHeight: "16px",
|
|
2
|
+
import { Section, Text } from "@react-email/components";
|
|
3
|
+
import { EmailLayout, EmailHeader, EmailFooter, Heading, Paragraph, FeatureBox, SmallText, PrimaryButton, SecondaryButton, DiscordButton, colors, } from "../components";
|
|
4
|
+
export const SubscriptionCanceledEmail = ({ userName = "Alex", cancellationDate = "January 15, 2025", feedbackUrl = "https://tracked.gg/feedback", reactivateUrl = "https://tracked.gg/reactivate", websiteUrl = "https://tracked.gg", }) => {
|
|
5
|
+
return (_jsxs(EmailLayout, { preview: "Your Tracked subscription has been canceled", children: [_jsx(EmailHeader, {}), _jsx(Heading, { children: "Subscription Canceled" }), _jsxs(Paragraph, { children: ["Hi ", userName, ", we've confirmed that your Tracked subscription has been canceled."] }), _jsxs(FeatureBox, { title: "What happens next:", children: [_jsxs(SmallText, { style: { marginBottom: "4px" }, children: ["\u2022 Your subscription will remain active until ", cancellationDate] }), _jsx(SmallText, { style: { marginBottom: "4px" }, children: "\u2022 You'll continue to have full access until that date" }), _jsx(SmallText, { children: "\u2022 Your data will be safely stored and available if you return" })] }), _jsx(Paragraph, { children: "We're sorry to see you go! Your feedback helps us improve Tracked for everyone." }), feedbackUrl && (_jsx(SecondaryButton, { href: feedbackUrl, children: "Share Feedback" })), _jsxs(Section, { style: {
|
|
6
|
+
backgroundColor: colors.surface,
|
|
7
|
+
padding: "20px 24px",
|
|
8
|
+
borderRadius: "8px",
|
|
9
|
+
margin: "24px 0",
|
|
10
|
+
borderLeft: `4px solid ${colors.accent}`,
|
|
11
|
+
}, children: [_jsx(Text, { style: {
|
|
12
|
+
color: colors.accent,
|
|
13
|
+
fontSize: "18px",
|
|
14
|
+
fontWeight: "bold",
|
|
15
|
+
marginBottom: "8px",
|
|
16
|
+
}, children: "Changed your mind?" }), _jsxs(Text, { style: {
|
|
17
|
+
color: colors.textSecondary,
|
|
18
|
+
fontSize: "14px",
|
|
19
|
+
lineHeight: "20px",
|
|
20
|
+
margin: "0",
|
|
21
|
+
}, children: ["You can reactivate your subscription at any time before", " ", cancellationDate, "."] }), _jsx(PrimaryButton, { href: reactivateUrl, children: "Reactivate Subscription" })] }), _jsx(DiscordButton, {}), _jsx(EmailFooter, { websiteUrl: websiteUrl })] }));
|
|
129
22
|
};
|
|
130
23
|
export default SubscriptionCanceledEmail;
|
|
131
24
|
//# sourceMappingURL=subscription-canceled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription-canceled.js","sourceRoot":"","sources":["../../src/emails/subscription-canceled.tsx"],"names":[],"mappings":";AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"subscription-canceled.js","sourceRoot":"","sources":["../../src/emails/subscription-canceled.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EACL,WAAW,EACX,WAAW,EACX,WAAW,EACX,OAAO,EACP,SAAS,EACT,UAAU,EACV,SAAS,EACT,aAAa,EACb,eAAe,EACf,aAAa,EACb,MAAM,GACP,MAAM,eAAe,CAAC;AAUvB,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,EACxC,QAAQ,GAAG,MAAM,EACjB,gBAAgB,GAAG,kBAAkB,EACrC,WAAW,GAAG,6BAA6B,EAC3C,aAAa,GAAG,+BAA+B,EAC/C,UAAU,GAAG,oBAAoB,GACF,EAAE,EAAE;IACnC,OAAO,CACL,MAAC,WAAW,IAAC,OAAO,EAAC,6CAA6C,aAChE,KAAC,WAAW,KAAG,EAEf,KAAC,OAAO,wCAAgC,EACxC,MAAC,SAAS,sBACJ,QAAQ,2EAEF,EAEZ,MAAC,UAAU,IAAC,KAAK,EAAC,oBAAoB,aACpC,MAAC,SAAS,IAAC,KAAK,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,mEACO,gBAAgB,IACpD,EACZ,KAAC,SAAS,IAAC,KAAK,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,2EAE7B,EACZ,KAAC,SAAS,qFAEE,IACD,EAEb,KAAC,SAAS,kGAGE,EAEX,WAAW,IAAI,CACd,KAAC,eAAe,IAAC,IAAI,EAAE,WAAW,+BAAkC,CACrE,EAED,MAAC,OAAO,IACN,KAAK,EAAE;oBACL,eAAe,EAAE,MAAM,CAAC,OAAO;oBAC/B,OAAO,EAAE,WAAW;oBACpB,YAAY,EAAE,KAAK;oBACnB,MAAM,EAAE,QAAQ;oBAChB,UAAU,EAAE,aAAa,MAAM,CAAC,MAAM,EAAE;iBACzC,aAED,KAAC,IAAI,IACH,KAAK,EAAE;4BACL,KAAK,EAAE,MAAM,CAAC,MAAM;4BACpB,QAAQ,EAAE,MAAM;4BAChB,UAAU,EAAE,MAAe;4BAC3B,YAAY,EAAE,KAAK;yBACpB,mCAGI,EACP,MAAC,IAAI,IACH,KAAK,EAAE;4BACL,KAAK,EAAE,MAAM,CAAC,aAAa;4BAC3B,QAAQ,EAAE,MAAM;4BAChB,UAAU,EAAE,MAAM;4BAClB,MAAM,EAAE,GAAG;yBACZ,wEAEuD,GAAG,EAC1D,gBAAgB,SACZ,EACP,KAAC,aAAa,IAAC,IAAI,EAAE,aAAa,wCAElB,IACR,EAEV,KAAC,aAAa,KAAG,EAEjB,KAAC,WAAW,IAAC,UAAU,EAAE,UAAU,GAAI,IAC3B,CACf,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -4,5 +4,5 @@ interface SupportEmailProps {
|
|
|
4
4
|
category: string;
|
|
5
5
|
}
|
|
6
6
|
export declare const SupportEmail: ({ email, message, category, }: SupportEmailProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export
|
|
7
|
+
export default SupportEmail;
|
|
8
8
|
//# sourceMappingURL=support-email.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"support-email.d.ts","sourceRoot":"","sources":["../../src/emails/support-email.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"support-email.d.ts","sourceRoot":"","sources":["../../src/emails/support-email.tsx"],"names":[],"mappings":"AAWA,UAAU,iBAAiB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,YAAY,GAAI,+BAI1B,iBAAiB,4CAsBnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,40 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
export const SupportEmail = ({ email, message, category, }) => (_jsxs(
|
|
4
|
-
|
|
5
|
-
margin: "24px 0",
|
|
6
|
-
}, children: _jsx("a", { href: "https://www.discord.gg/trackedgg", style: {
|
|
7
|
-
backgroundColor: "#5865F2",
|
|
8
|
-
borderRadius: "8px",
|
|
9
|
-
fontSize: "16px",
|
|
10
|
-
fontWeight: "bold",
|
|
11
|
-
textDecoration: "none",
|
|
12
|
-
padding: "12px 32px",
|
|
13
|
-
display: "inline-block",
|
|
14
|
-
}, children: _jsx("span", { style: { color: "#ffffff", textDecoration: "none" }, children: "Join our Discord Community" }) }) }), _jsx(Hr, { style: styles.hr }), _jsx(Text, { style: styles.footer, children: "Tracked, 9101 Horne Street, Vancouver, BC" })] }));
|
|
15
|
-
const styles = {
|
|
16
|
-
container: {
|
|
17
|
-
backgroundColor: "#1F2937",
|
|
18
|
-
margin: "0 auto",
|
|
19
|
-
padding: "16px",
|
|
20
|
-
paddingBottom: "64px",
|
|
21
|
-
borderRadius: "10px",
|
|
22
|
-
fontFamily: "sans-serif",
|
|
23
|
-
},
|
|
24
|
-
img: {
|
|
25
|
-
width: "40px",
|
|
26
|
-
height: "40px",
|
|
27
|
-
},
|
|
28
|
-
hr: {
|
|
29
|
-
borderColor: "#e6ebf1",
|
|
30
|
-
margin: "16px 0",
|
|
31
|
-
},
|
|
32
|
-
text: {
|
|
33
|
-
color: "#FFFFFF",
|
|
34
|
-
},
|
|
35
|
-
footer: {
|
|
36
|
-
color: "#6B7280",
|
|
37
|
-
fontSize: "12px",
|
|
38
|
-
},
|
|
39
|
-
};
|
|
2
|
+
import { EmailLayout, EmailHeader, EmailFooter, Heading, FeatureBox, SmallText, DiscordButton, } from "../components";
|
|
3
|
+
export const SupportEmail = ({ email = "user@example.com", message = "I'm having trouble syncing my workouts between devices. The app shows different workout history on my phone versus my tablet. Can you help me resolve this issue?", category = "Technical Issue", }) => (_jsxs(EmailLayout, { preview: `Support request from ${email}`, children: [_jsx(EmailHeader, {}), _jsx(Heading, { children: "Support Request" }), _jsxs(FeatureBox, { children: [_jsxs(SmallText, { style: { marginBottom: "8px" }, children: [_jsx("strong", { children: "Email:" }), " ", email] }), _jsxs(SmallText, { style: { marginBottom: "8px" }, children: [_jsx("strong", { children: "Category:" }), " ", category] }), _jsxs(SmallText, { children: [_jsx("strong", { children: "Message:" }), " ", message] })] }), _jsx(DiscordButton, {}), _jsx(EmailFooter, {})] }));
|
|
4
|
+
export default SupportEmail;
|
|
40
5
|
//# sourceMappingURL=support-email.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"support-email.js","sourceRoot":"","sources":["../../src/emails/support-email.tsx"],"names":[],"mappings":";AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"support-email.js","sourceRoot":"","sources":["../../src/emails/support-email.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,WAAW,EACX,WAAW,EACX,WAAW,EACX,OAAO,EACP,UAAU,EACV,SAAS,EACT,aAAa,GACd,MAAM,eAAe,CAAC;AAQvB,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAC3B,KAAK,GAAG,kBAAkB,EAC1B,OAAO,GAAG,mKAAmK,EAC7K,QAAQ,GAAG,iBAAiB,GACV,EAAE,EAAE,CAAC,CACvB,MAAC,WAAW,IAAC,OAAO,EAAE,wBAAwB,KAAK,EAAE,aACnD,KAAC,WAAW,KAAG,EAEf,KAAC,OAAO,kCAA0B,EAElC,MAAC,UAAU,eACT,MAAC,SAAS,IAAC,KAAK,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,aACvC,sCAAuB,OAAE,KAAK,IACpB,EACZ,MAAC,SAAS,IAAC,KAAK,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,aACvC,yCAA0B,OAAE,QAAQ,IAC1B,EACZ,MAAC,SAAS,eACR,wCAAyB,OAAE,OAAO,IACxB,IACD,EAEb,KAAC,aAAa,KAAG,EAEjB,KAAC,WAAW,KAAG,IACH,CACf,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team-invite.d.ts","sourceRoot":"","sources":["../../src/emails/team-invite.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"team-invite.d.ts","sourceRoot":"","sources":["../../src/emails/team-invite.tsx"],"names":[],"mappings":"AAaA,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,eAAe,GAAI,gEAM7B,oBAAoB,4CAsCtB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,100 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export const TeamInviteEmail = ({ teamName = "Team Tracked Training", teamRole = "Athlete", websiteUrl = "https://
|
|
5
|
-
return (_jsxs(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
textAlign: "left",
|
|
10
|
-
margin: "24px 0",
|
|
11
|
-
}, children: _jsx("a", { href: "https://www.discord.gg/trackedgg", style: {
|
|
12
|
-
backgroundColor: "#5865F2",
|
|
13
|
-
borderRadius: "8px",
|
|
14
|
-
fontSize: "16px",
|
|
15
|
-
fontWeight: "bold",
|
|
16
|
-
textDecoration: "none",
|
|
17
|
-
padding: "12px 32px",
|
|
18
|
-
display: "inline-block",
|
|
19
|
-
}, children: _jsx("span", { style: { color: "#ffffff", textDecoration: "none" }, children: "Join our Discord Community" }) }) }), _jsx(Hr, { style: hr }), _jsxs(Text, { style: footer, children: ["Copyright \u00A9 Tracked Training Platform Inc. ", _jsx("br", {}), " 9101 Horne Street, Vancouver, BC"] }), _jsxs(Container, { children: [_jsx(Link, { href: "https://tracked.gg/terms", style: { ...footer, paddingRight: 10 }, children: "Terms" }), _jsx(Link, { style: { ...footer, paddingRight: 10 }, children: " | " }), _jsx(Link, { href: "https://tracked.gg/privacy", style: { ...footer, paddingRight: 10 }, children: "Privacy" }), _jsx(Link, { style: { ...footer, paddingRight: 10 }, children: " | " }), _jsx(Link, { href: "https://tracked.gg/support", style: { ...footer, paddingRight: 10 }, children: "Support" })] }), _jsx(Text, { style: footer, children: "This is a service notification by the Tracked Training Platform." })] }) }) })] }));
|
|
2
|
+
import { Img } from "@react-email/components";
|
|
3
|
+
import { EmailLayout, EmailHeader, EmailFooter, Heading, Paragraph, PrimaryButton, DiscordButton, TextLink, } from "../components";
|
|
4
|
+
export const TeamInviteEmail = ({ teamName = "Team Tracked Training", teamRole = "Athlete", websiteUrl = "https://tracked.gg", teamImage = "https://cdn.trckd.ca/teams/default.png", invitationLink = "https://tracked.gg/team/invite/abc123", }) => {
|
|
5
|
+
return (_jsxs(EmailLayout, { preview: `Team Invite for ${teamName}`, children: [_jsx(EmailHeader, {}), teamImage && (_jsx(Img, { src: teamImage, height: "70", alt: teamName, style: {
|
|
6
|
+
margin: "0 auto 24px",
|
|
7
|
+
display: "block",
|
|
8
|
+
} })), _jsxs(Heading, { children: ["Invitation to join ", teamName] }), _jsxs(Paragraph, { children: ["Join the team as a ", _jsx("strong", { children: teamRole }), " by pressing the button below."] }), _jsx(PrimaryButton, { href: invitationLink || "#", fullWidth: true, children: "Join Team" }), _jsxs(Paragraph, { children: ["If this email was not expected, please ignore it. You can learn more about the Tracked Training Platform by visiting our", " ", _jsx(TextLink, { href: websiteUrl, children: "website" }), "."] }), _jsx(DiscordButton, {}), _jsx(EmailFooter, { websiteUrl: websiteUrl })] }));
|
|
20
9
|
};
|
|
21
10
|
export default TeamInviteEmail;
|
|
22
|
-
const main = {
|
|
23
|
-
backgroundColor: "#1e293b",
|
|
24
|
-
fontFamily: '-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Ubuntu,sans-serif',
|
|
25
|
-
};
|
|
26
|
-
const container = {
|
|
27
|
-
backgroundColor: "#0f172a",
|
|
28
|
-
margin: "0 auto",
|
|
29
|
-
padding: "20px 0 48px",
|
|
30
|
-
marginBottom: "64px",
|
|
31
|
-
borderRadius: "5px",
|
|
32
|
-
};
|
|
33
|
-
const box = {
|
|
34
|
-
padding: "0 48px",
|
|
35
|
-
};
|
|
36
|
-
const row = {
|
|
37
|
-
display: "flex",
|
|
38
|
-
flexDirection: "row",
|
|
39
|
-
};
|
|
40
|
-
const column = {
|
|
41
|
-
flex: "0 0 48%",
|
|
42
|
-
"@media (maxWidth: 600px)": {
|
|
43
|
-
flex: "0 0 100%",
|
|
44
|
-
marginBottom: "10px",
|
|
45
|
-
},
|
|
46
|
-
};
|
|
47
|
-
const img = {
|
|
48
|
-
maxWidth: "100%",
|
|
49
|
-
height: "auto",
|
|
50
|
-
};
|
|
51
|
-
const appButton = {
|
|
52
|
-
backgroundColor: "transparent",
|
|
53
|
-
borderRadius: "5px",
|
|
54
|
-
color: "#ffffff",
|
|
55
|
-
fontSize: "16px",
|
|
56
|
-
fontWeight: "bold",
|
|
57
|
-
textDecoration: "none",
|
|
58
|
-
textAlign: "center",
|
|
59
|
-
display: "block",
|
|
60
|
-
width: "100%",
|
|
61
|
-
maxWidth: "150px",
|
|
62
|
-
};
|
|
63
|
-
const hr = {
|
|
64
|
-
borderColor: "#475569",
|
|
65
|
-
margin: "20px 0",
|
|
66
|
-
};
|
|
67
|
-
const paragraph = {
|
|
68
|
-
color: "#e2e8f0",
|
|
69
|
-
fontSize: "16px",
|
|
70
|
-
lineHeight: "24px",
|
|
71
|
-
textAlign: "left",
|
|
72
|
-
};
|
|
73
|
-
const heading = {
|
|
74
|
-
color: "#e2e8f0",
|
|
75
|
-
fontSize: "24px",
|
|
76
|
-
lineHeight: "32px",
|
|
77
|
-
fontWeight: "bold",
|
|
78
|
-
textAlign: "left",
|
|
79
|
-
};
|
|
80
|
-
const anchor = {
|
|
81
|
-
color: "#4ade80",
|
|
82
|
-
};
|
|
83
|
-
const button = {
|
|
84
|
-
backgroundColor: "#4ade80",
|
|
85
|
-
borderRadius: "5px",
|
|
86
|
-
color: "#0f172a",
|
|
87
|
-
fontSize: "16px",
|
|
88
|
-
fontWeight: "bold",
|
|
89
|
-
textDecoration: "none",
|
|
90
|
-
textAlign: "center",
|
|
91
|
-
display: "block",
|
|
92
|
-
width: "100%",
|
|
93
|
-
padding: "16px 0",
|
|
94
|
-
};
|
|
95
|
-
const footer = {
|
|
96
|
-
color: "#8898aa",
|
|
97
|
-
fontSize: "12px",
|
|
98
|
-
lineHeight: "16px",
|
|
99
|
-
};
|
|
100
11
|
//# sourceMappingURL=team-invite.js.map
|