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 figcaption, how to create link article

Steven Teyd08ae50a6d36
diff --git a/app/ui/content/mdx.tsx b/app/ui/content/mdx.tsx
index 8f6fa984c9..25c82a96ae 100644
--- a/app/ui/content/mdx.tsx
+++ b/app/ui/content/mdx.tsx
@@ -78,20 +78,25 @@ export function MDX({ code, images, tweets, repos, className }: MDXProps) {
)?.blurDataURL;
return (
- <div className="not-prose flex flex-col items-center justify-center space-y-3">
- <Zoom zoomMargin={width > 640 ? 45 : undefined}>
- <BlurImage
- {...props}
- className="rounded-lg border border-gray-200"
- placeholder="blur"
- blurDataURL={
- blurDataURL ||
- "data:image/webp;base64,AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
- }
- />
- </Zoom>
- <p className="text-sm italic text-gray-500">{props.alt}</p>
- </div>
+ // we need to wrap the image in a HTML element or showModal will throw errors
+ <>
+ <figure className="not-prose flex flex-col items-center justify-center space-y-3">
+ <Zoom zoomMargin={width > 640 ? 45 : undefined}>
+ <BlurImage
+ {...props}
+ className="rounded-lg border border-gray-200"
+ placeholder="blur"
+ blurDataURL={
+ blurDataURL ||
+ "data:image/webp;base64,AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
+ }
+ />
+ </Zoom>
+ <figcaption className="text-center text-sm italic text-gray-500">
+ {props.alt}
+ </figcaption>
+ </figure>
+ </>
);
};
diff --git a/content/help/how-to-create-link.mdx b/content/help/how-to-create-link.mdx
index dca37bdbab..7956634b6d 100644
--- a/content/help/how-to-create-link.mdx
+++ b/content/help/how-to-create-link.mdx
@@ -9,10 +9,74 @@ categories:
- how-to-use-tags
---
-## Introduction
+Our link builder comes with features like UTM builder, device targeting, password protection, expiration dates, and more.
-## Dub.sh links
+Dub is also the only link management tool that lets you customize the social media cards for your links, so you can have full control over how your links look when shared on social media.
-## Custom short links
+In this article, we will take a look at how you can leverage these features to create your first short link on Dub.
+
+## Dub.sh links vs custom domain links
+
+When you sign up for Dub, you have the option to choose between the default `dub.sh` domain or your own custom domain to create short links.
+
+<Image
+ alt="Onboarding screen where you can choose between Dub.sh links or custom domain links"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/onboarding-interim.png"
+ width={1103}
+ height={677}
+/>
+
+Here are the difference between the two options:
+
+| | Default `dub.sh` links | Custom domain links |
+| ---------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| **Setup ease** | No setup required – you can start creating short links right away | You will need to [create a project](what-is-a-project#how-to-create-a-project) and [set up your custom domain](how-to-add-custom-domain) first before you can start creating short links. |
+| **Branding** | Dub branding on the short link | Your own branding on the short link |
+| **Dashboard location** | [app.dub.sh/links](https://app.dub.sh/links) | Can be found in the project select menu at the top menu bar |
+| **Link history** | 30 days | 30 days - Unlimited ([Pro plan](pro-plan)) |
+| **Tags** | Unavailable | Can be used to organize links |
+
+## The Dub link builder
+
+There are 3 ways to open the Dub link builder to create a short link:
+
+1. **Slowest**: Click on the "Create link" button on the dashboard.
+2. **Faster**: Use the keyboard shortcut `c` to open the link builder.
+3. **Fastest**: Just paste in a valid URL into the dashboard. This will automatically open the link builder and pre-fill the URL field.
+
+<Image
+ alt="Screenshot of the Dub link builder"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/dub-link-builder.png"
+ width={1353}
+ height={1004}
+/>
+
+Inside the link builder are the following fields:
+
+1. **Destination URL**: The URL that you want to shorten.
+2. **Short link**: The short link that will be generated for you. You can generate a random slug by clicking the "Randomize" button or by typing in your own.
+3. **Choose a tag** (custom domain links only): Choose a tag to organize your links. You can learn more about tags [here](how-to-use-tags).
+4. **Custom Social Media Cards**: Customize how your links look when shared on social media. [Learn more](#custom-social-media-cards).
+5. **UTM Builder**: Add UTM parameters to your links. [Learn more](#utm-builder).
+6. **Password Protection**: Protect your links with a password. [Learn more](#password-protection).
+7. **Expiration Date**: Set an expiration date for your links. [Learn more](#expiration-date).
+8. **iOS Targeting**: Set a custom destination URL for iOS devices. [Learn more](#ios-targeting).
+9. **Android Targeting**: Set a custom destination URL for Android devices. [Learn more](#android-targeting).
+10. **Social Previews**: See how your links will look when shared on social media. [Learn more](#social-previews).
## Custom social media cards
+
+Dub is the only link management tool that lets you customize the social media cards for your links, so you can have full control over how your links look when shared on social media.
+
+To leverage this feature, toggle the "Custom Social Media Cards" switch in the link builder. This will reveal the following fields:
+
+1. **Image**: The image that will be used for the social media card. You can upload an image from your computer or drag and drop an image into the field.
+2. **Title**: The title that will be used for the social media card (max 120 characters).
+3. **Description**: The description that will be used for the social media card (max 240 characters).
+
+<Image
+ alt="The custom social media cards feature on Dub"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/custom-social-media-cards.png"
+ width={1149}
+ height={779}
+/>
diff --git a/content/help/what-is-dub.mdx b/content/help/what-is-dub.mdx
index d187694356..9c0a9693ca 100644
--- a/content/help/what-is-dub.mdx
+++ b/content/help/what-is-dub.mdx
@@ -17,8 +17,7 @@ Dub is the link management tool for modern marketing teams. With Dub, you can cr
## What can I do with Dub?
-If you are a marketer or a business owner, Dub has the perfect suite of features
-for you to better manage your marketing campaigns with short links:
+If you are a marketer or a business owner, Dub has the perfect suite of features for you to better manage your marketing campaigns with short links:
- **Powerful link builder**: Our [link builder](how-to-create-link) comes with features like UTM builder, device targeting, password protection, expiration dates, and more.
- **Use your own domain**: With Dub, you can create short links with your own [custom domain](how-to-add-custom-domain) – free of charge – for better brand recognition.