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.

updated emails

Steven Tey7a459183eb48
diff --git a/apps/web/emails/clicks-exceeded.tsx b/apps/web/emails/clicks-exceeded.tsx
index cc6e925903..da83849eb9 100644
--- a/apps/web/emails/clicks-exceeded.tsx
+++ b/apps/web/emails/clicks-exceeded.tsx
@@ -1,4 +1,4 @@
-import { DUB_LOGO, capitalize, nFormatter } from "@dub/utils";
+import { DUB_LOGO, PLANS, capitalize, nFormatter } from "@dub/utils";
import {
Body,
Container,
@@ -23,7 +23,7 @@ export default function ClicksExceeded({
slug: "acme",
usage: 2410,
usageLimit: 1000,
- plan: "free",
+ plan: "business",
},
type = "first",
}: {
@@ -32,6 +32,9 @@ export default function ClicksExceeded({
type: "first" | "second";
}) {
const { slug, name, usage, usageLimit, plan } = project;
+ const nextPlan =
+ PLANS[PLANS.findIndex((p) => p.name.toLowerCase() === plan) + 1];
+
return (
<Html>
<Head />
@@ -73,8 +76,14 @@ export default function ClicksExceeded({
</Text>
<Text className="text-sm leading-6 text-black">
All your existing links will continue to work, and we are still
- collecting data on them, but you'll need to upgrade to view their
- stats.
+ collecting data on them, but you'll need to upgrade to the{" "}
+ <Link
+ href={nextPlan.link}
+ className="font-medium text-blue-600 no-underline"
+ >
+ {nextPlan.name} plan
+ </Link>{" "}
+ to view their stats.
</Text>
<Section className="my-8 text-center">
<Link
diff --git a/apps/web/emails/domain-deleted.tsx b/apps/web/emails/domain-deleted.tsx
index 10202bb500..4dc476caec 100644
--- a/apps/web/emails/domain-deleted.tsx
+++ b/apps/web/emails/domain-deleted.tsx
@@ -44,7 +44,7 @@ export default function DomainDeleted({
</Heading>
<Text className="text-sm leading-6 text-black">
Your domain <code className="text-purple-600">{domain}</code> for
- your Dub project{" "}
+ your Dub.co project{" "}
<Link
href={`https://app.dub.co/${projectSlug}`}
className="font-medium text-blue-600 no-underline"
@@ -56,7 +56,7 @@ export default function DomainDeleted({
</Text>
<Text className="text-sm leading-6 text-black">
If you would like to restore the domain, you can easily create it
- again on Dub with the link below.
+ again on Dub.co with the link below.
</Text>
<Section className="my-8 text-center">
<Link
@@ -67,8 +67,8 @@ export default function DomainDeleted({
</Link>
</Section>
<Text className="text-sm leading-6 text-black">
- If you did not want to keep using this domain on Dub anyway, you
- can simply ignore this email.
+ If you did not want to keep using this domain on Dub.co anyway,
+ you can simply ignore this email.
</Text>
<Footer email={email} />
</Container>
diff --git a/apps/web/emails/invalid-domain.tsx b/apps/web/emails/invalid-domain.tsx
index 3af6289306..5bb64d0743 100644
--- a/apps/web/emails/invalid-domain.tsx
+++ b/apps/web/emails/invalid-domain.tsx
@@ -46,7 +46,7 @@ export default function InvalidDomain({
</Heading>
<Text className="text-sm leading-6 text-black">
Your domain <code className="text-purple-600">{domain}</code> for
- your Dub project{" "}
+ your Dub.co project{" "}
<Link
href={`https://app.dub.co/${projectSlug}`}
className="font-medium text-blue-600 no-underline"
@@ -57,7 +57,7 @@ export default function InvalidDomain({
</Text>
<Text className="text-sm leading-6 text-black">
If your domain remains unconfigured for 30 days, it will be
- automatically deleted from Dub. Please click the link below to
+ automatically deleted from Dub.co. Please click the link below to
configure your domain.
</Text>
<Section className="my-8 text-center">
@@ -69,7 +69,7 @@ export default function InvalidDomain({
</Link>
</Section>
<Text className="text-sm leading-6 text-black">
- If you do not want to keep this domain on Dub, you can{" "}
+ If you do not want to keep this domain on Dub.co, you can{" "}
<Link
href={`https://app.dub.co/${projectSlug}/domains`}
className="font-medium text-blue-600 no-underline"
diff --git a/apps/web/emails/links-imported.tsx b/apps/web/emails/links-imported.tsx
index a64576edc3..e51f0a22cd 100644
--- a/apps/web/emails/links-imported.tsx
+++ b/apps/web/emails/links-imported.tsx
@@ -88,7 +88,7 @@ export default function LinksImported({
<strong>
imported {Intl.NumberFormat("en-us").format(count)} links
</strong>{" "}
- from {provider} into your Dub project,{" "}
+ from {provider} into your Dub.co project,{" "}
<Link
href={`https://app.dub.co/${projectSlug}`}
className="font-medium text-blue-600 no-underline"
diff --git a/apps/web/emails/links-limit.tsx b/apps/web/emails/links-limit.tsx
index 26780432f7..4df10fcd9a 100644
--- a/apps/web/emails/links-limit.tsx
+++ b/apps/web/emails/links-limit.tsx
@@ -1,4 +1,4 @@
-import { DUB_LOGO, capitalize, nFormatter } from "@dub/utils";
+import { DUB_LOGO, PLANS, capitalize, nFormatter } from "@dub/utils";
import {
Body,
Container,
@@ -37,6 +37,9 @@ export default function LinksLimitAlert({
plan: string;
};
const percentage = Math.round((linksUsage / linksLimit) * 100);
+ const nextPlan =
+ PLANS[PLANS.findIndex((p) => p.name.toLowerCase() === plan) + 1];
+
return (
<Html>
<Head />
@@ -74,17 +77,39 @@ export default function LinksLimitAlert({
(out of a maximum of {nFormatter(linksLimit, { full: true })}{" "}
links) in your current billing cycle.
</Text>
- <Text className="text-sm leading-6 text-black">
- {plan === "business" || plan === "enterprise"
- ? "Since you're on the Business plan, you will still be able to create links even after you hit your limit. We're planning to introduce on-demand billing for overages in the future, but for now, you can continue to create links without any interruption."
- : percentage === 100
- ? `All your existing links will continue to work, and we are still collecting data on them, but you'll need to upgrade the ${
- plan === "free" ? "Pro" : "Business"
- } plan to add more links.`
- : `Once you hit your limit, you'll need to upgrade to the ${
- plan === "free" ? "Pro" : "Business"
- } plan to add more links.`}
- </Text>
+
+ {plan === "business" || plan === "enterprise" ? (
+ <Text className="text-sm leading-6 text-black">
+ Since you're on the {capitalize(plan)} plan, you will still be
+ able to create links even after you hit your limit. We're
+ planning to introduce on-demand billing for overages in the
+ future, but for now, you can continue to create links without
+ any interruption.
+ </Text>
+ ) : percentage === 100 ? (
+ <Text className="text-sm leading-6 text-black">
+ All your existing links will continue to work, and we are still
+ collecting data on them, but you'll need to upgrade the{" "}
+ <Link
+ href={nextPlan.link}
+ className="font-medium text-blue-600 no-underline"
+ >
+ {nextPlan.name} plan
+ </Link>{" "}
+ add more links.
+ </Text>
+ ) : (
+ <Text className="text-sm leading-6 text-black">
+ Once you hit your limit, you'll need to upgrade to the{" "}
+ <Link
+ href={nextPlan.link}
+ className="font-medium text-blue-600 no-underline"
+ >
+ {nextPlan.name} plan
+ </Link>{" "}
+ to add more links.
+ </Text>
+ )}
<Section className="mb-8 text-center">
<Link
className="rounded-full bg-black px-6 py-3 text-center text-[12px] font-semibold text-white no-underline"
diff --git a/apps/web/emails/login-link.tsx b/apps/web/emails/login-link.tsx
index 41d4576df6..e1cf879c34 100644
--- a/apps/web/emails/login-link.tsx
+++ b/apps/web/emails/login-link.tsx
@@ -24,7 +24,7 @@ export default function LoginLink({
return (
<Html>
<Head />
- <Preview>Your Dub Login Link</Preview>
+ <Preview>Your Dub.co Login Link</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-gray-200 px-10 py-5">
@@ -41,7 +41,7 @@ export default function LoginLink({
Your Login Link
</Heading>
<Text className="text-sm leading-6 text-black">
- Welcome to Dub!
+ Welcome to Dub.co!
</Text>
<Text className="text-sm leading-6 text-black">
Please click the magic link below to sign in to your account.
diff --git a/apps/web/emails/upgrade-email.tsx b/apps/web/emails/upgrade-email.tsx
index 23cbb2380f..2ffdadbaa0 100644
--- a/apps/web/emails/upgrade-email.tsx
+++ b/apps/web/emails/upgrade-email.tsx
@@ -1,4 +1,4 @@
-import { DUB_LOGO } from "@dub/utils";
+import { DUB_LOGO, SELF_SERVE_PAID_PLANS } from "@dub/utils";
import {
Body,
Container,
@@ -23,10 +23,11 @@ export default function UpgradeEmail({
email: string;
plan: string;
}) {
+ const planDetails = SELF_SERVE_PAID_PLANS.find((p) => p.name === plan)!;
return (
<Html>
<Head />
- <Preview>Thank you for upgrading to Dub {plan}!</Preview>
+ <Preview>Thank you for upgrading to Dub.co {plan}!</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-gray-200 px-10 py-5">
@@ -40,7 +41,7 @@ export default function UpgradeEmail({
/>
</Section>
<Heading className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">
- Thank you for upgrading to Dub {plan}!
+ Thank you for upgrading to Dub.co {plan}!
</Heading>
<Section className="my-8">
<Img
@@ -54,7 +55,14 @@ export default function UpgradeEmail({
</Text>
<Text className="text-sm leading-6 text-black">
My name is Steven, and I'm the founder of Dub. I wanted to
- personally reach out to thank you for upgrading to Dub {plan}!
+ personally reach out to thank you for upgrading to{" "}
+ <Link
+ href={planDetails.link}
+ className="font-medium text-blue-600 no-underline"
+ >
+ Dub.co {plan}
+ </Link>
+ !
</Text>
<Text className="text-sm leading-6 text-black">
As you might already know, we are a{" "}
@@ -72,38 +80,16 @@ export default function UpgradeEmail({
open-source
</Link>{" "}
business. Your support means the world to us and helps us continue
- to build and improve Dub.
+ to build and improve Dub.co.
</Text>
<Text className="text-sm leading-6 text-black">
On the {plan} plan, you now have access to:
</Text>
- <Text className="ml-1 text-sm leading-4 text-black">
- ◆ {plan === "Enterprise" ? "Unlimited" : "Up to 50K"} link clicks
- per month
- </Text>
- <Text className="ml-1 text-sm leading-4 text-black">
- ◆ Custom branding for your QR codes
- </Text>
- <Text className="ml-1 text-sm leading-4 text-black">
- ◆ Redirect your root domain to the URL of your choice
- </Text>
- <Text className="ml-1 text-sm leading-4 text-black">
- ◆ Unlimited teammates
- </Text>
- <Text className="ml-1 text-sm leading-4 text-black">
- ◆ Unlimited link history
- </Text>
- <Text className="ml-1 text-sm leading-4 text-black">
- ◆ Unlimited tags
- </Text>
- <Text className="ml-1 text-sm leading-4 text-black">
- ◆ API access
- </Text>
- {plan === "Enterprise" && (
+ {planDetails.features.map((feature) => (
<Text className="ml-1 text-sm leading-4 text-black">
- ◆ Priority support
+ ◆ {feature.text}
</Text>
- )}
+ ))}
<Text className="text-sm leading-6 text-black">
Let me know if you have any questions or feedback. I'm always
happy to help!
@@ -111,7 +97,6 @@ export default function UpgradeEmail({
<Text className="text-sm font-light leading-6 text-gray-400">
Steven from Dub
</Text>
-
<Footer email={email} marketing />
</Container>
</Body>
diff --git a/apps/web/emails/welcome-email.tsx b/apps/web/emails/welcome-email.tsx
index 17ea5a0b53..8c6ac13a9a 100644
--- a/apps/web/emails/welcome-email.tsx
+++ b/apps/web/emails/welcome-email.tsx
@@ -24,7 +24,7 @@ export default function WelcomeEmail({
return (
<Html>
<Head />
- <Preview>Welcome to Dub</Preview>
+ <Preview>Welcome to Dub.co</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-gray-200 px-10 py-5">
@@ -38,7 +38,7 @@ export default function WelcomeEmail({
/>
</Section>
<Heading className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">
- Welcome to Dub
+ Welcome to Dub.co
</Heading>
<Section className="my-8">
<Img src={DUB_THUMBNAIL} alt="Dub" className="max-w-[500px]" />
@@ -47,9 +47,10 @@ export default function WelcomeEmail({
Thanks for signing up{name && `, ${name}`}!
</Text>
<Text className="text-sm leading-6 text-black">
- My name is Steven, and I'm the founder of Dub - the link
- management tool for modern marketing teams. I'm excited to have
- you on board!
+ My name is Steven, and I'm the founder of Dub.co - the modern link
+ management platform for you to create marketing campaigns, link
+ sharing features, and referral programs. We're excited to have you
+ on board!
</Text>
<Text className="text-sm leading-6 text-black">
Here are a few things you can do:
@@ -57,30 +58,37 @@ export default function WelcomeEmail({
<Text className="ml-1 text-sm leading-4 text-black">
◆ Create a{" "}
<Link
- href="https://app.dub.co/links"
+ href="https://app.dub.co"
className="font-medium text-blue-600 no-underline"
>
- Dub.sh short link
+ new project
+ </Link>{" "}
+ and{" "}
+ <Link
+ href="https://dub.co/help/article/how-to-add-custom-domain"
+ className="font-medium text-blue-600 no-underline"
+ >
+ add your custom domain
</Link>
</Text>
<Text className="ml-1 text-sm leading-4 text-black">
- ◆ Create a{" "}
+ ◆ Create your first{" "}
<Link
- href="https://app.dub.co"
+ href="https://dub.co/help/article/how-to-create-link"
className="font-medium text-blue-600 no-underline"
>
- new project
- </Link>{" "}
- and add your custom domain
+ short link
+ </Link>
</Text>
<Text className="ml-1 text-sm leading-4 text-black">
- ◆ Follow us on{" "}
+ ◆ Check out our{" "}
<Link
- href="https://twitter.com/dubdotco"
+ href="https://dub.co/api"
className="font-medium text-blue-600 no-underline"
>
- Twitter
- </Link>
+ API documentation
+ </Link>{" "}
+ for programmatic link generation
</Text>
<Text className="text-sm leading-6 text-black">
Let me know if you have any questions or feedback. I'm always
diff --git a/packages/utils/src/constants/pricing.tsx b/packages/utils/src/constants/pricing.tsx
index e2855c25c7..bddc6020c4 100644
--- a/packages/utils/src/constants/pricing.tsx
+++ b/packages/utils/src/constants/pricing.tsx
@@ -48,6 +48,7 @@ export const PLANS = [
{
name: "Pro",
tagline: "For startups & small businesses",
+ link: "https://dub.co/help/article/pro-plan",
price: {
monthly: 24,
yearly: 19,
@@ -106,6 +107,7 @@ export const PLANS = [
{
name: "Business",
tagline: "For larger teams with increased usage",
+ link: "https://dub.co/help/article/business-plan",
price: {
monthly: 49,
yearly: 39,
@@ -161,6 +163,9 @@ export const PLANS = [
},
{
name: "Enterprise",
+ tagline:
+ "Custom tailored plans for large enterprises. Whether you're running a SMS campaign with millions of short links or a large marketing campaign with billions of clicks, we've got you covered.",
+ link: "https://dub.co/enterprise",
price: {
monthly: null,
yearly: null,