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.

Added Features Updates email sequence

Steven Tey93eb67233585
diff --git a/emails/FeatureUpdates.tsx b/emails/FeatureUpdates.tsx
new file mode 100644
index 0000000000..5fada98f32
--- /dev/null
+++ b/emails/FeatureUpdates.tsx
@@ -0,0 +1,160 @@
+import {
+ Mjml,
+ MjmlBody,
+ MjmlColumn,
+ MjmlImage,
+ MjmlSection,
+ MjmlText,
+ MjmlWrapper,
+} from "mjml-react";
+import Divider from "./components/Divider";
+import Footer from "./components/Footer";
+import Head from "./components/Head";
+import Header from "./components/Header";
+import { grayDark, purple } from "./components/theme";
+
+export default function FeatureUpdates(): JSX.Element {
+ return (
+ <Mjml>
+ <Head />
+ <MjmlBody width={500}>
+ <MjmlWrapper cssClass="container">
+ <Header title="New Features from Dub" />
+ <MjmlSection padding="0">
+ <MjmlColumn>
+ <MjmlImage
+ cssClass="hero"
+ padding="0"
+ align="left"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/email-assets/features.gif"
+ />
+ </MjmlColumn>
+ </MjmlSection>
+ <MjmlSection cssClass="smooth">
+ <MjmlColumn>
+ <MjmlText cssClass="paragraph">
+ Happy Wednesday! Here are some of the{" "}
+ <a
+ href="https://twitter.com/steventey/status/1587828901174284288"
+ target="_blank"
+ >
+ new features
+ </a>{" "}
+ that were recently added to Dub:
+ </MjmlText>
+ <Divider bottomPadding />
+ <MjmlText cssClass="subtitle">1. Links with superpowers</MjmlText>
+
+ <MjmlText cssClass="paragraph">
+ With Dub, you can create links with:
+ </MjmlText>
+ <MjmlText cssClass="li">
+ •&nbsp;&nbsp;Custom social previews (OG tags)
+ </MjmlText>
+ <MjmlText cssClass="li">•&nbsp;&nbsp;UTM parameters</MjmlText>
+ <MjmlText cssClass="li">
+ •&nbsp;&nbsp;Password-protection
+ </MjmlText>
+ <MjmlText cssClass="li">•&nbsp;&nbsp;Expiration dates</MjmlText>
+ <MjmlText cssClass="paragraph">
+ See{" "}
+ <a href="https://dub.sh#features" target="_blank">
+ how this works
+ </a>
+ .
+ </MjmlText>
+
+ <Divider bottomPadding />
+ <MjmlText cssClass="subtitle">
+ 2. Use your own custom domain
+ </MjmlText>
+ <MjmlText cssClass="paragraph">
+ Most link shorteners like Bitly charge a minimum of $29/mo for
+ you to use your own domain for your short links.
+ </MjmlText>
+ <MjmlText cssClass="paragraph">
+ With Dub, you can do that for $0/mo.
+ </MjmlText>
+ <MjmlText cssClass="paragraph">
+ Start{" "}
+ <a href="https://app.dub.sh" target="_blank">
+ shortening your links
+ </a>{" "}
+ with your own domain.
+ </MjmlText>
+
+ <Divider bottomPadding />
+ <MjmlText cssClass="subtitle">3. Analytics that matter</MjmlText>
+ <MjmlText cssClass="paragraph">
+ Dub provides powerful analytics for your links:
+ </MjmlText>
+ <MjmlText cssClass="li">
+ •&nbsp;&nbsp;Geolocation (country, city)
+ </MjmlText>
+ <MjmlText cssClass="li">•&nbsp;&nbsp;Device type</MjmlText>
+ <MjmlText cssClass="li">•&nbsp;&nbsp;Browser type</MjmlText>
+ <MjmlText cssClass="li">•&nbsp;&nbsp;OS type</MjmlText>
+ <MjmlText cssClass="li">
+ •&nbsp;&nbsp;Referrer websites (Twitter, LinkedIn)
+ </MjmlText>
+ <MjmlText cssClass="paragraph">
+ Check out a live demo{" "}
+ <a href="https://dub.sh/stats/github" target="_blank">
+ here
+ </a>
+ .
+ </MjmlText>
+
+ <Divider bottomPadding />
+ <MjmlText cssClass="subtitle">4. Free QR code generator</MjmlText>
+ <MjmlText cssClass="paragraph">
+ Dub allows you to generate QR codes of your short links for
+ free.
+ </MjmlText>
+ <MjmlText cssClass="paragraph">
+ Even if you exceed your clicks limit (1K/mo for the free plan),
+ your QR codes will continue to work (you just need to upgrade to
+ see the stats).
+ </MjmlText>
+ <MjmlText cssClass="paragraph">
+ No more worrying about broken QR codes.
+ </MjmlText>
+
+ <Divider bottomPadding />
+ <MjmlText cssClass="subtitle">
+ 5. Collaborate with your team
+ </MjmlText>
+
+ <MjmlText cssClass="paragraph">
+ We recently added a new "team invites" feature that allows you
+ to invite your friends & teammates to your Dub project.
+ </MjmlText>
+ <MjmlText cssClass="paragraph">
+ With Dub, you get unlimited team invites for every project – no
+ more sharing logins via Google groups.
+ </MjmlText>
+
+ <Divider bottomPadding />
+ <MjmlText cssClass="paragraph">
+ In case you missed it, we also revamped our pricing model and
+ made it more affordable for everyone. You can read more about it{" "}
+ <a
+ href="https://twitter.com/dubdotsh/status/1579466952594292737"
+ target="_blank"
+ >
+ here
+ </a>
+ .
+ </MjmlText>
+ <MjmlText cssClass="paragraph" color={grayDark}>
+ Steven from Dub
+ </MjmlText>
+ <Divider />
+ </MjmlColumn>
+ </MjmlSection>
+ <Footer unsubscribe />
+ </MjmlWrapper>
+ </MjmlBody>
+ </Mjml>
+ );
+}
diff --git a/emails/components/Divider.tsx b/emails/components/Divider.tsx
index 0b9f89e29f..d003d24c27 100644
--- a/emails/components/Divider.tsx
+++ b/emails/components/Divider.tsx
@@ -1,20 +1,24 @@
import { MjmlDivider } from "mjml-react";
import { grayDark, grayLight } from "./theme";
-export default function Divider(): JSX.Element {
+export default function Divider({
+ bottomPadding,
+}: {
+ bottomPadding?: boolean;
+}): JSX.Element {
return (
<>
<MjmlDivider
cssClass="light-mode"
borderColor={grayLight}
borderWidth="1px"
- padding="24px 24px 0px"
+ padding={bottomPadding ? "24px" : "24px 24px 0px"}
></MjmlDivider>
<MjmlDivider
cssClass="dark-mode"
borderColor={grayDark}
borderWidth="1px"
- padding="24px 24px 0px"
+ padding={bottomPadding ? "24px" : "24px 24px 0px"}
></MjmlDivider>
</>
);
diff --git a/emails/components/Head.tsx b/emails/components/Head.tsx
index 7d3f32a3d5..3ba0b5f6ef 100644
--- a/emails/components/Head.tsx
+++ b/emails/components/Head.tsx
@@ -36,6 +36,10 @@ export default function Head(): JSX.Element {
.title > * {
font-size: 24px !important;
}
+ .subtitle > * {
+ font-size: 16px !important;
+ font-weight: 700;
+ }
.paragraph > * {
font-size: 14px !important;
line-height: 24px !important;
@@ -92,6 +96,9 @@ export default function Head(): JSX.Element {
.title > * {
color: #fff !important;
}
+ .subtitle > * {
+ color: #fff !important;
+ }
.paragraph > *, .li > * {
color: #fff !important;
}
diff --git a/emails/previews/Sequences.tsx b/emails/previews/Sequences.tsx
index e5d178fed8..2c224800f2 100644
--- a/emails/previews/Sequences.tsx
+++ b/emails/previews/Sequences.tsx
@@ -1,5 +1,10 @@
import { default as BelatedWelcomeEmail } from "../BelatedWelcome";
+import { default as FeatureUpdatesEmail } from "../FeatureUpdates";
export function BelatedWelcome() {
return <BelatedWelcomeEmail />;
}
+
+export function FeatureUpdates() {
+ return <FeatureUpdatesEmail />;
+}