Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
feat: improve email language
Marc Seitz256922e42333
diff --git a/components/emails/otp-verification.tsx b/components/emails/otp-verification.tsxindex 75dc522b..fc75a2f0 100644--- a/components/emails/otp-verification.tsx+++ b/components/emails/otp-verification.tsx@@ -7,6 +7,7 @@ import {Hr,Html,Img,+ Link,Section,Tailwind,Text,@@ -33,12 +34,7 @@ export default function OtpEmailVerification({<Container className="mx-auto my-10 max-w-[600px] rounded border border-solid border-neutral-200 px-10 py-5"><Section className="mt-8">{logo ? (- <Img- src={logo}- alt="Logo"- width="120"- height="36"- />+ <Img src={logo} alt="Logo" width="120" height="36" />) : (<Text className="text-2xl font-bold tracking-tighter">Papermark@@ -46,16 +42,20 @@ export default function OtpEmailVerification({)}</Section><Text className="mx-0 my-7 p-0 text-xl font-semibold text-black">- Verify your email+ Your verification code</Text><Text className="text-sm leading-6 text-neutral-600">- Enter this code to verify your email and access the{" "}- {resourceLabel} shared with you on Papermark:+ A verification code was requested to view the {resourceLabel}{" "}+ shared with you on Papermark. Use this code to continue:</Text><Section className="my-6"><Text- className="m-0 rounded-lg bg-neutral-100 px-4 py-3 text-center text-2xl font-bold tracking-[0.3em] text-black"- style={{ fontFamily: "monospace", letterSpacing: "0.3em" }}+ className="m-0 rounded-lg bg-neutral-100 px-4 py-3 text-center text-xl font-semibold text-black"+ style={{+ fontFamily:+ "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",+ letterSpacing: "0.15em",+ }}>{code}</Text>diff --git a/components/emails/shared/footer.tsx b/components/emails/shared/footer.tsxindex 8747c8b9..8b4e32de 100644--- a/components/emails/shared/footer.tsx+++ b/components/emails/shared/footer.tsx@@ -1,3 +1,5 @@+import React from "react";+import { Hr, Link, Section, Text } from "@react-email/components";export const Footer = ({diff --git a/components/emails/verification-email-change.tsx b/components/emails/verification-email-change.tsxindex 5e6bf887..9274f118 100644--- a/components/emails/verification-email-change.tsx+++ b/components/emails/verification-email-change.tsx@@ -1,3 +1,5 @@+import React from "react";+import {Body,Container,@@ -5,7 +7,6 @@ import {Heading,Html,Link,- Preview,Section,Tailwind,Text,@@ -27,7 +28,6 @@ export function ConfirmEmailChange({return (<Html><Head />- <Preview>Confirm your email address change</Preview><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">@@ -36,15 +36,13 @@ export function ConfirmEmailChange({<span className="font-bold tracking-tighter">Papermark</span></Text><Heading className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">- Your Papermark Email Change Confirmation Link+ Confirm your email address change</Heading></Section>- <Heading className="text-sm leading-6 text-black">- Confirm your email address change- </Heading><Text className="text-sm leading-6 text-black">- Follow this link to confirm the update to your email from{" "}- <strong>{email}</strong> to <strong>{newEmail}</strong>.+ An email address change was requested for Papermark. Follow the+ link below to confirm the update from <strong>{email}</strong> to{" "}+ <strong>{newEmail}</strong>.</Text><Section className="my-8 text-center"><Linkdiff --git a/components/emails/verification-link.tsx b/components/emails/verification-link.tsxindex 3b74086d..778d755c 100644--- a/components/emails/verification-link.tsx+++ b/components/emails/verification-link.tsx@@ -7,7 +7,7 @@ import {Heading,Hr,Html,- Preview,+ Link,Section,Tailwind,Text,@@ -23,7 +23,6 @@ const VerificationCodeEmail = ({return (<Html><Head />- <Preview>Your login code for Papermark: {code}</Preview><Tailwind><Body className="mx-auto my-auto bg-white font-sans"><Container className="mx-auto my-10 max-w-[600px] rounded border border-solid border-neutral-200 px-10 py-5">@@ -36,12 +35,17 @@ const VerificationCodeEmail = ({Your login code</Heading><Text className="text-sm leading-6 text-neutral-600">- Enter this code to sign in to your Papermark account:+ A login code was requested for Papermark. Use this code to+ continue in Papermark:</Text><Section className="my-6"><Text- className="m-0 rounded-lg bg-neutral-100 px-4 py-3 text-center text-2xl font-bold tracking-[0.3em] text-black"- style={{ fontFamily: "monospace", letterSpacing: "0.3em" }}+ className="m-0 rounded-lg bg-neutral-100 px-4 py-3 text-center text-xl font-semibold text-black"+ style={{+ fontFamily:+ "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",+ letterSpacing: "0.15em",+ }}>{code}</Text>@@ -50,8 +54,9 @@ const VerificationCodeEmail = ({This code will expire in 15 minutes.</Text><Text className="mt-4 text-sm leading-5 text-neutral-500">- If you didn't request this code, you can safely ignore this- email.+ This email was intended for{" "}+ <span className="text-black">{email}</span>. If you didn't+ request this code, you can safely ignore this email.</Text><Hr className="my-6" /><Section className="text-gray-400">