The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Tweak workspace not found page
Tim Wilson87bf0d4dee01
diff --git a/apps/web/ui/layout/page-content/index.tsx b/apps/web/ui/layout/page-content/index.tsxindex f379ff4a2f..02c3615852 100644--- a/apps/web/ui/layout/page-content/index.tsx+++ b/apps/web/ui/layout/page-content/index.tsx@@ -1,4 +1,5 @@import { MaxWidthWrapper } from "@dub/ui";+import { cn } from "@dub/utils";import { PropsWithChildren, ReactNode } from "react";import { HelpButtonRSC } from "../sidebar/help-button-rsc";import UserDropdown from "../sidebar/user-dropdown";@@ -7,16 +8,20 @@ import { NavButton } from "./nav-button";export function PageContent({title,children,-}: PropsWithChildren<{ title: ReactNode }>) {+}: PropsWithChildren<{ title?: ReactNode }>) {+ const hasTitle = title !== undefined;+return (<div className="bg-neutral-100 md:bg-white">- <MaxWidthWrapper className="mt-3 md:mt-6 md:py-3">+ <MaxWidthWrapper className={cn("mt-3", hasTitle && "md:mt-6 md:py-3")}><div className="flex items-center justify-between gap-4"><div className="flex items-center gap-4"><NavButton />- <h1 className="text-xl font-semibold leading-7 text-neutral-900 md:text-2xl">- {title}- </h1>+ {hasTitle && (+ <h1 className="text-xl font-semibold leading-7 text-neutral-900 md:text-2xl">+ {title}+ </h1>+ )}</div><div className="flex items-center gap-4 md:hidden"><HelpButtonRSC />diff --git a/apps/web/ui/layout/settings-layout.tsx b/apps/web/ui/layout/settings-layout.tsxindex e667f1466c..870fd0e402 100644--- a/apps/web/ui/layout/settings-layout.tsx+++ b/apps/web/ui/layout/settings-layout.tsx@@ -4,7 +4,7 @@ import { PageContent } from "./page-content";export default function SettingsLayout({ children }: PropsWithChildren) {return (- <PageContent title="">+ <PageContent><div className="relative min-h-[calc(100vh-16px)]"><MaxWidthWrapper className="pb-10 pt-3"><div className="grid gap-5">{children}</div>diff --git a/apps/web/ui/workspaces/workspace-not-found.tsx b/apps/web/ui/workspaces/workspace-not-found.tsxindex be84d8a085..1c78356799 100644--- a/apps/web/ui/workspaces/workspace-not-found.tsx+++ b/apps/web/ui/workspaces/workspace-not-found.tsx@@ -1,27 +1,30 @@import { MaxWidthWrapper } from "@dub/ui";import { FileX2 } from "lucide-react";+import { PageContent } from "../layout/page-content";export default function WorkspaceNotFound() {return (- <MaxWidthWrapper>- <div className="my-10 flex flex-col items-center justify-center rounded-md border border-gray-200 bg-white py-12">- <div className="rounded-full bg-gray-100 p-3">- <FileX2 className="h-6 w-6 text-gray-600" />+ <PageContent>+ <MaxWidthWrapper>+ <div className="my-10 flex flex-col items-center justify-center rounded-md bg-white py-12">+ <div className="rounded-full bg-gray-100 p-3">+ <FileX2 className="h-6 w-6 text-gray-600" />+ </div>+ <h1 className="my-3 text-xl font-semibold text-gray-700">+ Workspace Not Found+ </h1>+ <p className="z-10 max-w-sm text-center text-sm text-gray-600">+ Bummer! The workspace you are looking for does not exist. You either+ typed in the wrong URL or don't have access to this workspace.+ </p>+ <img+ src="/_static/illustrations/coffee-call.svg"+ alt="No links yet"+ width={400}+ height={400}+ /></div>- <h1 className="my-3 text-xl font-semibold text-gray-700">- Workspace Not Found- </h1>- <p className="z-10 max-w-sm text-center text-sm text-gray-600">- Bummer! The workspace you are looking for does not exist. You either- typed in the wrong URL or don't have access to this workspace.- </p>- <img- src="/_static/illustrations/coffee-call.svg"- alt="No links yet"- width={400}- height={400}- />- </div>- </MaxWidthWrapper>+ </MaxWidthWrapper>+ </PageContent>);}