Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Create bounty-pending-review.tsx

Kiran Kb2e77829c6ed
diff --git a/packages/email/src/templates/bounty-pending-review.tsx b/packages/email/src/templates/bounty-pending-review.tsx
new file mode 100644
index 0000000000..ebf050f7b2
--- /dev/null
+++ b/packages/email/src/templates/bounty-pending-review.tsx
@@ -0,0 +1,110 @@
+import { DUB_WORDMARK, OG_AVATAR_URL } from "@dub/utils";
+import {
+ Body,
+ Container,
+ Head,
+ Heading,
+ Html,
+ Img,
+ Link,
+ Preview,
+ Section,
+ Tailwind,
+ Text,
+} from "@react-email/components";
+import { Footer } from "../components/footer";
+
+export default function BountyPendingReview({
+ workspace = {
+ slug: "acme",
+ },
+ bounty = {
+ id: "bnty_1K38JQ6DAGD1HHP30T4SX9HKG",
+ name: "Promote Acme at your campus and earn $500 ",
+ },
+ partner = {
+ name: "John Doe",
+ image:
+ "https://dubassets.com/partners/pn_H4TB2V5hDIjpqB7PwrxESoY3/image_wCBZlIJ",
+ email: "[email protected]",
+ },
+ submission = {
+ id: "bnty_sub_1K38CT0YY8F5HYV5DXBX2137T",
+ },
+ email = "[email protected]",
+}: {
+ workspace: {
+ slug: string;
+ };
+ bounty: {
+ id: string;
+ name: string;
+ };
+ partner: {
+ name: string;
+ image: string;
+ email: string;
+ };
+ submission: {
+ id: string;
+ };
+ email: string;
+}) {
+ return (
+ <Html>
+ <Head />
+ <Preview>Pending bounty</Preview>
+ <Tailwind>
+ <Body className="mx-auto my-auto bg-white font-sans">
+ <Container className="mx-auto my-8 max-w-[600px] px-8 py-8">
+ <Section className="mt-8">
+ <Img src={DUB_WORDMARK} height="32" alt="Dub" />
+ </Section>
+
+ <Heading className="mx-0 mb-5 mt-10 p-0 text-lg font-medium text-black">
+ Pending bounty
+ </Heading>
+
+ <Text className="text-sm leading-5 text-neutral-600">
+ A bounty has been completed for <strong>{bounty.name}</strong> and
+ requires approval.
+ </Text>
+
+ <Section className="mb-8 mt-6 rounded-xl border border-solid border-neutral-200 bg-neutral-50 p-5">
+ <div className="flex h-10 items-center gap-4">
+ <div className="relative w-fit">
+ <Img
+ src={partner.image || `${OG_AVATAR_URL}${partner.name}`}
+ width="32"
+ height="32"
+ alt={partner.name}
+ className="rounded-full border border-solid border-neutral-100"
+ />
+ </div>
+ <div className="flex-1">
+ <Text className="m-0 p-0 text-sm font-semibold text-neutral-800">
+ {partner.name}
+ </Text>
+ <Text className="m-0 p-0 text-sm font-medium text-neutral-500">
+ {partner.email}
+ </Text>
+ </div>
+ </div>
+ </Section>
+
+ <Section className="mt-6 text-center">
+ <Link
+ href={`https://app.dub.co/${workspace.slug}/program/bounties/${bounty.id}?submissionId=${submission.id}`}
+ className="box-border block w-full rounded-lg bg-black px-0 py-4 text-center text-sm leading-none text-white no-underline"
+ >
+ Review bounty
+ </Link>
+ </Section>
+
+ <Footer email={email} />
+ </Container>
+ </Body>
+ </Tailwind>
+ </Html>
+ );
+}