The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Welcome modal UI updates
Tim Wilsonb45c044310fd
diff --git a/apps/web/ui/modals/upgraded-modal.tsx b/apps/web/ui/modals/upgraded-modal.tsxindex 90ee27a24e..179159ecb8 100644--- a/apps/web/ui/modals/upgraded-modal.tsx+++ b/apps/web/ui/modals/upgraded-modal.tsx@@ -1,6 +1,6 @@import useWorkspace from "@/lib/swr/use-workspace";import { Button, Modal, useRouterStuff, useScrollProgress } from "@dub/ui";-import { cn, getPlanDetails, PLANS, PRO_PLAN } from "@dub/utils";+import { getPlanDetails, PLANS, PRO_PLAN } from "@dub/utils";import { usePlausible } from "next-plausible";import { useSearchParams } from "next/navigation";import posthog from "posthog-js";@@ -14,7 +14,6 @@ import {useState,} from "react";import { ModalHero } from "../shared/modal-hero";-import { PlanFeatures } from "../workspaces/plan-features";function UpgradedModal({showUpgradedModal,@@ -58,6 +57,8 @@ function UpgradedModal({) ?? PRO_PLAN: undefined;+ if (!plan) return null;+return (<ModalshowModal={showUpgradedModal}@@ -70,40 +71,31 @@ function UpgradedModal({><div className="flex flex-col"><ModalHero />- <div className="px-6 py-8 sm:px-12">+ <div className="px-6 py-8 sm:px-8"><div className="relative"><divref={scrollRef}onScroll={updateScrollProgress}- className="scrollbar-hide max-h-[calc(100vh-350px)] overflow-y-auto pb-6"+ className="scrollbar-hide max-h-[calc(100vh-350px)] overflow-y-auto pb-6 text-left">- <h1- className={cn(- "text-lg font-medium text-neutral-950",- plan ? "text-left" : "text-center",- )}- >- {plan- ? `Dub ${plan.name} looks good on you!`- : "Welcome to Dub!"}+ <h1 className="text-lg font-semibold text-neutral-900">+ Dub {plan?.name} looks good on you!</h1>- <p- className={cn(- "mt-2 text-sm text-neutral-500",- plan ? "text-left" : "text-center",+ <p className="mt-2 text-sm text-neutral-600">+ Thank you for upgrading to the {plan?.name} plan. You now have+ access to more powerful features+ {dotLinkClaimed ? (+ <> and higher limits.</>+ ) : (+ <>+ , higher limits, and a{" "}+ <strong className="font-semibold text-neutral-800">+ free .link domain for 1 year+ </strong>+ .+ </>)}- >- Thank you for upgrading to the {plan?.name} plan! You now have- access to more powerful features and higher limits.</p>- {plan && (- <>- <h2 className="mb-2 mt-6 text-base font-medium text-neutral-950">- Explore the benefits of your {plan.name} plan- </h2>- <PlanFeatures plan={plan.name} />- </>- )}</div>{/* Bottom scroll fade */}<div@@ -114,8 +106,7 @@ function UpgradedModal({<Buttontype="button"variant="primary"- text="Get started"- className="mt-2"+ text="Go to Dub"onClick={() =>queryParams({del: ["onboarded", "upgraded", "plan", "period"],diff --git a/apps/web/ui/shared/modal-hero.tsx b/apps/web/ui/shared/modal-hero.tsxindex e2db76a696..f89bb94784 100644--- a/apps/web/ui/shared/modal-hero.tsx+++ b/apps/web/ui/shared/modal-hero.tsx@@ -27,14 +27,13 @@ function BackgroundGradient({ className }: { className?: string }) {<divclassName={cn("absolute left-0 top-0 aspect-square w-full overflow-hidden sm:aspect-[2/1]",- "[mask-image:radial-gradient(70%_100%_at_50%_30%,_black_70%,_#0009)]",className,)}><divclassName="absolute inset-0 saturate-150"style={{- backgroundImage: `conic-gradient(from -25deg at 65% -10%, #3A8BFD 0deg, #FF0000 172.98deg, #855AFC 215.14deg, #FF7B00 257.32deg, #3A8BFD 360deg)`,+ backgroundImage: `conic-gradient(from -66deg, #855AFC -32deg, #FF0000 63deg, #EAB308 158deg, #5CFF80 240deg, #855AFC 328deg, #FF0000 423deg)`,}}/><div className="absolute inset-0 backdrop-blur-[50px]" />