forked from unkeyed/unkey
-
Notifications
You must be signed in to change notification settings - Fork 0
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 (unkeyed#2141)
* chore(email): update styling, copy, urls * update urls * fix class name * remove unused imports, update date previews * [autofix.ci] apply automated fixes * make James the signer of all emails * add biome ignore to prevent it from breaking an import * add biome ignore to other component * Update copy and links to use Dub * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: James Perkins <[email protected]> Co-authored-by: James P <[email protected]>
- Loading branch information
1 parent
050145c
commit 0535b2b
Showing
11 changed files
with
317 additions
and
245 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,68 +1,53 @@ | ||
"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://app.unkey.com/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="James" /> | ||
</Layout> | ||
); | ||
} | ||
|
||
PaymentIssue.PreviewProps = { | ||
username: "Mr. Pilkington", | ||
date: "2024 03 08", | ||
date: "Tue Oct 01 2024", // Date().toDateString | ||
} satisfies Props; | ||
|
||
export default PaymentIssue; |
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,16 +1,13 @@ | ||
"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 = { | ||
date: string; | ||
source: string; | ||
|
@@ -19,45 +16,49 @@ 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 = { | ||
date: "7/12/2024", | ||
date: "Tue Oct 01 2024", // Date().toDateString | ||
source: "commit", | ||
url: "http://unkey.com", | ||
} satisfies Props; | ||
|
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.