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.

finalize email copy + add titleInfo for program pages

Steven Tey140689341213
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/discounts/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/discounts/page.tsx
index be4b3b4025..ddfb23b641 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/discounts/page.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/discounts/page.tsx
@@ -4,7 +4,14 @@ import { ProgramSettingsDiscountsPageClient } from "./page-client";
export default function ProgramSettingsDiscountsPage() {
return (
- <PageContent title="Discounts">
+ <PageContent
+ title="Discounts"
+ titleInfo={{
+ title:
+ "Create dual-sided incentives (e.g. discounts for new customers and rewards for partners).",
+ href: "https://dub.co/help/article/dual-sided-incentives",
+ }}
+ >
<PageWidthWrapper className="mb-8">
<ProgramSettingsDiscountsPageClient />
</PageWidthWrapper>
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/page.tsx
index 6f29846cbd..745be4570d 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/page.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/page.tsx
@@ -8,6 +8,11 @@ export default function ProgramPartners() {
return (
<PageContent
title="Partners"
+ titleInfo={{
+ title:
+ "Invite influencers, affiliates, and users to your program, or enroll them automatically.",
+ href: "https://dub.co/help/article/inviting-partners",
+ }}
controls={
<>
<InvitePartnerButton />
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/payouts/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/payouts/page.tsx
index 9e698f7c92..72332cb81c 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/payouts/page.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/payouts/page.tsx
@@ -4,7 +4,14 @@ import { ProgramPayoutsPageClient } from "./page-client";
export default function ProgramPayoutsPage() {
return (
- <PageContent title="Payouts">
+ <PageContent
+ title="Payouts"
+ titleInfo={{
+ title:
+ "Learn more about how you can send payouts to your affiliate partners globally with Dub.",
+ href: "https://dub.co/docs/partners/payouts",
+ }}
+ >
<PageWidthWrapper>
<ProgramPayoutsPageClient />
</PageWidthWrapper>
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/rewards/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/rewards/page.tsx
index 036e36bd69..558a8ece6a 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/rewards/page.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/rewards/page.tsx
@@ -5,7 +5,14 @@ import { RewardSettings } from "./settings";
export default async function ProgramSettingsRewardsPage() {
return (
- <PageContent title="Rewards">
+ <PageContent
+ title="Rewards"
+ titleInfo={{
+ title:
+ "Create click, lead, and sale-based rewards to incentivize your partners to drive more traffic and conversions.",
+ href: "https://dub.co/docs/partners/rewards",
+ }}
+ >
<PageWidthWrapper>
<div className="mb-8 grid grid-cols-1 gap-8">
<Rewards />
diff --git a/apps/web/ui/modals/program-welcome-modal.tsx b/apps/web/ui/modals/program-welcome-modal.tsx
index b55dabb773..3f2b490dac 100644
--- a/apps/web/ui/modals/program-welcome-modal.tsx
+++ b/apps/web/ui/modals/program-welcome-modal.tsx
@@ -27,7 +27,7 @@ function ProgramWelcomeModal({
const NEXT_STEPS = [
{
- text: "Create a public landing page for your program",
+ text: "Create your program application page",
href: `/${workspaceSlug}/program/branding`,
},
{
@@ -38,6 +38,10 @@ function ProgramWelcomeModal({
text: "Invite more partners to your program",
href: "https://dub.co/help/article/inviting-partners",
},
+ {
+ text: "Set up click, lead, and sale-based rewards",
+ href: `/${workspaceSlug}/program/rewards`,
+ },
];
return (
@@ -88,7 +92,7 @@ function ProgramWelcomeModal({
href={step.href}
target="_blank"
rel="noopener noreferrer"
- className="flex items-center gap-2 text-sm text-neutral-500 underline decoration-dotted"
+ className="flex items-center gap-2 text-sm font-medium text-neutral-800 underline decoration-dotted"
>
<CheckCircleFill className="h-5 w-5 text-green-500" />
<p>{step.text}</p>
diff --git a/packages/email/src/templates/program-welcome.tsx b/packages/email/src/templates/program-welcome.tsx
index b6ba2197fa..1058b25223 100644
--- a/packages/email/src/templates/program-welcome.tsx
+++ b/packages/email/src/templates/program-welcome.tsx
@@ -55,14 +55,12 @@ export default function ProgramWelcome({
<Section className="mt-8">
<Img src={DUB_WORDMARK} height="32" alt="Dub" />
</Section>
-
<Heading
className="mt-8 text-lg font-semibold leading-7 text-neutral-900"
as="h2"
>
Congratulations on creating a program!
</Heading>
-
<Text className="mb-6 mt-5 text-sm leading-5 text-neutral-600">
Your program{" "}
<span className="font-semibold text-neutral-800">
@@ -70,7 +68,6 @@ export default function ProgramWelcome({
</span>{" "}
is created and ready to share with your partners.
</Text>
-
<Section className="mb-6 rounded-xl border border-solid border-neutral-200 bg-neutral-50 px-6 py-4">
<Row>
<Column width={10}>
@@ -97,72 +94,67 @@ export default function ProgramWelcome({
</Column>
</Row>
</Section>
-
<Heading
className="mb-6 text-base font-semibold leading-6 text-neutral-900"
as="h3"
>
Getting started
</Heading>
-
<Text className="mb-4 text-sm leading-5 text-neutral-800">
- 1. <span className="font-medium">Customize your dashboard</span> -
- Make it yours.{" "}
+ 1.{" "}
+ <span className="font-medium">
+ Create your program application page
+ </span>
+ : Use our{" "}
<Link
href={`${programDashboardUrl}/branding`}
className="font-semibold text-neutral-800 underline underline-offset-2"
>
- Update the logo and colors
+ interactive builder
</Link>{" "}
- to give your partners a fully branded experience.
+ to create a beautiful, branded program application page to get
+ more partners applying to join your program.
</Text>
-
<Text className="mb-4 text-sm leading-5 text-neutral-800">
- 2. <span className="font-medium">Invite partners</span> - Bring
- your friends, family, and VIP customers to your program; to{" "}
+ 2. <span className="font-medium">Set up your bank account</span>:{" "}
<Link
- href={`${programDashboardUrl}/partners`}
+ href="https://dub.co/help/article/how-to-set-up-bank-account"
className="font-semibold text-neutral-800 underline underline-offset-2"
>
- turn fans into advocates
- </Link>
- .
+ Set up a bank account
+ </Link>{" "}
+ to start paying out commissions to your partners.
</Text>
-
<Text className="mb-4 text-sm leading-5 text-neutral-800">
- 3. <span className="font-medium">Build your landing page</span> -{" "}
+ 3. <span className="font-medium">Invite your partners</span>:
+ Easily{" "}
<Link
- href={`${programDashboardUrl}/branding`}
+ href={`${programDashboardUrl}/partners`}
className="font-semibold text-neutral-800 underline underline-offset-2"
>
- Add content
+ invite influencers, affiliates, and users
</Link>{" "}
- to help new partners quickly understand your brand and what makes
- it great.
- </Text>
-
- <Text className="mb-4 text-sm leading-5 text-neutral-800">
- 4. <span className="font-medium">Share your program page</span> -
- No need to wait. Even with minimal content, it's ready to share
- and easy for anyone to join.
+ to your program, or{" "}
+ <Link
+ href="https://dub.co/docs/partners/white-labeling"
+ className="font-semibold text-neutral-800 underline underline-offset-2"
+ >
+ enroll them automatically.
+ </Link>
+ .
</Text>
-
<Text className="mb-0 text-sm leading-5 text-neutral-800">
- 5.{" "}
- <span className="font-medium">
- Add more rewards and discounts
- </span>{" "}
- -{" "}
+ 4. <span className="font-medium">Create more rewards</span> - Set
+ up{" "}
<Link
href={`${programDashboardUrl}/rewards`}
className="font-semibold text-neutral-800 underline underline-offset-2"
>
- Add more rewards
+ click, lead, and sale-based rewards
</Link>{" "}
- for clicks, leads, and sales. You can also add discounts for new
- customers.
+ to incentivize your partners to drive more traffic and
+ conversions.
</Text>
-
<Section className="my-10">
<Link
href={programDashboardUrl}
@@ -171,7 +163,6 @@ export default function ProgramWelcome({
Go to your dashboard
</Link>
</Section>
-
<Footer email={email} marketing />
</Container>
</Body>