Skip to content

Commit a823421

Browse files
committed
Small style improvements to the emails
1 parent 0e919f5 commit a823421

File tree

8 files changed

+19
-14
lines changed

8 files changed

+19
-14
lines changed
-4.21 KB
Loading

packages/emails/emails/alert-attempt-failure.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ export default function Email(props: z.infer<typeof AlertAttemptEmailSchema>) {
7272
style={{
7373
...anchor,
7474
display: "block",
75-
marginBottom: "32px",
75+
marginBottom: "50px",
7676
}}
7777
>
7878
Investigate this error
7979
</Link>
8080

81-
<Image path="/emails/logo-mono.png" width="156" height="28" alt="Trigger.dev" />
81+
<Image path="/emails/logo-mono.png" width="120" height="22" alt="Trigger.dev" />
8282
<Footer />
8383
</Container>
8484
</Body>

packages/emails/emails/components/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ export function Footer() {
77
<>
88
<Hr style={hr} />
99
<Text style={footer}>
10+
©Trigger.dev, 1111B S Governors Ave STE 6433, Dover, DE 19904 |{" "}
1011
<Link style={footerAnchor} href="https://trigger.dev/">
1112
Trigger.dev
1213
</Link>
13-
. ©Trigger.dev, 1111B S Governors Ave STE 6433, Dover, DE 19904
1414
</Text>
1515
</>
1616
);

packages/emails/emails/components/styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export const footerItalic = {
104104
};
105105

106106
export const footerAnchor = {
107-
color: "#826DFF",
107+
color: "#878C99",
108108
fontFamily:
109109
"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",
110110
fontSize: "12px",

packages/emails/emails/deployment-failure.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ export default function Email(props: z.infer<typeof AlertDeploymentFailureEmailS
6565
style={{
6666
...anchor,
6767
display: "block",
68-
marginBottom: "32px",
68+
marginBottom: "50px",
6969
}}
7070
>
7171
Investigate this error
7272
</Link>
7373

74-
<Image path="/emails/logo-mono.png" width="156" height="28" alt="Trigger.dev" />
74+
<Image path="/emails/logo-mono.png" width="120" height="22" alt="Trigger.dev" />
7575
<Footer />
7676
</Container>
7777
</Body>

packages/emails/emails/deployment-success.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ export default function Email(props: z.infer<typeof AlertDeploymentSuccessEmailS
4545
style={{
4646
...anchor,
4747
display: "block",
48-
marginBottom: "32px",
48+
marginBottom: "50px",
4949
}}
5050
>
5151
View Deployment
5252
</Link>
5353

54-
<Image path="/emails/logo-mono.png" width="156" height="28" alt="Trigger.dev" />
54+
<Image path="/emails/logo-mono.png" width="120" height="22" alt="Trigger.dev" />
5555
<Footer />
5656
</Container>
5757
</Body>

packages/emails/emails/invite.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ export default function Email({
3434
style={{
3535
...anchor,
3636
display: "block",
37-
marginBottom: "32px",
37+
marginBottom: "50px",
3838
}}
3939
>
4040
Click here to view the invitation
4141
</Link>
4242

43-
<Image path="/emails/logo-mono.png" width="156" height="28" alt="Trigger.dev" />
43+
<Image path="/emails/logo-mono.png" width="120" height="22" alt="Trigger.dev" />
4444
<Footer />
4545
</Container>
4646
</Body>

packages/emails/emails/magic-link.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Body, Container, Head, Html, Link, Preview, Text } from "@react-email/components";
22
import { Footer } from "./components/Footer";
33
import { Image } from "./components/Image";
4-
import { anchor, container, h1, main, paragraph } from "./components/styles";
4+
import { anchor, container, h1, main, paragraphLight } from "./components/styles";
55

66
export default function Email({ magicLink }: { magicLink: string }) {
77
return (
@@ -17,15 +17,20 @@ export default function Email({ magicLink }: { magicLink: string }) {
1717
style={{
1818
...anchor,
1919
display: "block",
20-
marginBottom: "32px",
2120
}}
2221
>
2322
Click here to log in with this magic link
2423
</Link>
25-
<Text style={paragraph}>
24+
<Text
25+
style={{
26+
...paragraphLight,
27+
display: "block",
28+
marginBottom: "50px",
29+
}}
30+
>
2631
If you didn&apos;t try to log in, you can safely ignore this email.
2732
</Text>
28-
<Image path="/emails/logo-mono.png" width="156" height="28" alt="Trigger.dev" />
33+
<Image path="/emails/logo-mono.png" width="120" height="22" alt="Trigger.dev" />
2934
<Footer />
3035
</Container>
3136
</Body>

0 commit comments

Comments
 (0)