The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
removed pro restriction for color palette, added pricing anchor on landing page
Steven Tey86b24cd0928c
diff --git a/components/app/modals/link-qr-modal.tsx b/components/app/modals/link-qr-modal.tsxindex df0a9909ac..e02b44f74c 100644--- a/components/app/modals/link-qr-modal.tsx+++ b/components/app/modals/link-qr-modal.tsx@@ -171,6 +171,11 @@ function AdvancedSettings({ qrData, setQrData, setShowLogo }) {const { plan } = useUsage();const [expanded, setExpanded] = useState(false);+ const isApp = useMemo(() => {+ if (typeof window === "undefined") return false;+ return window.location.host.startsWith("app.");+ }, []);+return (<div><div className="sm:px-16 px-4">@@ -200,13 +205,13 @@ function AdvancedSettings({ qrData, setQrData, setShowLogo }) {<Tooltipcontent={<TooltipContent- title="Upgrade to Pro to use remove Dub branding."+ title="As a freemium product, we rely on word of mouth to spread the word about Dub. If you'd like to remove the Dub logo/upload your own, please consider upgrading to a Pro plan."cta="Upgrade to Pro"- ctaLink="/settings"+ ctaLink={isApp ? "/settings" : "/#pricing"}/>}>- <div className="flex mt-1 space-x-2 items-center cursor-not-allowed">+ <div className="flex mt-1 space-x-2 items-center cursor-not-allowed pointer-events-none sm:pointer-events-auto"><SwitchtrackDimensions="h-6 w-12"thumbDimensions="w-5 h-5"@@ -236,70 +241,45 @@ function AdvancedSettings({ qrData, setQrData, setShowLogo }) {>Foreground Color</label>- {!plan || plan === "Free" ? (+ <div className="relative flex mt-1 rounded-md shadow-sm h-9 w-48"><Tooltipcontent={- <TooltipContent- title="Upgrade to Pro to use custom colors."- cta="Upgrade to Pro"- ctaLink="/settings"- />+ <div className="max-w-xs flex flex-col text-center items-center space-y-3 p-5">+ <HexColorPicker+ color={qrData.fgColor}+ onChange={(color) =>+ setQrData({+ ...qrData,+ fgColor: color,+ })+ }+ />+ </div>}>- <div className="relative flex mt-1 rounded-md shadow-sm h-9 w-48">- <div- className="rounded-l-md w-12 h-full border cursor-not-allowed"- style={{- backgroundColor: qrData.fgColor,- borderColor: qrData.fgColor,- }}- />- <div className="flex items-center cursor-not-allowed border border-l-0 border-gray-300 bg-gray-50 text-gray-400 pl-3 w-full rounded-r-md sm:text-sm">- {qrData.fgColor}- </div>- </div>- </Tooltip>- ) : (- <div className="relative flex mt-1 rounded-md shadow-sm h-9 w-48">- <Tooltip- content={- <div className="max-w-xs flex flex-col text-center items-center space-y-3 p-5">- <HexColorPicker- color={qrData.fgColor}- onChange={(color) =>- setQrData({- ...qrData,- fgColor: color,- })- }- />- </div>- }- >- <div- className="rounded-l-md w-12 h-full border"- style={{- backgroundColor: qrData.fgColor,- borderColor: qrData.fgColor,- }}- />- </Tooltip>- <HexColorInput- id="color"- name="color"- color={qrData.fgColor}- onChange={(color) =>- setQrData({- ...qrData,- fgColor: color,- })- }- prefixed- style={{ borderColor: qrData.fgColor }}- className={`border-2 border-l-0 text-gray-900 placeholder-gray-300 focus:ring-black pl-3 block w-full rounded-r-md focus:outline-none sm:text-sm`}+ <div+ className="rounded-l-md w-12 h-full border"+ style={{+ backgroundColor: qrData.fgColor,+ borderColor: qrData.fgColor,+ }}/>- </div>- )}+ </Tooltip>+ <HexColorInput+ id="color"+ name="color"+ color={qrData.fgColor}+ onChange={(color) =>+ setQrData({+ ...qrData,+ fgColor: color,+ })+ }+ prefixed+ style={{ borderColor: qrData.fgColor }}+ className={`border-2 border-l-0 text-gray-900 placeholder-gray-300 focus:ring-black pl-3 block w-full rounded-r-md focus:outline-none sm:text-sm`}+ />+ </div></div></div>)}diff --git a/components/home/pricing.tsx b/components/home/pricing.tsxindex db4454dc84..7b077fe6e2 100644--- a/components/home/pricing.tsx+++ b/components/home/pricing.tsx@@ -91,7 +91,7 @@ const Pricing = () => {return (<MaxWidthWrapper className="mt-20 mb-40 text-center">- <div className="sm:max-w-lg mx-auto my-10">+ <div id="pricing" className="sm:max-w-lg mx-auto my-10"><h2 className="text-4xl sm:text-5xl font-display font-extrabold text-black">Simple,{" "}<span className="text-transparent bg-clip-text bg-gradient-to-r from-blue-600 to-cyan-600">