The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
update styles
Steven Teydf3c7ce930a0
diff --git a/packages/ui/package.json b/packages/ui/package.jsonindex 226f4f2c8c..5d3940deeb 100644--- a/packages/ui/package.json+++ b/packages/ui/package.json@@ -1,7 +1,7 @@{"name": "@dub/ui","description": "UI components for Dub.co",- "version": "0.1.11",+ "version": "0.1.13","sideEffects": false,"main": "./dist/index.js","module": "./dist/index.mjs",diff --git a/packages/ui/src/nav-logo.tsx b/packages/ui/src/nav-logo.tsxindex 29e93524a5..3464916aba 100644--- a/packages/ui/src/nav-logo.tsx+++ b/packages/ui/src/nav-logo.tsx@@ -2,7 +2,7 @@import { cn } from "@dub/utils";import * as Popover from "@radix-ui/react-popover";-import { Home, LayoutGrid, Type } from "lucide-react";+import { BoxSelect, Home, LayoutGrid, Type } from "lucide-react";import { MouseEvent, useCallback, useContext, useState } from "react";import { toast } from "sonner";import { Button, ButtonProps } from "./button";@@ -71,13 +71,16 @@ export function NavLogo({<Popover.ContentsideOffset={14}align="start"- className={cn("z-50", theme === "dark" && "dark")}+ className={cn(+ "z-50 -mt-1.5 -translate-x-10",+ theme === "dark" && "dark",+ )}onClick={(e) => {e.stopPropagation();setIsPopoverOpen(false);}}>- <div className="grid gap-1 rounded-lg border border-gray-200 bg-white p-1 drop-shadow-sm dark:border-white/[0.15] dark:bg-black sm:min-w-[240px]">+ <div className="grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black"><ContextMenuButtontext="Copy Logo as SVG"variant="outline"@@ -90,13 +93,12 @@ export function NavLogo({onClick={() => copy(wordmarkSvg)}icon={<Type strokeWidth={2} className="h-4 w-4" />}/>- {/* TODO: Uncomment once /brand page is live */}- {/* <ContextMenuButton+ <ContextMenuButtontext="Brand Guidelines"variant="outline"onClick={() => window.open("https://dub.co/brand", "_blank")}icon={<BoxSelect strokeWidth={2} className="h-4 w-4" />}- /> */}+ />{isInApp ? (<ContextMenuButtontext="Home Page"diff --git a/packages/ui/src/nav.tsx b/packages/ui/src/nav.tsxindex 5d57f07df1..bb7adaecbb 100644--- a/packages/ui/src/nav.tsx+++ b/packages/ui/src/nav.tsx@@ -71,7 +71,7 @@ export function Nav({ theme = "light" }: { theme?: Theme }) {HIDE_BACKGROUND_SEGMENTS.includes(selectedLayout),},)}- ></div>+ /><MaxWidthWrapper className="relative"><div className="flex h-14 items-center justify-between"><div className="flex items-center space-x-12">@@ -97,7 +97,7 @@ export function Nav({ theme = "light" }: { theme?: Theme }) {<NavigationMenuPrimitive.Trigger className="group flex items-center space-x-2 rounded-md px-3 py-2 text-sm font-medium hover:bg-gray-100 focus:outline-none dark:hover:bg-white/10"><pclassName={cn(- "text-sm font-medium text-gray-500 transition-colors ease-out group-hover:text-black dark:text-white dark:group-hover:text-white",+ "text-sm font-medium text-gray-500 transition-colors ease-out group-hover:text-black dark:text-white/70 dark:group-hover:text-white",{"text-black dark:text-white":selectedLayout === "features",@@ -165,7 +165,7 @@ export function Nav({ theme = "light" }: { theme?: Theme }) {},})}className={cn(- "rounded-md px-3 py-2 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",+ "rounded-md px-3 py-2 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white/70 dark:hover:text-white",{"text-black dark:text-white":selectedLayout === slug,diff --git a/packages/ui/src/wordmark.tsx b/packages/ui/src/wordmark.tsxindex 28eb0addb1..b5599ca0c2 100644--- a/packages/ui/src/wordmark.tsx+++ b/packages/ui/src/wordmark.tsx@@ -3,18 +3,18 @@ import { cn } from "@dub/utils";export function Wordmark({ className }: { className?: string }) {return (<svg- width="92"- height="38"- viewBox="0 0 92 38"+ width="46"+ height="24"+ viewBox="0 0 46 24"fill="none"xmlns="http://www.w3.org/2000/svg"- className={cn("h-5 w-auto text-black dark:text-white", className)}+ className={cn("h-6 w-auto text-black dark:text-white", className)}><path- fillRule="evenodd"- clipRule="evenodd"- d="M22 0H28V23.8666C28.0004 23.911 28.0006 23.9554 28.0006 23.9999C28.0006 24.0444 28.0004 24.0888 28 24.1332V38H22V35.4909C19.7324 37.0724 16.9747 37.9999 14.0003 37.9999C6.26815 37.9999 0 31.7319 0 23.9999C0 16.2679 6.26815 9.9999 14.0003 9.9999C16.9747 9.9999 19.7324 10.9274 22 12.5089V0ZM14 31.9996C18.4183 31.9996 22 28.418 22 23.9998C22 19.5816 18.4183 16 14 16C9.58173 16 6.00001 19.5816 6.00001 23.9998C6.00001 28.418 9.58173 31.9996 14 31.9996ZM64.0001 9.76563e-05H70.0001V12.5096C72.2678 10.9278 75.0257 10.0002 78.0004 10.0002C85.7325 10.0002 92.0007 16.2682 92.0007 24.0002C92.0007 31.7322 85.7325 38.0002 78.0004 38.0002C70.2682 38.0002 64.0001 31.7322 64.0001 24.0002V24.0001V9.76563e-05ZM78.0001 31.9997C82.4183 31.9997 86.0001 28.4181 86.0001 23.9999C86.0001 19.5817 82.4183 16.0001 78.0001 16.0001C73.5818 16.0001 70.0001 19.5817 70.0001 23.9999C70.0001 28.4181 73.5818 31.9997 78.0001 31.9997ZM38 10H32V24C32 25.8385 32.3622 27.659 33.0657 29.3576C33.7693 31.0561 34.8006 32.5995 36.1006 33.8995C37.4007 35.1995 38.944 36.2307 40.6426 36.9343C42.3412 37.6379 44.1618 38 46.0003 38C47.8389 38 49.6594 37.6379 51.358 36.9343C53.0566 36.2307 54.6 35.1995 55.9 33.8995C57.2001 32.5995 58.2314 31.0561 58.9349 29.3576C59.6385 27.659 60.0006 25.8385 60.0006 24H60V10H54V24H54.0001C54.0001 26.1216 53.1572 28.1563 51.657 29.6566C50.1567 31.1568 48.1219 31.9996 46.0001 31.9996C43.8784 31.9996 41.8436 31.1568 40.3433 29.6566C38.843 28.1563 38.0002 26.1216 38.0001 24H38V10Z"- fill="currentColor"+ fill-rule="evenodd"+ clip-rule="evenodd"+ d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z"+ fill="black"/></svg>);