Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

💄 Refresh the review request email signature and email buttons (#3481)

Luke Vellafea9e936294d
diff --git a/packages/emails/locales/en/emails.json b/packages/emails/locales/en/emails.json
index 9021df26e..3bb316937 100644
--- a/packages/emails/locales/en/emails.json
+++ b/packages/emails/locales/en/emails.json
@@ -104,7 +104,6 @@
"resetPassword_subject": "Reset your password",
"reviewRequest_ask": "Would you leave a quick review on {siteName}? It takes a couple of minutes, and reviews are how people looking for a scheduling tool decide whether to trust a small, independent one like ours.",
"reviewRequest_button": "Write a review on {siteName}",
- "reviewRequest_footer": "You're receiving this because you scheduled a meeting on <domain />. We'll only ask once.",
"reviewRequest_greeting": "Hi {firstName},",
"reviewRequest_greetingNoName": "Hi there,",
"reviewRequest_guidelines": "Reviews must follow the <a>{siteName} community guidelines</a>.",
diff --git a/packages/emails/src/components/styled-components.tsx b/packages/emails/src/components/styled-components.tsx
index 9bc89796e..4e56379d1 100644
--- a/packages/emails/src/components/styled-components.tsx
+++ b/packages/emails/src/components/styled-components.tsx
@@ -4,6 +4,9 @@ import type {
TextProps,
} from "@react-email/components";
import {
+ Column,
+ Img,
+ Row,
Body as UnstyledBody,
Button as UnstyledButton,
Container as UnstyledContainer,
@@ -58,12 +61,12 @@ export const Button = (
borderRadius: "6px",
padding: "14px",
fontFamily,
- minWidth: "200px",
+ display: "block",
+ width: "100%",
boxSizing: "border-box",
textAlign: "center",
- margin: "0 auto",
fontSize: "16px",
- fontWeight: 600,
+ fontWeight: 500,
color: "white",
}}
/>
@@ -172,29 +175,42 @@ export const Card = (props: SectionProps) => {
export const Signature = () => {
return (
<Section>
- <UnstyledText
- style={{
- fontSize: 16,
- margin: 0,
- fontWeight: 600,
- color: darkTextColor,
- fontFamily,
- }}
- >
- Luke Vella
- </UnstyledText>
- <UnstyledText
- style={{ fontSize: 16, margin: 0, color: lightTextColor, fontFamily }}
- >
- Founder
- </UnstyledText>
- <img
- src="https://d39ixtfgglw55o.cloudfront.net/images/luke.jpg"
- alt="Luke Vella"
- style={{ borderRadius: "50%", marginTop: 16 }}
- width={48}
- height={48}
- />
+ <Row>
+ <Column
+ style={{ width: 48, paddingRight: 12, verticalAlign: "middle" }}
+ >
+ <Img
+ src="https://d39ixtfgglw55o.cloudfront.net/images/luke-2026.jpg"
+ alt="Luke Vella"
+ style={{ borderRadius: "50%" }}
+ width={48}
+ height={48}
+ />
+ </Column>
+ <Column style={{ verticalAlign: "middle" }}>
+ <UnstyledText
+ style={{
+ fontSize: 16,
+ margin: 0,
+ fontWeight: 500,
+ color: darkTextColor,
+ fontFamily,
+ }}
+ >
+ Luke Vella
+ </UnstyledText>
+ <UnstyledText
+ style={{
+ fontSize: 16,
+ margin: 0,
+ color: lightTextColor,
+ fontFamily,
+ }}
+ >
+ Founder
+ </UnstyledText>
+ </Column>
+ </Row>
</Section>
);
};
diff --git a/packages/emails/src/templates/review-request.tsx b/packages/emails/src/templates/review-request.tsx
index 2a358768a..a8bd37f87 100644
--- a/packages/emails/src/templates/review-request.tsx
+++ b/packages/emails/src/templates/review-request.tsx
@@ -1,4 +1,4 @@
-import { Head, Hr, Html, Preview } from "@react-email/components";
+import { Head, Html, Preview } from "@react-email/components";
import { Trans } from "react-i18next/TransWithoutContext";
import { resolveChrome } from "../chrome";
@@ -109,23 +109,6 @@ async function ReviewRequestEmail({
})}
</Text>
<Signature />
- <Hr style={{ margin: "16px 0" }} />
- <Text small light={true}>
- <Trans
- t={t}
- i18n={i18n}
- ns="emails"
- i18nKey="reviewRequest_footer"
- defaults="You're receiving this because you scheduled a meeting on <domain />. We'll only ask once."
- components={{
- domain: (
- <Link color={chrome.primaryColor} href={chrome.baseUrl}>
- {chrome.domain}
- </Link>
- ),
- }}
- />
- </Text>
</Container>
</Body>
</Html>