mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-30 10:46:35 +02:00
💬 Update transactional email text
This commit is contained in:
parent
971de32e60
commit
0f1f260bfa
5 changed files with 31 additions and 15 deletions
|
@ -29,6 +29,7 @@ export const NotificationEmail = ({
|
||||||
<Link className="whitespace-nowrap" href={disableNotificationsUrl}>
|
<Link className="whitespace-nowrap" href={disableNotificationsUrl}>
|
||||||
turn notifications off
|
turn notifications off
|
||||||
</Link>
|
</Link>
|
||||||
|
.
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
preview={preview}
|
preview={preview}
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
import { EmailLayout } from "./components/email-layout";
|
import { EmailLayout } from "./components/email-layout";
|
||||||
import { Button, Domain, Heading, Text } from "./components/styled-components";
|
import {
|
||||||
|
Button,
|
||||||
|
Card,
|
||||||
|
Domain,
|
||||||
|
Heading,
|
||||||
|
Text,
|
||||||
|
} from "./components/styled-components";
|
||||||
import { getDomain } from "./components/utils";
|
import { getDomain } from "./components/utils";
|
||||||
|
|
||||||
interface LoginEmailProps {
|
interface LoginEmailProps {
|
||||||
|
@ -23,19 +29,27 @@ export const LoginEmail = ({
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
recipientName={name}
|
recipientName={name}
|
||||||
preview={`Your 6-digit code: ${code}`}
|
preview="Use this link to log in on this device."
|
||||||
>
|
>
|
||||||
<Text>Use this link to log in on this device.</Text>
|
|
||||||
<Button href={magicLink} id="magicLink">
|
|
||||||
Log in to {getDomain()}
|
|
||||||
</Button>
|
|
||||||
<Text light={true}>This link is valid for 15 minutes</Text>
|
|
||||||
<Text>
|
<Text>
|
||||||
Alternatively, you can enter this 6-digit verification code directly.
|
To log in to your account, please choose one of the following options:
|
||||||
</Text>
|
</Text>
|
||||||
<Heading as="h1" className="tracking-widest" id="code">
|
<Card>
|
||||||
{code}
|
<Heading>Option 1: Magic Link</Heading>
|
||||||
</Heading>
|
<Text>Click this magic link to log in on this device.</Text>
|
||||||
|
<Button href={magicLink} id="magicLink">
|
||||||
|
Log in to {getDomain()}
|
||||||
|
</Button>
|
||||||
|
<Text light={true}>This link will expire in 15 minutes.</Text>
|
||||||
|
</Card>
|
||||||
|
<Card>
|
||||||
|
<Heading>Option 2: Verification Code</Heading>
|
||||||
|
<Text>Enter this one-time 6-digit verification code.</Text>
|
||||||
|
<Heading as="h1" className="tracking-widest" id="code">
|
||||||
|
{code}
|
||||||
|
</Heading>
|
||||||
|
<Text light={true}>This code will expire in 15 minutes.</Text>
|
||||||
|
</Card>
|
||||||
</EmailLayout>
|
</EmailLayout>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
@ -20,7 +20,7 @@ export const NewCommentEmail = ({
|
||||||
title={title}
|
title={title}
|
||||||
pollUrl={pollUrl}
|
pollUrl={pollUrl}
|
||||||
disableNotificationsUrl={disableNotificationsUrl}
|
disableNotificationsUrl={disableNotificationsUrl}
|
||||||
preview={`${authorName} has commented on ${title}`}
|
preview="Go to your poll to see what they said."
|
||||||
>
|
>
|
||||||
<Text>
|
<Text>
|
||||||
<strong>{authorName}</strong> has commented on <strong>{title}</strong>.
|
<strong>{authorName}</strong> has commented on <strong>{title}</strong>.
|
||||||
|
|
|
@ -20,7 +20,7 @@ export const NewParticipantEmail = ({
|
||||||
title={title}
|
title={title}
|
||||||
pollUrl={pollUrl}
|
pollUrl={pollUrl}
|
||||||
disableNotificationsUrl={disableNotificationsUrl}
|
disableNotificationsUrl={disableNotificationsUrl}
|
||||||
preview={`${participantName} has responded`}
|
preview="Go to your poll to see the new response."
|
||||||
>
|
>
|
||||||
<Text>
|
<Text>
|
||||||
<strong>{participantName}</strong> has responded to{" "}
|
<strong>{participantName}</strong> has responded to{" "}
|
||||||
|
|
|
@ -15,7 +15,8 @@ export const RegisterEmail = ({
|
||||||
footNote={
|
footNote={
|
||||||
<>
|
<>
|
||||||
You're receiving this email because a request was made to
|
You're receiving this email because a request was made to
|
||||||
register an account on <Domain />.
|
register an account on <Domain />. If this wasn't you, please
|
||||||
|
ignore this email.
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
recipientName={name}
|
recipientName={name}
|
||||||
|
@ -27,7 +28,7 @@ export const RegisterEmail = ({
|
||||||
<Heading as="h1" className="font-sans tracking-widest" id="code">
|
<Heading as="h1" className="font-sans tracking-widest" id="code">
|
||||||
{code}
|
{code}
|
||||||
</Heading>
|
</Heading>
|
||||||
<Text light={true}>This code is valid for 15 minutes</Text>
|
<Text>This code is valid for 15 minutes</Text>
|
||||||
</EmailLayout>
|
</EmailLayout>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue