Skip to content

Commit

Permalink
Small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lukevella committed Feb 10, 2025
1 parent caa294a commit 8f0ffa1
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 18 deletions.
2 changes: 1 addition & 1 deletion apps/web/src/utils/emails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const getEmailClient = (locale?: string) => {
config: {
logoUrl: isSelfHosted
? absoluteUrl("/images/rallly-logo-mark.png")
: "https://rallly-public.s3.amazonaws.com/images/rallly-logo-mark.png",
: "https://d39ixtfgglw55o.cloudfront.net/images/rallly-logo-mark.png",
baseUrl: absoluteUrl(),
domain: absoluteUrl().replace(/(^\w+:|^)\/\//, ""),
supportEmail: env.SUPPORT_EMAIL,
Expand Down
2 changes: 1 addition & 1 deletion packages/emails/locales/en/emails.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"abandoned_checkout_name": "Hey {{name}},",
"abandoned_checkout_noname": "Hey there,",
"abandoned_checkout_content": "I noticed you were checking out <b>Rallly Pro</b> earlier. I wanted to reach out to see if you had any questions or needed help with anything.",
"abandoned_checkout_offer": "To help you get started, you can get <b>20% off</b> your first year. Just use the code below when you check out:",
"abandoned_checkout_offer": "To help you get started, you can get <b>{{discount}}% off</b> your first year. Just use the code below when you check out:",
"abandoned_checkout_button": "Upgrade to Rallly Pro",
"abandoned_checkout_support": "If you have any questions about Rallly Pro or need help with anything at all, just reply to this email. I'm here to help!",
"abandoned_checkout_preview": "Upgrade to Rallly Pro to get more features and support.",
Expand Down
2 changes: 1 addition & 1 deletion packages/emails/src/components/email-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ i18nInstance.init({
});

export const previewEmailContext: EmailContext = {
logoUrl: "https://rallly-public.s3.amazonaws.com/images/rallly-logo-mark.png",
logoUrl: "https://d39ixtfgglw55o.cloudfront.net/images/rallly-logo-mark.png",
baseUrl: "https://rallly.co",
domain: "rallly.co",
supportEmail: "[email protected]",
Expand Down
5 changes: 3 additions & 2 deletions packages/emails/src/components/styled-components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,15 @@ export const Button = (props: React.ComponentProps<typeof UnstyledButton>) => {
style={{
backgroundColor: "#4F46E5",
borderRadius: "4px",
padding: "12px 14px",
padding: "14px",
fontFamily,
boxSizing: "border-box",
display: "block",
width: "100%",
maxWidth: "100%",
textAlign: "center",
fontSize: "16px",
fontSize: "14px",
fontWeight: "bold",
color: "white",
}}
/>
Expand Down
29 changes: 16 additions & 13 deletions packages/emails/src/templates/abandoned-checkout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,25 +64,28 @@ export const AbandonedCheckoutEmail = ({
t={ctx.t}
i18n={ctx.i18n}
i18nKey="abandoned_checkout_offer"
defaults="To help you get started, I'd like to offer you <b>20% off your first year</b> with Rallly Pro. Simply use this exclusive code during checkout:"
defaults="To help you get started, I'd like to offer you <b>{{discount}}% off your first year</b> with Rallly Pro. Simply use this code during checkout:"
ns="emails"
values={{
discount: 20,
}}
components={{
b: <b />,
}}
/>
</Text>
<Card style={{ marginTop: 32, marginBottom: 32 }}>
<Text
style={{
textAlign: "center",
fontFamily: "monospace",
fontWeight: "bold",
}}
>
GETPRO1Y20
</Text>
</Card>
<Section>
<Section style={{ marginTop: 16, marginBottom: 16 }}>
<Card>
<Text
style={{
textAlign: "center",
fontFamily: "monospace",
fontWeight: "bold",
}}
>
GETPRO1Y20
</Text>
</Card>
<Button href={recoveryUrl} id="recoveryUrl">
<Trans
i18n={ctx.i18n}
Expand Down

0 comments on commit 8f0ffa1

Please sign in to comment.