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 campaign-imported.tsx

Kiran Kb4abb3d28911
diff --git a/packages/email/src/templates/campaign-imported.tsx b/packages/email/src/templates/campaign-imported.tsx
new file mode 100644
index 0000000000..b58deb02a8
--- /dev/null
+++ b/packages/email/src/templates/campaign-imported.tsx
@@ -0,0 +1,76 @@
+import { DUB_WORDMARK } 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 function CampaignImported({
+ email = "[email protected]",
+ provider = "Rewardful",
+ workspace = {
+ slug: "acme",
+ name: "Acme",
+ },
+ program = {
+ id: "prog_CYCu7IMAapjkRpTnr8F1azjN",
+ name: "Cal",
+ },
+}: {
+ email: string;
+ provider: "Rewardful";
+ workspace: {
+ slug: string;
+ name: string;
+ };
+ program: {
+ id: string;
+ name: string;
+ };
+}) {
+ return (
+ <Html>
+ <Head />
+ <Preview>Your {provider} campaign has been imported</Preview>
+ <Tailwind>
+ <Body className="mx-auto my-auto bg-white font-sans">
+ <Container className="mx-auto my-10 max-w-[500px] rounded border border-solid border-neutral-200 px-10 py-5">
+ <Section className="mt-8">
+ <Img
+ src={DUB_WORDMARK}
+ height="40"
+ alt="Dub"
+ className="mx-auto my-0"
+ />
+ </Section>
+ <Heading className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">
+ Your {provider} campaign has been imported
+ </Heading>
+ <Text className="text-sm leading-6 text-black">
+ We have successfully imported your {provider} campaign{" "}
+ <Link
+ href={`https://app.dub.co/${workspace.slug}/programs/${program.id}/partners`}
+ className="font-medium text-blue-600 no-underline"
+ >
+ {program.name}↗
+ </Link>{" "}
+ into Dub.
+ </Text>
+ <Footer email={email} />
+ </Container>
+ </Body>
+ </Tailwind>
+ </Html>
+ );
+}
+
+export default CampaignImported;