The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Added blog post, edited thumbnail
Steven Teyd02b4df25e68
diff --git a/app/dub.co/help/article/[slug]/page.tsx b/app/dub.co/help/article/[slug]/page.tsxindex 287832f644..0976951f30 100644--- a/app/dub.co/help/article/[slug]/page.tsx+++ b/app/dub.co/help/article/[slug]/page.tsx@@ -9,7 +9,7 @@ import Author from "#/ui/content/author";import { MDX } from "#/ui/content/mdx";import TableOfContents from "#/ui/content/table-of-contents";import Feedback from "#/ui/content/feedback";-import ArticleLink from "#/ui/content/article-link";+import HelpArticleLink from "#/ui/content/help-article-link";import { getBlurDataURL } from "#/lib/images";import { Metadata } from "next";import { constructMetadata } from "#/lib/utils";@@ -123,7 +123,7 @@ export default async function HelpArticle({</h2><div className="grid gap-2 rounded-xl border border-gray-200 bg-white p-4">{relatedArticles.map((article) => (- <ArticleLink key={article.slug} article={article} />+ <HelpArticleLink key={article.slug} article={article} />))}</div></div>diff --git a/app/dub.co/help/category/[slug]/page.tsx b/app/dub.co/help/category/[slug]/page.tsxindex a8b0ea7d2d..1042ae77fd 100644--- a/app/dub.co/help/category/[slug]/page.tsx+++ b/app/dub.co/help/category/[slug]/page.tsx@@ -5,7 +5,7 @@ import MaxWidthWrapper from "@/components/shared/max-width-wrapper";import SearchButton from "#/ui/content/search-button";import Link from "next/link";import { ChevronRight } from "lucide-react";-import ArticleLink from "#/ui/content/article-link";+import HelpArticleLink from "#/ui/content/help-article-link";import { Metadata } from "next";import { constructMetadata } from "#/lib/utils";@@ -96,7 +96,7 @@ export default function HelpCategory({</div><div className="grid gap-2 rounded-xl border border-gray-200 bg-white p-4">{articles.map((article) => (- <ArticleLink key={article.slug} article={article} />+ <HelpArticleLink key={article.slug} article={article} />))}</div></MaxWidthWrapper>diff --git a/app/dub.co/help/page.tsx b/app/dub.co/help/page.tsxindex 72b111bca3..6ea7a14521 100644--- a/app/dub.co/help/page.tsx+++ b/app/dub.co/help/page.tsx@@ -3,7 +3,7 @@ import MaxWidthWrapper from "@/components/shared/max-width-wrapper";import { HELP_CATEGORIES, getPopularArticles } from "#/lib/constants/content";import SearchButton from "#/ui/content/search-button";import CategoryCard from "#/ui/content/category-card";-import ArticleLink from "#/ui/content/article-link";+import HelpArticleLink from "#/ui/content/help-article-link";export const metadata = constructMetadata({title: "Help Center – Dub",@@ -33,7 +33,7 @@ export default function HelpCenter() {</h2><div className="mt-4 grid gap-2 md:grid-cols-2">{popularArticles.map((article) => (- <ArticleLink key={article.slug} article={article} />+ <HelpArticleLink key={article.slug} article={article} />))}</div></div>diff --git a/app/ui/content/blog-card.tsx b/app/ui/content/blog-card.tsxindex d8fd2d7246..9a9ed75b7c 100644--- a/app/ui/content/blog-card.tsx+++ b/app/ui/content/blog-card.tsx@@ -16,7 +16,7 @@ export default function BlogCard({return (<Linkhref={`/blog/${data.slug}`}- className="rounded-lg border border-gray-200"+ className="flex flex-col rounded-lg border border-gray-200"><BlurImageclassName="aspect-[1200/630] rounded-t-xl object-cover"@@ -27,11 +27,13 @@ export default function BlogCard({alt={data.title}priority={priority}/>- <div className="rounded-b-lg bg-white p-6">- <h2 className="line-clamp-1 font-display text-2xl font-bold text-gray-700">- {data.title}- </h2>- <p className="mt-2 line-clamp-2 text-gray-500">{data.summary}</p>+ <div className="flex flex-1 flex-col justify-between rounded-b-lg bg-white p-6">+ <div>+ <h2 className="line-clamp-1 font-display text-2xl font-bold text-gray-700">+ {data.title}+ </h2>+ <p className="mt-2 line-clamp-2 text-gray-500">{data.summary}</p>+ </div><div className="mt-4 flex items-center space-x-2"><Author username={data.author} imageOnly /><time dateTime={data.publishedAt} className="text-sm text-gray-500">diff --git a/app/ui/content/article-link.tsx b/app/ui/content/help-article-link.tsxsimilarity index 88%rename from app/ui/content/article-link.tsxrename to app/ui/content/help-article-link.tsxindex fc2548ca80..a7e0309562 100644--- a/app/ui/content/article-link.tsx+++ b/app/ui/content/help-article-link.tsx@@ -2,7 +2,7 @@ import Link from "next/link";import { ExpandingArrow } from "../icons";import { HelpPost } from "contentlayer/generated";-export default function ArticleLink({ article }: { article: HelpPost }) {+export default function HelpArticleLink({ article }: { article: HelpPost }) {return (<Linkhref={`/help/article/${article.slug}`}diff --git a/app/ui/content/mdx.tsx b/app/ui/content/mdx.tsxindex db4c499271..0b0e6eb162 100644--- a/app/ui/content/mdx.tsx+++ b/app/ui/content/mdx.tsx@@ -3,15 +3,20 @@ import { useMDXComponent } from "next-contentlayer/hooks";import GithubRepo, { GithubRepoProps } from "@/components/shared/github-repo";import MDXTweet from "#/ui/tweet";import { Tweet as TweetProps } from "react-tweet/api";-import { cn } from "#/lib/utils";+import { cn, formatDate } from "#/lib/utils";import "react-medium-image-zoom/dist/styles.css";import { HELP_CATEGORIES, POPULAR_ARTICLES } from "#/lib/constants/content";-import ArticleLink from "./article-link";+import HelpArticleLink from "./help-article-link";import CategoryCard from "./category-card";import { ListChecks } from "lucide-react";import ZoomImage from "./zoom-image";-import { allHelpPosts } from "contentlayer/generated";+import {+ allBlogPosts,+ allChangelogPosts,+ allHelpPosts,+} from "contentlayer/generated";import CopyBox from "./copy-box";+import { ExpandingArrow } from "../icons";const CustomLink = (props: any) => {const href = props.href;@@ -32,7 +37,9 @@ const CustomLink = (props: any) => {};const components = {- h2: (props: any) => <h2 className="text-2xl" {...props} />,+ h2: (props: any) => (+ <h2 className="text-2xl underline-offset-4 hover:underline" {...props} />+ ),a: (props: any) => (<CustomLinkclassName="font-medium text-gray-500 underline-offset-4 hover:text-black"@@ -72,7 +79,7 @@ const components = {HelpArticles: (props: { articles: string[] }) => (<div className="not-prose grid gap-2 rounded-xl border border-gray-200 bg-white p-4">{(props.articles || POPULAR_ARTICLES).map((slug) => (- <ArticleLink+ <HelpArticleLinkkey={slug}article={allHelpPosts.find((post) => post.slug === slug)!}/>@@ -99,6 +106,37 @@ const components = {))}</div>),+ Changelog: (props: any) => (+ <ul className="not-prose grid list-none rounded-xl border border-gray-200 bg-white p-4">+ {[...allBlogPosts, ...allChangelogPosts]+ .filter((post) => post.publishedAt <= props.before)+ .sort((a, b) => b.publishedAt.localeCompare(a.publishedAt))+ .slice(0, props.count)+ .map((post) => (+ <li key={post.slug}>+ <Link+ href={`/${post.type === "BlogPost" ? "blog" : "changelog"}/${+ post.slug+ }`}+ className="group flex items-center justify-between rounded-lg px-2 py-3 transition-colors hover:bg-purple-100 active:bg-purple-200 sm:px-4"+ >+ <div>+ <p className="text-xs font-medium text-gray-400 group-hover:text-purple-600">+ {formatDate(post.publishedAt)}+ </p>+ <h3 className="my-px text-base font-medium text-gray-600 group-hover:text-purple-600">+ {post.title}+ </h3>+ <p className="line-clamp-1 text-sm text-gray-500 group-hover:text-purple-600">+ {post.summary}+ </p>+ </div>+ <ExpandingArrow className="-ml-4 h-4 w-4 text-gray-400 group-hover:text-purple-600" />+ </Link>+ </li>+ ))}+ </ul>+ ),};interface MDXProps {diff --git a/app/ui/home/changelog.tsx b/app/ui/home/changelog.tsxindex a6659fdc00..7fb94003cd 100644--- a/app/ui/home/changelog.tsx+++ b/app/ui/home/changelog.tsx@@ -50,7 +50,7 @@ const DesktopChangelogEntry = ({ post }) => (</dd></dl><div className="col-span-4 flex items-center">- <div className="relative">+ <div className="relative ml-4"><div className="h-16 border-l border-gray-400 pr-8" /><div className="absolute -left-1 top-[1.6875rem] h-2.5 w-2.5 rounded-full bg-gray-400 transition-colors group-hover:bg-gray-700" /></div>diff --git a/content/blog/help-center.mdx b/content/blog/help-center.mdxindex 19f7620035..f129f2536a 100644--- a/content/blog/help-center.mdx+++ b/content/blog/help-center.mdx@@ -7,8 +7,8 @@ author: steventeycategories:- companyrelated:- - introducing-dub- migration-assistants+ - rebrand---Today, we're excited to launch the [Dub Help Center](/help) – a one-stop shop for all your Dub-related questions.diff --git a/content/blog/introducing-dub.mdx b/content/blog/introducing-dub.mdxindex 21cbd98020..9be2968d96 100644--- a/content/blog/introducing-dub.mdx+++ b/content/blog/introducing-dub.mdx@@ -7,7 +7,7 @@ author: steventeycategories:- companyrelated:- - help-center+ - rebrand- migration-assistants---diff --git a/content/blog/migration-assistants.mdx b/content/blog/migration-assistants.mdxindex e703ba7ad2..b6ee82321a 100644--- a/content/blog/migration-assistants.mdx+++ b/content/blog/migration-assistants.mdx@@ -8,7 +8,7 @@ categories:- companyrelated:- help-center- - introducing-dub+ - rebrand---Today, we're excited to launch migration assistants for Bitly and Short.io to help you migrate your links to Dub in a few clicks.diff --git a/content/blog/rebrand.mdx b/content/blog/rebrand.mdxnew file mode 100644index 0000000000..26f7238ae9--- /dev/null+++ b/content/blog/rebrand.mdx@@ -0,0 +1,45 @@+---+title: Introducing Dub.co – the new face of Dub+publishedAt: 2023-08-21+summary: We're thrilled to announce our rebrand. Dub.sh is now Dub.co.+image: https://d2vwwcvoksz7ty.cloudfront.net/thumbnail.png+author: steventey+categories:+ - company+related:+ - introducing-dub+---++Today, we're thrilled to announce our rebrand. **Dub.sh is now Dub.co**.++Almost a year ago, we [launched Dub to the world](https://twitter.com/steventey/status/1572958186667233282). Since then, we've been growing steadily and recently surpassed the following milestones:++- **10,000+** users+- **1,000+** connected custom domains+- **30,000+** short links created+- **7.7 million** links redirected+- **10,000+** GitHub stars++We're incredibly grateful for the support and feedback we've received from our users. Thank you for being part of our journey.++## Our New Brand: Dub.co++As we grew, we realized that our existing brand, _Dub.sh_, was not ideal.++While it was great for short links, the relatively unfamiliar `.sh` TLD has been a point of confusion for many users. We've gotten feedback that the name looked suspicious – especially to a marketer who has never seen a `.sh` domain before.++After months of brainstorming, we finally found the perfect name: **Dub.co**.++## What's new in Dub.co?++Our rebrand is more of a facelift than a complete overhaul. We're still the same Dub you know and love, but with a new domain. We will still be using `dub.sh` as the default short link domain on Dub, and all existing `dub.sh` links will continue to work as usual.++Along with our new brand, we've also been working on a multitude of new features and improvements. In the last 30 days, we rolled out 9 major updates:++<Changelog before={new Date("2023-08-20").toISOString()} count={9} />++## What's next?++We're very excited about the future of Dub. There are several features we're working on that we can't wait to share with you – most notably, the [official Dub API](/help/article/dub-api).++Dub is here to stay and we're committed to making it the best link shortener for everyone, everywhere. We invite you to join us on this journey by [creating a free account](https://app.dub.co/register) today.diff --git a/public/_static/tech stack.png b/public/_static/tech stack.pngdeleted file mode 100644index ad04b51751..0000000000Binary files a/public/_static/tech stack.png and /dev/null differdiff --git a/public/_static/thumbnail-old.png b/public/_static/thumbnail-old.pngindex 07b4d262fa..068f83422e 100644Binary files a/public/_static/thumbnail-old.png and b/public/_static/thumbnail-old.png differdiff --git a/public/_static/thumbnail-older.png b/public/_static/thumbnail-older.pngnew file mode 100644index 0000000000..07b4d262faBinary files /dev/null and b/public/_static/thumbnail-older.png differdiff --git a/public/_static/thumbnail.png b/public/_static/thumbnail.pngindex 068f83422e..8592edf98f 100644Binary files a/public/_static/thumbnail.png and b/public/_static/thumbnail.png differdiff --git a/public/_static/twitter-banner.png b/public/_static/twitter-banner.pngdeleted file mode 100644index a3c0e026ca..0000000000Binary files a/public/_static/twitter-banner.png and /dev/null differ