Skip to content

Commit

Permalink
Small style improvements to the emails
Browse files Browse the repository at this point in the history
  • Loading branch information
samejr committed May 9, 2024
1 parent 0e919f5 commit a823421
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 14 deletions.
Binary file modified apps/webapp/public/emails/logo-mono.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions packages/emails/emails/alert-attempt-failure.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ export default function Email(props: z.infer<typeof AlertAttemptEmailSchema>) {
style={{
...anchor,
display: "block",
marginBottom: "32px",
marginBottom: "50px",
}}
>
Investigate this error
</Link>

<Image path="/emails/logo-mono.png" width="156" height="28" alt="Trigger.dev" />
<Image path="/emails/logo-mono.png" width="120" height="22" alt="Trigger.dev" />
<Footer />
</Container>
</Body>
Expand Down
2 changes: 1 addition & 1 deletion packages/emails/emails/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ export function Footer() {
<>
<Hr style={hr} />
<Text style={footer}>
©Trigger.dev, 1111B S Governors Ave STE 6433, Dover, DE 19904 |{" "}
<Link style={footerAnchor} href="https://trigger.dev/">
Trigger.dev
</Link>
. ©Trigger.dev, 1111B S Governors Ave STE 6433, Dover, DE 19904
</Text>
</>
);
Expand Down
2 changes: 1 addition & 1 deletion packages/emails/emails/components/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const footerItalic = {
};

export const footerAnchor = {
color: "#826DFF",
color: "#878C99",
fontFamily:
"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",
fontSize: "12px",
Expand Down
4 changes: 2 additions & 2 deletions packages/emails/emails/deployment-failure.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ export default function Email(props: z.infer<typeof AlertDeploymentFailureEmailS
style={{
...anchor,
display: "block",
marginBottom: "32px",
marginBottom: "50px",
}}
>
Investigate this error
</Link>

<Image path="/emails/logo-mono.png" width="156" height="28" alt="Trigger.dev" />
<Image path="/emails/logo-mono.png" width="120" height="22" alt="Trigger.dev" />
<Footer />
</Container>
</Body>
Expand Down
4 changes: 2 additions & 2 deletions packages/emails/emails/deployment-success.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ export default function Email(props: z.infer<typeof AlertDeploymentSuccessEmailS
style={{
...anchor,
display: "block",
marginBottom: "32px",
marginBottom: "50px",
}}
>
View Deployment
</Link>

<Image path="/emails/logo-mono.png" width="156" height="28" alt="Trigger.dev" />
<Image path="/emails/logo-mono.png" width="120" height="22" alt="Trigger.dev" />
<Footer />
</Container>
</Body>
Expand Down
4 changes: 2 additions & 2 deletions packages/emails/emails/invite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ export default function Email({
style={{
...anchor,
display: "block",
marginBottom: "32px",
marginBottom: "50px",
}}
>
Click here to view the invitation
</Link>

<Image path="/emails/logo-mono.png" width="156" height="28" alt="Trigger.dev" />
<Image path="/emails/logo-mono.png" width="120" height="22" alt="Trigger.dev" />
<Footer />
</Container>
</Body>
Expand Down
13 changes: 9 additions & 4 deletions packages/emails/emails/magic-link.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Body, Container, Head, Html, Link, Preview, Text } from "@react-email/components";
import { Footer } from "./components/Footer";
import { Image } from "./components/Image";
import { anchor, container, h1, main, paragraph } from "./components/styles";
import { anchor, container, h1, main, paragraphLight } from "./components/styles";

export default function Email({ magicLink }: { magicLink: string }) {
return (
Expand All @@ -17,15 +17,20 @@ export default function Email({ magicLink }: { magicLink: string }) {
style={{
...anchor,
display: "block",
marginBottom: "32px",
}}
>
Click here to log in with this magic link
</Link>
<Text style={paragraph}>
<Text
style={{
...paragraphLight,
display: "block",
marginBottom: "50px",
}}
>
If you didn&apos;t try to log in, you can safely ignore this email.
</Text>
<Image path="/emails/logo-mono.png" width="156" height="28" alt="Trigger.dev" />
<Image path="/emails/logo-mono.png" width="120" height="22" alt="Trigger.dev" />
<Footer />
</Container>
</Body>
Expand Down

0 comments on commit a823421

Please sign in to comment.