The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
small tweaks
Steven Tey44232b6e1962
diff --git a/apps/web/app/[domain]/not-found/page.tsx b/apps/web/app/[domain]/not-found/page.tsxindex 1ad903513f..85db923fbe 100644--- a/apps/web/app/[domain]/not-found/page.tsx+++ b/apps/web/app/[domain]/not-found/page.tsx@@ -1,5 +1,10 @@+import { BubbleIcon } from "@/ui/placeholders/bubble-icon";+import { ButtonLink } from "@/ui/placeholders/button-link";+import { CTA } from "@/ui/placeholders/cta";+import { FeaturesSection } from "@/ui/placeholders/features-section";+import { Hero } from "@/ui/placeholders/hero";import { GlobeSearch } from "@dub/ui";-import { constructMetadata } from "@dub/utils";+import { cn, constructMetadata, createHref } from "@dub/utils";export const runtime = "edge";@@ -11,22 +16,69 @@ export const metadata = constructMetadata({noIndex: true,});-export default async function NotFoundLinkPage() {+const UTM_PARAMS = {+ utm_source: "Expired Link",+ utm_medium: "Expired Link Page",+};++export default function NotFoundLinkPage({+ params,+}: {+ params: { domain: string };+}) {return (- <div className="z-10 mx-2 my-10 flex max-w-md flex-col items-center space-y-5 px-2.5 text-center sm:mx-auto sm:max-w-lg sm:px-0 lg:mb-16">- <div className="font-display mx-auto flex h-20 w-20 items-center justify-center rounded-full border border-gray-300 bg-white/80 text-lg font-bold text-gray-400">- <GlobeSearch className="size-6 text-gray-500" />+ <main className="flex min-h-screen flex-col justify-between">+ <Hero>+ <div className="relative mx-auto flex w-full max-w-md flex-col items-center">+ <BubbleIcon>+ <GlobeSearch className="size-12" />+ </BubbleIcon>+ <h1+ className={cn(+ "font-display mt-10 text-center text-4xl font-medium text-neutral-900 sm:text-5xl sm:leading-[1.15]",+ "animate-slide-up-fade motion-reduce:animate-fade-in [--offset:20px] [animation-duration:1s] [animation-fill-mode:both]",+ )}+ >+ Link not found+ </h1>+ <p+ className={cn(+ "mt-5 text-pretty text-base text-neutral-700 sm:text-xl",+ "animate-slide-up-fade motion-reduce:animate-fade-in [--offset:10px] [animation-delay:200ms] [animation-duration:1s] [animation-fill-mode:both]",+ )}+ >+ This link has expired. Please contact the owner of this link to get+ a new one.+ </p>+ </div>++ <div+ className={cn(+ "xs:flex-row relative mx-auto mt-8 flex max-w-fit flex-col items-center gap-4",+ "animate-slide-up-fade motion-reduce:animate-fade-in [--offset:5px] [animation-delay:300ms] [animation-duration:1s] [animation-fill-mode:both]",+ )}+ >+ <ButtonLink variant="primary" href="https://d.to/register">+ Try Dub today+ </ButtonLink>+ <ButtonLink+ variant="secondary"+ href={createHref("/", params.domain, {+ ...UTM_PARAMS,+ utm_campaign: params.domain,+ utm_content: "Learn more",+ })}+ >+ Learn more+ </ButtonLink>+ </div>+ </Hero>+ <div className="mt-20">+ <FeaturesSection domain={params.domain} utmParams={UTM_PARAMS} />+ </div>+ <div className="mt-32">+ <CTA domain={params.domain} utmParams={UTM_PARAMS} /></div>- <h1 className="font-display text-5xl font-bold">Link Not Found</h1>- <p className="text-lg text-gray-600">- This link does not exist. Please check the URL and try again.- </p>- <a- href="https://dub.co/home"- className="rounded-full bg-gray-800 px-10 py-2 font-medium text-white transition-colors hover:bg-black"- >- Create Your Free Branded Link- </a>- </div>+ </main>);}diff --git a/apps/web/app/[domain]/placeholder.tsx b/apps/web/app/[domain]/placeholder.tsxindex 7e23c70ef9..60476a13f3 100644--- a/apps/web/app/[domain]/placeholder.tsx+++ b/apps/web/app/[domain]/placeholder.tsx@@ -42,7 +42,7 @@ export default function PlaceholderContent() {"animate-slide-up-fade motion-reduce:animate-fade-in [--offset:10px] [animation-delay:200ms] [animation-duration:1s] [animation-fill-mode:both]",)}>- This custom domain is powered by Dub.co – the link management+ This custom domain is powered by Dub – the link managementplatform designed for modern marketing teams.</p></div>diff --git a/apps/web/ui/placeholders/button-link.tsx b/apps/web/ui/placeholders/button-link.tsxindex e19d2a78db..797b034045 100644--- a/apps/web/ui/placeholders/button-link.tsx+++ b/apps/web/ui/placeholders/button-link.tsx@@ -14,8 +14,8 @@ export function ButtonLink({<Link{...rest}className={cn(- buttonVariants({ variant }),"flex h-10 w-fit items-center whitespace-nowrap rounded-lg border px-5 text-base",+ buttonVariants({ variant }),className,)}/>