Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

fix(react-email): update email templates with missing Heading

Marc Seitz719da5048464
diff --git a/components/emails/dataroom-notification.tsx b/components/emails/dataroom-notification.tsx
index 6461416c..8518bdbd 100644
--- a/components/emails/dataroom-notification.tsx
+++ b/components/emails/dataroom-notification.tsx
@@ -5,13 +5,12 @@ import {
Button,
Container,
Head,
- Heading,
+ Text,
Hr,
Html,
Preview,
Section,
Tailwind,
- Text,
} from "@react-email/components";
export default function DataroomNotification({
@@ -32,12 +31,12 @@ export default function DataroomNotification({
<Tailwind>
<Body className="mx-auto my-auto bg-white font-sans">
<Container className="mx-auto my-10 w-[465px] p-5">
- <Heading className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
+ <Text className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
<span className="font-bold tracking-tighter">Papermark</span>
- </Heading>
- <Heading className="font-seminbold mx-0 mb-8 mt-4 p-0 text-center text-xl">
+ </Text>
+ <Text className="font-seminbold mx-0 mb-8 mt-4 p-0 text-center text-xl">
{`New document available for ${dataroomName}`}
- </Heading>
+ </Text>
<Text className="text-sm leading-6 text-black">Hey!</Text>
<Text className="text-sm leading-6 text-black">
A new document{" "}
diff --git a/components/emails/dataroom-viewer-invitation.tsx b/components/emails/dataroom-viewer-invitation.tsx
index 58078aec..70d6acee 100644
--- a/components/emails/dataroom-viewer-invitation.tsx
+++ b/components/emails/dataroom-viewer-invitation.tsx
@@ -5,13 +5,12 @@ import {
Button,
Container,
Head,
- Heading,
+ Text,
Hr,
Html,
Preview,
Section,
Tailwind,
- Text,
} from "@react-email/components";
export default function DataroomViewerInvitation({
@@ -30,12 +29,12 @@ export default function DataroomViewerInvitation({
<Tailwind>
<Body className="mx-auto my-auto bg-white font-sans">
<Container className="mx-auto my-10 w-[465px] p-5">
- <Heading className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
+ <Text className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
<span className="font-bold tracking-tighter">Papermark</span>
- </Heading>
- <Heading className="font-seminbold mx-0 mb-8 mt-4 p-0 text-center text-xl">
+ </Text>
+ <Text className="font-seminbold mx-0 mb-8 mt-4 p-0 text-center text-xl">
{`View ${dataroomName}`}
- </Heading>
+ </Text>
<Text className="text-sm leading-6 text-black">Hey!</Text>
<Text className="text-sm leading-6 text-black">
You have been invited to view the{" "}
diff --git a/components/emails/deleted-domain.tsx b/components/emails/deleted-domain.tsx
index 3a1ca58b..2ce49684 100644
--- a/components/emails/deleted-domain.tsx
+++ b/components/emails/deleted-domain.tsx
@@ -5,7 +5,6 @@ import {
Button,
Container,
Head,
- Heading,
Hr,
Html,
Preview,
@@ -26,12 +25,12 @@ export default function DomainDeleted({
<Tailwind>
<Body className="mx-auto my-auto bg-white font-sans">
<Container className="mx-auto my-10 w-[465px] p-5">
- <Heading className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
+ <Text className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
<span className="font-bold tracking-tighter">Papermark</span>
- </Heading>
- <Heading className="font-seminbold mx-0 mb-8 mt-4 p-0 text-center text-xl">
+ </Text>
+ <Text className="font-seminbold mx-0 mb-8 mt-4 p-0 text-center text-xl">
Domain Deleted
- </Heading>
+ </Text>
<Text className="text-sm leading-6 text-black">
Your domain <code className="text-purple-600">{domain}</code> for
your Papermark account has been invalid for 30 days. As a result,
diff --git a/components/emails/email-verification.tsx b/components/emails/email-verification.tsx
index 22d4c155..18a5da8d 100644
--- a/components/emails/email-verification.tsx
+++ b/components/emails/email-verification.tsx
@@ -5,7 +5,6 @@ import {
Button,
Container,
Head,
- Heading,
Hr,
Html,
Preview,
@@ -28,12 +27,12 @@ export default function EmailVerification({
<Tailwind>
<Body className="mx-auto my-auto bg-white font-sans">
<Container className="mx-auto my-10 w-[465px] p-5">
- <Heading className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
+ <Text className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
<span className="font-bold tracking-tighter">Papermark</span>
- </Heading>
- <Heading className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">
+ </Text>
+ <Text className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">
Please verify your email
- </Heading>
+ </Text>
<Text className="text-sm leading-6 text-black">
Please click the verification link below to view the document.
</Text>
diff --git a/components/emails/invalid-domain.tsx b/components/emails/invalid-domain.tsx
index 9093cee2..a85a8282 100644
--- a/components/emails/invalid-domain.tsx
+++ b/components/emails/invalid-domain.tsx
@@ -5,14 +5,13 @@ import {
Button,
Container,
Head,
- Heading,
+ Text,
Hr,
Html,
Link,
Preview,
Section,
Tailwind,
- Text,
} from "@react-email/components";
export default function InvalidDomain({
@@ -29,14 +28,14 @@ export default function InvalidDomain({
<Tailwind>
<Body className="mx-auto my-auto bg-white font-sans">
<Container className="mx-auto my-10 w-[465px] p-5">
- <Heading className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
+ <Text className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
<span className="font-bold tracking-tighter">Papermark</span>
- </Heading>
- <Heading className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">
+ </Text>
+ <Text className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">
{invalidDays >= 14
? `Invalid Domain Configuration`
: `Finish configuring your domain`}
- </Heading>
+ </Text>
<Text className="text-sm leading-6 text-black">
Your domain <code className="text-purple-600">{domain}</code> for
your Papermark account{" "}
diff --git a/components/emails/team-invitation.tsx b/components/emails/team-invitation.tsx
index 6459638d..13bef837 100644
--- a/components/emails/team-invitation.tsx
+++ b/components/emails/team-invitation.tsx
@@ -5,13 +5,12 @@ import {
Button,
Container,
Head,
- Heading,
+ Text,
Hr,
Html,
Preview,
Section,
Tailwind,
- Text,
} from "@react-email/components";
export default function TeamInvitation({
@@ -32,12 +31,12 @@ export default function TeamInvitation({
<Tailwind>
<Body className="mx-auto my-auto bg-white font-sans">
<Container className="mx-auto my-10 w-[465px] p-5">
- <Heading className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
+ <Text className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
<span className="font-bold tracking-tighter">Papermark</span>
- </Heading>
- <Heading className="font-seminbold mx-0 mb-8 mt-4 p-0 text-center text-xl">
+ </Text>
+ <Text className="font-seminbold mx-0 mb-8 mt-4 p-0 text-center text-xl">
{`Join ${teamName} on Papermark`}
- </Heading>
+ </Text>
<Text className="text-sm leading-6 text-black">Hey!</Text>
<Text className="text-sm leading-6 text-black">
<span className="font-semibold">{senderName}</span> ({senderEmail}
diff --git a/components/emails/trial-end-final-reminder.tsx b/components/emails/trial-end-final-reminder.tsx
index 2361b124..c7a9af42 100644
--- a/components/emails/trial-end-final-reminder.tsx
+++ b/components/emails/trial-end-final-reminder.tsx
@@ -5,7 +5,6 @@ import {
Button,
Container,
Head,
- Heading,
Hr,
Html,
Link,
@@ -29,12 +28,12 @@ const TrialEndFinalReminderEmail = ({ name }: TrialEndFinalReminderEmail) => {
<Tailwind>
<Body className="mx-auto my-auto bg-white font-sans">
<Container className="mx-auto my-10 w-[465px] p-5">
- <Heading className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
+ <Text className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
<span className="font-bold tracking-tighter">Papermark</span>
- </Heading>
- <Heading className="font-seminbold mx-0 mb-8 mt-4 p-0 text-center text-xl">
+ </Text>
+ <Text className="font-seminbold mx-0 mb-8 mt-4 p-0 text-center text-xl">
Your pro trial expires in 24 hours
- </Heading>
+ </Text>
<Text className="text-sm leading-6 text-black">
Hey{name && ` ${name}`}!
</Text>
diff --git a/components/emails/trial-end-reminder.tsx b/components/emails/trial-end-reminder.tsx
index e673b378..4981b9fe 100644
--- a/components/emails/trial-end-reminder.tsx
+++ b/components/emails/trial-end-reminder.tsx
@@ -5,14 +5,12 @@ import {
Button,
Container,
Head,
- Heading,
+ Text,
Hr,
Html,
- Link,
Preview,
Section,
Tailwind,
- Text,
} from "@react-email/components";
interface TrialEndReminderEmail {
@@ -29,12 +27,12 @@ const TrialEndReminderEmail = ({ name }: TrialEndReminderEmail) => {
<Tailwind>
<Body className="mx-auto my-auto bg-white font-sans">
<Container className="mx-auto my-10 w-[465px] p-5">
- <Heading className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
+ <Text className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
<span className="font-bold tracking-tighter">Papermark</span>
- </Heading>
- <Heading className="font-seminbold mx-0 mb-8 mt-4 p-0 text-center text-xl">
+ </Text>
+ <Text className="font-seminbold mx-0 mb-8 mt-4 p-0 text-center text-xl">
Your pro trial is almost over
- </Heading>
+ </Text>
<Text className="text-sm leading-6 text-black">
Hey{name && ` ${name}`}!
</Text>
diff --git a/components/emails/upgrade-plan.tsx b/components/emails/upgrade-plan.tsx
index 7e57e2f5..d513dd4f 100644
--- a/components/emails/upgrade-plan.tsx
+++ b/components/emails/upgrade-plan.tsx
@@ -5,7 +5,6 @@ import {
Button,
Container,
Head,
- Heading,
Hr,
Html,
Link,
@@ -19,9 +18,29 @@ interface UpgradePlanEmailProps {
name: string | null | undefined;
}
-const UpgradePlanEmail = ({ name }: UpgradePlanEmailProps) => {
const previewText = `The document sharing infrastructure for the modern web`;
+ const features: any = {
+ pro: [
+ "Custom branding",
+ "Unlimited link views",
+ "Folder organization",
+ "2 team members",
+ ],
+ business: [
+ "Custom domains on document links",
+ "Unlimited document uploads",
+ "1 data room for multi-file sharing",
+ "3 team members",
+ ],
+ datarooms: [
+ "Custom domains on data room links",
+ "Unlimited data rooms",
+ "Unlimited document uploads",
+ "5 team members",
+ ],
+ };
+
return (
<Html>
<Head />
@@ -29,19 +48,19 @@ const UpgradePlanEmail = ({ name }: UpgradePlanEmailProps) => {
<Tailwind>
<Body className="mx-auto my-auto bg-white font-sans">
<Container className="mx-auto my-10 w-[465px] p-5">
- <Heading className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
+ <Text className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
<span className="font-bold tracking-tighter">Papermark</span>
- </Heading>
- <Heading className="font-seminbold mx-0 mb-8 mt-4 p-0 text-center text-xl">
- Thanks for for upgrading to Papermark Pro!
- </Heading>
+ </Text>
+ <Text className="font-seminbold mx-0 mb-8 mt-4 p-0 text-center text-xl">
+ Thanks for upgrading to Papermark {planType}!
+ </Text>
<Text className="text-sm leading-6 text-black">
Hey{name && ` ${name}`}!
</Text>
<Text className="text-sm">
My name is Marc, and I&apos;m the creator of Papermark. I wanted
- to personally reach out to thank you for upgrading to Papermark
- Pro!
+ to personally reach out to thank you for upgrading to Papermark{" "}
+ {planType}!
</Text>
<Text className="text-sm leading-6 text-black">
As you might already know, we are a bootstrapped and{" "}
@@ -56,27 +75,23 @@ const UpgradePlanEmail = ({ name }: UpgradePlanEmailProps) => {
to build and improve Papermark.
</Text>
<Text className="text-sm leading-6 text-black">
- On the Pro plan, you now have access to:
- </Text>
- <Text className="ml-1 text-sm leading-4 text-black">
- ◆ Custom domains and white-label branding
- </Text>
- <Text className="ml-1 text-sm leading-4 text-black">
- ◆ Unlimited link views
- </Text>
- <Text className="ml-1 text-sm leading-4 text-black">
- ◆ Unlimited document uploads
- </Text>
- <Text className="ml-1 text-sm leading-4 text-black">
- ◆ Invite your team members
+ On the {planType} plan, you now have access to:
</Text>
+ {features[planType.toLowerCase()].map(
+ (feature: string, index: number) => (
+ <Text key={index} className="ml-1 text-sm leading-4 text-black">
+ ◆ {feature}
+ </Text>
+ ),
+ [],
+ )}
<Section className="mb-[32px] mt-[32px] text-center">
<Button
className="rounded bg-black text-center text-xs font-semibold text-white no-underline"
- href={`${process.env.NEXT_PUBLIC_BASE_URL}/settings/domains`}
+ href={`${process.env.NEXT_PUBLIC_BASE_URL}/documents`}
style={{ padding: "12px 20px" }}
>
- Set up your custom domain
+ Share your documents
</Button>
</Section>
<Section>
diff --git a/components/emails/verification-link.tsx b/components/emails/verification-link.tsx
index 8715ec25..1c0b8888 100644
--- a/components/emails/verification-link.tsx
+++ b/components/emails/verification-link.tsx
@@ -5,12 +5,11 @@ import {
Button,
Container,
Head,
- Heading,
+ Text,
Html,
Preview,
Section,
Tailwind,
- Text,
} from "@react-email/components";
const VerificationLinkEmail = ({
@@ -25,12 +24,12 @@ const VerificationLinkEmail = ({
<Tailwind>
<Body className="mx-auto my-auto bg-white font-sans">
<Container className="mx-auto my-10 max-w-[500px] rounded border border-solid border-gray-200 px-10 py-5">
- <Heading className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
+ <Text className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
<span className="font-bold tracking-tighter">Papermark</span>
- </Heading>
- <Heading className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">
+ </Text>
+ <Text className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">
Your Papermark Login Link
- </Heading>
+ </Text>
<Text className="text-sm leading-6 text-black">
Welcome to Papermark!
diff --git a/components/emails/viewed-document.tsx b/components/emails/viewed-document.tsx
index bb9db261..725aa2e4 100644
--- a/components/emails/viewed-document.tsx
+++ b/components/emails/viewed-document.tsx
@@ -5,7 +5,6 @@ import {
Button,
Container,
Head,
- Heading,
Hr,
Html,
Preview,
@@ -30,12 +29,12 @@ export default function ViewedDocument({
<Tailwind>
<Body className="mx-auto my-auto bg-white font-sans">
<Container className="mx-auto my-10 w-[465px] p-5">
- <Heading className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
+ <Text className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
<span className="font-bold tracking-tighter">Papermark</span>
- </Heading>
- <Heading className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">
+ </Text>
+ <Text className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">
New Document Visitor
- </Heading>
+ </Text>
<Text className="text-sm leading-6 text-black">
Your document{" "}
<span className="font-semibold">{documentName}</span> was just
diff --git a/components/emails/welcome.tsx b/components/emails/welcome.tsx
index 7951ed83..d58e0830 100644
--- a/components/emails/welcome.tsx
+++ b/components/emails/welcome.tsx
@@ -5,14 +5,13 @@ import {
Button,
Container,
Head,
- Heading,
+ Text,
Hr,
Html,
Link,
Preview,
Section,
Tailwind,
- Text,
} from "@react-email/components";
interface WelcomeEmailProps {
@@ -29,10 +28,10 @@ const WelcomeEmail = ({ name }: WelcomeEmailProps) => {
<Tailwind>
<Body className="mx-auto my-auto bg-white font-sans">
<Container className="mx-auto my-10 w-[465px] p-5">
- <Heading className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
+ <Text className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
Welcome to{" "}
<span className="font-bold tracking-tighter">Papermark</span>
- </Heading>
+ </Text>
<Text className="text-sm">
Thanks for signing up{name && `, ${name}`}!
</Text>