Dithered sign-in email
The sign-in email this site sends: a dithered blue header, one button and a short note.
|
Logoipsum · 100 Example Street, Springfield |
Options
Code
import { Body, Button, Container, Head, Heading, Html, Img, Preview, Section, Text } from "@react-email/components";
const font = "-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif";
const images = "https://designs.here/emails";
export function DitherSignInEmail({ link = "https://example.com/sign-in?token=abc123", minutes = 15 }) {
return (
<Html lang="en">
<Head />
<Preview>{"Your sign-in link. It expires in " + minutes + " minutes."}</Preview>
<Body style={{ margin: 0, padding: "32px 16px", background: "#ffffff", fontFamily: font }}>
<Container style={{ width: "100%", maxWidth: 400, border: "1px solid #e3e3e0", borderRadius: 10, overflow: "hidden", background: "#ffffff" }}>
<Section style={{ height: 96, background: "#1647d6 url(" + images + "/dither-header.png) center top / 100% 96px no-repeat" }}>
<Img src={images + "/logo-white.png"} width={114} height={20} alt="Logoipsum" style={{ display: "block", margin: "20px 24px 56px" }} />
</Section>
<Section style={{ padding: "12px 24px 24px" }}>
<Heading style={{ margin: "0 0 4px", fontSize: 16, lineHeight: "24px", fontWeight: 500, letterSpacing: "-0.02em", color: "#171717" }}>
Sign in to Logoipsum
</Heading>
<Text style={{ margin: "0 0 20px", fontSize: 13, lineHeight: "20px", color: "#5c5c5c" }}>
Use the button below to sign in. It works once and expires in {minutes} minutes.
</Text>
<Button href={link} style={{ padding: "7px 14px", border: "1px solid #1647d6", borderRadius: 7, background: "#2563ff", color: "#ffffff", fontSize: 13, lineHeight: "18px", fontWeight: 500, letterSpacing: "-0.01em", textDecoration: "none" }}>
Sign in to Logoipsum
</Button>
<Text style={{ margin: "20px 0 0", paddingTop: 16, borderTop: "1px solid #e3e3e0", fontSize: 12, lineHeight: "18px", color: "#8a8a8a" }}>
If you did not ask for this, you can ignore this email.
</Text>
</Section>
</Container>
<Text style={{ margin: "16px 0 0", fontSize: 11, lineHeight: "16px", color: "#8a8a8a", textAlign: "center", fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace" }}>
Logoipsum · 100 Example Street, Springfield
</Text>
</Body>
</Html>
);
}
export default DitherSignInEmail;<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="color-scheme" content="light" />
<title>Your sign-in link</title>
</head>
<body style="margin:0;padding:0;background:#ffffff;">
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="background:#ffffff;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;">
<tr>
<td align="center" style="padding:32px 16px;">
<table role="presentation" width="400" cellpadding="0" cellspacing="0" style="width:100%;max-width:400px;border:1px solid #e3e3e0;border-radius:10px;overflow:hidden;background:#ffffff;">
<tr>
<td height="96" valign="top" bgcolor="#1647d6" background="https://designs.here/emails/dither-header.png" style="height:76px;padding:20px 24px 0;background:#1647d6 url(https://designs.here/emails/dither-header.png) center top / 100% 96px no-repeat;">
<img src="https://designs.here/emails/logo-white.png" width="114" height="20" alt="Logoipsum" style="display:block;border:0;" />
</td>
</tr>
<tr>
<td style="padding:12px 24px 24px;">
<h1 style="margin:0 0 4px;font-size:16px;line-height:24px;font-weight:500;letter-spacing:-0.02em;color:#171717;">Sign in to Logoipsum</h1>
<p style="margin:0 0 20px;font-size:13px;line-height:20px;color:#5c5c5c;">Use the button below to sign in. It works once and expires in 15 minutes.</p>
<a href="https://example.com/sign-in?token=abc123" style="display:inline-block;padding:7px 14px;border:1px solid #1647d6;border-radius:7px;background:#2563ff;color:#ffffff;font-size:13px;line-height:18px;font-weight:500;letter-spacing:-0.01em;text-decoration:none;">Sign in to Logoipsum</a>
<p style="margin:20px 0 0;padding-top:16px;border-top:1px solid #e3e3e0;font-size:12px;line-height:18px;color:#8a8a8a;">If you did not ask for this, you can ignore this email.</p>
</td>
</tr>
</table>
<p style="margin:16px 0 0;font-size:11px;line-height:16px;color:#8a8a8a;font-family:ui-monospace, SFMono-Regular, Menlo, monospace;">Logoipsum · 100 Example Street, Springfield</p>
</td>
</tr>
</table>
</body>
</html>Dithered sign-in email is not in the Figma file yet.
Use the React or HTML code for now.