-
Notifications
You must be signed in to change notification settings - Fork 505
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(email): update styling, copy, urls
- Loading branch information
Showing
11 changed files
with
308 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,47 @@ | ||
"use client"; | ||
import { Button } from "@react-email/button"; | ||
import { Container } from "@react-email/container"; | ||
import { Head } from "@react-email/head"; | ||
import { Heading } from "@react-email/heading"; | ||
import { Hr } from "@react-email/hr"; | ||
import { Html } from "@react-email/html"; | ||
import { Link } from "@react-email/link"; | ||
import { Section } from "@react-email/section"; | ||
import { Tailwind } from "@react-email/tailwind"; | ||
import { Text } from "@react-email/text"; | ||
import React from "react"; | ||
import tailwindConfig from "../tailwind.config"; | ||
import { Layout } from "../src/components/layout"; | ||
import { Signature } from "../src/components/signature"; | ||
export type Props = { | ||
username: string; | ||
date: string; | ||
}; | ||
|
||
export function PaymentIssue({ username, date }: Props) { | ||
return ( | ||
<Tailwind config={tailwindConfig}> | ||
<Html className="font-sans text-zinc-800"> | ||
<Head /> | ||
<Section className="bg-white"> | ||
<Container className="container mx-auto"> | ||
<Heading className="font-sans text-2xl text-semibold"> | ||
There was an issue with your payment. | ||
</Heading> | ||
<Text>Hey {username},</Text> | ||
<Text> | ||
We had trouble processing your payment on {date}. Please update your payment | ||
information below to prevent your account from being downgraded. | ||
</Text> | ||
<Layout> | ||
<Heading className="font-sans text-3xl text-semibold text-center"> | ||
There was an issue with your payment. | ||
</Heading> | ||
<Text>Hey {username},</Text> | ||
<Text> | ||
We had trouble processing your payment on {date}. Please update your payment information | ||
below to prevent your account from being downgraded. | ||
</Text> | ||
|
||
<Container className="flex items-center justify-center my-8"> | ||
<Button | ||
href="https://unkey.dev/app/settings/billing/stripe" | ||
className="px-4 py-2 text-white bg-black rounded" | ||
> | ||
Update payment information | ||
</Button> | ||
</Container> | ||
<Section className="text-center py-3"> | ||
<Button | ||
href="https://unkey.com/app/settings/billing/stripe" | ||
className="bg-gray-900 text-gray-50 rounded-lg p-3 w-2/3" | ||
> | ||
Update payment information | ||
</Button> | ||
</Section> | ||
|
||
<Hr /> | ||
<Text> | ||
Need help? Please reach out to{" "} | ||
<Link href="mailto:[email protected]">[email protected]</Link> or just reply to this | ||
email. | ||
</Text> | ||
<Hr /> | ||
<Text> | ||
Need help? Please reach out to{" "} | ||
<Link href="mailto:[email protected]">[email protected]</Link> or just reply to this email. | ||
</Text> | ||
|
||
<Text> | ||
Cheers, | ||
<br /> | ||
Andreas | ||
</Text> | ||
</Container> | ||
</Section> | ||
</Html> | ||
</Tailwind> | ||
<Signature signedBy="Andreas" /> | ||
</Layout> | ||
); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ import { Section } from "@react-email/section"; | |
import { Tailwind } from "@react-email/tailwind"; | ||
import { Text } from "@react-email/text"; | ||
import React from "react"; | ||
import { Layout } from "../src/components/layout"; | ||
import { Signature } from "../src/components/signature"; | ||
import tailwindConfig from "../tailwind.config"; | ||
export type Props = { | ||
date: string; | ||
|
@@ -19,41 +21,45 @@ export type Props = { | |
|
||
export function SecretScanningKeyDetected({ date, source, url }: Props) { | ||
return ( | ||
<Tailwind config={tailwindConfig}> | ||
<Html className="font-sans text-zinc-800"> | ||
<Head /> | ||
<Section className="bg-white"> | ||
<Container className="container mx-auto"> | ||
<Heading className="font-sans text-2xl text-semibold"> | ||
Alert! One of your keys was found to be leaked. | ||
</Heading> | ||
<Text>Hello</Text> | ||
<Text>Github has found one of your keys has been leaked. Details are as follows:</Text> | ||
<Text>- Source: {source} </Text> | ||
<Text>- Date: {date} </Text> | ||
<Text>- URL: {url} </Text> | ||
<Container className="flex items-center justify-center my-8"> | ||
<Button href={url} className="px-4 py-2 text-white bg-black rounded"> | ||
Go to source | ||
</Button> | ||
</Container> | ||
<Hr /> | ||
<Text> | ||
You can disable the Root Key in your dashboard by following our docs listed here:{" "} | ||
<Link href="https://www.unkey.com/docs/security/root-keys">here.</Link> If you have | ||
any problems or questions, please reach out to | ||
<Link href="mailto:[email protected]">[email protected]</Link> or just reply to this | ||
email. | ||
</Text> | ||
<Text> | ||
Cheers, | ||
<br /> | ||
James | ||
</Text> | ||
</Container> | ||
</Section> | ||
</Html> | ||
</Tailwind> | ||
<Layout> | ||
<Heading className="font-sans text-3xl text-semibold text-center"> | ||
Warning! One of your keys was leaked! | ||
</Heading> | ||
<Text>Hi there!</Text> | ||
<Text>Github found that one of your keys has been leaked. Details are as follows:</Text> | ||
<ul className="pb-4"> | ||
<li className="pt-4"> | ||
{" "} | ||
<strong>Source:</strong> {source}{" "} | ||
</li> | ||
<li className="pt-4"> | ||
{" "} | ||
<strong>Date:</strong> {date}{" "} | ||
</li> | ||
<li className="pt-4"> | ||
{" "} | ||
<strong>URL:</strong> {url} | ||
</li> | ||
</ul> | ||
<Section className="text-center py-3"> | ||
<Button href={url} className="bg-gray-900 text-gray-50 rounded-lg p-3 w-2/3"> | ||
Go to source | ||
</Button> | ||
</Section> | ||
<Hr /> | ||
<Text> | ||
You can disable the Root Key in your dashboard by following our docs available at{" "} | ||
<Link href="https://www.unkey.com/docs/security/root-keys"> | ||
https://www.unkey.com/docs/security/root-keys | ||
</Link> | ||
. | ||
</Text> | ||
<Text> | ||
Need help? Please reach out to{" "} | ||
<Link href="mailto:[email protected]">[email protected]</Link> or just reply to this email. | ||
</Text> | ||
<Signature signedBy="James" /> | ||
</Layout> | ||
); | ||
} | ||
SecretScanningKeyDetected.PreviewProps = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.