The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
started on second blog post
Steven Tey4cfe5d9f572a
diff --git a/app/dub.sh/(blog-post)/blog/[slug]/page.tsx b/app/dub.sh/(blog-post)/blog/[slug]/page.tsxindex 3034bb03e4..ae3f39136c 100644--- a/app/dub.sh/(blog-post)/blog/[slug]/page.tsx+++ b/app/dub.sh/(blog-post)/blog/[slug]/page.tsx@@ -10,6 +10,7 @@ import { constructMetadata, formatDate } from "#/lib/utils";import { getTweet } from "react-tweet/api";import BlurImage from "#/ui/blur-image";import { BLOG_CATEGORIES } from "#/lib/constants/content";+import BlogCard from "#/ui/content/blog-card";export async function generateStaticParams() {return allBlogPosts.map((post) => ({@@ -100,7 +101,7 @@ export default async function BlogArticle({<MaxWidthWrapper className="grid grid-cols-4 gap-10 px-0 py-10"><div className="relative col-span-4 mb-10 flex flex-col space-y-8 bg-white sm:rounded-xl sm:border sm:border-gray-200 md:col-span-3"><BlurImage- className="rounded-t-xl"+ className="aspect-[1200/630] rounded-t-xl object-cover"src={data.image}blurDataURL={thumbnailBlurhash}width={1200}@@ -115,22 +116,27 @@ export default async function BlogArticle({className="px-5 pb-20 pt-4 sm:px-10"/></div>- <div className="sticky top-20 col-span-1 mt-52 hidden flex-col space-y-10 divide-y divide-gray-200 self-start sm:flex">- <div className="flex flex-col space-y-4">+ <div className="sticky top-20 col-span-1 mt-48 hidden flex-col divide-y divide-gray-200 self-start sm:flex">+ <div className="flex flex-col space-y-4 py-5"><p className="text-sm text-gray-500">Written by</p><Author username={data.author} /></div>{relatedArticles.length > 0 && (- <div className="flex flex-col space-y-4">+ <div className="flex flex-col space-y-4 py-5"><p className="text-sm text-gray-500">Related articles</p>- <ul className="space-y-2">+ <ul className="flex flex-col space-y-4 py-4">{relatedArticles.map((post) => (<li key={post.slug}><Linkhref={`/blog/${post.slug}`}- className="text-gray-700 hover:text-gray-800"+ className="group flex flex-col space-y-2">- {post.title}+ <p className="font-semibold text-gray-700 underline-offset-4 group-hover:underline">+ {post.title}+ </p>+ <p className="line-clamp-2 text-sm text-gray-500 underline-offset-2 group-hover:underline">+ {post.summary}+ </p></Link></li>))}diff --git a/app/dub.sh/blog/layout.tsx b/app/dub.sh/blog/layout.tsxindex 92ded7712b..73100591ad 100644--- a/app/dub.sh/blog/layout.tsx+++ b/app/dub.sh/blog/layout.tsx@@ -7,7 +7,7 @@ export default function BlogLayout({ children }: { children: ReactNode }) {<><BlogLayoutHero /><div className="min-h-[50vh] border border-gray-200 bg-white/50 shadow-[inset_10px_-50px_94px_0_rgb(199,199,199,0.2)] backdrop-blur-lg">- <MaxWidthWrapper className="grid grid-cols-1 py-10 md:grid-cols-2">+ <MaxWidthWrapper className="grid grid-cols-1 gap-8 py-10 md:grid-cols-2">{children}</MaxWidthWrapper></div>diff --git a/app/dub.sh/help/page.tsx b/app/dub.sh/help/page.tsxindex c49e85133c..543309ef20 100644--- a/app/dub.sh/help/page.tsx+++ b/app/dub.sh/help/page.tsx@@ -8,6 +8,7 @@ import ArticleLink from "#/ui/content/article-link";export const metadata = constructMetadata({title: "Help Center – Dub",+ description: "A one-stop shop for all your Dub-related questions.",});export default function HelpCenter() {diff --git a/app/ui/content/author.tsx b/app/ui/content/author.tsxindex 2f91edda8f..8dad67c196 100644--- a/app/ui/content/author.tsx+++ b/app/ui/content/author.tsx@@ -14,13 +14,11 @@ export default async function Author({const authors = {steventey: {name: "Steven Tey",- image:- "https://pbs.twimg.com/profile_images/1506792347840888834/dS-r50Je_400x400.jpg",+ image: "https://d2vwwcvoksz7ty.cloudfront.net/author/steventey.jpg",},fmerian: {name: "Flo Merian",- image:- "https://pbs.twimg.com/profile_images/846637761792790528/WtCc8Xy7_400x400.jpg",+ image: "https://d2vwwcvoksz7ty.cloudfront.net/author/fmerian.jpg",},};diff --git a/app/ui/content/blog-card.tsx b/app/ui/content/blog-card.tsxindex 16bd43714c..d8fd2d7246 100644--- a/app/ui/content/blog-card.tsx+++ b/app/ui/content/blog-card.tsx@@ -19,7 +19,7 @@ export default function BlogCard({className="rounded-lg border border-gray-200"><BlurImage- className="rounded-t-xl"+ className="aspect-[1200/630] rounded-t-xl object-cover"src={data.image}blurDataURL={data.blurDataURL}width={1200}@@ -28,10 +28,10 @@ export default function BlogCard({priority={priority}/><div className="rounded-b-lg bg-white p-6">- <h2 className="font-display text-2xl font-bold text-gray-700">+ <h2 className="line-clamp-1 font-display text-2xl font-bold text-gray-700">{data.title}</h2>- <p className="mt-2 text-gray-500">{data.summary}</p>+ <p className="mt-2 line-clamp-2 text-gray-500">{data.summary}</p><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/blog-layout-hero.tsx b/app/ui/content/blog-layout-hero.tsxindex 722ef3bcce..09e79b23e9 100644--- a/app/ui/content/blog-layout-hero.tsx+++ b/app/ui/content/blog-layout-hero.tsx@@ -53,7 +53,7 @@ const CategoryLink = ({"border-black text-black": active,})}>- <div className="rounded-md px-3 py-2 text-sm text-gray-600 hover:bg-gray-200 active:bg-gray-300">+ <div className="rounded-md px-3 py-2 text-sm text-gray-600 transition-all hover:bg-gray-100 active:bg-gray-200">{title}</div></Link>diff --git a/app/ui/home/footer.tsx b/app/ui/home/footer.tsxindex d937da6c09..deda8a83f0 100644--- a/app/ui/home/footer.tsx+++ b/app/ui/home/footer.tsx@@ -8,8 +8,11 @@ import MaxWidthWrapper from "@/components/shared/max-width-wrapper";import va from "@vercel/analytics";const navigation = {- product: [{ name: "Pricing", href: "/pricing" }],- company: [{ name: "Changelog", href: "/changelog" }],+ product: [+ { name: "Pricing", href: "/pricing" },+ { name: "Changelog", href: "/changelog" },+ ],+ company: [{ name: "Blog", href: "/blog" }],resources: [{ name: "Help Center", href: "/help" },{ name: "Metatags API", href: "/metatags" },diff --git a/content/blog/introducing-help-center.mdx b/content/blog/introducing-help-center.mdxnew file mode 100644index 0000000000..68d337b6cf--- /dev/null+++ b/content/blog/introducing-help-center.mdx@@ -0,0 +1,49 @@+---+title: Introducing the Dub Help Center+publishedAt: 2023-07-27+summary: Today, we're excited to launch the Dub Help Center – a one-stop shop for all your Dub-related questions.+image: https://d2vwwcvoksz7ty.cloudfront.net/blog/help-center.png+author: steventey+categories:+ - company+related:+ - introducing-dub+---++Introducing Dub – an open-source link-management tool with built-in analytics and free custom domains.++<Tweet id="1572958186667233282" />++## Analytics that matter++On top of fast redirects, a link management tool also needs data visualization to help marketing teams understand the performance of their links.++Dub provides you with powerful analytics for your short links, including geolocation, device, browser, and referrer information.++<Image+ alt="Analytics page for a short link on Dub"+ src="https://d2vwwcvoksz7ty.cloudfront.net/changelog/public-stats-pages.png"+ width={1607}+ height={946}+/>++## Use your own custom domain for free++Dub also allows you to use your own custom domain for free. This is especially useful for marketing teams that want to use their own branded domain for short links.++<Image+ alt="Use your own custom domain on Dub for better brand recognition"+ src="https://d2vwwcvoksz7ty.cloudfront.net/blog/domains.png"+ width={1393}+ height={722}+/>++Learn more about how to set up your own [custom domain on Dub](/help/article/how-to-add-custom-domain).++## Fully open-source and self-hostable++Dub is also fully open-source, released under the AGPLv3 license.++This means you can clone, modify, and even deploy your own instance of Dub, as long as you open-source it.++Here's a link to the GitHub repository: [dub.sh/github](https://dub.sh/github)