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.

Add Marketplace empty state

Tim Wilsonc8f9c0e47afe
diff --git a/apps/web/app/partners.dub.co/(dashboard)/[partnerId]/marketplace/page.tsx b/apps/web/app/partners.dub.co/(dashboard)/[partnerId]/marketplace/page.tsx
index 0cde4739bc..671a28f5d2 100644
--- a/apps/web/app/partners.dub.co/(dashboard)/[partnerId]/marketplace/page.tsx
+++ b/apps/web/app/partners.dub.co/(dashboard)/[partnerId]/marketplace/page.tsx
@@ -1,5 +1,27 @@
import { PageContent } from "@/ui/layout/page-content";
+import { AnimatedEmptyState } from "@/ui/shared/animated-empty-state";
+import { MaxWidthWrapper } from "@dub/ui";
+import { Folder, Globe } from "@dub/ui/src/icons";
export default function MarketplacePage() {
- return <PageContent title="Marketplace"></PageContent>;
+ return (
+ <PageContent title="Marketplace">
+ <MaxWidthWrapper>
+ <AnimatedEmptyState
+ title="Marketplace"
+ description="Explore and discover other partnerships with companies and products."
+ cardContent={
+ <>
+ <Folder className="size-4 text-neutral-700" />
+ <div className="h-2.5 w-24 min-w-0 rounded-sm bg-neutral-200" />
+ <div className="xs:flex hidden grow items-center justify-end gap-1.5 text-gray-500">
+ <Globe className="size-3.5" />
+ </div>
+ </>
+ }
+ pillContent="Coming soon"
+ />
+ </MaxWidthWrapper>
+ </PageContent>
+ );
}
diff --git a/packages/ui/src/icons/nucleo/folder.tsx b/packages/ui/src/icons/nucleo/folder.tsx
new file mode 100644
index 0000000000..7611d7e35e
--- /dev/null
+++ b/packages/ui/src/icons/nucleo/folder.tsx
@@ -0,0 +1,32 @@
+import { SVGProps } from "react";
+
+export function Folder(props: SVGProps<SVGSVGElement>) {
+ return (
+ <svg
+ height="18"
+ width="18"
+ viewBox="0 0 18 18"
+ xmlns="http://www.w3.org/2000/svg"
+ {...props}
+ >
+ <g fill="currentColor">
+ <path
+ d="M2.25,8.75V4.75c0-1.105,.895-2,2-2h1.951c.607,0,1.18,.275,1.56,.748l.603,.752h5.386c1.105,0,2,.895,2,2v2.844"
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
+ />
+ <path
+ d="M4.25,6.75H13.75c1.105,0,2,.895,2,2v4.5c0,1.105-.895,2-2,2H4.25c-1.105,0-2-.895-2-2v-4.5c0-1.105,.895-2,2-2Z"
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
+ />
+ </g>
+ </svg>
+ );
+}
diff --git a/packages/ui/src/icons/nucleo/index.ts b/packages/ui/src/icons/nucleo/index.ts
index bd0509d7a9..2e7efe4ed5 100644
--- a/packages/ui/src/icons/nucleo/index.ts
+++ b/packages/ui/src/icons/nucleo/index.ts
@@ -54,6 +54,7 @@ export * from "./filter2";
export * from "./flag-wavy";
export * from "./flag2";
export * from "./flag6";
+export * from "./folder";
export * from "./gaming-console";
export * from "./gauge6";
export * from "./gear";