The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
update nav + footer, improve features
Steven Tey68eb2baca00d
diff --git a/README.md b/README.mdindex f205b3427d..977e1ccc0a 100644--- a/README.md+++ b/README.md@@ -44,7 +44,7 @@ Our platform powers 100M+ clicks and 2M+ links monthly, and is used by world-cla- [Tinybird](https://tinybird.com/) – analytics- [PlanetScale](https://planetscale.com/) – database- [NextAuth.js](https://next-auth.js.org/) – auth-- [BoxyHQ](https://boxyhq.com/enterprise-sso) – SSO/SAML+- [BoxyHQ](https://boxyhq.com/enterprise-sso) – SAML/SSO- [Turborepo](https://turbo.build/repo) – monorepo- [Stripe](https://stripe.com/) – payments- [Resend](https://resend.com/) – emailsdiff --git a/apps/web/ui/partners/advanced-upsell-modal.tsx b/apps/web/ui/partners/advanced-upsell-modal.tsxindex 7f13e736b3..df74be4977 100644--- a/apps/web/ui/partners/advanced-upsell-modal.tsx+++ b/apps/web/ui/partners/advanced-upsell-modal.tsx@@ -66,7 +66,7 @@ function AdvancedUpsellModal({text: "Embedded referral dashboard",tooltip: {title:- "Create an embedded referral dashboard directly in your app in just a few lines of code.",+ "Let users join your referral program and start sharing + earning commissions – all without leaving your app.",cta: "Learn more.",href: "https://dub.co/docs/partners/embedded-referrals",},diff --git a/packages/ui/package.json b/packages/ui/package.jsonindex c25e37ad12..25f254ffb7 100644--- a/packages/ui/package.json+++ b/packages/ui/package.json@@ -1,7 +1,7 @@{"name": "@dub/ui","description": "UI components for Dub",- "version": "0.3.9",+ "version": "0.3.12","sideEffects": false,"main": "./dist/index.js","module": "./dist/index.mjs",diff --git a/packages/ui/src/content.ts b/packages/ui/src/content.tsindex 38ea1b1f73..356411b535 100644--- a/packages/ui/src/content.ts+++ b/packages/ui/src/content.ts@@ -41,13 +41,6 @@ export type NavItemChildren = ()[];export const FEATURES_LIST = [- {- id: "links",- title: "Dub Links",- description: "Short links with superpowers",- icon: DubLinksIcon,- href: "/links",- },{id: "partners",title: "Dub Partners",@@ -62,6 +55,13 @@ export const FEATURES_LIST = [icon: DubAnalyticsIcon,href: "/analytics",},+ {+ id: "links",+ title: "Dub Links",+ description: "Short links with superpowers",+ icon: DubLinksIcon,+ href: "/links",+ },{id: "api",title: "Dub API",@@ -114,6 +114,12 @@ export const SDKS = [];export const SOLUTIONS: NavItemChildren = [+ {+ icon: withFillVariant(Users),+ title: "Affiliate Management",+ description: "Manage affiliates and automate payouts",+ href: "/partners",+ },{icon: withFillVariant(DiamondTurnRight),title: "Marketing Attribution",@@ -122,16 +128,10 @@ export const SOLUTIONS: NavItemChildren = [},{icon: withFillVariant(Microphone),- title: "Content Creators",+ title: "For Content Creators",description: "Intelligent audience insights and link tracking",href: "/solutions/creators",},- {- icon: withFillVariant(Users),- title: "Affiliate Management",- description: "Manage affiliates and automate payouts",- href: "/partners",- },{label: "SDKs",items: SDKS,diff --git a/packages/ui/src/footer.tsx b/packages/ui/src/footer.tsxindex 61ad544266..fdbac18e33 100644--- a/packages/ui/src/footer.tsx+++ b/packages/ui/src/footer.tsx@@ -46,16 +46,13 @@ const socials = [];const navigation = {- product: [- ...FEATURES_LIST.filter(({ title }) => title !== "Dub Integrations").map(- ({ id, title, href }) => ({- id,- name: title,- href,- }),- ),- { id: null, name: "Dub Enterprise", href: "/enterprise" },- ],+ product: FEATURES_LIST.filter(+ ({ title }) => title !== "Dub Integrations",+ ).map(({ id, title, href }) => ({+ id,+ name: title,+ href,+ })),solutions: [{ name: "Marketing attribution", href: "/analytics" },{ name: "Content creators", href: "/solutions/creators" },@@ -64,6 +61,8 @@ const navigation = {resources: [{ name: "Docs", href: "/docs" },{ name: "Help Center", href: "/help" },+ { name: "Enterprise", href: "/enterprise" },+ { name: "Startups", href: "/startups" },{ name: "Integrations", href: "/integrations" },{ name: "Pricing", href: "/pricing" },{diff --git a/packages/ui/src/icons/nucleo/index.ts b/packages/ui/src/icons/nucleo/index.tsindex 87179e0761..0023550cb2 100644--- a/packages/ui/src/icons/nucleo/index.ts+++ b/packages/ui/src/icons/nucleo/index.ts@@ -186,6 +186,7 @@ export * from "./receipt2";export * from "./referred-via";export * from "./refresh2";export * from "./robot";+export * from "./rocket";export * from "./satellite-dish";export * from "./scan-text";export * from "./scribble";diff --git a/packages/ui/src/icons/nucleo/office-building.tsx b/packages/ui/src/icons/nucleo/office-building.tsxindex 758f3d3509..05e799dd8a 100644--- a/packages/ui/src/icons/nucleo/office-building.tsx+++ b/packages/ui/src/icons/nucleo/office-building.tsx@@ -1,6 +1,9 @@import { SVGProps } from "react";-export function OfficeBuilding(props: SVGProps<SVGSVGElement>) {+export function OfficeBuilding({+ variant = "outline",+ ...props+}: SVGProps<SVGSVGElement> & { variant?: "outline" | "fill" }) {return (<svgheight="18"@@ -10,77 +13,92 @@ export function OfficeBuilding(props: SVGProps<SVGSVGElement>) {{...props}><g fill="currentColor">- <path- d="M7.75,16.25V7.75c0-.552,.448-1,1-1h5.5c.552,0,1,.448,1,1v8.5"- fill="none"- stroke="currentColor"- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth="1.5"- />- <path- d="M2.75,16.25V4.412c0-.402,.24-.765,.61-.921L7.86,1.588c.659-.279,1.39,.205,1.39,.921v1.741"- fill="none"- stroke="currentColor"- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth="1.5"- />- <line- fill="none"- stroke="currentColor"- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth="1.5"- x1="1.75"- x2="16.25"- y1="16.25"- y2="16.25"- />- <line- fill="none"- stroke="currentColor"- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth="1.5"- x1="10.25"- x2="10.25"- y1="10.25"- y2="9.75"- />- <line- fill="none"- stroke="currentColor"- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth="1.5"- x1="12.75"- x2="12.75"- y1="10.25"- y2="9.75"- />- <line- fill="none"- stroke="currentColor"- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth="1.5"- x1="10.25"- x2="10.25"- y1="13.25"- y2="12.75"- />- <line- fill="none"- stroke="currentColor"- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth="1.5"- x1="12.75"- x2="12.75"- y1="13.25"- y2="12.75"- />+ {variant === "fill" ? (+ <>+ <path+ d="M2.75 17C2.336 17 2 16.664 2 16.25V4.41199C2 3.70799 2.41899 3.075 3.06799 2.801L7.56799 0.897004C8.10999 0.668004 8.726 0.724988 9.216 1.04999C9.707 1.37499 9.99899 1.921 9.99899 2.509V3.75C9.99899 4.164 9.66299 4.5 9.24899 4.5C8.83499 4.5 8.49899 4.164 8.49899 3.75V2.509C8.49899 2.392 8.42899 2.32799 8.38699 2.29999C8.34499 2.27199 8.259 2.23199 8.151 2.27899L3.651 4.18201C3.559 4.22101 3.49899 4.31099 3.49899 4.41199V16.25C3.49899 16.664 3.164 17 2.75 17Z"+ fill="currentColor"+ />+ <path+ d="M16.25 15.5H16V7.75C16 6.785 15.215 6 14.25 6H8.75C7.785 6 7 6.785 7 7.75V15.5H1.75C1.336 15.5 1 15.836 1 16.25C1 16.664 1.336 17 1.75 17H16.25C16.664 17 17 16.664 17 16.25C17 15.836 16.664 15.5 16.25 15.5ZM11 13.25C11 13.664 10.664 14 10.25 14C9.836 14 9.5 13.664 9.5 13.25V12.75C9.5 12.336 9.836 12 10.25 12C10.664 12 11 12.336 11 12.75V13.25ZM11 10.25C11 10.664 10.664 11 10.25 11C9.836 11 9.5 10.664 9.5 10.25V9.75C9.5 9.336 9.836 9 10.25 9C10.664 9 11 9.336 11 9.75V10.25ZM13.5 13.25C13.5 13.664 13.164 14 12.75 14C12.336 14 12 13.664 12 13.25V12.75C12 12.336 12.336 12 12.75 12C13.164 12 13.5 12.336 13.5 12.75V13.25ZM13.5 10.25C13.5 10.664 13.164 11 12.75 11C12.336 11 12 10.664 12 10.25V9.75C12 9.336 12.336 9 12.75 9C13.164 9 13.5 9.336 13.5 9.75V10.25Z"+ fill="currentColor"+ />+ </>+ ) : (+ <>+ <path+ d="M7.75,16.25V7.75c0-.552,.448-1,1-1h5.5c.552,0,1,.448,1,1v8.5"+ fill="none"+ stroke="currentColor"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ />+ <path+ d="M2.75,16.25V4.412c0-.402,.24-.765,.61-.921L7.86,1.588c.659-.279,1.39,.205,1.39,.921v1.741"+ fill="none"+ stroke="currentColor"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ />+ <line+ fill="none"+ stroke="currentColor"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ x1="1.75"+ x2="16.25"+ y1="16.25"+ y2="16.25"+ />+ <line+ fill="none"+ stroke="currentColor"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ x1="10.25"+ x2="10.25"+ y1="10.25"+ y2="9.75"+ />+ <line+ fill="none"+ stroke="currentColor"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ x1="12.75"+ x2="12.75"+ y1="10.25"+ y2="9.75"+ />+ <line+ fill="none"+ stroke="currentColor"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ x1="10.25"+ x2="10.25"+ y1="13.25"+ y2="12.75"+ />+ <line+ fill="none"+ stroke="currentColor"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ x1="12.75"+ x2="12.75"+ y1="13.25"+ y2="12.75"+ />+ </>+ )}</g></svg>);diff --git a/packages/ui/src/icons/nucleo/rocket.tsx b/packages/ui/src/icons/nucleo/rocket.tsxnew file mode 100644index 0000000000..d4f6da78dc--- /dev/null+++ b/packages/ui/src/icons/nucleo/rocket.tsx@@ -0,0 +1,73 @@+import { SVGProps } from "react";++export function Rocket({+ variant = "outline",+ ...props+}: SVGProps<SVGSVGElement> & { variant?: "outline" | "fill" }) {+ return (+ <svg+ height="18"+ width="18"+ viewBox="0 0 18 18"+ xmlns="http://www.w3.org/2000/svg"+ {...props}+ >+ <g fill="currentColor">+ {variant === "fill" ? (+ <>+ <path+ d="M4.46148 8.63048C3.87064 8.62076 3.35841 8.67397 2.95575 8.74172C2.6394 8.79494 2.31809 8.86129 2.01562 8.97129C1.70943 9.08724 1.36321 8.99117 1.16061 8.73371C0.957491 8.4756 0.945952 8.11534 1.13214 7.84476L3.38782 4.5666C3.86364 3.89451 4.44415 3.53832 5.13069 3.42604C5.75112 3.32456 6.41491 3.43441 7.02435 3.54367L8.05109 3.7275C11.8169 0.595777 15.9351 1.0011 16.2994 1.04445C16.6433 1.08537 16.9145 1.35644 16.9555 1.70032C16.9989 2.06405 17.4042 6.18313 14.2724 9.94897L14.4562 10.9755C14.5655 11.585 14.6754 12.2487 14.5739 12.8692C14.4617 13.5558 14.1055 14.1363 13.4334 14.6121L10.1551 16.8678C9.88452 17.0539 9.52427 17.0424 9.26616 16.8393C9.02842 16.6522 8.92828 16.3427 9.00566 16.0552C9.02695 15.9761 9.04892 15.8977 9.07082 15.8195C9.14245 15.5636 9.21342 15.3101 9.25817 15.0441C9.32592 14.6415 9.37912 14.1293 9.36943 13.5386C8.80953 13.7667 8.35869 13.9017 8.08221 13.9775C7.82224 14.0489 7.54397 13.9753 7.35335 13.7846L4.21546 10.6467C4.02484 10.4561 3.95118 10.1778 4.02254 9.91787C4.09844 9.64138 4.23338 9.19047 4.46148 8.63048ZM6.72024 5.01309C6.0973 4.90235 5.69357 4.8539 5.37281 4.90637C5.11225 4.94898 4.87495 5.06366 4.61483 5.42955L3.41681 7.17062C3.92635 7.12386 4.51965 7.10979 5.17364 7.16566C5.56153 6.48427 6.06609 5.74574 6.72024 5.01309ZM10.8343 12.8264C11.5156 12.4385 12.2542 11.9339 12.9868 11.2798C13.0976 11.9028 13.146 12.3064 13.0936 12.6272C13.051 12.8878 12.9363 13.1251 12.5705 13.3852L10.8293 14.5832C10.876 14.0736 10.8901 13.4804 10.8343 12.8264ZM13.2445 6.25552C13.2445 7.084 12.5725 7.75552 11.7445 7.75552C10.9165 7.75552 10.2445 7.084 10.2445 6.25552C10.2445 5.42704 10.9165 4.75552 11.7445 4.75552C12.5725 4.75552 13.2445 5.42704 13.2445 6.25552Z"+ fill="currentColor"+ fillRule="evenodd"+ />+ <path+ d="M3.52701 12.1322C3.71313 12.5022 3.56404 12.9531 3.194 13.1392C2.77791 13.3485 2.5 13.7683 2.5 14.25V15.5H3.75C4.23151 15.5 4.65125 15.2222 4.8605 14.8063C5.04665 14.4362 5.49752 14.2872 5.86755 14.4733C6.23758 14.6595 6.38665 15.1103 6.2005 15.4804C5.75195 16.372 4.83189 17 3.75 17H1.75C1.33579 17 1 16.6642 1 16.25V14.25C1 13.1677 1.62827 12.2477 2.51998 11.7992C2.89002 11.6131 3.34089 11.7622 3.52701 12.1322Z"+ fill="currentColor"+ fillRule="evenodd"+ />+ </>+ ) : (+ <>+ <path+ d="M11.75 7.5C12.44 7.5 13 6.9404 13 6.25C13 5.5596 12.44 5 11.75 5C11.06 5 10.5 5.5596 10.5 6.25C10.5 6.9404 11.06 7.5 11.75 7.5Z"+ fill="currentColor"+ stroke="none"+ />+ <path+ d="M2.85699 12.4692C2.20309 12.7981 1.75 13.468 1.75 14.25V16.25H3.75C4.5317 16.25 5.2016 15.7971 5.5305 15.1433"+ fill="none"+ stroke="currentColor"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ />+ <path+ d="M13.1707 10.0588C16.6759 6.381 16.2472 2.0942 16.2108 1.7892C15.9049 1.7528 11.619 1.3241 7.94118 4.8293C5.71338 6.9526 4.96349 9.3233 4.74579 10.1164L7.88368 13.2543C8.67678 13.0366 11.0474 12.2865 13.1707 10.0588Z"+ fill="none"+ stroke="currentColor"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ />+ <path+ d="M8.26601 4.5279L6.892 4.2819C5.637 4.0569 4.737 3.959 4 5L1.75 8.2699C1.75 8.2699 3.3528 7.6568 5.5921 7.9669"+ fill="none"+ stroke="currentColor"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ />+ <path+ d="M10.033 12.4078C10.3431 14.647 9.72998 16.2499 9.72998 16.2499L13 14C14.041 13.263 13.943 12.3629 13.718 11.1079L13.472 9.7339"+ fill="none"+ stroke="currentColor"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ />+ </>+ )}+ </g>+ </svg>+ );+}diff --git a/packages/ui/src/icons/plan-feature-icons.tsx b/packages/ui/src/icons/plan-feature-icons.tsxindex d5146a170b..0551b19b27 100644--- a/packages/ui/src/icons/plan-feature-icons.tsx+++ b/packages/ui/src/icons/plan-feature-icons.tsx@@ -13,6 +13,7 @@ import {Hyperlink,InvoiceDollar,License,+ Lock,MarketingTarget,MoneyBills2,Msgs,@@ -32,6 +33,7 @@ import {UsersSettings,Versions2,Webhook,+ Workflow,} from "./nucleo";import { Slack } from "./slack";@@ -57,12 +59,13 @@ export const PLAN_FEATURE_ICONS = {tests: Flask,email: PaperPlane,messages: Msgs,- sso: ShieldKeyhole,+ sso: Lock,+ security: ShieldKeyhole,logs: Versions2,success: UserCrown,sla: License,volume: CirclePercentage,-+ workflows: Workflow,clickpayouts: CursorRays,payouts: MoneyBills2,basicrewards: Gift,diff --git a/packages/ui/src/nav/content/product-content.tsx b/packages/ui/src/nav/content/product-content.tsxindex 7b3c0fbadd..230e145ef6 100644--- a/packages/ui/src/nav/content/product-content.tsx+++ b/packages/ui/src/nav/content/product-content.tsx@@ -13,16 +13,16 @@ import { NAV_UTM_PARAMS } from "./shared";const products = [{icon: (- <div className="flex size-4 items-center justify-center rounded bg-orange-400">- <DubLinksIcon className="size-2.5 text-orange-900" />+ <div className="flex size-4 items-center justify-center rounded bg-violet-400">+ <DubPartnersIcon className="size-2.5 text-violet-900" /></div>),- title: "Dub Links",- description: "Short links with superpowers for modern marketing teams.",- href: "/links",- color: "#f4950c",- graphicsContainerClassName: "px-2",- graphic: <LinksGraphic className="absolute left-0 top-0 h-auto w-full" />,+ title: "Dub Partners",+ description: "Grow your revenue on auto-pilot with partnerships.",+ href: "/partners",+ color: "#818cf8",+ graphicsContainerClassName: "pl-2",+ graphic: <PartnersGraphic />,},{icon: (@@ -41,16 +41,16 @@ const products = [},{icon: (- <div className="flex size-4 items-center justify-center rounded bg-violet-400">- <DubPartnersIcon className="size-2.5 text-violet-900" />+ <div className="flex size-4 items-center justify-center rounded bg-orange-400">+ <DubLinksIcon className="size-2.5 text-orange-900" /></div>),- title: "Dub Partners",- description: "Grow your revenue on auto-pilot with partnerships.",- href: "/partners",- color: "#818cf8",- graphicsContainerClassName: "pl-2",- graphic: <PartnersGraphic />,+ title: "Dub Links",+ description: "Short links with superpowers for modern marketing teams.",+ href: "/links",+ color: "#f4950c",+ graphicsContainerClassName: "px-2",+ graphic: <LinksGraphic className="absolute left-0 top-0 h-auto w-full" />,},];diff --git a/packages/ui/src/nav/content/resources-content.tsx b/packages/ui/src/nav/content/resources-content.tsxindex 89b494459f..1dc6b7011e 100644--- a/packages/ui/src/nav/content/resources-content.tsx+++ b/packages/ui/src/nav/content/resources-content.tsx@@ -11,13 +11,6 @@ import {} from "./shared";const mainLinks = [- {- icon: LifeRing,- title: "Help Center",- description: "Answers to your questions",- thumbnail: "https://assets.dub.co/misc/help-thumbnail.jpg",- href: "/help",- },{icon: Book2,title: "Docs",@@ -25,6 +18,13 @@ const mainLinks = [thumbnail: "https://assets.dub.co/misc/docs-thumbnail.jpg",href: "/docs",},+ {+ icon: LifeRing,+ title: "Help Center",+ description: "Answers to your questions",+ thumbnail: "https://assets.dub.co/misc/help-thumbnail.jpg",+ href: "/help",+ },];export function ResourcesContent({ domain }: { domain: string }) {diff --git a/packages/ui/src/nav/content/solutions-content.tsx b/packages/ui/src/nav/content/solutions-content.tsxindex d09e199e0d..e6c6bf6bff 100644--- a/packages/ui/src/nav/content/solutions-content.tsx+++ b/packages/ui/src/nav/content/solutions-content.tsx@@ -1,16 +1,25 @@import { cn, createHref } from "@dub/utils";-import { Link as NavigationMenuLink } from "@radix-ui/react-navigation-menu";-import Link from "next/link";import { SDKS } from "../../content";-import { Grid } from "../../grid";-import { DiamondTurnRight, Microphone, Users } from "../../icons";+import {+ DiamondTurnRight,+ Microphone,+ OfficeBuilding,+ Rocket,+ Users,+} from "../../icons";import {ContentLinkCard,NAV_UTM_PARAMS,contentHeadingClassName,} from "./shared";-const mainLinks = [+const useCaseLinks = [+ {+ icon: Users,+ title: "Affiliate Management",+ description: "Manage affiliates and automate payouts",+ href: "/partners",+ },{icon: DiamondTurnRight,title: "Marketing Attribution",@@ -19,94 +28,107 @@ const mainLinks = [},{icon: Microphone,- title: "Content Creators",+ title: "For Content Creators",description: "Intelligent audience insights and link tracking",href: "/solutions/creators",},+];++const stageLinks = [{- icon: Users,- title: "Affiliate Management",- description: "Manage affiliates and automate payouts",- href: "/partners",+ icon: OfficeBuilding,+ title: "Enterprise",+ description: "Partner programs built for enterprise scale",+ href: "/enterprise",+ },+ {+ icon: Rocket,+ title: "Startups",+ description: "Discounted access for early-stage startups",+ href: "/startups",},];export function SolutionsContent({ domain }: { domain: string }) {return (- <div className="grid w-[1020px] grid-cols-[minmax(0,1fr),0.4fr] divide-x divide-neutral-200 dark:divide-white/20">- <div className="flex h-full flex-col p-4">- <p className={cn(contentHeadingClassName, "mb-4 ml-2")}>Use case</p>- <div className="grid grow grid-cols-3 gap-4">- {mainLinks.map(({ icon: Icon, title, description, href }) => (- <NavigationMenuLink key={title} asChild>- <Link- key={title}- href={createHref(href, domain, {- ...NAV_UTM_PARAMS,- utm_campaign: domain,- utm_content: title,- })}- className={cn(- "group relative isolate z-0 flex flex-col justify-between overflow-hidden rounded-xl border border-neutral-100 bg-neutral-50 px-5 py-4 transition-colors duration-75",- "dark:border-white/20 dark:bg-neutral-900",- )}- >- <div className="absolute inset-0 opacity-0 transition-opacity duration-150 group-hover:opacity-100">- <div className="absolute -inset-[25%] -skew-y-12 [mask-image:linear-gradient(225deg,black,transparent_50%)]">- <Grid- cellSize={46}- patternOffset={[0, -14]}- className="translate-y-2 text-[#ad1f3288] transition-transform duration-150 ease-out group-hover:translate-y-0"- />- </div>- <div- className={cn(- "absolute -inset-[10%] opacity-10 blur-[50px] dark:brightness-150",- "bg-[conic-gradient(#F35066_0deg,#F35066_117deg,#9071F9_180deg,#5182FC_240deg,#F35066_360deg)]",- )}+ <div className="grid w-[1020px] grid-cols-[minmax(0,3fr)_minmax(0,3fr)_minmax(0,2fr)] divide-x divide-neutral-200 dark:divide-white/20">+ <div className="px-6 py-4">+ <p className={cn(contentHeadingClassName, "mb-2")}>Use case</p>+ <div className="flex flex-col gap-0.5">+ {useCaseLinks.map(({ icon: Icon, title, description, href }) => (+ <ContentLinkCard+ key={href}+ className="-mx-2"+ href={createHref(href, domain, {+ ...NAV_UTM_PARAMS,+ utm_campaign: domain,+ utm_content: title,+ })}+ icon={+ <div className="shrink-0 rounded-md border border-neutral-200 bg-white/50 p-2.5 dark:border-white/20 dark:bg-white/10">+ <Icon+ variant="fill"+ className="size-4 text-neutral-600 dark:text-white/60"/></div>- <Icon- variant="fill"- className="relative size-5 text-neutral-700 dark:text-white/60"- />- <div className="relative">- <span className="text-sm font-medium text-neutral-900 dark:text-white">- {title}- </span>- <p className="mt-2 text-xs text-neutral-500 dark:text-white/60">- {description}- </p>+ }+ title={title}+ description={description}+ />+ ))}+ </div>+ </div>++ <div className="px-6 py-4">+ <p className={cn(contentHeadingClassName, "mb-2")}>Stage</p>+ <div className="flex flex-col gap-0.5">+ {stageLinks.map(({ icon: Icon, title, description, href }) => (+ <ContentLinkCard+ key={href}+ className="-mx-2"+ href={createHref(href, domain, {+ ...NAV_UTM_PARAMS,+ utm_campaign: domain,+ utm_content: title,+ })}+ icon={+ <div className="shrink-0 rounded-md border border-neutral-200 bg-white/50 p-2.5 dark:border-white/20 dark:bg-white/10">+ <Icon+ variant="fill"+ className="size-4 text-neutral-600 dark:text-white/60"+ /></div>- </Link>- </NavigationMenuLink>+ }+ title={title}+ description={description}+ />))}</div></div>+<div className="px-6 py-4"><p className={cn(contentHeadingClassName, "mb-2")}>SDKs</p><div className="flex flex-col gap-0.5">{SDKS.map(({ icon: Icon, iconClassName, title, href }) => (<ContentLinkCardkey={href}- className="-mx-2"+ className="-mx-2 gap-1.5 py-1"href={createHref(href, domain, {...NAV_UTM_PARAMS,utm_campaign: domain,utm_content: title,})}icon={- <div className="shrink-0 rounded-[10px] border border-neutral-200 bg-white/50 p-1 dark:border-white/20 dark:bg-white/10">+ <div className="shrink-0 rounded-lg border border-neutral-200 bg-white/50 p-1 dark:border-white/20 dark:bg-white/10"><IconclassName={cn(- "size-5 text-neutral-600 transition-colors dark:text-white/60",+ "size-4 text-neutral-600 transition-colors dark:text-white/60",iconClassName,)}/></div>}title={title}- showArrow/>))}</div>diff --git a/packages/ui/src/nav/nav-mobile.tsx b/packages/ui/src/nav/nav-mobile.tsxindex 7eee44ae4f..d9a40ed7af 100644--- a/packages/ui/src/nav/nav-mobile.tsx+++ b/packages/ui/src/nav/nav-mobile.tsx@@ -15,7 +15,7 @@ import {DubLinksIcon,DubPartnersIcon,} from "../icons";-import { navItems, type NavItem, type NavTheme } from "./nav";+import { navItems, type NavTheme } from "./nav";const specialIcons: Record<string, ReactNode> = {"Dub Links": (@@ -43,11 +43,9 @@ const specialIcons: Record<string, ReactNode> = {export function NavMobile({theme = "light",staticDomain,- navItems: items = navItems,}: {theme?: NavTheme;staticDomain?: string;- navItems?: NavItem[];}) {let { domain = "dub.co" } = useParams() as { domain: string };if (staticDomain) {@@ -112,7 +110,7 @@ export function NavMobile({)}><ul className="grid divide-y divide-neutral-200 dark:divide-white/[0.15]">- {items.map(({ name, href, childItems }, idx) => (+ {navItems.map(({ name, href, childItems }, idx) => (<MobileNavItemkey={idx}name={name}diff --git a/packages/ui/src/nav/nav.tsx b/packages/ui/src/nav/nav.tsxindex 17ab9d3fc0..1b76cb06f5 100644--- a/packages/ui/src/nav/nav.tsx+++ b/packages/ui/src/nav/nav.tsx@@ -6,7 +6,6 @@ import { LayoutGroup } from "motion/react";import Link from "next/link";import { useParams, usePathname } from "next/navigation";import {- ComponentType,PropsWithChildren,ReactNode,SVGProps,@@ -15,12 +14,7 @@ import {} from "react";import useSWR from "swr";import { buttonVariants } from "../button";-import {- FEATURES_LIST,- RESOURCES,- SOLUTIONS,- type NavItemChildren,-} from "../content";+import { FEATURES_LIST, RESOURCES, SOLUTIONS } from "../content";import { useScroll } from "../hooks";import { MaxWidthWrapper } from "../max-width-wrapper";import { NavWordmark } from "../nav-wordmark";@@ -34,14 +28,6 @@ export const NavContext = createContext<{ theme: NavTheme }>({theme: "light",});-export type NavItem = {- name: string;- href?: string;- segments?: string[];- content?: ComponentType<{ domain: string }>;- childItems?: NavItemChildren;-};-export const navItems = [{name: "Product",@@ -60,7 +46,13 @@ export const navItems = [name: "Solutions",content: SolutionsContent,childItems: SOLUTIONS,- segments: ["/solutions", "/sdks"],+ segments: [+ // comment to help with line diff+ "/solutions",+ "/enterprise",+ "/startups",+ "/sdks",+ ],},{name: "Resources",@@ -77,15 +69,22 @@ export const navItems = ["/contact",],},+ {+ name: "Customers",+ href: "/customers",+ segments: ["/customers"],+ },{name: "Enterprise",href: "/enterprise",segments: ["/enterprise"],+ mobileOnly: true,},{- name: "Customers",- href: "/customers",- segments: ["/customers"],+ name: "Startups",+ href: "/startups",+ segments: ["/startups"],+ mobileOnly: true,},{name: "Pricing",@@ -108,13 +107,11 @@ export function Nav({theme = "light",staticDomain,maxWidthWrapperClassName,- navItems: items = navItems,logo,}: {theme?: NavTheme;staticDomain?: string;maxWidthWrapperClassName?: string;- navItems?: NavItem[];logo?: ReactNode;}) {let { domain = "dub.co" } = useParams() as { domain: string };@@ -173,46 +170,48 @@ export function Nav({className="relative hidden lg:block"><NavigationMenuPrimitive.List className="group relative z-0 flex">- {items.map(({ name, href, segments, content: Content }) => {- const isActive = (segments ?? []).some((segment) =>- pathname?.startsWith(segment),- );- return (- <NavigationMenuPrimitive.Item key={name}>- <WithTrigger trigger={!!Content}>- {href !== undefined ? (- <Link- id={`nav-${href}`}- href={createHref(href, domain, {- utm_source: "Custom Domain",- utm_medium: "Navbar",- utm_campaign: domain,- utm_content: name,- })}- className={navItemClassName}- data-active={isActive}- >- {name}- </Link>- ) : (- <button- className={navItemClassName}- data-active={isActive}- >- {name}- <AnimatedChevron className="ml-1.5 size-2.5 text-neutral-700" />- </button>- )}- </WithTrigger>+ {navItems+ .filter(({ mobileOnly }) => !mobileOnly)+ .map(({ name, href, segments, content: Content }) => {+ const isActive = (segments ?? []).some((segment) =>+ pathname?.startsWith(segment),+ );+ return (+ <NavigationMenuPrimitive.Item key={name}>+ <WithTrigger trigger={!!Content}>+ {href !== undefined ? (+ <Link+ id={`nav-${href}`}+ href={createHref(href, domain, {+ utm_source: "Custom Domain",+ utm_medium: "Navbar",+ utm_campaign: domain,+ utm_content: name,+ })}+ className={navItemClassName}+ data-active={isActive}+ >+ {name}+ </Link>+ ) : (+ <button+ className={navItemClassName}+ data-active={isActive}+ >+ {name}+ <AnimatedChevron className="ml-1.5 size-2.5 text-neutral-700" />+ </button>+ )}+ </WithTrigger>- {Content && (- <NavigationMenuPrimitive.Content className="data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0">- <Content domain={domain} />- </NavigationMenuPrimitive.Content>- )}- </NavigationMenuPrimitive.Item>- );- })}+ {Content && (+ <NavigationMenuPrimitive.Content className="data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0">+ <Content domain={domain} />+ </NavigationMenuPrimitive.Content>+ )}+ </NavigationMenuPrimitive.Item>+ );+ })}</NavigationMenuPrimitive.List><div className="absolute left-1/2 top-full mt-3 -translate-x-1/2">diff --git a/packages/utils/package.json b/packages/utils/package.jsonindex 5ba3b28251..e9801b9ee5 100644--- a/packages/utils/package.json+++ b/packages/utils/package.json@@ -1,7 +1,7 @@{"name": "@dub/utils","description": "Utility functions and constants for Dub",- "version": "0.1.65",+ "version": "0.2.0","sideEffects": false,"main": "./dist/index.mjs","module": "./dist/index.mjs",diff --git a/packages/utils/src/constants/pricing/pricing-plan-main-features.ts b/packages/utils/src/constants/pricing/pricing-plan-main-features.tsindex 2b46852414..290df6a370 100644--- a/packages/utils/src/constants/pricing/pricing-plan-main-features.ts+++ b/packages/utils/src/constants/pricing/pricing-plan-main-features.ts@@ -82,7 +82,7 @@ const getPartnersStandards = (tooltip: {title:"Send payouts to your partners with 1-click (or automate it completely) – all across the world.",- cta: "Learn more.",+ cta: "Learn more ↗",href: "https://dub.co/help/article/partner-payouts",},},@@ -113,7 +113,7 @@ export const getPricingPlanMainFeatures = (tooltip: {title:"Get a free .link custom domain for 1 year with any of Dub's paid plans.",- cta: "Learn more.",+ cta: "Learn more ↗",href: "https://dub.co/help/article/free-dot-link-domain",},},@@ -123,7 +123,7 @@ export const getPricingPlanMainFeatures = (tooltip: {title:"Organize and manage access to your links on Dub using folders.",- cta: "Learn more.",+ cta: "Learn more ↗",href: "https://dub.co/help/article/link-folders",},},@@ -133,7 +133,7 @@ export const getPricingPlanMainFeatures = (tooltip: {title:"Redirect users to a specific page within your mobile application using deep links.",- cta: "Learn more.",+ cta: "Learn more ↗",href: "https://dub.co/docs/concepts/deep-links/quickstart",},},@@ -153,7 +153,7 @@ export const getPricingPlanMainFeatures = (tooltip: {title:"Track how your link clicks are converting to signups and sales.",- cta: "Learn more.",+ cta: "Learn more ↗",href: "https://dub.co/docs/quickstart/server",},},@@ -163,7 +163,7 @@ export const getPricingPlanMainFeatures = (tooltip: {title:"Run A/B tests to compare different short-link variations and identify what drives the highest conversions.",- cta: "Learn more.",+ cta: "Learn more ↗",href: "https://dub.co/help/article/ab-testing",},},@@ -173,7 +173,7 @@ export const getPricingPlanMainFeatures = (tooltip: {title:"Get real-time insights into your customers' behavior and preferences.",- cta: "Learn more.",+ cta: "Learn more ↗",href: "https://dub.co/help/article/customer-insights",},},@@ -183,7 +183,7 @@ export const getPricingPlanMainFeatures = (tooltip: {title:"Get real-time notifications when a link is clicked or a QR code is scanned using webhooks.",- cta: "Learn more.",+ cta: "Learn more ↗",href: "https://dub.co/docs/webhooks/introduction",},},@@ -221,7 +221,7 @@ export const getPricingPlanMainFeatures = (),{id: "sso",- text: "SSO/SAML",+ text: "SAML/SSO",},{id: "logs",@@ -249,7 +249,7 @@ export const getPricingPlanMainFeatures = (tooltip: {title:"Create custom click, lead, or sale-based rewards, tailored to each partner's needs.",- cta: "Learn more.",+ cta: "Learn more ↗",href: "https://dub.co/help/article/partner-rewards",},},@@ -259,7 +259,7 @@ export const getPricingPlanMainFeatures = (tooltip: {title:"Offer dual-sided incentives to your partners and the users they refer.",- cta: "Learn more.",+ cta: "Learn more ↗",href: "https://dub.co/help/article/dual-sided-incentives",},},@@ -268,19 +268,17 @@ export const getPricingPlanMainFeatures = (text: "Program bounties",tooltip: {title:- "Drive partner engagement by creating performance and submission bounties for your partner program.",- cta: "Learn more.",+ "Drive partner engagement with performance and submission bounties.",+ cta: "Learn more ↗",href: "https://dub.co/help/article/program-bounties",},},{id: "analytics",- text: "Real-time analytics",+ text: "Powerful, real-time analytics",tooltip: {title:- "Get real-time insights into your partner program's performance and engagement.",- cta: "Learn more.",- href: "https://dub.co/help/article/program-analytics",+ "Get real-time insights into your partner program's [performance](https://dub.co/help/article/program-analytics), [commissions](https://dub.co/help/article/commission-analytics), and [applications stats](https://dub.co/help/article/application-analytics).",},},{@@ -289,17 +287,25 @@ export const getPricingPlanMainFeatures = (tooltip: {title:"Generate compelling landing pages using Dub AI to attract high-quality partners to join your program.",- cta: "Learn more.",+ cta: "Learn more ↗",href: "https://dub.co/help/article/program-landing-page",},},+ {+ id: "api",+ text: "REST API + MCP Server",+ tooltip: {+ title:+ "Manage your program with your AI agent through our [REST API](https://dub.co/docs/api-reference/introduction) and [MCP Server](https://dub.co/docs/mcp-server).",+ },+ },{id: "webhooks",text: "Real-time event webhooks",tooltip: {title:- "Get real-time notifications when a link is clicked or a QR code is scanned using webhooks.",- cta: "Learn more.",+ "Get real-time notifications when a partner [applies to your program](https://dub.co/docs/webhooks/events/partner-application-submitted) / [generates a sale](https://dub.co/docs/webhooks/events/sale-created) / [earns a commission](https://dub.co/docs/webhooks/events/commission-created).",+ cta: "Learn more ↗",href: "https://dub.co/docs/webhooks/introduction",},},@@ -323,17 +329,27 @@ export const getPricingPlanMainFeatures = (tooltip: {title:"Create dynamic click, lead, or sale-based rewards with country and product-specific modifiers.",- cta: "Learn more.",+ cta: "Learn more ↗",href: "https://dub.co/help/article/partner-rewards",},},+ {+ id: "embeddedreferrals",+ text: "Embedded referral dashboard",+ tooltip: {+ title:+ "Let users join your referral program and start sharing + earning commissions – all without leaving your app.",+ cta: "Learn more ↗",+ href: "https://dub.co/docs/partners/embedded-referrals",+ },+ },{id: "email",text: "Email campaigns",tooltip: {title:"Send marketing and transactional emails to your partners to increase engagement and drive conversions.",- cta: "Learn more.",+ cta: "Learn more ↗",href: "https://dub.co/help/article/email-campaigns",},},@@ -346,23 +362,23 @@ export const getPricingPlanMainFeatures = (},},{- id: "sso",- text: "Risk monitoring",+ id: "workflows",+ text: "Partner group move rules",tooltip: {title:- "Safeguard your partner program by automatically flagging, reviewing, and resolving suspicious activity.",- cta: "Learn more.",- href: "https://dub.co/help/article/risk-monitoring",+ "Automatically move partners between [groups](https://dub.co/help/article/partner-groups) based on their activity and performance.",+ cta: "Learn more ↗",+ href: "https://dub.co/help/article/partner-groups#group-move-rules",},},{- id: "embeddedreferrals",- text: "Embedded referral dashboard",+ id: "security",+ text: "Risk monitoring",tooltip: {title:- "Create an embedded referral dashboard directly in your app in just a few lines of code.",- cta: "Learn more.",- href: "https://dub.co/docs/partners/embedded-referrals",+ "Safeguard your partner program by automatically flagging, reviewing, and resolving suspicious activity.",+ cta: "Learn more ↗",+ href: "https://dub.co/help/article/risk-monitoring",},},{@@ -371,7 +387,7 @@ export const getPricingPlanMainFeatures = (tooltip: {title:"Reward partners for referring other partners to your affiliate program.",- cta: "Learn more.",+ cta: "Learn more ↗",href: "https://dub.co/help/article/partner-referrals",},},@@ -410,18 +426,18 @@ export const getPricingPlanMainFeatures = (text: "Featured in Program Marketplace",tooltip: {title:- "Get featured in front of our network of 500,000+ total affiliates and receive 10x more applications.",- cta: "Learn more.",+ "Get featured in front of our network of 250,000+ total affiliates and receive 10x more applications.",+ cta: "Learn more ↗",href: "https://dub.co/help/article/program-marketplace",},},{id: "sso",- text: "SSO/SAML",+ text: "SAML/SSO",tooltip: {title:"Enable single sign-on (SSO) for your entire organization using SAML.",- cta: "Learn more.",+ cta: "Learn more ↗",href: "https://dub.co/help/category/saml-sso",},},@@ -433,6 +449,10 @@ export const getPricingPlanMainFeatures = (id: "sla",text: "Custom SLA",},+ {+ id: "security",+ text: "Enterprise security & legal",+ },{id: "slack",text: "Dedicated Slack support",diff --git a/packages/utils/src/constants/pricing/pricing-plans.tsx b/packages/utils/src/constants/pricing/pricing-plans.tsxindex 45c6656cec..e81294767c 100644--- a/packages/utils/src/constants/pricing/pricing-plans.tsx+++ b/packages/utils/src/constants/pricing/pricing-plans.tsx@@ -458,7 +458,7 @@ export const PLANS: PlanDetails[] = [text: "Embedded referral dashboard",tooltip: {title:- "Create an embedded referral dashboard directly in your app in just a few lines of code.",+ "Let users join your referral program and start sharing + earning commissions – all without leaving your app.",cta: "Learn more.",href: "https://dub.co/docs/partners/embedded-referrals",},