The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
add NewBountyPublished email template
Kiran Kd78ac639f4d5
diff --git a/packages/email/src/templates/bounty-pending-review.tsx b/packages/email/src/templates/bounty-pending-review.tsxindex 622ffe5991..faa87d0de2 100644--- a/packages/email/src/templates/bounty-pending-review.tsx+++ b/packages/email/src/templates/bounty-pending-review.tsx@@ -95,7 +95,7 @@ export default function BountyPendingReview({<Section className="mt-6 text-center"><Linkhref={`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"+ className="box-border block flex h-9 w-full items-center justify-center rounded-lg bg-black px-0 py-4 text-center text-sm leading-none text-white no-underline">Review bounty</Link>diff --git a/packages/email/src/templates/new-bounty-published.tsx b/packages/email/src/templates/new-bounty-published.tsxindex e69de29bb2..69efa17cc4 100644--- a/packages/email/src/templates/new-bounty-published.tsx+++ b/packages/email/src/templates/new-bounty-published.tsx@@ -0,0 +1,100 @@+import { DUB_WORDMARK, formatDate } from "@dub/utils";+import {+ Body,+ Container,+ Head,+ Heading,+ Html,+ Img,+ Link,+ Preview,+ Section,+ Tailwind,+ Text,+} from "@react-email/components";+import { BountyThumbnailImage } from "../components/bounty-thumbnail";+import { Footer } from "../components/footer";++export default function NewBountyPublished({+ bounty = {+ name: "Promote Acme at your campus and earn $500 ",+ type: "performance",+ endsAt: new Date(),+ description:+ "How does it work? get a group together of at least 15 other people interested in trying out Acme. Then, during the event, take a photo of the group using Acme. When submitting, provide any links to the event or photos. Once confirmed, we'll create a one-time commission for you.",+ },+ program = {+ slug: "acme",+ },+ email = "[email protected]",+}: {+ bounty: {+ name: string;+ type: "performance" | "submission";+ endsAt: Date | null;+ description: string | null;+ };+ program: {+ slug: string;+ };+ email: string;+}) {+ return (+ <Html>+ <Head />+ <Preview>New bounty available!</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="bt-5 mx-0 mt-10 p-0 text-lg font-medium text-black">+ New bounty available!+ </Heading>++ <Section className="rounded-xl border border-solid border-neutral-200 bg-white">+ <Section className="flex h-[140px] items-center justify-center rounded-none rounded-t-xl bg-neutral-100 py-1.5">+ <BountyThumbnailImage type={bounty.type} />+ </Section>++ <Section className="flex gap-1 p-6">+ <Text className="m-0 p-0 text-base font-semibold text-neutral-900">+ {bounty.name}+ </Text>+ {bounty.endsAt && (+ <Text className="m-0 p-0 text-sm font-medium text-neutral-500">+ Ends {formatDate(bounty.endsAt)}+ </Text>+ )}+ </Section>++ {bounty.description && (+ <Section className="flex border-t border-solid border-neutral-200 p-6">+ <Text className="m-0 p-0 text-sm font-semibold text-neutral-900">+ Details+ </Text>+ <Text className="m-0 mt-2 p-0 text-sm font-medium text-neutral-500">+ {bounty.description}+ </Text>+ </Section>+ )}++ <Section className="px-6 pb-6">+ <Link+ href={`https://partners.dub.co/programs/${program.slug}/bounties`}+ className="box-border block flex h-9 w-full items-center justify-center rounded-lg bg-black px-0 py-4 text-center text-sm leading-none text-white no-underline"+ >+ View bounty+ </Link>+ </Section>+ </Section>++ <Footer email={email} />+ </Container>+ </Body>+ </Tailwind>+ </Html>+ );+}