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.

small tweaks

Steven Tey05f02f32435f
diff --git a/app/protected/[domain]/[key]/page.tsx b/app/protected/[domain]/[key]/page.tsx
index e5ceac2879..6b53eedc37 100644
--- a/app/protected/[domain]/[key]/page.tsx
+++ b/app/protected/[domain]/[key]/page.tsx
@@ -1,4 +1,5 @@
import { constructMetadata } from "#/lib/utils";
+import Background from "#/ui/home/background";
import { Logo } from "#/ui/icons";
import PasswordForm from "./form";
@@ -15,7 +16,8 @@ export const metadata = constructMetadata({
export default function PasswordProtectedLinkPage() {
return (
- <main className="flex h-screen w-screen items-center justify-center bg-gray-50">
+ <main className="flex h-screen w-screen items-center justify-center">
+ <Background />
<div className="w-full max-w-md overflow-hidden rounded-2xl border border-gray-100 shadow-xl">
<div className="flex flex-col items-center justify-center space-y-3 border-b border-gray-200 bg-white px-4 py-6 pt-8 text-center sm:px-16">
<a href="https://dub.sh" target="_blank" rel="noreferrer">
diff --git a/content/help/how-to-add-custom-domain.mdx b/content/help/how-to-add-custom-domain.mdx
index 93e4a44080..4127971dbe 100644
--- a/content/help/how-to-add-custom-domain.mdx
+++ b/content/help/how-to-add-custom-domain.mdx
@@ -113,4 +113,4 @@ To do that, you'll need to add a TXT record with the following values:
## How long do I have to wait for my domain to work?
-Domain configuration can take anywhere between 1 to 24 hours to complete. If your domain still doesn't work after 24 hours, please [contact us](/contact) and we'll be happy to help you out.
+Domain configuration can take anywhere between 1 to 24 hours to complete. If your domain still doesn't work after 24 hours, please [send us an email](mailto:[email protected]?subject=Domain%20not%20working) and we'll be happy to help you out.
diff --git a/content/help/how-to-create-link.mdx b/content/help/how-to-create-link.mdx
index 0431607b7f..ed9677bb87 100644
--- a/content/help/how-to-create-link.mdx
+++ b/content/help/how-to-create-link.mdx
@@ -61,7 +61,7 @@ Inside the link builder are the following fields:
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.
+6. **Password Protection**: Protect your links with a password. [Learn more](#password-protection).
7. **Expiration Date**: Set an expiration date for your links.
8. **iOS Targeting**: Set a custom destination URL for iOS devices.
9. **Android Targeting**: Set a custom destination URL for Android devices.
@@ -105,3 +105,25 @@ You can use the UTM builder to populate UTM parameters for your links.
width={836}
height={583}
/>
+
+## Password protection
+
+You can protect your links with a password by toggling the "Password Protection" switch in the link builder.
+
+<Image
+ alt="With Dub, you can protect your links with a password"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/password-section.png"
+ width={693}
+ height={221}
+/>
+
+Then, when you share your link, the user will be prompted to enter a password before they can access the destination URL.
+
+<Image
+ alt="An example of a password protected page"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/password-protected-page.png"
+ width={1421}
+ height={940}
+/>
+
+Here's a demo: [dub.sh/password](https://dub.sh/password) (password is `dub`)