The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Added and ran tailwind prettier
Steven Tey7a64a02ab919
diff --git a/.prettierrc b/.prettierrcdeleted file mode 100644index 7baadc9cfa..0000000000--- a/.prettierrc+++ /dev/null@@ -1,18 +0,0 @@-{- "bracketSpacing": true,- "semi": true,- "trailingComma": "all",- "printWidth": 80,- "tabWidth": 2,- "importOrder": [- "^(next/(.*)$)|^(next$)",- "^(react/(.*)$)|^(react$)",- "<THIRD_PARTY_MODULES>",- "^@/components/(.*)$|^components/(.*)$",- "^@/lib/(.*)$",- "^@/styles/(.*)$",- "^[./]"- ],- "importOrderSeparation": false,- "importOrderSortSpecifiers": true-}diff --git a/components/app/links/link-card-placeholder.tsx b/components/app/links/link-card-placeholder.tsxindex 281028dbfb..e5ea360d28 100644--- a/components/app/links/link-card-placeholder.tsx+++ b/components/app/links/link-card-placeholder.tsx@@ -1,15 +1,15 @@export default function LinkCardPlaceholder() {return (- <li className="flex items-center bg-white p-4 rounded-lg shadow hover:shadow-md transition-all">- <div className="w-10 h-10 rounded-full mr-2 bg-gray-200 animate-pulse" />+ <li className="flex items-center rounded-lg bg-white p-4 shadow transition-all hover:shadow-md">+ <div className="mr-2 h-10 w-10 animate-pulse rounded-full bg-gray-200" /><div>- <div className="flex items-center space-x-2 mb-2.5">- <div className="w-28 h-5 rounded-md bg-gray-200 animate-pulse" />- <div className="w-5 h-5 rounded-full bg-gray-200 animate-pulse" />- <div className="w-5 h-5 rounded-full bg-gray-200 animate-pulse" />- <div className="w-20 h-5 rounded-md bg-gray-200 animate-pulse" />+ <div className="mb-2.5 flex items-center space-x-2">+ <div className="h-5 w-28 animate-pulse rounded-md bg-gray-200" />+ <div className="h-5 w-5 animate-pulse rounded-full bg-gray-200" />+ <div className="h-5 w-5 animate-pulse rounded-full bg-gray-200" />+ <div className="h-5 w-20 animate-pulse rounded-md bg-gray-200" /></div>- <div className="w-72 h-4 rounded-md bg-gray-200 animate-pulse" />+ <div className="h-4 w-72 animate-pulse rounded-md bg-gray-200" /></div></li>);diff --git a/components/app/links/link-card.tsx b/components/app/links/link-card.tsxindex 4be12734bf..f53693e003 100644--- a/components/app/links/link-card.tsx+++ b/components/app/links/link-card.tsx@@ -62,32 +62,32 @@ export default function LinkCard({ props }: { props: LinkProps }) {const expired = expiresAt && new Date() > new Date(expiresAt);return (- <div className="relative bg-white p-3 pr-1 sm:p-4 rounded-lg shadow hover:shadow-md transition-all">+ <div className="relative rounded-lg bg-white p-3 pr-1 shadow transition-all hover:shadow-md sm:p-4"><LinkQRModal /><AddEditLinkModal /><ArchiveLinkModal /><DeleteLinkModal />- <div className="absolute top-0 left-0 rounded-l-lg overflow-hidden w-1.5 h-full flex flex-col">- {archived && <div className="bg-gray-400 h-full w-full" />}+ <div className="absolute top-0 left-0 flex h-full w-1.5 flex-col overflow-hidden rounded-l-lg">+ {archived && <div className="h-full w-full bg-gray-400" />}{expired ? (- <div className="bg-amber-500 h-full w-full" />+ <div className="h-full w-full bg-amber-500" />) : (- <div className="bg-green-500 h-full w-full" />+ <div className="h-full w-full bg-green-500" />)}</div>- <li className="relative flex justify-between items-center">- <div className="relative flex items-center space-x-2 sm:space-x-4 shrink">+ <li className="relative flex items-center justify-between">+ <div className="relative flex shrink items-center space-x-2 sm:space-x-4"><BlurImagesrc={`https://www.google.com/s2/favicons?sz=64&domain_url=${apexDomain}`}alt={apexDomain}- className="w-8 h-8 sm:w-10 sm:h-10 rounded-full"+ className="h-8 w-8 rounded-full sm:h-10 sm:w-10"width={20}height={20}/><div>- <div className="flex items-center space-x-2 max-w-fit">+ <div className="flex max-w-fit items-center space-x-2"><a- className="text-blue-800 text-sm sm:text-base font-semibold truncate w-24 sm:w-full"+ className="w-24 truncate text-sm font-semibold text-blue-800 sm:w-full sm:text-base"href={linkConstructor({ key, domain })}target="_blank"rel="noreferrer"@@ -107,41 +107,41 @@ export default function LinkCard({ props }: { props: LinkProps }) {<CopyButton url={linkConstructor({ key, domain })} /><buttononClick={() => setShowLinkQRModal(true)}- className="group p-1.5 rounded-full bg-gray-100 hover:bg-blue-100 hover:scale-105 active:scale-95 transition-all duration-75"+ className="group rounded-full bg-gray-100 p-1.5 transition-all duration-75 hover:scale-105 hover:bg-blue-100 active:scale-95"><span className="sr-only">Download QR</span>- <QR className="text-gray-700 group-hover:text-blue-800 transition-all" />+ <QR className="text-gray-700 transition-all group-hover:text-blue-800" /></button><Link href={`/${slug}/${encodeURI(key)}`}>- <a className="flex items-center space-x-1 rounded-md bg-gray-100 px-2 py-0.5 hover:scale-105 active:scale-95 transition-all duration-75">- <Chart className="w-4 h-4" />- <p className="text-sm text-gray-500 whitespace-nowrap">+ <a className="flex items-center space-x-1 rounded-md bg-gray-100 px-2 py-0.5 transition-all duration-75 hover:scale-105 active:scale-95">+ <Chart className="h-4 w-4" />+ <p className="whitespace-nowrap text-sm text-gray-500">{isValidating ? (<LoadingDots color="#71717A" />) : (nFormatter(clicks))}- <span className="hidden sm:inline-block ml-1">clicks</span>+ <span className="ml-1 hidden sm:inline-block">clicks</span></p></a></Link></div>- <h3 className="text-sm font-medium text-gray-700 truncate max-w-[200px] md:max-w-md lg:max-w-2xl xl:max-w-3xl">+ <h3 className="max-w-[200px] truncate text-sm font-medium text-gray-700 md:max-w-md lg:max-w-2xl xl:max-w-3xl">{url}</h3></div></div><div className="flex items-center">- <p className="text-sm hidden sm:block text-gray-500 whitespace-nowrap mr-3">+ <p className="mr-3 hidden whitespace-nowrap text-sm text-gray-500 sm:block">Added {timeAgo(createdAt)}</p>- <p className="text-sm sm:hidden text-gray-500 whitespace-nowrap mr-1">+ <p className="mr-1 whitespace-nowrap text-sm text-gray-500 sm:hidden">{timeAgo(createdAt, true)}</p><Popovercontent={- <div className="w-full sm:w-40 p-2 grid gap-1">+ <div className="grid w-full gap-1 p-2 sm:w-40">{slug && exceededUsage ? (<Tooltipcontent={@@ -156,7 +156,7 @@ export default function LinkCard({ props }: { props: LinkProps }) {/>}>- <div className="w-full text-gray-300 cursor-not-allowed font-medium text-sm p-2 text-left transition-all duration-75">+ <div className="w-full cursor-not-allowed p-2 text-left text-sm font-medium text-gray-300 transition-all duration-75">Edit</div></Tooltip>@@ -166,7 +166,7 @@ export default function LinkCard({ props }: { props: LinkProps }) {setOpenPopover(false);setShowAddEditLinkModal(true);}}- className="w-full font-medium text-sm text-gray-500 p-2 text-left rounded-md hover:bg-gray-100 transition-all duration-75"+ className="w-full rounded-md p-2 text-left text-sm font-medium text-gray-500 transition-all duration-75 hover:bg-gray-100">Edit</button>@@ -176,7 +176,7 @@ export default function LinkCard({ props }: { props: LinkProps }) {setOpenPopover(false);setShowArchiveLinkModal(true);}}- className="w-full font-medium text-sm text-gray-500 p-2 text-left rounded-md hover:bg-gray-100 transition-all duration-75"+ className="w-full rounded-md p-2 text-left text-sm font-medium text-gray-500 transition-all duration-75 hover:bg-gray-100">Archive</button>@@ -185,7 +185,7 @@ export default function LinkCard({ props }: { props: LinkProps }) {setOpenPopover(false);setShowDeleteLinkModal(true);}}- className="w-full font-medium text-sm text-red-600 hover:bg-red-600 hover:text-white p-2 text-left rounded-md transition-all duration-75"+ className="w-full rounded-md p-2 text-left text-sm font-medium text-red-600 transition-all duration-75 hover:bg-red-600 hover:text-white">Delete</button>@@ -198,9 +198,9 @@ export default function LinkCard({ props }: { props: LinkProps }) {<buttontype="button"onClick={() => setOpenPopover(!openPopover)}- className="rounded-md px-1 py-2 hover:bg-gray-100 active:bg-gray-200 transition-all duration-75"+ className="rounded-md px-1 py-2 transition-all duration-75 hover:bg-gray-100 active:bg-gray-200">- <ThreeDots className="w-5 h-5 text-gray-500" />+ <ThreeDots className="h-5 w-5 text-gray-500" /></button></Popover></div>diff --git a/components/app/links/link-filters/index.tsx b/components/app/links/link-filters/index.tsxindex 5d384a984b..a335b83445 100644--- a/components/app/links/link-filters/index.tsx+++ b/components/app/links/link-filters/index.tsx@@ -16,22 +16,22 @@ export default function LinkFilters() {{/* Mobile filters */}<buttononClick={() => setShowFilters(!showFilters)}- className="flex justify-between items-center space-x-2 sm:hidden bg-white w-full my-5 px-3 py-2.5 rounded-md shadow hover:shadow-md active:scale-95 transition-all duration-75"+ className="my-5 flex w-full items-center justify-between space-x-2 rounded-md bg-white px-3 py-2.5 shadow transition-all duration-75 hover:shadow-md active:scale-95 sm:hidden"><div className="flex items-center space-x-2 text-gray-700"><Filter className="h-4 w-4 shrink-0" /><p className="text-sm">Filters</p></div><ChevronDown- className={`w-5 h-5 text-gray-400 ${- showFilters ? "transform rotate-180" : ""+ className={`h-5 w-5 text-gray-400 ${+ showFilters ? "rotate-180 transform" : ""} transition-all duration-75`}/></button><AnimatePresence>{showFilters && (<motion.div- className="border-t border-gray-200 w-full flex flex-col space-y-2 py-5 sm:hidden"+ className="flex w-full flex-col space-y-2 border-t border-gray-200 py-5 sm:hidden"{...AnimationSettings}><LinkSort />@@ -42,7 +42,7 @@ export default function LinkFilters() {</AnimatePresence>{/* Desktop filters */}- <div className="w-full my-5 hidden sm:flex justify-end">+ <div className="my-5 hidden w-full justify-end sm:flex"><LinkSort />{/* Weird workaround because if I put `space-x-2` in the parent it misaligns the popover dropdown */}<div className="w-4" />diff --git a/components/app/links/link-filters/link-sort.tsx b/components/app/links/link-filters/link-sort.tsxindex 445177ea56..1d324d58c3 100644--- a/components/app/links/link-filters/link-sort.tsx+++ b/components/app/links/link-filters/link-sort.tsx@@ -33,7 +33,7 @@ export default function LinkSort() {return (<Popovercontent={- <div className="w-full md:w-48 p-2">+ <div className="w-full p-2 md:w-48">{sortOptions.map(({ display, slug }) => (<buttonkey={slug}@@ -52,10 +52,10 @@ export default function LinkSort() {query: finalQuery,});}}- className="flex items-center justify-between space-x-2 px-1 py-2 w-full rounded-md hover:bg-gray-100 active:bg-gray-200"+ className="flex w-full items-center justify-between space-x-2 rounded-md px-1 py-2 hover:bg-gray-100 active:bg-gray-200"><div className="flex items-center justify-start space-x-2">- <SortDesc className="w-4 h-4" />+ <SortDesc className="h-4 w-4" /><p className="text-sm text-gray-700">{display}</p></div>{selectedSort.slug === slug && (@@ -70,15 +70,15 @@ export default function LinkSort() {><buttononClick={() => setOpenPopover(!openPopover)}- className="flex justify-between items-center space-x-2 bg-white w-full sm:w-48 px-3 py-2.5 rounded-md shadow hover:shadow-md active:scale-95 transition-all duration-75"+ className="flex w-full items-center justify-between space-x-2 rounded-md bg-white px-3 py-2.5 shadow transition-all duration-75 hover:shadow-md active:scale-95 sm:w-48"><div className="flex items-center space-x-2 text-gray-700"><Sort className="h-4 w-4 shrink-0" /><p className="text-sm">Sort by</p></div><ChevronDown- className={`w-5 h-5 text-gray-400 ${- openPopover ? "transform rotate-180" : ""+ className={`h-5 w-5 text-gray-400 ${+ openPopover ? "rotate-180 transform" : ""} transition-all duration-75`}/></button>diff --git a/components/app/links/link-filters/status-filter.tsx b/components/app/links/link-filters/status-filter.tsxindex 752b3c1976..80bd9404a9 100644--- a/components/app/links/link-filters/status-filter.tsx+++ b/components/app/links/link-filters/status-filter.tsx@@ -52,7 +52,7 @@ export default function StatusFilter() {return (<Popovercontent={- <div className="w-full md:w-44 p-2">+ <div className="w-full p-2 md:w-44">{statuses.map(({ display, slug, color }) => (<buttonkey={slug}@@ -83,10 +83,10 @@ export default function StatusFilter() {query: finalQuery,});}}- className="flex items-center justify-between p-2 w-full rounded-md hover:bg-gray-100 active:bg-gray-200"+ className="flex w-full items-center justify-between rounded-md p-2 hover:bg-gray-100 active:bg-gray-200"><div className="flex items-center justify-start space-x-2">- <div className={`rounded-full w-2 h-2 ${color}`} />+ <div className={`h-2 w-2 rounded-full ${color}`} /><p className="text-sm text-gray-700">{display}</p></div>{(status === "all" ||@@ -102,14 +102,14 @@ export default function StatusFilter() {><buttononClick={() => setOpenPopover(!openPopover)}- className="flex justify-between items-center space-x-2 bg-white w-full sm:w-44 px-3 py-2.5 rounded-md shadow hover:shadow-md active:scale-95 transition-all duration-75"+ className="flex w-full items-center justify-between space-x-2 rounded-md bg-white px-3 py-2.5 shadow transition-all duration-75 hover:shadow-md active:scale-95 sm:w-44"><div className="flex items-center space-x-2 text-gray-700"><div className="flex -space-x-1">{statuses.map(({ slug, color }) => (<divkey={slug}- className={`rounded-full w-3.5 h-3.5 ${+ className={`h-3.5 w-3.5 rounded-full ${selectedStatus.includes(slug) ? color : "bg-gray-200"} border border-white`}/>@@ -118,8 +118,8 @@ export default function StatusFilter() {<p className="text-sm">Status</p></div><ChevronDown- className={`w-5 h-5 text-gray-400 ${- openPopover ? "transform rotate-180" : ""+ className={`h-5 w-5 text-gray-400 ${+ openPopover ? "rotate-180 transform" : ""} transition-all duration-75`}/></button>diff --git a/components/app/links/link-filters/user-filter.tsx b/components/app/links/link-filters/user-filter.tsxindex 61a28952a2..aee57cb59a 100644--- a/components/app/links/link-filters/user-filter.tsx+++ b/components/app/links/link-filters/user-filter.tsx@@ -29,7 +29,7 @@ export default function UserFilter() {return (<Popovercontent={- <div className="w-full md:w-56 p-2">+ <div className="w-full p-2 md:w-56">{users.map(({ id, name, email }) => (<buttonkey={id}@@ -45,7 +45,7 @@ export default function UserFilter() {query: finalQuery,});}}- className="flex items-center space-x-2 p-2 w-full rounded-md hover:bg-gray-100 active:bg-gray-200"+ className="flex w-full items-center space-x-2 rounded-md p-2 hover:bg-gray-100 active:bg-gray-200"><BlurImagesrc={`https://avatar.tobi.sh/${email}`}@@ -54,7 +54,7 @@ export default function UserFilter() {height={28}className="rounded-full"/>- <p className="text-sm text-gray-700 truncate">{name || email}</p>+ <p className="truncate text-sm text-gray-700">{name || email}</p></button>))}</div>@@ -64,11 +64,11 @@ export default function UserFilter() {><buttononClick={() => setOpenPopover(!openPopover)}- className="flex justify-between items-center space-x-1 bg-white w-full md:w-56 px-3 py-2 rounded-md shadow hover:shadow-md active:scale-95 transition-all duration-75"+ className="flex w-full items-center justify-between space-x-1 rounded-md bg-white px-3 py-2 shadow transition-all duration-75 hover:shadow-md active:scale-95 md:w-56">- <div className="flex items-center space-x-2 text-gray-700 w-44">+ <div className="flex w-44 items-center space-x-2 text-gray-700"><Search className="h-4 w-4 shrink-0" />- <p className="text-sm truncate">+ <p className="truncate text-sm">{currentUser?.name || currentUser?.email || "All Users..."}</p></div>@@ -86,14 +86,14 @@ export default function UserFilter() {query: finalQuery,});}}- className="p-1 rounded-full hover:bg-gray-100 active:bg-gray-200 transition-all duration-75"+ className="rounded-full p-1 transition-all duration-75 hover:bg-gray-100 active:bg-gray-200"><X className="h-4 w-4" /></div>) : (<ChevronDown- className={`cursor-pointer w-5 h-5 text-gray-400 ${- openPopover ? "transform rotate-180" : ""+ className={`h-5 w-5 cursor-pointer text-gray-400 ${+ openPopover ? "rotate-180 transform" : ""} transition-all duration-75`}/>)}diff --git a/components/app/links/no-links-placeholder.tsx b/components/app/links/no-links-placeholder.tsxindex 78899dc9d2..57c40c853d 100644--- a/components/app/links/no-links-placeholder.tsx+++ b/components/app/links/no-links-placeholder.tsx@@ -6,8 +6,8 @@ export default function NoLinksPlaceholder({AddEditLinkButton: () => JSX.Element;}) {return (- <div className="border border-gray-200 rounded-md bg-white py-12 flex flex-col justify-center items-center">- <h2 className="text-xl font-semibold text-gray-700 z-10">+ <div className="flex flex-col items-center justify-center rounded-md border border-gray-200 bg-white py-12">+ <h2 className="z-10 text-xl font-semibold text-gray-700">You don't have any links yet!</h2><BlurImagediff --git a/components/app/modals/add-edit-link-modal/advanced-settings.tsx b/components/app/modals/add-edit-link-modal/advanced-settings.tsxindex 6c8c328d0d..31c634f619 100644--- a/components/app/modals/add-edit-link-modal/advanced-settings.tsx+++ b/components/app/modals/add-edit-link-modal/advanced-settings.tsx@@ -33,7 +33,7 @@ export default function AdvancedSettings({return (<div>- <div className="sm:px-16 px-4">+ <div className="px-4 sm:px-16"><buttontype="button"className="flex items-center space-x-2"@@ -44,7 +44,7 @@ export default function AdvancedSettings({expanded ? "rotate-90" : ""} transition-all`}/>- <p className="text-gray-600 text-sm">Advanced options</p>+ <p className="text-sm text-gray-600">Advanced options</p></button></div>@@ -53,17 +53,17 @@ export default function AdvancedSettings({<AccordionPrimitive.Roottype="single"collapsible={true}- className="mt-4 grid bg-white border-t border-b border-gray-200 px-2 sm:px-8 py-8"+ className="mt-4 grid border-t border-b border-gray-200 bg-white px-2 py-8 sm:px-8">{/* UTM Builder Section */}<AccordionPrimitive.Itemvalue="utm"- className="border border-gray-200 rounded-t-lg"+ className="rounded-t-lg border border-gray-200"><AccordionPrimitive.Header>- <AccordionPrimitive.Trigger className="group focus:outline-black flex w-full items-center justify-between space-x-2 p-5 text-left rounded-t-lg hover:bg-gray-50 active:bg-gray-100 transition-all duration-75">- <div className="flex items-center justify-start space-x-2 h-6">- <ChevronRight className="h-5 w-5 shrink-0 text-gray-700 ease-in-out group-radix-state-open:rotate-90 transition-all" />+ <AccordionPrimitive.Trigger className="group flex w-full items-center justify-between space-x-2 rounded-t-lg p-5 text-left transition-all duration-75 hover:bg-gray-50 focus:outline-black active:bg-gray-100">+ <div className="flex h-6 items-center justify-start space-x-2">+ <ChevronRight className="h-5 w-5 shrink-0 text-gray-700 transition-all ease-in-out group-radix-state-open:rotate-90" /><span className="text-sm font-medium text-gray-900">UTM Builder</span>@@ -81,12 +81,12 @@ export default function AdvancedSettings({{/* OG Tags Section */}<AccordionPrimitive.Itemvalue="og"- className="border border-gray-200 border-t-0"+ className="border border-t-0 border-gray-200"><AccordionPrimitive.Header>- <AccordionPrimitive.Trigger className="group focus:outline-black flex w-full items-center justify-between space-x-2 p-5 text-left hover:bg-gray-50 active:bg-gray-100 transition-all duration-75">- <div className="flex items-center justify-start space-x-2 h-6">- <ChevronRight className="h-5 w-5 shrink-0 text-gray-700 ease-in-out group-radix-state-open:rotate-90 transition-all" />+ <AccordionPrimitive.Trigger className="group flex w-full items-center justify-between space-x-2 p-5 text-left transition-all duration-75 hover:bg-gray-50 focus:outline-black active:bg-gray-100">+ <div className="flex h-6 items-center justify-start space-x-2">+ <ChevronRight className="h-5 w-5 shrink-0 text-gray-700 transition-all ease-in-out group-radix-state-open:rotate-90" /><span className="text-sm font-medium text-gray-900">Custom OG Tags</span>@@ -104,12 +104,12 @@ export default function AdvancedSettings({{/* Password Protection */}<AccordionPrimitive.Itemvalue="password"- className="border border-gray-200 border-t-0"+ className="border border-t-0 border-gray-200"><AccordionPrimitive.Header>- <AccordionPrimitive.Trigger className="group focus:outline-black flex w-full items-center justify-between space-x-2 p-5 text-left hover:bg-gray-50 active:bg-gray-100 transition-all duration-75">- <div className="flex items-center justify-start space-x-2 h-6">- <ChevronRight className="h-5 w-5 shrink-0 text-gray-700 ease-in-out group-radix-state-open:rotate-90 transition-all" />+ <AccordionPrimitive.Trigger className="group flex w-full items-center justify-between space-x-2 p-5 text-left transition-all duration-75 hover:bg-gray-50 focus:outline-black active:bg-gray-100">+ <div className="flex h-6 items-center justify-start space-x-2">+ <ChevronRight className="h-5 w-5 shrink-0 text-gray-700 transition-all ease-in-out group-radix-state-open:rotate-90" /><span className="text-sm font-medium text-gray-900">Password Protection</span>@@ -127,18 +127,18 @@ export default function AdvancedSettings({{/* Expiration Date */}<AccordionPrimitive.Itemvalue="expire"- className="border border-gray-200 border-t-0 rounded-b-lg overflow-hidden"+ className="overflow-hidden rounded-b-lg border border-t-0 border-gray-200"><AccordionPrimitive.Header>- <AccordionPrimitive.Trigger className="group focus:outline-black flex w-full items-center justify-between space-x-2 p-5 text-left hover:bg-gray-50 active:bg-gray-100 transition-all duration-75">- <div className="flex items-center justify-start space-x-2 h-6">- <ChevronRight className="h-5 w-5 shrink-0 text-gray-700 ease-in-out group-radix-state-open:rotate-90 transition-all" />+ <AccordionPrimitive.Trigger className="group flex w-full items-center justify-between space-x-2 p-5 text-left transition-all duration-75 hover:bg-gray-50 focus:outline-black active:bg-gray-100">+ <div className="flex h-6 items-center justify-start space-x-2">+ <ChevronRight className="h-5 w-5 shrink-0 text-gray-700 transition-all ease-in-out group-radix-state-open:rotate-90" /><span className="text-sm font-medium text-gray-900">Expiration Date</span>{expiresAt &&new Date().getTime() > new Date(expiresAt).getTime() && (- <span className="bg-amber-500 px-2 py-0.5 text-xs text-white uppercase">+ <span className="bg-amber-500 px-2 py-0.5 text-xs uppercase text-white">Expired</span>)}diff --git a/components/app/modals/add-edit-link-modal/expiration-section.tsx b/components/app/modals/add-edit-link-modal/expiration-section.tsxindex 542d5665da..ca43127137 100644--- a/components/app/modals/add-edit-link-modal/expiration-section.tsx+++ b/components/app/modals/add-edit-link-modal/expiration-section.tsx@@ -16,11 +16,11 @@ export default function ExpirationSection({return (<motion.div key="expire" {...AnimationSettings}><div>- <label htmlFor="expiresAt" className="block my-2 text-sm text-gray-500">+ <label htmlFor="expiresAt" className="my-2 block text-sm text-gray-500">Automatically expires your link at a given date and time. Your linkwill be disabled but the data will still be kept.</label>- <div className="flex space-x-2 mb-3">+ <div className="mb-3 flex space-x-2"><inputtype="datetime-local"id="expiresAt"@@ -31,14 +31,14 @@ export default function ExpirationSection({onChange={(e) => {setData({ ...data, expiresAt: new Date(e.target.value) });}}- className="flex space-x-2 justify-center items-center rounded-md shadow-sm border border-gray-300 text-gray-500 hover:border-gray-800 px-3 py-2 w-full focus:outline-none sm:text-sm transition-all"+ className="flex w-full items-center justify-center space-x-2 rounded-md border border-gray-300 px-3 py-2 text-gray-500 shadow-sm transition-all hover:border-gray-800 focus:outline-none sm:text-sm"/><buttononClick={() => setData({ ...data, expiresAt: null })}type="button"- className="group rounded-md border w-10 h-10 flex justify-center items-center text-gray-500 hover:text-gray-800 hover:border-gray-800 focus:outline-none transition-all"+ className="group flex h-10 w-10 items-center justify-center rounded-md border text-gray-500 transition-all hover:border-gray-800 hover:text-gray-800 focus:outline-none">- <X className="text-gray-400 w-4 h-4 group-hover:text-black transition-all" />+ <X className="h-4 w-4 text-gray-400 transition-all group-hover:text-black" /></button></div></div>diff --git a/components/app/modals/add-edit-link-modal/index.tsx b/components/app/modals/add-edit-link-modal/index.tsxindex eacd79a2bc..e100cd9563 100644--- a/components/app/modals/add-edit-link-modal/index.tsx+++ b/components/app/modals/add-edit-link-modal/index.tsx@@ -137,27 +137,27 @@ function AddEditLinkModal({setShowModal={setShowAddEditLinkModal}closeWithX={true}>- <div className="inline-block w-full sm:max-w-md max-h-[calc(100vh-50px)] overflow-scroll align-middle transition-all transform bg-white sm:border sm:border-gray-200 shadow-xl sm:rounded-2xl">+ <div className="inline-block max-h-[calc(100vh-50px)] w-full transform overflow-scroll bg-white align-middle shadow-xl transition-all sm:max-w-md sm:rounded-2xl sm:border sm:border-gray-200"><buttononClick={() => setShowAddEditLinkModal(false)}- className="hidden sm:block absolute top-0 right-0 p-2 m-3 rounded-full group hover:bg-gray-100 text-gray-500 focus:outline-none active:bg-gray-200 transition-all duration-75"+ className="group absolute top-0 right-0 m-3 hidden rounded-full p-2 text-gray-500 transition-all duration-75 hover:bg-gray-100 focus:outline-none active:bg-gray-200 sm:block">- <X className="w-5 h-5" />+ <X className="h-5 w-5" /></button>- <div className="flex flex-col justify-center items-center space-y-3 sm:px-16 px-4 pt-10 pb-8 border-b border-gray-200">+ <div className="flex flex-col items-center justify-center space-y-3 border-b border-gray-200 px-4 pt-10 pb-8 sm:px-16"><BlurImagesrc={heroProps.avatar}alt={heroProps.alt}- className="w-10 h-10 rounded-full"+ className="h-10 w-10 rounded-full"width={20}height={20}/>- <h3 className="font-medium text-lg">{heroProps.copy}</h3>+ <h3 className="text-lg font-medium">{heroProps.copy}</h3></div>{id && (- <div className="absolute -mt-3.5 w-full flex justify-center space-x-2 [&>*]:flex [&>*]:items-center [&>*]:h-7 [&>*]:px-4 [&>*]:rounded-full [&>*]:text-xs [&>*]:text-white [&>*]:uppercase">+ <div className="absolute -mt-3.5 flex w-full justify-center space-x-2 [&>*]:flex [&>*]:h-7 [&>*]:items-center [&>*]:rounded-full [&>*]:px-4 [&>*]:text-xs [&>*]:uppercase [&>*]:text-white">{expired ? (<span className="bg-amber-500">Expired</span>) : (@@ -195,9 +195,9 @@ function AddEditLinkModal({}}className="grid gap-6 bg-gray-50 py-8">- <div className="grid gap-6 sm:px-16 px-4">+ <div className="grid gap-6 px-4 sm:px-16"><div>- <div className="flex justify-between items-center">+ <div className="flex items-center justify-between"><labelhtmlFor="key"className="block text-sm font-medium text-gray-700"@@ -205,7 +205,7 @@ function AddEditLinkModal({Short Link</label><button- className="hover:text-black active:scale-95 flex items-center space-x-2 text-gray-500 text-sm transition-all duration-75"+ className="flex items-center space-x-2 text-sm text-gray-500 transition-all duration-75 hover:text-black active:scale-95"onClick={generateRandomSlug}disabled={generatingSlug}type="button"@@ -213,13 +213,13 @@ function AddEditLinkModal({{generatingSlug ? (<LoadingCircle />) : (- <Random className="w-3 h-3" />+ <Random className="h-3 w-3" />)}<p>{generatingSlug ? "Generating" : "Randomize"}</p></button></div>- <div className="relative flex mt-1 rounded-md shadow-sm">- <span className="inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-50 px-5 text-gray-500 sm:text-sm whitespace-nowrap">+ <div className="relative mt-1 flex rounded-md shadow-sm">+ <span className="inline-flex items-center whitespace-nowrap rounded-l-md border border-r-0 border-gray-300 bg-gray-50 px-5 text-gray-500 sm:text-sm">{domain || "dub.sh"}</span><input@@ -233,7 +233,7 @@ function AddEditLinkModal({keyExistsError? "border-red-300 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500": "border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500"- } pr-10 block w-full rounded-r-md focus:outline-none sm:text-sm`}+ } block w-full rounded-r-md pr-10 focus:outline-none sm:text-sm`}placeholder="github"value={key}onChange={(e) => {@@ -266,13 +266,13 @@ function AddEditLinkModal({>Destination URL</label>- <div className="flex mt-1 rounded-md shadow-sm">+ <div className="mt-1 flex rounded-md shadow-sm"><inputname="url"id="url"type="url"required- className="border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500 block w-full rounded-md focus:outline-none sm:text-sm"+ className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"placeholder="https://github.com/steven-tey/dub"value={url}onChange={(e) => {@@ -286,14 +286,14 @@ function AddEditLinkModal({<AdvancedSettings data={data} setData={setData} />- <div className="sm:px-16 px-4">+ <div className="px-4 sm:px-16"><buttondisabled={saving || keyExistsError}className={`${saving || keyExistsError- ? "cursor-not-allowed bg-gray-100 border-gray-200 text-gray-400"- : "bg-black hover:bg-white hover:text-black border-black text-white"- } flex justify-center items-center w-full text-sm h-10 rounded-md border transition-all focus:outline-none`}+ ? "cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400"+ : "border-black bg-black text-white hover:bg-white hover:text-black"+ } flex h-10 w-full items-center justify-center rounded-md border text-sm transition-all focus:outline-none`}>{saving ? (<LoadingDots color="#808080" />@@ -330,7 +330,7 @@ start adding links."/>}>- <div className="text-gray-300 cursor-not-allowed font-medium text-sm px-5 py-2 border rounded-md border-gray-200 transition-all duration-75">+ <div className="cursor-not-allowed rounded-md border border-gray-200 px-5 py-2 text-sm font-medium text-gray-300 transition-all duration-75">Add</div></Tooltip>@@ -348,14 +348,14 @@ start adding links."/>}>- <div className="text-gray-300 cursor-not-allowed font-medium text-sm px-5 py-2 border rounded-md border-gray-200 transition-all duration-75">+ <div className="cursor-not-allowed rounded-md border border-gray-200 px-5 py-2 text-sm font-medium text-gray-300 transition-all duration-75">Add</div></Tooltip>) : (<buttononClick={() => setShowAddEditLinkModal(true)}- className="text-white hover:text-black bg-black hover:bg-white active:scale-95 font-medium text-sm px-5 py-2 border rounded-md border-black transition-all duration-75"+ className="rounded-md border border-black bg-black px-5 py-2 text-sm font-medium text-white transition-all duration-75 hover:bg-white hover:text-black active:scale-95">Add</button>diff --git a/components/app/modals/add-edit-link-modal/og-section.tsx b/components/app/modals/add-edit-link-modal/og-section.tsxindex 8648e1b219..56129fa2f8 100644--- a/components/app/modals/add-edit-link-modal/og-section.tsx+++ b/components/app/modals/add-edit-link-modal/og-section.tsx@@ -53,7 +53,7 @@ export default function OGSection({);return (<motion.div key="og" className="grid gap-5" {...AnimationSettings}>- <p className="block mt-2 text-sm text-gray-500 px-5">+ <p className="mt-2 block px-5 text-sm text-gray-500">If you use custom OG tags,{" "}<span className="font-semibold text-black">be sure to set all 3 tags@@ -61,7 +61,7 @@ export default function OGSection({, or the default tags of the target URL will be used.</p><div className="border-t border-gray-200 px-5 pt-5 pb-2.5">- <div className="flex justify-between items-center">+ <div className="flex items-center justify-between"><labelhtmlFor="title"className="block text-sm font-medium text-gray-700"@@ -73,7 +73,7 @@ export default function OGSection({url.length === 0? "cursor-not-allowed text-gray-300": "hover:text-black active:scale-95"- } flex items-center space-x-2 text-gray-500 text-sm transition-all duration-75`}+ } flex items-center space-x-2 text-sm text-gray-500 transition-all duration-75`}onClick={() => generateTitleFromUrl()}disabled={url.length === 0 || generatingTitle}type="button"@@ -82,12 +82,12 @@ export default function OGSection({<p>{generatingTitle ? "Generating" : "Generate from URL"}</p></button></div>- <div className="flex mt-1 rounded-md shadow-sm">+ <div className="mt-1 flex rounded-md shadow-sm"><TextareaAutosizename="title"id="title"minRows={3}- className="border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500 pr-10 block w-full rounded-md focus:outline-none sm:text-sm"+ className="block w-full rounded-md border-gray-300 pr-10 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"placeholder="Dub - Open Source Bitly Alternative"value={title || ""}onChange={(e) => {@@ -99,7 +99,7 @@ export default function OGSection({</div><div className="border-t border-gray-200 px-5 pt-5 pb-2.5">- <div className="flex justify-between items-center">+ <div className="flex items-center justify-between"><labelhtmlFor="description"className="block text-sm font-medium text-gray-700"@@ -111,7 +111,7 @@ export default function OGSection({url.length === 0? "cursor-not-allowed text-gray-300": "hover:text-black active:scale-95"- } flex items-center space-x-2 text-gray-500 text-sm transition-all duration-75`}+ } flex items-center space-x-2 text-sm text-gray-500 transition-all duration-75`}onClick={() => generateDescriptionFromUrl()}disabled={url.length === 0 || generatingDescription}type="button"@@ -120,12 +120,12 @@ export default function OGSection({<p>{generatingDescription ? "Generating" : "Generate from URL"}</p></button></div>- <div className="flex mt-1 rounded-md shadow-sm">+ <div className="mt-1 flex rounded-md shadow-sm"><TextareaAutosizename="description"id="description"minRows={3}- className="border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500 pr-10 block w-full rounded-md focus:outline-none sm:text-sm"+ className="block w-full rounded-md border-gray-300 pr-10 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"placeholder="Dub is an open-source link shortener SaaS with built-in analytics + free custom domains."value={description || ""}onChange={(e) => {@@ -144,7 +144,7 @@ export default function OGSection({<p className="block text-sm font-medium text-gray-700">OG Image</p><labelhtmlFor="image"- className="group flex flex-col justify-center items-center mt-1 h-[10.5rem] cursor-pointer rounded-md border border-gray-300 bg-white hover:bg-gray-50 shadow-sm transition-all"+ className="group mt-1 flex h-[10.5rem] cursor-pointer flex-col items-center justify-center rounded-md border border-gray-300 bg-white shadow-sm transition-all hover:bg-gray-50">{image ? (typeof image === "string" ? (@@ -153,26 +153,26 @@ export default function OGSection({alt="Preview"width={1200}height={627}- className="object-cover h-full w-full rounded-md hover:brightness-95 transition-all"+ className="h-full w-full rounded-md object-cover transition-all hover:brightness-95"/>) : (<imgsrc={image}alt="Preview"- className="object-cover h-full w-full rounded-md hover:brightness-95 transition-all"+ className="h-full w-full rounded-md object-cover transition-all hover:brightness-95"/>)) : (<>- <UploadCloud className="h-7 w-7 text-gray-500 group-hover:scale-110 group-active:scale-95 transition-all duration-75" />- <p className="text-gray-500 text-sm mt-2">+ <UploadCloud className="h-7 w-7 text-gray-500 transition-all duration-75 group-hover:scale-110 group-active:scale-95" />+ <p className="mt-2 text-sm text-gray-500">Recommended: 1200 x 627 pixels</p><span className="sr-only">OG Image upload</span></>)}</label>- <div className="flex mt-1 rounded-md shadow-sm">+ <div className="mt-1 flex rounded-md shadow-sm"><inputid="image"name="image"diff --git a/components/app/modals/add-edit-link-modal/password-section.tsx b/components/app/modals/add-edit-link-modal/password-section.tsxindex d99305cabf..ec2b82d6c0 100644--- a/components/app/modals/add-edit-link-modal/password-section.tsx+++ b/components/app/modals/add-edit-link-modal/password-section.tsx@@ -13,16 +13,16 @@ export default function PasswordSection({const { password } = data;return (<motion.div key="password" {...AnimationSettings}>- <label htmlFor="password" className="block my-2 text-sm text-gray-500">+ <label htmlFor="password" className="my-2 block text-sm text-gray-500">Protect your links with a password. Users will need to enter thepassword to access the link.</label>- <div className="flex rounded-md shadow-sm mb-3">+ <div className="mb-3 flex rounded-md shadow-sm"><inputname="password"id="password"type="password"- className="border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500 block w-full rounded-md focus:outline-none sm:text-sm"+ className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"value={password || ""}onChange={(e) => {setData({ ...data, password: e.target.value });diff --git a/components/app/modals/add-edit-link-modal/utm-section.tsx b/components/app/modals/add-edit-link-modal/utm-section.tsxindex 5d567b83a5..fa72247a58 100644--- a/components/app/modals/add-edit-link-modal/utm-section.tsx+++ b/components/app/modals/add-edit-link-modal/utm-section.tsx@@ -36,17 +36,17 @@ export default function UTMSection({return (<motion.div key="og" className="grid gap-5" {...AnimationSettings}>- <p className="block mt-2 text-sm text-gray-500 px-5">+ <p className="mt-2 block px-5 text-sm text-gray-500">If you use custom OG tags,{" "}<span className="font-semibold text-black">be sure to set the source, medium, and campaign</span>.</p>- <div className="border-t border-gray-200 px-5 pt-5 pb-2.5 grid gap-3">+ <div className="grid gap-3 border-t border-gray-200 px-5 pt-5 pb-2.5">{paramsMetadata.map(({ display, key, examples }) => (- <div key={key} className="relative flex mt-1 rounded-md shadow-sm">- <span className="flex justify-center items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-50 w-40 text-gray-500 sm:text-sm whitespace-nowrap">+ <div key={key} className="relative mt-1 flex rounded-md shadow-sm">+ <span className="flex w-40 items-center justify-center whitespace-nowrap rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500 sm:text-sm">{display}</span><input@@ -57,7 +57,7 @@ export default function UTMSection({disabled={!isValidUrl}className={`${isValidUrl ? "" : "cursor-not-allowed bg-gray-100"- } border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500 block w-full rounded-r-md focus:outline-none sm:text-sm`}+ } block w-full rounded-r-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm`}placeholder={examples}value={params[key] || ""}onChange={(e) => {diff --git a/components/app/modals/add-project-modal.tsx b/components/app/modals/add-project-modal.tsxindex e6f65d54b2..1158a1efb4 100644--- a/components/app/modals/add-project-modal.tsx+++ b/components/app/modals/add-project-modal.tsx@@ -78,16 +78,16 @@ function AddProjectModalHelper({showModal={showAddProjectModal}setShowModal={setShowAddProjectModal}>- <div className="inline-block w-full sm:max-w-md overflow-hidden align-middle transition-all transform bg-white sm:border sm:border-gray-200 shadow-xl sm:rounded-2xl">- <div className="flex flex-col justify-center items-center space-y-3 sm:px-16 px-4 pt-8 py-4 border-b border-gray-200">+ <div className="inline-block w-full transform overflow-hidden bg-white align-middle shadow-xl transition-all sm:max-w-md sm:rounded-2xl sm:border sm:border-gray-200">+ <div className="flex flex-col items-center justify-center space-y-3 border-b border-gray-200 px-4 py-4 pt-8 sm:px-16"><BlurImagesrc={`/_static/logo.png`}alt={"dub.sh"}- className="w-10 h-10 rounded-full border border-gray-200"+ className="h-10 w-10 rounded-full border border-gray-200"width={20}height={20}/>- <h3 className="font-medium text-lg">Add a new project</h3>+ <h3 className="text-lg font-medium">Add a new project</h3></div><form@@ -121,7 +121,7 @@ function AddProjectModalHelper({}});}}- className="flex flex-col space-y-6 text-left bg-gray-50 sm:px-16 px-4 py-8"+ className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:px-16"><div><label@@ -130,13 +130,13 @@ function AddProjectModalHelper({>Project Name</label>- <div className="flex mt-1 rounded-md shadow-sm">+ <div className="mt-1 flex rounded-md shadow-sm"><inputname="name"id="name"type="text"required- className="border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500 block w-full rounded-md focus:outline-none sm:text-sm"+ className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"placeholder="Dub"value={name}onChange={(e) => {@@ -154,7 +154,7 @@ function AddProjectModalHelper({>Project Slug</label>- <div className="relative flex mt-1 rounded-md shadow-sm">+ <div className="relative mt-1 flex rounded-md shadow-sm"><span className="inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-50 px-5 text-gray-500 sm:text-sm">app.dub.sh</span>@@ -168,7 +168,7 @@ function AddProjectModalHelper({slugError? "border-red-300 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500": "border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500"- } pr-10 block w-full rounded-r-md focus:outline-none sm:text-sm`}+ } block w-full rounded-r-md pr-10 focus:outline-none sm:text-sm`}placeholder="dub"value={slug}onChange={(e) => {@@ -200,7 +200,7 @@ function AddProjectModalHelper({>Domain</label>- <div className="relative flex mt-1 rounded-md shadow-sm">+ <div className="relative mt-1 flex rounded-md shadow-sm"><inputname="domain"id="domain"@@ -211,7 +211,7 @@ function AddProjectModalHelper({domainError? "border-red-300 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500": "border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500"- } pr-10 block w-full rounded-md focus:outline-none sm:text-sm`}+ } block w-full rounded-md pr-10 focus:outline-none sm:text-sm`}placeholder="dub.sh"value={domain}onChange={(e) => {@@ -252,9 +252,9 @@ function AddProjectModalHelper({disabled={saving || slugError || domainError}className={`${saving || slugError || domainError- ? "cursor-not-allowed bg-gray-100 border-gray-200 text-gray-400"- : "bg-black hover:bg-white hover:text-black border-black text-white"- } flex justify-center items-center w-full text-sm h-10 rounded-md border transition-all focus:outline-none`}+ ? "cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400"+ : "border-black bg-black text-white hover:bg-white hover:text-black"+ } flex h-10 w-full items-center justify-center rounded-md border text-sm transition-all focus:outline-none`}>{saving ? <LoadingDots color="#808080" /> : <p>Add project</p>}</button>diff --git a/components/app/modals/archive-link-modal.tsx b/components/app/modals/archive-link-modal.tsxindex 5660b0149f..049c2e200f 100644--- a/components/app/modals/archive-link-modal.tsx+++ b/components/app/modals/archive-link-modal.tsx@@ -42,23 +42,23 @@ function ArchiveLinkModal({showModal={showArchiveLinkModal}setShowModal={setShowArchiveLinkModal}>- <div className="inline-block w-full sm:max-w-md overflow-hidden align-middle transition-all transform bg-white sm:border sm:border-gray-200 shadow-xl sm:rounded-2xl">- <div className="flex flex-col justify-center items-center text-center space-y-3 sm:px-16 px-4 pt-8 py-4 border-b border-gray-200">+ <div className="inline-block w-full transform overflow-hidden bg-white align-middle shadow-xl transition-all sm:max-w-md sm:rounded-2xl sm:border sm:border-gray-200">+ <div className="flex flex-col items-center justify-center space-y-3 border-b border-gray-200 px-4 py-4 pt-8 text-center sm:px-16"><BlurImagesrc={`https://www.google.com/s2/favicons?sz=64&domain_url=${apexDomain}`}alt={apexDomain}- className="w-10 h-10 rounded-full"+ className="h-10 w-10 rounded-full"width={20}height={20}/>- <h3 className="font-medium text-lg">Archive {shortlink}</h3>+ <h3 className="text-lg font-medium">Archive {shortlink}</h3><p className="text-sm text-gray-500">Archived links will still work - they just won't show up on yourmain dashboard.</p></div>- <div className="flex flex-col space-y-6 text-left bg-gray-50 sm:px-16 px-4 py-8">+ <div className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:px-16"><buttononClick={async (e) => {e.preventDefault();@@ -90,9 +90,9 @@ function ArchiveLinkModal({disabled={archiving}className={`${archiving- ? "cursor-not-allowed bg-gray-100 border-gray-200 text-gray-400"- : "bg-black hover:bg-white hover:text-black border-black text-white"- } flex justify-center items-center w-full text-sm h-10 rounded-md border transition-all focus:outline-none`}+ ? "cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400"+ : "border-black bg-black text-white hover:bg-white hover:text-black"+ } flex h-10 w-full items-center justify-center rounded-md border text-sm transition-all focus:outline-none`}>{archiving ? (<LoadingDots color="#808080" />diff --git a/components/app/modals/delete-link-modal.tsx b/components/app/modals/delete-link-modal.tsxindex 7594da3d8d..cb6e0fd9e9 100644--- a/components/app/modals/delete-link-modal.tsx+++ b/components/app/modals/delete-link-modal.tsx@@ -42,17 +42,17 @@ function DeleteLinkModal({showModal={showDeleteLinkModal}setShowModal={setShowDeleteLinkModal}>- <div className="inline-block w-full sm:max-w-md overflow-hidden align-middle transition-all transform bg-white sm:border sm:border-gray-200 shadow-xl sm:rounded-2xl">- <div className="flex flex-col justify-center items-center space-y-3 sm:px-16 px-4 pt-8 py-4 border-b border-gray-200">+ <div className="inline-block w-full transform overflow-hidden bg-white align-middle shadow-xl transition-all sm:max-w-md sm:rounded-2xl sm:border sm:border-gray-200">+ <div className="flex flex-col items-center justify-center space-y-3 border-b border-gray-200 px-4 py-4 pt-8 sm:px-16"><BlurImagesrc={`https://www.google.com/s2/favicons?sz=64&domain_url=${apexDomain}`}alt={apexDomain}- className="w-10 h-10 rounded-full"+ className="h-10 w-10 rounded-full"width={20}height={20}/>- <h3 className="font-medium text-lg">Delete {shortlink}</h3>- <p className="text-sm text-gray-500 text-center">+ <h3 className="text-lg font-medium">Delete {shortlink}</h3>+ <p className="text-center text-sm text-gray-500">Warning: Deleting this link will remove all of its stats. Thisaction cannot be undone.</p>@@ -86,7 +86,7 @@ function DeleteLinkModal({}});}}- className="flex flex-col space-y-6 text-left bg-gray-50 sm:px-16 px-4 py-8"+ className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:px-16"><div><label@@ -104,7 +104,7 @@ function DeleteLinkModal({pattern={shortlink}requiredautoFocus={false}- className="border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500 pr-10 block w-full rounded-md focus:outline-none sm:text-sm"+ className="block w-full rounded-md border-gray-300 pr-10 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"/></div></div>@@ -113,9 +113,9 @@ function DeleteLinkModal({disabled={deleting}className={`${deleting- ? "cursor-not-allowed bg-gray-100 border-gray-200 text-gray-400"- : "bg-red-600 hover:bg-white hover:text-red-600 border-red-600 text-white"- } flex justify-center items-center w-full text-sm h-10 rounded-md border transition-all focus:outline-none`}+ ? "cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400"+ : "border-red-600 bg-red-600 text-white hover:bg-white hover:text-red-600"+ } flex h-10 w-full items-center justify-center rounded-md border text-sm transition-all focus:outline-none`}>{deleting ? <LoadingDots color="#808080" /> : <p>Confirm delete</p>}</button>diff --git a/components/app/modals/delete-project-modal.tsx b/components/app/modals/delete-project-modal.tsxindex 81f29e4153..6db09af76d 100644--- a/components/app/modals/delete-project-modal.tsx+++ b/components/app/modals/delete-project-modal.tsx@@ -30,17 +30,17 @@ function DeleteProjectModal({showModal={showDeleteProjectModal}setShowModal={setShowDeleteProjectModal}>- <div className="inline-block w-full sm:max-w-md overflow-hidden align-middle transition-all transform bg-white sm:border sm:border-gray-200 shadow-xl sm:rounded-2xl">- <div className="flex flex-col justify-center items-center space-y-3 sm:px-16 px-4 pt-8 py-4 border-b border-gray-200">+ <div className="inline-block w-full transform overflow-hidden bg-white align-middle shadow-xl transition-all sm:max-w-md sm:rounded-2xl sm:border sm:border-gray-200">+ <div className="flex flex-col items-center justify-center space-y-3 border-b border-gray-200 px-4 py-4 pt-8 sm:px-16"><BlurImagesrc={`https://www.google.com/s2/favicons?sz=64&domain_url=${domain}`}alt={domain}- className="w-10 h-10 rounded-full border border-gray-200"+ className="h-10 w-10 rounded-full border border-gray-200"width={20}height={20}/>- <h3 className="font-medium text-lg">Delete Project</h3>- <p className="text-sm text-gray-500 text-center">+ <h3 className="text-lg font-medium">Delete Project</h3>+ <p className="text-center text-sm text-gray-500">Warning: This will permanently delete your project, custom domain,and all associated links + their stats.</p>@@ -69,7 +69,7 @@ function DeleteProjectModal({}});}}- className="flex flex-col space-y-6 text-left bg-gray-50 sm:px-16 px-4 py-8"+ className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:px-16"><div><label@@ -87,7 +87,7 @@ function DeleteProjectModal({id="project-slug"autoFocus={false}pattern={slug}- className="border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500 pr-10 block w-full rounded-md focus:outline-none sm:text-sm"+ className="block w-full rounded-md border-gray-300 pr-10 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"/></div></div>@@ -111,7 +111,7 @@ function DeleteProjectModal({pattern="confirm delete project"requiredautoFocus={false}- className="border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500 pr-10 block w-full rounded-md focus:outline-none sm:text-sm"+ className="block w-full rounded-md border-gray-300 pr-10 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"/></div></div>@@ -120,9 +120,9 @@ function DeleteProjectModal({disabled={deleting}className={`${deleting- ? "cursor-not-allowed bg-gray-100 border-gray-200 text-gray-400"- : "bg-red-600 hover:bg-white hover:text-red-600 border-red-600 text-white"- } flex justify-center items-center w-full text-sm h-10 rounded-md border transition-all focus:outline-none`}+ ? "cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400"+ : "border-red-600 bg-red-600 text-white hover:bg-white hover:text-red-600"+ } flex h-10 w-full items-center justify-center rounded-md border text-sm transition-all focus:outline-none`}>{deleting ? (<LoadingDots color="#808080" />diff --git a/components/app/modals/edit-domain-modal.tsx b/components/app/modals/edit-domain-modal.tsxindex 4de1fd0f41..b71026042a 100644--- a/components/app/modals/edit-domain-modal.tsx+++ b/components/app/modals/edit-domain-modal.tsx@@ -49,17 +49,17 @@ function EditDomainModal({showModal={showEditDomainModal}setShowModal={setShowEditDomainModal}>- <div className="inline-block w-full sm:max-w-md overflow-hidden align-middle transition-all transform bg-white sm:border sm:border-gray-200 shadow-xl sm:rounded-2xl">- <div className="flex flex-col justify-center items-center space-y-3 sm:px-16 px-4 pt-8 py-4 border-b border-gray-200">+ <div className="inline-block w-full transform overflow-hidden bg-white align-middle shadow-xl transition-all sm:max-w-md sm:rounded-2xl sm:border sm:border-gray-200">+ <div className="flex flex-col items-center justify-center space-y-3 border-b border-gray-200 px-4 py-4 pt-8 sm:px-16"><BlurImagesrc={`https://www.google.com/s2/favicons?sz=64&domain_url=${domain}`}alt={domain}- className="w-10 h-10 rounded-full border border-gray-200"+ className="h-10 w-10 rounded-full border border-gray-200"width={20}height={20}/>- <h3 className="font-medium text-lg">Change Domain</h3>- <p className="text-sm text-gray-500 text-center">+ <h3 className="text-lg font-medium">Change Domain</h3>+ <p className="text-center text-sm text-gray-500">Warning: Changing your project's domain will break all existingshort links.</p>@@ -90,7 +90,7 @@ function EditDomainModal({}});}}- className="flex flex-col space-y-6 text-left bg-gray-50 sm:px-16 px-4 py-8"+ className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:px-16"><div><label@@ -106,7 +106,7 @@ function EditDomainModal({id="old-domain"autoFocus={false}readOnly- className="border-gray-300 text-gray-90 pointer-events-none pr-10 block w-full rounded-md focus:ring-0 focus:outline-none sm:text-sm"+ className="text-gray-90 pointer-events-none block w-full rounded-md border-gray-300 pr-10 focus:outline-none focus:ring-0 sm:text-sm"value={domain}/></div>@@ -131,7 +131,7 @@ function EditDomainModal({domainError? "border-red-300 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500": "border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500"- } pr-10 block w-full rounded-md focus:outline-none sm:text-sm`}+ } block w-full rounded-md pr-10 focus:outline-none sm:text-sm`}placeholder="newdomain.com"value={newDomain}onChange={(e) => {@@ -189,7 +189,7 @@ function EditDomainModal({placeholder="yes, change my domain"requiredautoFocus={false}- className="border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500 pr-10 block w-full rounded-md focus:outline-none sm:text-sm"+ className="block w-full rounded-md border-gray-300 pr-10 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"/></div></div>@@ -198,9 +198,9 @@ function EditDomainModal({disabled={saving || domainError}className={`${saving || domainError- ? "cursor-not-allowed bg-gray-100 border-gray-200 text-gray-400"- : "bg-red-600 hover:bg-white hover:text-red-600 border-red-600 text-white"- } flex justify-center items-center w-full text-sm h-10 rounded-md border transition-all focus:outline-none`}+ ? "cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400"+ : "border-red-600 bg-red-600 text-white hover:bg-white hover:text-red-600"+ } flex h-10 w-full items-center justify-center rounded-md border text-sm transition-all focus:outline-none`}>{saving ? (<LoadingDots color="#808080" />diff --git a/components/app/modals/link-qr-modal.tsx b/components/app/modals/link-qr-modal.tsxindex 537a0f3f1d..80a6629ed3 100644--- a/components/app/modals/link-qr-modal.tsx+++ b/components/app/modals/link-qr-modal.tsx@@ -79,24 +79,24 @@ function LinkQRModalHelper({return (<Modal showModal={showLinkQRModal} setShowModal={setShowLinkQRModal}>- <div className="inline-block w-full sm:max-w-md align-middle transition-all transform bg-white sm:border sm:border-gray-200 shadow-xl sm:rounded-2xl">- <div className="flex flex-col justify-center items-center space-y-3 sm:px-16 px-4 pt-8 py-4 border-b border-gray-200">+ <div className="inline-block w-full transform bg-white align-middle shadow-xl transition-all sm:max-w-md sm:rounded-2xl sm:border sm:border-gray-200">+ <div className="flex flex-col items-center justify-center space-y-3 border-b border-gray-200 px-4 py-4 pt-8 sm:px-16">{avatarUrl ? (<BlurImagesrc={avatarUrl}alt={apexDomain}- className="w-10 h-10 rounded-full"+ className="h-10 w-10 rounded-full"width={40}height={40}/>) : (- <Logo className="w-10 h-10" />+ <Logo className="h-10 w-10" />)}- <h3 className="font-medium text-lg">Download QR Code</h3>+ <h3 className="text-lg font-medium">Download QR Code</h3></div>- <div className="flex flex-col space-y-6 text-left bg-gray-50 py-6 sm:rounded-b-2xl">- <div className="p-4 rounded-lg bg-white mx-auto border-2 border-gray-200">+ <div className="flex flex-col space-y-6 bg-gray-50 py-6 text-left sm:rounded-b-2xl">+ <div className="mx-auto rounded-lg border-2 border-gray-200 bg-white p-4"><QRCodeSVGvalue={qrData.value}size={qrData.size / 8}@@ -120,7 +120,7 @@ function LinkQRModalHelper({setShowLogo={setShowLogo}/>- <div className="flex gap-2 sm:px-16 px-4">+ <div className="flex gap-2 px-4 sm:px-16"><buttononClick={async () =>download(@@ -136,7 +136,7 @@ function LinkQRModalHelper({"svg",)}- className="py-1.5 px-5 bg-black hover:bg-white rounded-md border border-black text-sm text-white hover:text-black transition-all w-full flex items-center gap-2 justify-center"+ className="flex w-full items-center justify-center gap-2 rounded-md border border-black bg-black py-1.5 px-5 text-sm text-white transition-all hover:bg-white hover:text-black"><Download /> SVG</button>@@ -144,7 +144,7 @@ function LinkQRModalHelper({onClick={async () =>download(await getQRAsCanvas(qrData, "image/png"), "png")}- className="py-1.5 px-5 bg-black hover:bg-white rounded-md border border-black text-sm text-white hover:text-black transition-all w-full flex items-center gap-2 justify-center"+ className="flex w-full items-center justify-center gap-2 rounded-md border border-black bg-black py-1.5 px-5 text-sm text-white transition-all hover:bg-white hover:text-black"><Download /> PNG</button>@@ -152,7 +152,7 @@ function LinkQRModalHelper({onClick={async () =>download(await getQRAsCanvas(qrData, "image/jpeg"), "jpg")}- className="py-1.5 px-5 bg-black hover:bg-white rounded-md border border-black text-sm text-white hover:text-black transition-all w-full flex items-center gap-2 justify-center"+ className="flex w-full items-center justify-center gap-2 rounded-md border border-black bg-black py-1.5 px-5 text-sm text-white transition-all hover:bg-white hover:text-black"><Download /> JPEG</button>@@ -181,7 +181,7 @@ function AdvancedSettings({ qrData, setQrData, setShowLogo }) {return (<div>- <div className="sm:px-16 px-4">+ <div className="px-4 sm:px-16"><buttontype="button"className="flex items-center"@@ -192,11 +192,11 @@ function AdvancedSettings({ qrData, setQrData, setShowLogo }) {expanded ? "rotate-90" : ""} transition-all`}/>- <p className="text-gray-600 text-sm">Advanced options</p>+ <p className="text-sm text-gray-600">Advanced options</p></button></div>{expanded && (- <div className="mt-4 grid gap-5 bg-white border-t border-b border-gray-200 sm:px-16 px-4 py-8">+ <div className="mt-4 grid gap-5 border-t border-b border-gray-200 bg-white px-4 py-8 sm:px-16"><div><labelhtmlFor="logo-toggle"@@ -214,7 +214,7 @@ function AdvancedSettings({ qrData, setQrData, setShowLogo }) {/>}>- <div className="flex mt-1 space-x-2 items-center cursor-not-allowed pointer-events-none sm:pointer-events-auto">+ <div className="pointer-events-none mt-1 flex cursor-not-allowed items-center space-x-2 sm:pointer-events-auto"><Switchfn={setShowLogo}trackDimensions="h-6 w-12"@@ -222,18 +222,18 @@ function AdvancedSettings({ qrData, setQrData, setShowLogo }) {thumbTranslate="translate-x-6"disabled={true}/>- <p className="text-gray-600 text-sm">Show Dub.sh Logo</p>+ <p className="text-sm text-gray-600">Show Dub.sh Logo</p></div></Tooltip>) : (- <div className="flex mt-1 space-x-2 items-center">+ <div className="mt-1 flex items-center space-x-2"><Switchfn={setShowLogo}trackDimensions="h-6 w-12"thumbDimensions="w-5 h-5"thumbTranslate="translate-x-6"/>- <p className="text-gray-600 text-sm">Show Dub.sh Logo</p>+ <p className="text-sm text-gray-600">Show Dub.sh Logo</p></div>)}</div>@@ -244,10 +244,10 @@ function AdvancedSettings({ qrData, setQrData, setShowLogo }) {>Foreground Color</label>- <div className="relative flex mt-1 rounded-md shadow-sm h-9 w-48">+ <div className="relative mt-1 flex h-9 w-48 rounded-md shadow-sm"><Tooltipcontent={- <div className="max-w-xs flex flex-col text-center items-center space-y-3 p-5">+ <div className="flex max-w-xs flex-col items-center space-y-3 p-5 text-center"><HexColorPickercolor={qrData.fgColor}onChange={(color) =>@@ -261,7 +261,7 @@ function AdvancedSettings({ qrData, setQrData, setShowLogo }) {}><div- className="rounded-l-md w-12 h-full border"+ className="h-full w-12 rounded-l-md border"style={{backgroundColor: qrData.fgColor,borderColor: qrData.fgColor,@@ -280,7 +280,7 @@ function AdvancedSettings({ qrData, setQrData, setShowLogo }) {}prefixedstyle={{ 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`}+ className={`block w-full rounded-r-md border-2 border-l-0 pl-3 text-gray-900 placeholder-gray-300 focus:outline-none focus:ring-black sm:text-sm`}/></div></div>diff --git a/components/app/modals/stats-modal.tsx b/components/app/modals/stats-modal.tsxindex d01435e01e..ec24fec8ca 100644--- a/components/app/modals/stats-modal.tsx+++ b/components/app/modals/stats-modal.tsx@@ -37,17 +37,17 @@ function StatsModalHelper({><divonScroll={handleScroll}- className="inline-block w-full max-w-screen-xl max-h-[calc(100vh-150px)] overflow-scroll scrollbar-hide bg-gray-50- align-middle transform sm:border sm:border-gray-200 shadow-xl sm:rounded-2xl"+ className="inline-block max-h-[calc(100vh-150px)] w-full max-w-screen-xl transform overflow-scroll bg-gray-50+ align-middle shadow-xl scrollbar-hide sm:rounded-2xl sm:border sm:border-gray-200"><button- className="hidden sm:block sticky top-4 z-30 p-3 m-4 rounded-full float-right group hover:bg-gray-100 focus:outline-none active:scale-75 transition-all duration-75"+ className="group sticky top-4 z-30 float-right m-4 hidden rounded-full p-3 transition-all duration-75 hover:bg-gray-100 focus:outline-none active:scale-75 sm:block"autoFocus={false}onClick={() => {router.push("/", undefined, { scroll: false });}}>- <X className="w-6 h-6" />+ <X className="h-6 w-6" /></button><Stats atModalTop={atModalTop} /></div>diff --git a/components/app/modals/upgrade-plan-modal.tsx b/components/app/modals/upgrade-plan-modal.tsxindex a1bd47c938..547f232054 100644--- a/components/app/modals/upgrade-plan-modal.tsx+++ b/components/app/modals/upgrade-plan-modal.tsx@@ -36,31 +36,31 @@ function UpgradePlanModal({showModal={showUpgradePlanModal}setShowModal={setShowUpgradePlanModal}>- <div className="inline-block w-full sm:max-w-md overflow-hidden align-middle transition-all transform bg-white sm:border sm:border-gray-200 shadow-xl sm:rounded-2xl">- <div className="flex flex-col justify-center items-center space-y-3 sm:px-16 px-4 pt-8 pb-24 border-b border-gray-200">+ <div className="inline-block w-full transform overflow-hidden bg-white align-middle shadow-xl transition-all sm:max-w-md sm:rounded-2xl sm:border sm:border-gray-200">+ <div className="flex flex-col items-center justify-center space-y-3 border-b border-gray-200 px-4 pt-8 pb-24 sm:px-16"><BlurImagesrc="/_static/logo.png"alt="Dub logo"- className="w-10 h-10 rounded-full border border-gray-200"+ className="h-10 w-10 rounded-full border border-gray-200"width={20}height={20}/>- <h3 className="font-medium text-xl">Upgrade to Pro</h3>- <div className="flex space-x-2 items-center">+ <h3 className="text-xl font-medium">Upgrade to Pro</h3>+ <div className="flex items-center space-x-2"><p className="text-sm text-gray-600">Billed Monthly</p><Switch fn={setAnnualBilling} /><p className="text-sm text-gray-600">Billed Annually</p></div></div>- <div className="relative bg-white border border-gray-200 shadow-md rounded-lg max-w-sm mx-auto -mt-[5.1rem] -mb-[5.3rem]">+ <div className="relative mx-auto -mt-[5.1rem] -mb-[5.3rem] max-w-sm rounded-lg border border-gray-200 bg-white shadow-md">{annualBilling && (- <span className="bg-gradient-to-r from-blue-600 to-cyan-600 text-white px-2 py-0.5 absolute top-2 -right-0.5 text-xs rounded-l-md">+ <span className="absolute top-2 -right-0.5 rounded-l-md bg-gradient-to-r from-blue-600 to-cyan-600 px-2 py-0.5 text-xs text-white">2 Free Months</span>)}- <div className="max-w-md flex justify-between items-center w-full p-5 pt-7">- <h3 className="text-2xl text-transparent bg-clip-text bg-gradient-to-r from-blue-600 to-cyan-600">+ <div className="flex w-full max-w-md items-center justify-between p-5 pt-7">+ <h3 className="bg-gradient-to-r from-blue-600 to-cyan-600 bg-clip-text text-2xl text-transparent">{PRO_TIERS[tier].name}</h3><div className="flex items-center">@@ -72,7 +72,7 @@ function UpgradePlanModal({</p></div></div>- <div className="w-full flex flex-col items-center space-y-1 bg-gray-50 text-center p-5 border-t border-gray-200 rounded-b-lg">+ <div className="flex w-full flex-col items-center space-y-1 rounded-b-lg border-t border-gray-200 bg-gray-50 p-5 text-center"><Slidervalue={tier}setValue={setTier}@@ -84,7 +84,7 @@ function UpgradePlanModal({</div></div>- <div className="flex flex-col items-center text-left bg-gray-50 sm:px-16 px-4 pt-28 pb-8">+ <div className="flex flex-col items-center bg-gray-50 px-4 pt-28 pb-8 text-left sm:px-16"><buttondisabled={clicked}onClick={() => {@@ -108,9 +108,9 @@ function UpgradePlanModal({}}className={`${clicked- ? "cursor-not-allowed bg-gray-100 border-gray-200 text-gray-400"- : "bg-blue-500 hover:bg-white hover:text-blue-500 border-blue-500 text-white"- } flex justify-center items-center w-full text-sm h-10 mb-2 rounded-md border transition-all focus:outline-none`}+ ? "cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400"+ : "border-blue-500 bg-blue-500 text-white hover:bg-white hover:text-blue-500"+ } mb-2 flex h-10 w-full items-center justify-center rounded-md border text-sm transition-all focus:outline-none`}>{clicked ? (<LoadingDots color="#808080" />@@ -120,7 +120,7 @@ function UpgradePlanModal({</button><ahref="mailto:[email protected]?subject=Upgrade%20to%20Enterprise%20Plan"- className="text-gray-500 text-sm hover:text-gray-700 transition-all"+ className="text-sm text-gray-500 transition-all hover:text-gray-700">Or contact us for Enterprise</a>diff --git a/components/app/no-projects-placeholder.tsx b/components/app/no-projects-placeholder.tsxindex a4c6a3dcd5..360be0255f 100644--- a/components/app/no-projects-placeholder.tsx+++ b/components/app/no-projects-placeholder.tsx@@ -7,8 +7,8 @@ export default function NoProjectsPlaceholder({setShowAddProjectModal: (show: boolean) => void;}) {return (- <div className="border border-gray-200 rounded-md bg-white py-12 flex flex-col justify-center items-center">- <h2 className="text-xl font-semibold text-gray-700 z-10">+ <div className="flex flex-col items-center justify-center rounded-md border border-gray-200 bg-white py-12">+ <h2 className="z-10 text-xl font-semibold text-gray-700">You don't have any projects yet!</h2><BlurImage@@ -20,12 +20,12 @@ export default function NoProjectsPlaceholder({/><buttononClick={() => setShowAddProjectModal(true)}- className="text-white hover:text-black bg-black hover:bg-white active:scale-95 font-medium text-sm px-10 py-2 border rounded-md border-black transition-all duration-75 z-10"+ className="z-10 rounded-md border border-black bg-black px-10 py-2 text-sm font-medium text-white transition-all duration-75 hover:bg-white hover:text-black active:scale-95">Create a project</button><Link href="/links">- <a className="text-gray-500 hover:text-gray-800 active:scale-95 mt-3 font-medium text-sm transition-all">+ <a className="mt-3 text-sm font-medium text-gray-500 transition-all hover:text-gray-800 active:scale-95">Add a Dub.sh link instead</a></Link>diff --git a/components/app/project-card-placeholder.tsx b/components/app/project-card-placeholder.tsxindex cc365f3009..26ab0459cb 100644--- a/components/app/project-card-placeholder.tsx+++ b/components/app/project-card-placeholder.tsx@@ -1,18 +1,18 @@export default function ProjectCardPlaceholder() {return (- <div className="bg-white shadow rounded-lg p-6 flex justify-between hover:shadow-md transition-all">+ <div className="flex justify-between rounded-lg bg-white p-6 shadow transition-all hover:shadow-md"><div className="flex items-center space-x-3">- <div className="w-12 h-12 rounded-full bg-gray-200 animate-pulse" />+ <div className="h-12 w-12 animate-pulse rounded-full bg-gray-200" /><div className="flex flex-col space-y-2.5">- <div className="w-36 h-5 rounded-md bg-gray-200 animate-pulse" />- <div className="flex space-x-2 items-center">- <div className="w-20 h-5 rounded-md bg-gray-200 animate-pulse" />- <div className="w-5 h-5 rounded-full bg-gray-200 animate-pulse" />+ <div className="h-5 w-36 animate-pulse rounded-md bg-gray-200" />+ <div className="flex items-center space-x-2">+ <div className="h-5 w-20 animate-pulse rounded-md bg-gray-200" />+ <div className="h-5 w-5 animate-pulse rounded-full bg-gray-200" /></div></div></div><div className="flex items-center space-x-2">- <div className="w-10 h-5 rounded-md bg-gray-200 animate-pulse" />+ <div className="h-5 w-10 animate-pulse rounded-md bg-gray-200" /></div></div>);diff --git a/components/app/project-card.tsx b/components/app/project-card.tsxindex 21ac2f6194..2911d33b03 100644--- a/components/app/project-card.tsx+++ b/components/app/project-card.tsx@@ -26,12 +26,12 @@ export default function ProjectCard({return (<Link key={slug} href={`/${slug}`}><a>- <div className="bg-white shadow rounded-lg p-6 flex justify-between hover:shadow-md transition-all">+ <div className="flex justify-between rounded-lg bg-white p-6 shadow transition-all hover:shadow-md"><div className="flex items-center space-x-3"><BlurImagesrc={`https://avatar.tobi.sh/${slug}`}alt={name}- className="w-9 h-9 flex-shrink-0 rounded-full overflow-hidden border border-gray-300"+ className="h-9 w-9 flex-shrink-0 overflow-hidden rounded-full border border-gray-300"width={48}height={48}/>@@ -41,8 +41,8 @@ export default function ProjectCard({<p className="text-gray-500">{domain}</p>{domainVerified ? (<Tooltip content="Verified domain">- <div className="w-8 flex justify-center">- <CheckCircleFill className="w-5 h-5 text-blue-500" />+ <div className="flex w-8 justify-center">+ <CheckCircleFill className="h-5 w-5 text-blue-500" /></div></Tooltip>) : (@@ -56,8 +56,8 @@ export default function ProjectCard({/>}>- <div className="w-8 flex justify-center">- <XCircleFill className="w-5 h-5 text-gray-300" />+ <div className="flex w-8 justify-center">+ <XCircleFill className="h-5 w-5 text-gray-300" /></div></Tooltip>)}@@ -65,9 +65,9 @@ export default function ProjectCard({</div></div><div className="flex items-center space-x-2">- <LinkIcon className="text-gray-600 w-5 h-5" />+ <LinkIcon className="h-5 w-5 text-gray-600" />{isValidating ? (- <div className="w-4 h-5 rounded-md bg-gray-200 animate-pulse" />+ <div className="h-5 w-4 animate-pulse rounded-md bg-gray-200" />) : (<h2 className="text-lg font-medium text-gray-700">{nFormatter(count)}diff --git a/components/app/settings/custom-domain/domain-configuration.tsx b/components/app/settings/custom-domain/domain-configuration.tsxindex 491b170b6b..657073110d 100644--- a/components/app/settings/custom-domain/domain-configuration.tsx+++ b/components/app/settings/custom-domain/domain-configuration.tsx@@ -4,7 +4,7 @@ import { getSubdomain } from "@/lib/utils";const InlineSnippet = ({ children }: { children: string }) => {return (- <span className="font-mono text-blue-900 bg-blue-100 p-1 rounded-md inline-block">+ <span className="inline-block rounded-md bg-blue-100 p-1 font-mono text-blue-900">{children}</span>);@@ -30,14 +30,14 @@ export default function DomainConfiguration({<InlineSnippet>{domainJson.apexName}</InlineSnippet> to proveownership of <InlineSnippet>{domainJson.name}</InlineSnippet>:</p>- <div className="flex justify-start items-start space-x-10 bg-gray-50 p-2 rounded-md">+ <div className="flex items-start justify-start space-x-10 rounded-md bg-gray-50 p-2"><div><p className="text-sm font-bold">Type</p>- <p className="text-sm font-mono mt-2">{txtVerification.type}</p>+ <p className="mt-2 font-mono text-sm">{txtVerification.type}</p></div><div><p className="text-sm font-bold">Name</p>- <p className="text-sm font-mono mt-2">+ <p className="mt-2 font-mono text-sm">{txtVerification.domain.slice(0,txtVerification.domain.length - domainJson.apexName.length - 1,@@ -46,7 +46,7 @@ export default function DomainConfiguration({</div><div><p className="text-sm font-bold">Value</p>- <p className="text-sm font-mono mt-2">+ <p className="mt-2 font-mono text-sm"><span className="text-ellipsis">{txtVerification.value}</span></p></div>@@ -70,9 +70,9 @@ export default function DomainConfiguration({onClick={() => setRecordType("A")}className={`${recordType == "A"- ? "text-black border-black"- : "text-gray-400 border-white"- } text-sm border-b-2 pb-1 transition-all ease duration-150`}+ ? "border-black text-black"+ : "border-white text-gray-400"+ } ease border-b-2 pb-1 text-sm transition-all duration-150`}>A Record{!subdomain && " (recommended)"}</button>@@ -80,9 +80,9 @@ export default function DomainConfiguration({onClick={() => setRecordType("CNAME")}className={`${recordType == "CNAME"- ? "text-black border-black"- : "text-gray-400 border-white"- } text-sm border-b-2 pb-1 transition-all ease duration-150`}+ ? "border-black text-black"+ : "border-white text-gray-400"+ } ease border-b-2 pb-1 text-sm transition-all duration-150`}>CNAME Record{subdomain && " (recommended)"}</button>@@ -96,26 +96,26 @@ export default function DomainConfiguration({), set the following {recordType} record on your DNS provider tocontinue:</p>- <div className="flex justify-start items-center space-x-10 bg-gray-50 p-2 rounded-md">+ <div className="flex items-center justify-start space-x-10 rounded-md bg-gray-50 p-2"><div><p className="text-sm font-bold">Type</p>- <p className="text-sm font-mono mt-2">{recordType}</p>+ <p className="mt-2 font-mono text-sm">{recordType}</p></div><div><p className="text-sm font-bold">Name</p>- <p className="text-sm font-mono mt-2">+ <p className="mt-2 font-mono text-sm">{recordType === "A" ? "@" : subdomain ?? "www"}</p></div><div><p className="text-sm font-bold">Value</p>- <p className="text-sm font-mono mt-2">+ <p className="mt-2 font-mono text-sm">{recordType === "A" ? `76.76.21.21` : `cname.dub.sh`}</p></div><div><p className="text-sm font-bold">TTL</p>- <p className="text-sm font-mono mt-2">86400</p>+ <p className="mt-2 font-mono text-sm">86400</p></div></div><p className="mt-3 text-sm">diff --git a/components/app/settings/custom-domain/index.tsx b/components/app/settings/custom-domain/index.tsxindex 6bb587c8f7..f70b1d1af0 100644--- a/components/app/settings/custom-domain/index.tsx+++ b/components/app/settings/custom-domain/index.tsx@@ -34,15 +34,15 @@ export default function CustomDomain() {const { setShowEditDomainModal, EditDomainModal } = useEditDomainModal();return (- <div className="bg-white rounded-lg border border-gray-200 py-10">+ <div className="rounded-lg border border-gray-200 bg-white py-10">{domain && <EditDomainModal />}<div className="flex flex-col space-y-3 px-10"><h2 className="text-xl font-medium">Custom Domain</h2>- <p className="text-gray-500 text-sm">+ <p className="text-sm text-gray-500">This is the custom domain associated with your project.</p></div>- <div className="border-b border-gray-200 my-8" />+ <div className="my-8 border-b border-gray-200" /><div className="flex flex-col space-y-3 px-10"><div className="flex justify-between space-x-4">{domain ? (@@ -52,13 +52,13 @@ export default function CustomDomain() {rel="noreferrer"className="flex items-center space-x-2">- <p className="text-xl font-semibold flex items-center">+ <p className="flex items-center text-xl font-semibold">{domain}</p>- <ExternalLink className="w-5 h-5" />+ <ExternalLink className="h-5 w-5" /></a>) : (- <div className="h-8 w-32 bg-gray-200 rounded-md animate-pulse" />+ <div className="h-8 w-32 animate-pulse rounded-md bg-gray-200" />)}<div className="flex space-x-3">{domain ? (@@ -70,34 +70,34 @@ export default function CustomDomain() {className={`${isValidating? "cursor-not-allowed bg-gray-100"- : "bg-white hover:text-black hover:border-black"- } text-gray-500 border-gray-200 h-9 w-24 text-sm border-solid border rounded-md focus:outline-none transition-all ease-in-out duration-150`}+ : "bg-white hover:border-black hover:text-black"+ } h-9 w-24 rounded-md border border-solid border-gray-200 text-sm text-gray-500 transition-all duration-150 ease-in-out focus:outline-none`}>{isValidating ? <LoadingDots /> : "Refresh"}</button>) : (- <div className="h-9 w-24 bg-gray-200 rounded-md animate-pulse" />+ <div className="h-9 w-24 animate-pulse rounded-md bg-gray-200" />)}{domain ? (<buttononClick={() => setShowEditDomainModal(true)}- className="bg-black text-white border-black hover:text-black hover:bg-white h-9 w-24 text-sm border-solid border rounded-md focus:outline-none transition-all ease-in-out duration-150"+ className="h-9 w-24 rounded-md border border-solid border-black bg-black text-sm text-white transition-all duration-150 ease-in-out hover:bg-white hover:text-black focus:outline-none">Change</button>) : (- <div className="h-9 w-24 bg-gray-200 rounded-md animate-pulse" />+ <div className="h-9 w-24 animate-pulse rounded-md bg-gray-200" />)}</div></div>- <div className="flex items-center space-x-2 h-10">+ <div className="flex h-10 items-center space-x-2">{data ? (data.status === "Valid Configuration" ? (- <CheckCircleFill className="w-6 h-6 text-blue-500" />+ <CheckCircleFill className="h-6 w-6 text-blue-500" />) : data.status === "Pending Verification" ? (- <AlertCircleFill className="w-6 h-6 text-yellow-500" />+ <AlertCircleFill className="h-6 w-6 text-yellow-500" />) : (- <XCircleFill className="w-6 h-6 text-red-500" />+ <XCircleFill className="h-6 w-6 text-red-500" />)) : (<LoadingCircle dimensions="w-5 h-5 mr-1" />diff --git a/components/app/settings/delete-project.tsx b/components/app/settings/delete-project.tsxindex 315234b371..015f4b47f8 100644--- a/components/app/settings/delete-project.tsx+++ b/components/app/settings/delete-project.tsx@@ -4,11 +4,11 @@ export default function DeleteProject() {const { setShowDeleteProjectModal, DeleteProjectModal } =useDeleteProjectModal();return (- <div className="bg-white rounded-lg border border-gray-200">+ <div className="rounded-lg border border-gray-200 bg-white"><DeleteProjectModal /><div className="flex flex-col space-y-3 p-10"><h2 className="text-xl font-medium">Delete Project</h2>- <p className="text-gray-500 text-sm">+ <p className="text-sm text-gray-500">Permanently delete your project, custom domain, and all associatedlinks + their stats. This action cannot be undone - please proceedwith caution.@@ -16,10 +16,10 @@ export default function DeleteProject() {</div><div className="border-b border-gray-200" />- <div className="px-10 py-4 flex justify-end items-center">+ <div className="flex items-center justify-end px-10 py-4"><buttononClick={() => setShowDeleteProjectModal(true)}- className="bg-red-500 text-white border-red-500 hover:text-red-500 hover:bg-white h-9 w-32 text-sm border rounded-md focus:outline-none transition-all ease-in-out duration-150"+ className="h-9 w-32 rounded-md border border-red-500 bg-red-500 text-sm text-white transition-all duration-150 ease-in-out hover:bg-white hover:text-red-500 focus:outline-none">Delete Project</button>diff --git a/components/app/settings/landing-page.tsx b/components/app/settings/landing-page.tsxindex 373ac6258a..043940fee4 100644--- a/components/app/settings/landing-page.tsx+++ b/components/app/settings/landing-page.tsx@@ -49,25 +49,25 @@ export default function DefaultPage() {}});}}- className="bg-white rounded-lg border border-gray-200"+ className="rounded-lg border border-gray-200 bg-white"><div className="flex flex-col space-y-3 p-10"><h2 className="text-xl font-medium">Landing Page</h2>- <div className="h-7 flex items-center space-x-1">- <p className="text-gray-500 text-sm">+ <div className="flex h-7 items-center space-x-1">+ <p className="text-sm text-gray-500">Configure a page to redirect visitors when they land on</p><ahref={`https://${domain}`}target="_blank"rel="noreferrer"- className="text-blue-800 font-semibold text-sm hover:text-black transition-all"+ className="text-sm font-semibold text-blue-800 transition-all hover:text-black">{domain}</a>{domainVerified && (- <div className="flex items-center space-x-1 rounded-md bg-gray-100 px-2 py-0.5 cursor-default">- <Chart className="w-4 h-4" />+ <div className="flex cursor-default items-center space-x-1 rounded-md bg-gray-100 px-2 py-0.5">+ <Chart className="h-4 w-4" /><p className="text-sm text-gray-500">{isValidating || !clicks ? (<LoadingDots color="#71717A" />@@ -88,7 +88,7 @@ export default function DefaultPage() {placeholder="https://yourdomain.com"requireddefaultValue={rootDomain}- className="border border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500 w-full max-w-md rounded-md focus:outline-none text-sm"+ className="w-full max-w-md rounded-md border border-gray-300 text-sm text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500"/>) : (<Tooltip@@ -108,7 +108,7 @@ export default function DefaultPage() {)}>- <div className="text-left border border-gray-300 text-gray-300 text-sm px-3 py-2 w-full max-w-md cursor-not-allowed rounded-md">+ <div className="w-full max-w-md cursor-not-allowed rounded-md border border-gray-300 px-3 py-2 text-left text-sm text-gray-300">https://yourdomain.com</div></Tooltip>@@ -117,15 +117,15 @@ export default function DefaultPage() {<div className="border-b border-gray-200" />- <div className="px-10 py-4 flex justify-end items-center">+ <div className="flex items-center justify-end px-10 py-4">{domainVerified && plan !== "Free" ? (<buttondisabled={saving}className={`${saving- ? "cursor-not-allowed bg-gray-100 border-gray-200"- : "bg-black border-black hover:text-black hover:bg-white"- } text-white h-9 w-32 text-sm border rounded-md focus:outline-none transition-all ease-in-out duration-150`}+ ? "cursor-not-allowed border-gray-200 bg-gray-100"+ : "border-black bg-black hover:bg-white hover:text-black"+ } h-9 w-32 rounded-md border text-sm text-white transition-all duration-150 ease-in-out focus:outline-none`}>{saving ? <LoadingDots /> : "Save Changes"}</button>@@ -147,7 +147,7 @@ export default function DefaultPage() {)}>- <div className="cursor-not-allowed bg-gray-100 border-gray-200 text-gray-300 h-9 w-32 flex items-center justify-center text-sm border rounded-md">+ <div className="flex h-9 w-32 cursor-not-allowed items-center justify-center rounded-md border border-gray-200 bg-gray-100 text-sm text-gray-300">Save Changes</div></Tooltip>diff --git a/components/app/settings/plan-usage.tsx b/components/app/settings/plan-usage.tsxindex ff28a0634b..feef0d09f1 100644--- a/components/app/settings/plan-usage.tsx+++ b/components/app/settings/plan-usage.tsx@@ -43,26 +43,26 @@ export default function PlanUsage() {const { UpgradePlanModal, setShowUpgradePlanModal } = useUpgradePlanModal();return (- <div className="bg-white rounded-lg border border-gray-200">+ <div className="rounded-lg border border-gray-200 bg-white"><UpgradePlanModal /><div className="flex flex-col space-y-3 p-10"><h2 className="text-xl font-medium">Plan & Usage</h2>- <p className="text-gray-500 text-sm">+ <p className="text-sm text-gray-500">You are currently on the{" "}{plan ? (<spanclassName={`capitalize ${plan.startsWith("Enterprise")- ? "bg-violet-600 border-violet-600 text-white"+ ? "border-violet-600 bg-violet-600 text-white": plan.startsWith("Pro")- ? "bg-blue-500 border-blue-500 text-white"- : "bg-black border-black text-white"- } border rounded-full px-2 py-0.5 text-xs font-medium`}+ ? "border-blue-500 bg-blue-500 text-white"+ : "border-black bg-black text-white"+ } rounded-full border px-2 py-0.5 text-xs font-medium`}>{plan}</span>) : (- <span className="bg-gray-200 text-gray-200 rounded-full px-2 py-0.5 text-xs">+ <span className="rounded-full bg-gray-200 px-2 py-0.5 text-xs text-gray-200">load</span>)}{" "}@@ -80,13 +80,13 @@ export default function PlanUsage() {</p></div><div className="border-b border-gray-200" />- <div className="grid grid-cols-1 sm:grid-cols-2 divide-y sm:divide-y-0 sm:divide-x divide-gray-200">- <div className="p-10 flex flex-col space-y-2">+ <div className="grid grid-cols-1 divide-y divide-gray-200 sm:grid-cols-2 sm:divide-y-0 sm:divide-x">+ <div className="flex flex-col space-y-2 p-10"><div className="flex items-center"><h3 className="font-medium">Total Link Clicks</h3><Tooltip content="Number of billable link clicks across all your projects.">- <div className="flex justify-center w-8 h-4">- <QuestionCircle className="w-4 h-4 text-gray-600" />+ <div className="flex h-4 w-8 justify-center">+ <QuestionCircle className="h-4 w-4 text-gray-600" /></div></Tooltip></div>@@ -96,9 +96,9 @@ export default function PlanUsage() {{((usage / usageLimit) * 100).toFixed(1)}%)</p>) : (- <div className="h-5 w-32 bg-gray-200 rounded-md animate-pulse" />+ <div className="h-5 w-32 animate-pulse rounded-md bg-gray-200" />)}- <div className="bg-gray-200 rounded-full h-3 w-full overflow-hidden">+ <div className="h-3 w-full overflow-hidden rounded-full bg-gray-200"><motion.divinitial={{ width: 0 }}animate={{@@ -107,38 +107,38 @@ export default function PlanUsage() {transition={{ duration: 0.5, type: "spring" }}className={`${usage > usageLimit ? "bg-red-500" : "bg-blue-500"- } rounded-full h-3`}+ } h-3 rounded-full`}/></div></div><div className="p-10"><h3 className="font-medium">Number of Projects</h3>- <div className="flex items-center mt-4">+ <div className="mt-4 flex items-center">{projectCount ? (<p className="text-2xl font-semibold text-black">{nFormatter(projectCount)}</p>) : (- <div className="w-8 h-8 bg-gray-200 rounded-md animate-pulse" />+ <div className="h-8 w-8 animate-pulse rounded-md bg-gray-200" />)}- <Divider className="w-8 h-8 text-gray-500" />- <Infinity className="w-8 h-8 text-gray-500" />+ <Divider className="h-8 w-8 text-gray-500" />+ <Infinity className="h-8 w-8 text-gray-500" /></div></div></div><div className="border-b border-gray-200" />- <div className="px-10 py-4 flex flex-col sm:flex-row space-y-3 sm:space-y-0 justify-between items-center text-center sm:text-left">+ <div className="flex flex-col items-center justify-between space-y-3 px-10 py-4 text-center sm:flex-row sm:space-y-0 sm:text-left">{plan ? (plan === "Pro 1M" ? (- <p className="text-gray-500 text-sm">+ <p className="text-sm text-gray-500">For higher limits, contact us to upgrade to the Enterprise plan.</p>) : (- <p className="text-gray-500 text-sm">+ <p className="text-sm text-gray-500">{plan === "Free" ? "For " : "To "}<Tooltip content={<ProTiers usageLimit={usageLimit} />}>{/* TODO - a simpler version of the homepage slider */}- <span className="font-medium text-gray-700 underline underline-offset-2 cursor-default hover:text-black">+ <span className="cursor-default font-medium text-gray-700 underline underline-offset-2 hover:text-black">{plan === "Free"? "increased limits": "change your monthly click limits"}@@ -150,7 +150,7 @@ export default function PlanUsage() {</p>)) : (- <div className="h-3 w-28 bg-gray-200 rounded-full animate-pulse" />+ <div className="h-3 w-28 animate-pulse rounded-full bg-gray-200" />)}{plan ? (plan === "Free" ? (@@ -158,7 +158,7 @@ export default function PlanUsage() {onClick={() => {setShowUpgradePlanModal(true);}}- className="bg-blue-500 text-white border-blue-500 hover:text-blue-500 hover:bg-white h-9 w-24 text-sm border rounded-md focus:outline-none transition-all ease-in-out duration-150"+ className="h-9 w-24 rounded-md border border-blue-500 bg-blue-500 text-sm text-white transition-all duration-150 ease-in-out hover:bg-white hover:text-blue-500 focus:outline-none">Upgrade</button>@@ -167,7 +167,7 @@ export default function PlanUsage() {{plan === "Pro 1M" && (<ahref="mailto:[email protected]?subject=Upgrade%20to%20Enterprise%20Plan"- className="flex justify-center items-center bg-violet-600 text-white border-violet-600 hover:text-violet-600 hover:bg-white h-9 w-24 text-sm border rounded-md focus:outline-none transition-all ease-in-out duration-150"+ className="flex h-9 w-24 items-center justify-center rounded-md border border-violet-600 bg-violet-600 text-sm text-white transition-all duration-150 ease-in-out hover:bg-white hover:text-violet-600 focus:outline-none">Contact Us</a>@@ -190,16 +190,16 @@ export default function PlanUsage() {disabled={clicked}className={`${clicked- ? "cursor-not-allowed bg-gray-100 border-gray-200"- : "bg-black text-white border-black hover:text-black hover:bg-white"- } h-9 w-40 text-sm border rounded-md focus:outline-none transition-all ease-in-out duration-150`}+ ? "cursor-not-allowed border-gray-200 bg-gray-100"+ : "border-black bg-black text-white hover:bg-white hover:text-black"+ } h-9 w-40 rounded-md border text-sm transition-all duration-150 ease-in-out focus:outline-none`}>{clicked ? <LoadingDots /> : "Manage Subscription"}</button></div>)) : (- <div className="h-9 w-24 bg-gray-200 rounded-md animate-pulse" />+ <div className="h-9 w-24 animate-pulse rounded-md bg-gray-200" />)}</div></div>diff --git a/components/home/demo.tsx b/components/home/demo.tsxindex 3385b9cc47..11de540c71 100644--- a/components/home/demo.tsx+++ b/components/home/demo.tsx@@ -16,7 +16,7 @@ const Demo = () => {const [showDefaultLink, setShowDefaultLink] = useState(true);return (- <div className="max-w-md w-full mx-auto sm:px-0 px-2.5">+ <div className="mx-auto w-full max-w-md px-2.5 sm:px-0"><Toaster /><formonSubmit={async (e) => {@@ -49,17 +49,17 @@ const Demo = () => {}><div className="relative flex items-center">- <div className="shadow-lg bg-white border focus:border-black block w-full p-2 text-sm text-gray-400 border-gray-200 rounded-md pl-3 pr-12">+ <div className="block w-full rounded-md border border-gray-200 bg-white p-2 pl-3 pr-12 text-sm text-gray-400 shadow-lg focus:border-black">Shorten your link</div>- <div className="cursor-not-allowed absolute inset-y-0 right-0 w-10 flex justify-center items-center my-1.5 mr-1.5 border border-gray-200 rounded text-sm font-sans font-medium text-gray-400">+ <div className="absolute inset-y-0 right-0 my-1.5 mr-1.5 flex w-10 cursor-not-allowed items-center justify-center rounded border border-gray-200 font-sans text-sm font-medium text-gray-400"><p>↵</p></div></div></Tooltip>) : (<div className="relative flex items-center">- <Link className="absolute inset-y-0 left-0 w-5 my-2 ml-3 text-gray-400" />+ <Link className="absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400" /><inputtype="url"placeholder="Shorten your link"@@ -68,7 +68,7 @@ const Demo = () => {setUrl((e.target as HTMLInputElement).value);}}required- className="peer shadow-lg focus:outline-none focus:ring-0 bg-white border focus:border-black block w-full p-2 text-sm border-gray-200 rounded-md pl-10 pr-12"+ className="peer block w-full rounded-md border border-gray-200 bg-white p-2 pl-10 pr-12 text-sm shadow-lg focus:border-black focus:outline-none focus:ring-0"/><buttontype="submit"@@ -76,8 +76,8 @@ const Demo = () => {className={`${saving? "cursor-not-allowed"- : "hover:border-gray-700 peer-focus:border-gray-700 hover:text-gray-700 peer-focus:text-gray-700"- } absolute inset-y-0 right-0 w-10 flex justify-center items-center my-1.5 mr-1.5 border border-gray-200 rounded text-sm font-sans font-medium text-gray-400`}+ : "hover:border-gray-700 hover:text-gray-700 peer-focus:border-gray-700 peer-focus:text-gray-700"+ } absolute inset-y-0 right-0 my-1.5 mr-1.5 flex w-10 items-center justify-center rounded border border-gray-200 font-sans text-sm font-medium text-gray-400`}>{saving ? <LoadingDots color="#e5e7eb" /> : <p>↵</p>}</button>@@ -97,7 +97,7 @@ const Demo = () => {},},}}- className="grid gap-2 mt-3"+ className="mt-3 grid gap-2">{showDefaultLink && (<LinkCard@@ -125,14 +125,14 @@ const Demo = () => {))}<motion.livariants={FRAMER_MOTION_LIST_ITEM_VARIANTS}- className="border border-gray-200 bg-white shadow-lg p-3 rounded-md text-gray-500 text-sm"+ className="rounded-md border border-gray-200 bg-white p-3 text-sm text-gray-500 shadow-lg">Note: Public links will be automatically-deleted after 30 minutes.{" "}<ahref="https://app.dub.sh/register"target="_blank"rel="noreferrer"- className="text-gray-700 hover:text-black font-medium underline transition-all"+ className="font-medium text-gray-700 underline transition-all hover:text-black">Create a free account</a>{" "}diff --git a/components/home/features.tsx b/components/home/features.tsxindex c9a73bbc2a..13978ce54b 100644--- a/components/home/features.tsx+++ b/components/home/features.tsx@@ -15,31 +15,31 @@ const Features = ({ stars }: { stars: number }) => {return (<div><MaxWidthWrapper className="py-20">- <div className="max-w-sm sm:max-w-md mx-auto text-center">- <h2 className="text-4xl sm:text-5xl leading-tight sm:leading-tight font-display font-extrabold text-black">+ <div className="mx-auto max-w-sm text-center sm:max-w-md">+ <h2 className="font-display text-4xl font-extrabold leading-tight text-black sm:text-5xl sm:leading-tight">Fast.{" "}- <span className="text-transparent bg-clip-text bg-gradient-to-r from-purple-600 to-pink-600">+ <span className="bg-gradient-to-r from-purple-600 to-pink-600 bg-clip-text text-transparent">Powerful.</span>{" "}Open source.</h2>- <p className="text-gray-600 sm:text-lg mt-5">+ <p className="mt-5 text-gray-600 sm:text-lg">With Dub, you get the best of both worlds: a powerful link shortenerwith built-in analytics, and the freedom to host it yourself.</p></div>{/* Analytics */}- <div className="flex lg:space-x-10 flex-col-reverse lg:flex-row items-center my-20">- <div className="flex flex-col space-y-5 my-10 lg:my-0">- <div className="flex items-center justify-center w-20 h-20 rounded-full bg-gradient-to-r from-purple-600 to-pink-600">- <Chart className="w-7 h-7 text-white" />+ <div className="my-20 flex flex-col-reverse items-center lg:flex-row lg:space-x-10">+ <div className="my-10 flex flex-col space-y-5 lg:my-0">+ <div className="flex h-20 w-20 items-center justify-center rounded-full bg-gradient-to-r from-purple-600 to-pink-600">+ <Chart className="h-7 w-7 text-white" /></div>- <h3 className="text-3xl font-bold font-display text-black mt-5">+ <h3 className="mt-5 font-display text-3xl font-bold text-black">Built-in analytics</h3>- <p className="text-gray-500 mt-3">+ <p className="mt-3 text-gray-500">Dub provides powerful analytics for your links, includinggeolocation, device, and browser information.</p>@@ -49,7 +49,7 @@ const Features = ({ stars }: { stars: number }) => {shallowscroll={false}>- <a className="rounded-full px-4 py-1.5 bg-black text-white hover:bg-white hover:text-black text-sm border border-black block max-w-fit transition-all">+ <a className="block max-w-fit rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black">View demo</a></Link>@@ -65,7 +65,7 @@ const Features = ({ stars }: { stars: number }) => {</div>{/* Custom Domains */}- <div className="flex lg:space-x-16 flex-col lg:flex-row items-center my-20">+ <div className="my-20 flex flex-col items-center lg:flex-row lg:space-x-16"><Imagesrc="/_static/landing/domains.png"alt="Custom domains"@@ -73,21 +73,21 @@ const Features = ({ stars }: { stars: number }) => {height={646}className="w-full max-w-[635px] rounded-2xl border border-gray-200 shadow-lg"/>- <div className="flex flex-col space-y-5 my-10 lg:my-0">- <div className="flex items-center justify-center w-20 h-20 rounded-full bg-gradient-to-r from-purple-600 to-pink-600">- <Airplay className="w-7 h-7 text-white" />+ <div className="my-10 flex flex-col space-y-5 lg:my-0">+ <div className="flex h-20 w-20 items-center justify-center rounded-full bg-gradient-to-r from-purple-600 to-pink-600">+ <Airplay className="h-7 w-7 text-white" /></div>- <h3 className="text-3xl font-bold font-display text-black mt-5">+ <h3 className="mt-5 font-display text-3xl font-bold text-black">Free custom domains</h3>- <p className="text-gray-500 mt-3">+ <p className="mt-3 text-gray-500">At Dub, we believe that you should be able to use your own domainwhen building your brand. That's why we offer free custom domainson all plans.</p><Link href="https://app.dub.sh">- <a className="rounded-full px-4 py-1.5 bg-black text-white hover:bg-white hover:text-black text-sm border border-black block max-w-fit transition-all">+ <a className="block max-w-fit rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black">Create your project</a></Link>@@ -95,16 +95,16 @@ const Features = ({ stars }: { stars: number }) => {</div>{/* QR Code */}- <div className="flex lg:space-x-10 flex-col-reverse lg:flex-row items-center my-20">- <div className="flex flex-col space-y-5 my-10 lg:my-0 max-w-md">- <div className="flex items-center justify-center w-20 h-20 rounded-full bg-gradient-to-r from-purple-600 to-pink-600">- <QR className="w-7 h-7 text-white" />+ <div className="my-20 flex flex-col-reverse items-center lg:flex-row lg:space-x-10">+ <div className="my-10 flex max-w-md flex-col space-y-5 lg:my-0">+ <div className="flex h-20 w-20 items-center justify-center rounded-full bg-gradient-to-r from-purple-600 to-pink-600">+ <QR className="h-7 w-7 text-white" /></div>- <h3 className="text-3xl font-bold font-display text-black mt-5">+ <h3 className="mt-5 font-display text-3xl font-bold text-black">QR code generator</h3>- <p className="text-gray-500 mt-3">+ <p className="mt-3 text-gray-500">We also believe QR codes and short links are like peas in a pod.That's why we've built a QR code generator right into Dub.</p>@@ -112,7 +112,7 @@ const Features = ({ stars }: { stars: number }) => {href="https://dub.sh/qrcode"target="_blank"rel="noreferrer"- className="rounded-full px-4 py-1.5 bg-black text-white hover:bg-white hover:text-black text-sm border border-black block max-w-fit transition-all"+ className="block max-w-fit rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black">Watch the demo</a>@@ -128,35 +128,35 @@ const Features = ({ stars }: { stars: number }) => {</div>{/* Open Source */}- <div className="flex lg:space-x-16 flex-col lg:flex-row items-center my-20">- <div className="flex items-center justify-center rounded-2xl w-full max-w-[700px] bg-gray-900 h-96 shadow-lg">+ <div className="my-20 flex flex-col items-center lg:flex-row lg:space-x-16">+ <div className="flex h-96 w-full max-w-[700px] items-center justify-center rounded-2xl bg-gray-900 shadow-lg"><div className="flex items-center"><ahref="https://github.com/steven-tey/dub"target="_blank"rel="noreferrer"- className="flex items-center space-x-2 p-4 h-10 rounded-md bg-gray-800 border border-gray-600"+ className="flex h-10 items-center space-x-2 rounded-md border border-gray-600 bg-gray-800 p-4">- <Github className="text-white w-5 h-5" />- <p className="text-white font-medium">Star</p>+ <Github className="h-5 w-5 text-white" />+ <p className="font-medium text-white">Star</p></a><div className={styles.label}><CountingNumbersvalue={stars}- className="text-white font-medium font-display"+ className="font-display font-medium text-white"/></div></div></div>- <div className="flex flex-col space-y-5 my-10 lg:my-0">- <div className="flex items-center justify-center w-20 h-20 rounded-full bg-gradient-to-r from-purple-600 to-pink-600">- <UploadCloud className="w-7 h-7 text-white" />+ <div className="my-10 flex flex-col space-y-5 lg:my-0">+ <div className="flex h-20 w-20 items-center justify-center rounded-full bg-gradient-to-r from-purple-600 to-pink-600">+ <UploadCloud className="h-7 w-7 text-white" /></div>- <h3 className="text-3xl font-bold font-display text-black mt-5">+ <h3 className="mt-5 font-display text-3xl font-bold text-black">Proudly open source</h3>- <p className="text-gray-500 mt-3">+ <p className="mt-3 text-gray-500">Our source code is available on GitHub - feel free to read,review, or contribute to it however you want!</p>@@ -164,7 +164,7 @@ const Features = ({ stars }: { stars: number }) => {href="https://github.com/steven-tey/dub"target="_blank"rel="noreferrer"- className="rounded-full px-4 py-1.5 bg-black text-white hover:bg-white hover:text-black text-sm border border-black block max-w-fit transition-all"+ className="block max-w-fit rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black">Star on GitHub</a>diff --git a/components/home/globe.tsx b/components/home/globe.tsxindex 6ad32c82c2..ab8615b490 100644--- a/components/home/globe.tsx+++ b/components/home/globe.tsx@@ -58,7 +58,7 @@ export default function Globe({ domain }: { domain?: string }) {<GlobeAnimation domain={domain} markers={markers} />)}{showFallback && (- <div className="w-full h-full flex items-center justify-center">+ <div className="flex h-full w-full items-center justify-center"><videoautoPlaysrc="https://res.cloudinary.com/dubdotsh/video/upload/v1664203052/globe-animation-fallback.mp4"@@ -142,21 +142,21 @@ const GlobeAnimation = ({initial={{ scale: 0 }}animate={{ scale: 1 }}exit={{ scale: 0 }}- className="group absolute left-0 right-0 mx-auto z-10 max-w-sm px-5 py-4 sm:py-7 rounded-md bg-white border border-gray-200 shadow-md bg-opacity-90 backdrop-blur-md"+ className="group absolute left-0 right-0 z-10 mx-auto max-w-sm rounded-md border border-gray-200 bg-white bg-opacity-90 px-5 py-4 shadow-md backdrop-blur-md sm:py-7"><button- className="visible sm:invisible group-hover:visible absolute top-0 right-0 p-1 m-3 rounded-full float-right group hover:bg-gray-100 focus:outline-none active:scale-75 transition-all duration-75"+ className="group visible absolute top-0 right-0 float-right m-3 rounded-full p-1 transition-all duration-75 hover:bg-gray-100 focus:outline-none active:scale-75 group-hover:visible sm:invisible"autoFocus={false}onClick={() => setShowModal(false)}><span className="sr-only">Spin Globe</span>- <X className="w-4 h-4" />+ <X className="h-4 w-4" /></button>- <Drag className="h-12 w-12 mx-auto mb-2 sm:mb-4 text-gray-700" />- <p className="text-center text-gray-700 text-sm sm:text-base">+ <Drag className="mx-auto mb-2 h-12 w-12 text-gray-700 sm:mb-4" />+ <p className="text-center text-sm text-gray-700 sm:text-base">This map shows the locations of the last 50 clicks on{" "}<a- className="text-blue-800 font-semibold"+ className="font-semibold text-blue-800"href={domain ? `https://${domain}` : "https://dub.sh/github"}target="_blank"rel="noreferrer"@@ -172,7 +172,7 @@ const GlobeAnimation = ({shallowscroll={false}>- <a className="rounded-full px-4 py-1.5 bg-black text-white hover:bg-white hover:text-black text-sm border border-black mx-auto mt-2 sm:mt-4 block max-w-fit">+ <a className="mx-auto mt-2 block max-w-fit rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white hover:bg-white hover:text-black sm:mt-4">View all stats</a></Link>diff --git a/components/home/hero.tsx b/components/home/hero.tsxindex a7ee9b7758..19f84f3853 100644--- a/components/home/hero.tsx+++ b/components/home/hero.tsx@@ -3,44 +3,44 @@ import { Github, Twitter } from "@/components/shared/icons";const Hero = () => {return (- <div className="max-w-md sm:max-w-lg mt-20 mb-10 text-center mx-auto sm:px-0 px-2.5">+ <div className="mx-auto mt-20 mb-10 max-w-md px-2.5 text-center sm:max-w-lg sm:px-0"><ahref="https://dub.sh/launch"target="_blank"rel="noreferrer"- className="bg-blue-100 hover:bg-blue-200 flex justify-center items-center space-x-2 max-w-fit px-7 py-2 mx-auto rounded-full overflow-hidden transition-all"+ className="mx-auto flex max-w-fit items-center justify-center space-x-2 overflow-hidden rounded-full bg-blue-100 px-7 py-2 transition-all hover:bg-blue-200">- <Twitter className="w-5 h-5 text-[#1d9bf0]" />- <p className="text-[#1d9bf0] font-semibold text-sm">+ <Twitter className="h-5 w-5 text-[#1d9bf0]" />+ <p className="text-sm font-semibold text-[#1d9bf0]">Introducing Dub.sh</p></a>- <h1 className="text-5xl sm:text-6xl leading-tight sm:leading-tight font-display font-extrabold text-black mt-5">+ <h1 className="mt-5 font-display text-5xl font-extrabold leading-tight text-black sm:text-6xl sm:leading-tight">Open Source<br />- <span className="text-transparent bg-clip-text bg-gradient-to-r from-amber-500 via-orange-600 to-yellow-500">+ <span className="bg-gradient-to-r from-amber-500 via-orange-600 to-yellow-500 bg-clip-text text-transparent">Bitly Alternative</span></h1>- <p className="text-gray-600 text-xl sm:text-2xl mt-5">+ <p className="mt-5 text-xl text-gray-600 sm:text-2xl">Dub is an open-source link shortener with built-in analytics and freecustom domains.</p>- <div className="mt-10 flex space-x-4 max-w-fit mx-auto">+ <div className="mx-auto mt-10 flex max-w-fit space-x-4"><Link href="https://app.dub.sh/register">- <a className="py-2 px-5 bg-black hover:bg-white shadow-lg rounded-full border border-black text-sm text-white hover:text-black transition-all">+ <a className="rounded-full border border-black bg-black py-2 px-5 text-sm text-white shadow-lg transition-all hover:bg-white hover:text-black">Start For Free</a></Link><a- className="flex justify-center items-center space-x-2 py-2 px-5 bg-white shadow-lg rounded-full border border-gray-300 hover:border-gray-800 transition-all"+ className="flex items-center justify-center space-x-2 rounded-full border border-gray-300 bg-white py-2 px-5 shadow-lg transition-all hover:border-gray-800"href="https://dub.sh/github"target="_blank"rel="noreferrer">- <Github className="w-5 h-5 text-black" />+ <Github className="h-5 w-5 text-black" /><p className="text-sm">Star on GitHub</p></a></div>diff --git a/components/home/link-card.tsx b/components/home/link-card.tsxindex bc793b33e0..542ffc174d 100644--- a/components/home/link-card.tsx+++ b/components/home/link-card.tsx@@ -124,19 +124,19 @@ export default function LinkCard({onDrag={() => setVelocity(x.getVelocity())}onDragEnd={() => flyAway(500)}whileTap={{ scale: 1.05 }}- className="cursor-grab active:cursor-grabbing flex items-center space-x-3 border border-gray-200 hover:border-black shadow-lg bg-white p-3 max-w-md rounded-md transition-[border-color]"+ className="flex max-w-md cursor-grab items-center space-x-3 rounded-md border border-gray-200 bg-white p-3 shadow-lg transition-[border-color] hover:border-black active:cursor-grabbing"><BlurImagesrc={`https://www.google.com/s2/favicons?sz=64&domain_url=${apexDomain}`}alt={apexDomain}- className="w-10 h-10 rounded-full pointer-events-none"+ className="pointer-events-none h-10 w-10 rounded-full"width={20}height={20}/><div>- <div className="flex items-center space-x-2 mb-1">+ <div className="mb-1 flex items-center space-x-2"><a- className="text-blue-800 font-semibold"+ className="font-semibold text-blue-800"href={linkConstructor({ key })}target="_blank"rel="noreferrer"@@ -146,10 +146,10 @@ export default function LinkCard({<CopyButton url={linkConstructor({ key })} /><buttononClick={() => setShowLinkQRModal(true)}- className="group p-1.5 rounded-full bg-gray-100 hover:bg-blue-100 hover:scale-105 active:scale-95 transition-all duration-75"+ className="group rounded-full bg-gray-100 p-1.5 transition-all duration-75 hover:scale-105 hover:bg-blue-100 active:scale-95"><span className="sr-only">Copy</span>- <QR className="text-gray-700 group-hover:text-blue-800 transition-all" />+ <QR className="text-gray-700 transition-all group-hover:text-blue-800" /></button><Linkhref={{ pathname: "/", query: { key } }}@@ -157,20 +157,20 @@ export default function LinkCard({shallowscroll={false}>- <a className="flex items-center space-x-1 rounded-md bg-gray-100 px-2 py-0.5 hover:scale-105 active:scale-95 transition-all duration-75 text-gray-700">- <Chart className="w-4 h-4" />+ <a className="flex items-center space-x-1 rounded-md bg-gray-100 px-2 py-0.5 text-gray-700 transition-all duration-75 hover:scale-105 active:scale-95">+ <Chart className="h-4 w-4" /><p className="text-sm">{isValidating ? (<LoadingDots color="#71717A" />) : (nFormatter(clicks))}- <span className="hidden sm:inline-block ml-1">clicks</span>+ <span className="ml-1 hidden sm:inline-block">clicks</span></p></a></Link></div>- <p className="text-sm text-gray-500 truncate w-72">{url}</p>+ <p className="w-72 truncate text-sm text-gray-500">{url}</p></div></motion.div></motion.li>diff --git a/components/home/logos.tsx b/components/home/logos.tsxindex b9bb8269b6..85338d74ca 100644--- a/components/home/logos.tsx+++ b/components/home/logos.tsx@@ -4,10 +4,10 @@ import MaxWidthWrapper from "../shared/max-width-wrapper";export default function Logos() {return (<div className="mt-20">- <p className="text-gray-600 text-lg text-center">+ <p className="text-center text-lg text-gray-600">Giving superpowers to marketing teams at world-class companies</p>- <div className="w-full max-w-screen-lg px-5 sm:px-0 mx-auto mt-8 grid grid-cols-2 sm:grid-cols-4 gap-5 items-center">+ <div className="mx-auto mt-8 grid w-full max-w-screen-lg grid-cols-2 items-center gap-5 px-5 sm:grid-cols-4 sm:px-0"><BlurImagesrc="/_static/clients/vercel.svg"alt="Vercel"diff --git a/components/home/placeholder-card.tsx b/components/home/placeholder-card.tsxindex 747cedf7d4..83bdd0e56d 100644--- a/components/home/placeholder-card.tsx+++ b/components/home/placeholder-card.tsx@@ -5,16 +5,16 @@ export default function PlaceholderCard() {return (<motion.livariants={FRAMER_MOTION_LIST_ITEM_VARIANTS}- className="flex items-center border border-gray-200 bg-white shadow-lg p-3 rounded-md"+ className="flex items-center rounded-md border border-gray-200 bg-white p-3 shadow-lg">- <div className="w-10 h-10 rounded-full mr-2 bg-gray-200" />+ <div className="mr-2 h-10 w-10 rounded-full bg-gray-200" /><div>- <div className="flex items-center space-x-2 mb-2.5">- <div className="w-28 h-6 rounded-md bg-gray-200" />- <div className="w-6 h-6 rounded-full bg-gray-200" />- <div className="w-20 h-6 rounded-md bg-gray-200" />+ <div className="mb-2.5 flex items-center space-x-2">+ <div className="h-6 w-28 rounded-md bg-gray-200" />+ <div className="h-6 w-6 rounded-full bg-gray-200" />+ <div className="h-6 w-20 rounded-md bg-gray-200" /></div>- <div className="w-72 h-4 rounded-md bg-gray-200" />+ <div className="h-4 w-72 rounded-md bg-gray-200" /></div></motion.li>);diff --git a/components/home/pricing.tsx b/components/home/pricing.tsxindex 6f64182f27..89cac23062 100644--- a/components/home/pricing.tsx+++ b/components/home/pricing.tsx@@ -98,20 +98,20 @@ const Pricing = () => {return (<MaxWidthWrapper className="mt-20 mb-40 text-center">- <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">+ <div id="pricing" className="mx-auto my-10 sm:max-w-lg">+ <h2 className="font-display text-4xl font-extrabold text-black sm:text-5xl">Simple,{" "}- <span className="text-transparent bg-clip-text bg-gradient-to-r from-blue-600 to-cyan-600">+ <span className="bg-gradient-to-r from-blue-600 to-cyan-600 bg-clip-text text-transparent">usage-based</span>{" "}pricing</h2>- <p className="text-gray-600 sm:text-lg mt-5">+ <p className="mt-5 text-gray-600 sm:text-lg">Start for free, no credit card required. Upgrade anytime.</p></div>- <div className="relative flex space-x-2 items-center max-w-fit mx-auto mb-14">+ <div className="relative mx-auto mb-14 flex max-w-fit items-center space-x-2"><p className="text-gray-600">Billed Monthly</p><Confettiactive={period === "yearly"}@@ -124,39 +124,39 @@ const Pricing = () => {thumbTranslate="translate-x-6"/><p className="text-gray-600">Billed Annually</p>- <span className="absolute -top-8 sm:-top-2 -right-12 sm:-right-36 rounded-full bg-purple-200 text-purple-700 text-sm px-3 py-1">+ <span className="absolute -top-8 -right-12 rounded-full bg-purple-200 px-3 py-1 text-sm text-purple-700 sm:-top-2 sm:-right-36">🎁 2 months FREE</span></div>- <div className="grid grid-cols-1 lg:grid-cols-3 gap-10">+ <div className="grid grid-cols-1 gap-10 lg:grid-cols-3">{pricingItems.map(({ plan, tagline, clicksLimit, features, cta, ctaLink }) => (<divkey={plan}- className={`relative bg-white rounded-2xl ${+ className={`relative rounded-2xl bg-white ${plan === "Pro"? "border-2 border-blue-600 shadow-blue-200": "border border-gray-200"} shadow-lg`}>{plan === "Pro" && (- <div className="absolute -top-5 left-0 right-0 mx-auto bg-gradient-to-r from-blue-600 to-cyan-600 text-white text-sm font-medium w-32 px-3 py-2 rounded-full">+ <div className="absolute -top-5 left-0 right-0 mx-auto w-32 rounded-full bg-gradient-to-r from-blue-600 to-cyan-600 px-3 py-2 text-sm font-medium text-white">Popular</div>)}<div className="p-5">- <h3 className="text-center text-3xl font-bold font-display my-3">+ <h3 className="my-3 text-center font-display text-3xl font-bold">{plan}</h3><p className="text-gray-500">{tagline}</p>{plan === "Enterprise" ? (- <p className="my-5 text-6xl font-display font-semibold">+ <p className="my-5 font-display text-6xl font-semibold">Custom</p>) : (<div className="my-5 flex justify-center">- <p className="text-6xl font-display font-semibold">+ <p className="font-display text-6xl font-semibold">${plan === "Pro"? period === "yearly"@@ -173,21 +173,21 @@ const Pricing = () => {per month{period === "yearly" ? ", billed yearly" : ""}</p></div>- <div className="border-t border-b border-gray-200 flex items-center justify-center h-20 bg-gray-50">+ <div className="flex h-20 items-center justify-center border-t border-b border-gray-200 bg-gray-50">{plan === "Pro" ? (- <div className="flex flex-col space-y-1 items-center">+ <div className="flex flex-col items-center space-y-1"><Slidervalue={tier}setValue={setTier}maxValue={PRO_TIERS.length - 1}/><div className="flex items-center">- <p className="text-gray-600 text-sm">+ <p className="text-sm text-gray-600">Up to {nFormatter(PRO_TIERS[tier].quota)} link clicks/mo</p><Tooltip content="If you exceed your monthly usage, your existing links will still work, but you need to upgrade to view their stats/add more links. Link clicks are shared across all projects.">- <div className="flex justify-center w-6 h-4">- <QuestionCircle className="w-4 h-4 text-gray-600" />+ <div className="flex h-4 w-6 justify-center">+ <QuestionCircle className="h-4 w-4 text-gray-600" /></div></Tooltip></div>@@ -196,21 +196,21 @@ const Pricing = () => {<div className="flex items-center"><p className="text-gray-600">{clicksLimit}</p><Tooltip content="If you exceed your monthly usage, your existing links will still work, but you need to upgrade to view their stats/add more links. Link clicks are shared across all projects.">- <div className="flex justify-center w-8 h-4">- <QuestionCircle className="w-4 h-4 text-gray-600" />+ <div className="flex h-4 w-8 justify-center">+ <QuestionCircle className="h-4 w-4 text-gray-600" /></div></Tooltip></div>)}</div>- <ul className="px-10 my-10 space-y-5">+ <ul className="my-10 space-y-5 px-10">{features.map(({ text, footnote, negative }) => (<li key={text} className="flex space-x-5"><div className="flex-shrink-0">{negative ? (- <XCircleFill className="w-6 h-6 text-gray-300" />+ <XCircleFill className="h-6 w-6 text-gray-300" />) : (- <CheckCircleFill className="w-6 h-6 text-green-500" />+ <CheckCircleFill className="h-6 w-6 text-green-500" />)}</div>{footnote ? (@@ -223,8 +223,8 @@ const Pricing = () => {{text}</p><Tooltip content={footnote}>- <div className="flex justify-center w-8 h-4">- <QuestionCircle className="w-4 h-4 text-gray-600" />+ <div className="flex h-4 w-8 justify-center">+ <QuestionCircle className="h-4 w-4 text-gray-600" /></div></Tooltip></div>@@ -244,9 +244,9 @@ const Pricing = () => {<aclassName={`${plan === "Pro"- ? "bg-gradient-to-r from-blue-600 to-cyan-600 hover:bg-white text-white hover:text-transparent hover:bg-clip-text border border-transparent hover:border-blue-700"- : "bg-black text-white hover:bg-white hover:text-black border border-gray-200 hover:border-black"- } block w-full py-2 rounded-full font-medium transition-all`}+ ? "border border-transparent bg-gradient-to-r from-blue-600 to-cyan-600 text-white hover:border-blue-700 hover:bg-white hover:bg-clip-text hover:text-transparent"+ : "border border-gray-200 bg-black text-white hover:border-black hover:bg-white hover:text-black"+ } block w-full rounded-full py-2 font-medium transition-all`}>{cta}</a>diff --git a/components/home/vercel-edge-functions.tsx b/components/home/vercel-edge-functions.tsxindex 1828c2066a..a73a70a8e9 100644--- a/components/home/vercel-edge-functions.tsx+++ b/components/home/vercel-edge-functions.tsx@@ -24,7 +24,7 @@ export default function VercelEdgeFunctions() {return (<a- className={`text-transparent bg-clip-text bg-gradient-to-r ${+ className={`bg-gradient-to-r bg-clip-text text-transparent ${vercelFontColor || "from-blue-600 to-cyan-600"}`}href="https://vercel.com/edge"diff --git a/components/layout/app/index.tsx b/components/layout/app/index.tsxindex de79f80da3..16cd694e29 100644--- a/components/layout/app/index.tsx+++ b/components/layout/app/index.tsx@@ -13,7 +13,7 @@ const CRISP_SCRIPT = `window.$crisp=[];window.CRISP_WEBSITE_ID="2c09b1ee-14c2-46const NavTabs = dynamic(() => import("./nav-tabs"), {ssr: false,- loading: () => <div className="w-full h-12 -mb-0.5" />,+ loading: () => <div className="-mb-0.5 h-12 w-full" />,}); // dynamic import to avoid react hydration mismatch errorexport default function AppLayout({ children }: { children: ReactNode }) {@@ -35,20 +35,20 @@ export default function AppLayout({ children }: { children: ReactNode }) {/><Toaster /><div className="min-h-screen w-full bg-gray-50">- <div className="sticky top-0 left-0 right-0 border-b bg-white border-gray-200 z-20">- <div className="max-w-screen-xl mx-auto px-2.5 md:px-20">- <div className="h-16 flex justify-between items-center">+ <div className="sticky top-0 left-0 right-0 z-20 border-b border-gray-200 bg-white">+ <div className="mx-auto max-w-screen-xl px-2.5 md:px-20">+ <div className="flex h-16 items-center justify-between"><div className="flex items-center"><Link href="/"><a>- <Logo className="w-8 h-8 active:scale-95 transition-all duration-75" />+ <Logo className="h-8 w-8 transition-all duration-75 active:scale-95" /></a></Link>- <Divider className="h-8 w-8 ml-3 text-gray-200" />+ <Divider className="ml-3 h-8 w-8 text-gray-200" /><ProjectSelect />{key && slug && (<>- <Divider className="h-8 w-8 mr-3 text-gray-200" />+ <Divider className="mr-3 h-8 w-8 text-gray-200" /><Link href={`/${slug}/${key}`}><a className="text-sm font-medium">{key}</a></Link>diff --git a/components/layout/app/nav-tabs.tsx b/components/layout/app/nav-tabs.tsxindex 03b1cc7c71..dabbf5031d 100644--- a/components/layout/app/nav-tabs.tsx+++ b/components/layout/app/nav-tabs.tsx@@ -33,7 +33,7 @@ export default function NavTabs() {}, [router.query]);return (- <div className="flex justify-start space-x-2 items-center h-12 -mb-0.5">+ <div className="-mb-0.5 flex h-12 items-center justify-start space-x-2">{tabs.map(({ name, href }) => (<Link key={href} href={href}><a@@ -43,7 +43,7 @@ export default function NavTabs() {: "border-transparent text-gray-600 hover:text-black"}`}>- <div className="rounded-md px-3 py-2 hover:bg-gray-100 active:bg-gray-200 transition-all duration-75">+ <div className="rounded-md px-3 py-2 transition-all duration-75 hover:bg-gray-100 active:bg-gray-200"><p className="text-sm">{name}</p></div></a>diff --git a/components/layout/app/project-select.tsx b/components/layout/app/project-select.tsxindex df1bf5142b..1149c400d6 100644--- a/components/layout/app/project-select.tsx+++ b/components/layout/app/project-select.tsx@@ -35,7 +35,7 @@ export default function ProjectSelect() {if (!projects || !router.isReady)return (- <div className="w-60 h-12 px-2 rounded-lg bg-gray-100 animate-pulse flex justify-end items-center">+ <div className="flex h-12 w-60 animate-pulse items-center justify-end rounded-lg bg-gray-100 px-2"><ChevronUpDown className="h-4 w-4 text-gray-400" aria-hidden="true" /></div>);@@ -56,20 +56,20 @@ export default function ProjectSelect() {><buttononClick={() => setOpenPopover(!openPopover)}- className="relative cursor-pointer w-60 rounded-lg bg-white hover:bg-gray-100 active:bg-gray-200 py-1.5 pl-3 pr-10 text-left focus:outline-none text-sm transition-all duration-75"+ className="relative w-60 cursor-pointer rounded-lg bg-white py-1.5 pl-3 pr-10 text-left text-sm transition-all duration-75 hover:bg-gray-100 focus:outline-none active:bg-gray-200">- <div className="flex justify-start items-center space-x-3">+ <div className="flex items-center justify-start space-x-3"><BlurImagesrc={selected.logo ||`https://www.google.com/s2/favicons?sz=64&domain_url=${selected.domain}`}alt={selected.slug}- className="w-8 h-8 flex-shrink-0 rounded-full overflow-hidden"+ className="h-8 w-8 flex-shrink-0 overflow-hidden rounded-full"width={48}height={48}/>- <span className="block truncate font-medium text-sm">+ <span className="block truncate text-sm font-medium">{selected.name}</span></div>@@ -103,11 +103,11 @@ function ProjectList({const { plan } = useUsage();return (- <div className="relative mt-1 max-h-60 w-full sm:w-60 overflow-auto rounded-md bg-white p-2 text-base sm:shadow-lg sm:text-sm">+ <div className="relative mt-1 max-h-60 w-full overflow-auto rounded-md bg-white p-2 text-base sm:w-60 sm:text-sm sm:shadow-lg">{projects.map(({ name, slug, domain, logo }) => (<buttonkey={slug}- className={`relative flex items-center space-x-2 p-2 rounded-md w-full hover:bg-gray-100 active:bg-gray-200 ${+ className={`relative flex w-full items-center space-x-2 rounded-md p-2 hover:bg-gray-100 active:bg-gray-200 ${selected.slug === slug ? "font-medium" : ""} transition-all duration-75`}onClick={() => router.push(`/${slug}`)}@@ -118,7 +118,7 @@ function ProjectList({`https://www.google.com/s2/favicons?sz=64&domain_url=${domain}`}alt={slug}- className="w-7 h-7 rounded-full overflow-hidden"+ className="h-7 w-7 overflow-hidden rounded-full"width={48}height={48}/>@@ -140,9 +140,9 @@ function ProjectList({<buttonkey="add"onClick={() => setShowAddProjectModal(true)}- className="flex items-center space-x-2 w-full cursor-pointer p-2 rounded-md hover:bg-gray-100 transition-all duration-75"+ className="flex w-full cursor-pointer items-center space-x-2 rounded-md p-2 transition-all duration-75 hover:bg-gray-100">- <PlusCircle className="w-7 h-7 text-gray-600" />+ <PlusCircle className="h-7 w-7 text-gray-600" /><span className="block truncate">Add a new project</span></button>)}diff --git a/components/layout/app/user-dropdown.tsx b/components/layout/app/user-dropdown.tsxindex 4790bbb1b2..56a9593c9c 100644--- a/components/layout/app/user-dropdown.tsx+++ b/components/layout/app/user-dropdown.tsx@@ -10,9 +10,9 @@ export default function UserDropdown() {<div className="relative inline-block text-left"><Popovercontent={- <div className="p-1 w-full sm:w-56 rounded-md bg-white">+ <div className="w-full rounded-md bg-white p-1 sm:w-56"><button- className="relative p-2 rounded-md w-full hover:bg-gray-100 transition-all duration-75 text-sm text-left"+ className="relative w-full rounded-md p-2 text-left text-sm transition-all duration-75 hover:bg-gray-100"onClick={() => signOut()}>Logout@@ -25,7 +25,7 @@ export default function UserDropdown() {><buttononClick={() => setOpenPopover(!openPopover)}- className="rounded-full overflow-hidden border border-gray-300 w-10 h-10 flex justify-center items-center active:scale-95 focus:outline-none transition-all duration-75"+ className="flex h-10 w-10 items-center justify-center overflow-hidden rounded-full border border-gray-300 transition-all duration-75 focus:outline-none active:scale-95">{session && (<imgdiff --git a/components/layout/home/index.tsx b/components/layout/home/index.tsxindex 27a1cf0bd2..c2687c202b 100644--- a/components/layout/home/index.tsx+++ b/components/layout/home/index.tsx@@ -17,11 +17,11 @@ export default function HomeLayout({const router = useRouter();const { key } = router.query as { key?: string };return (- <div className="min-h-screen flex flex-col justify-between">+ <div className="flex min-h-screen flex-col justify-between"><Meta /><div className={`${key ? "bg-gray-50" : ""} z-20`}>- <div className="max-w-screen-xl mx-auto px-5 md:px-20">- <div className="h-16 flex justify-between items-center">+ <div className="mx-auto max-w-screen-xl px-5 md:px-20">+ <div className="flex h-16 items-center justify-between"><div className="flex items-center">{domain ? (<a href="https://dub.sh" target="_blank" rel="noreferrer">@@ -50,14 +50,14 @@ export default function HomeLayout({{session ? (<ahref="https://app.dub.sh"- className="py-1.5 px-5 bg-black hover:bg-white rounded-full border border-black text-sm text-white hover:text-black transition-all"+ className="rounded-full border border-black bg-black py-1.5 px-5 text-sm text-white transition-all hover:bg-white hover:text-black">Dashboard</a>) : (<ahref="https://app.dub.sh/login"- className="py-1.5 px-5 bg-black hover:bg-white rounded-full border border-black text-sm text-white hover:text-black transition-all"+ className="rounded-full border border-black bg-black py-1.5 px-5 text-sm text-white transition-all hover:bg-white hover:text-black">Sign in</a>@@ -66,21 +66,21 @@ export default function HomeLayout({</div></div>{children}- <div className="border-t border-gray-200 h-20 flex items-center justify-center space-x-12 z-10">+ <div className="z-10 flex h-20 items-center justify-center space-x-12 border-t border-gray-200"><a href="https://twitter.com/dubdotsh" target="_blank" rel="noreferrer"><span className="sr-only">Twitter</span>- <Twitter className="w-6 h-6 text-gray-600" />+ <Twitter className="h-6 w-6 text-gray-600" /></a>{domain ? (<a href="https://dub.sh" target="_blank" rel="noreferrer"><span className="sr-only">Dub.sh Logo</span>- <Logo className="w-7 h-7 text-gray-600" />+ <Logo className="h-7 w-7 text-gray-600" /></a>) : (<Link href="/"><a><span className="sr-only">Dub.sh Logo</span>- <Logo className="w-7 h-7 text-gray-600" />+ <Logo className="h-7 w-7 text-gray-600" /></a></Link>)}@@ -90,7 +90,7 @@ export default function HomeLayout({rel="noreferrer"><span className="sr-only">Github</span>- <Github className="w-6 h-6 text-gray-600" />+ <Github className="h-6 w-6 text-gray-600" /></a></div></div>diff --git a/components/shared/badge-select.tsx b/components/shared/badge-select.tsxindex 378ee310c8..408010a185 100644--- a/components/shared/badge-select.tsx+++ b/components/shared/badge-select.tsx@@ -15,8 +15,8 @@ export default function BadgeSelect({className={`${option === selected? "bg-gray-200 text-gray-800"- : "bg-gray-50 hover:bg-gray-100 text-gray-600"- } px-2 sm:px-3 py-1 rounded-md text-sm font-medium capitalize active:scale-90 transition-all duration-75`}+ : "bg-gray-50 text-gray-600 hover:bg-gray-100"+ } rounded-md px-2 py-1 text-sm font-medium capitalize transition-all duration-75 active:scale-90 sm:px-3`}onClick={() => selectAction(option)}>{option}diff --git a/components/shared/blur-image.tsx b/components/shared/blur-image.tsxindex 512d448ebb..61d8f2a5c9 100644--- a/components/shared/blur-image.tsx+++ b/components/shared/blur-image.tsx@@ -12,7 +12,7 @@ export default function BlurImage(props: ImageProps) {src={src}alt={props.alt}className={`${props.className} ${- isLoading ? "grayscale blur-md" : "grayscale-0 blur-0"+ isLoading ? "blur-md grayscale" : "blur-0 grayscale-0"}`}onLoadingComplete={async () => {setLoading(false);diff --git a/components/shared/copy-button.tsx b/components/shared/copy-button.tsxindex ab140a18da..5c0eb4cb35 100644--- a/components/shared/copy-button.tsx+++ b/components/shared/copy-button.tsx@@ -10,13 +10,13 @@ export default function CopyButton({ url }: { url: string }) {navigator.clipboard.writeText(url);setTimeout(() => setCopied(false), 3000);}}- className="group p-1.5 rounded-full bg-gray-100 hover:bg-blue-100 hover:scale-105 active:scale-95 transition-all duration-75"+ className="group rounded-full bg-gray-100 p-1.5 transition-all duration-75 hover:scale-105 hover:bg-blue-100 active:scale-95"><span className="sr-only">Copy</span>{copied ? (- <Tick className="text-gray-700 group-hover:text-blue-800 transition-all" />+ <Tick className="text-gray-700 transition-all group-hover:text-blue-800" />) : (- <Copy className="text-gray-700 group-hover:text-blue-800 transition-all" />+ <Copy className="text-gray-700 transition-all group-hover:text-blue-800" />)}</button>);diff --git a/components/shared/icons/expanding-arrow.tsx b/components/shared/icons/expanding-arrow.tsxindex 7b9e80b8c9..819fd74890 100644--- a/components/shared/icons/expanding-arrow.tsx+++ b/components/shared/icons/expanding-arrow.tsx@@ -1,10 +1,10 @@export default function ExpandingArrow({ className }: { className?: string }) {return (- <div className="relative flex items-center group">+ <div className="group relative flex items-center"><svgclassName={`${- className ? className : "w-4 h-4"- } absolute group-hover:opacity-0 group-hover:translate-x-1 transition-all`}+ className ? className : "h-4 w-4"+ } absolute transition-all group-hover:translate-x-1 group-hover:opacity-0`}xmlns="http://www.w3.org/2000/svg"fill="currentColor"viewBox="0 0 16 16"@@ -18,8 +18,8 @@ export default function ExpandingArrow({ className }: { className?: string }) {</svg><svgclassName={`${- className ? className : "w-4 h-4"- } absolute opacity-0 group-hover:opacity-100 group-hover:translate-x-1 transition-all`}+ className ? className : "h-4 w-4"+ } absolute opacity-0 transition-all group-hover:translate-x-1 group-hover:opacity-100`}xmlns="http://www.w3.org/2000/svg"fill="currentColor"viewBox="0 0 16 16"diff --git a/components/shared/icons/loading-circle.tsx b/components/shared/icons/loading-circle.tsxindex 2d07a276b2..92a1f6170e 100644--- a/components/shared/icons/loading-circle.tsx+++ b/components/shared/icons/loading-circle.tsx@@ -3,8 +3,8 @@ export default function LoadingCircle({ dimensions }: { dimensions?: string }) {<svgaria-hidden="true"className={`${- dimensions || "w-4 h-4"- } text-gray-200 animate-spin fill-gray-600`}+ dimensions || "h-4 w-4"+ } animate-spin fill-gray-600 text-gray-200`}viewBox="0 0 100 101"fill="none"xmlns="http://www.w3.org/2000/svg"diff --git a/components/shared/max-width-wrapper.tsx b/components/shared/max-width-wrapper.tsxindex fd48ff0e7b..199af481b3 100644--- a/components/shared/max-width-wrapper.tsx+++ b/components/shared/max-width-wrapper.tsx@@ -9,7 +9,7 @@ export default function MaxWidthWrapper({}) {return (<div- className={`w-full max-w-screen-xl mx-auto px-2.5 md:px-20 ${className}`}+ className={`mx-auto w-full max-w-screen-xl px-2.5 md:px-20 ${className}`}>{children}</div>diff --git a/components/shared/modal.tsx b/components/shared/modal.tsxindex 2ce38c54ef..f3c4d97ff4 100644--- a/components/shared/modal.tsx+++ b/components/shared/modal.tsx@@ -80,7 +80,7 @@ export default function Modal({<motion.divref={mobileModalRef}key="mobile-modal"- className="group fixed bottom-0 inset-x-0 z-40 w-screen sm:hidden cursor-grab active:cursor-grabbing"+ className="group fixed inset-x-0 bottom-0 z-40 w-screen cursor-grab active:cursor-grabbing sm:hidden"initial={{ y: "100%" }}animate={controls}exit={{ y: "100%" }}@@ -92,17 +92,17 @@ export default function Modal({dragConstraints={{ top: 0, bottom: 0 }}><div- className={`h-7 ${bgColor} w-full flex items-center justify-center rounded-t-4xl border-t border-gray-200 -mb-1`}+ className={`h-7 ${bgColor} rounded-t-4xl -mb-1 flex w-full items-center justify-center border-t border-gray-200`}>- <div className="rounded-full h-1 w-6 -mr-1 bg-gray-300 group-active:rotate-12 transition-all" />- <div className="rounded-full h-1 w-6 bg-gray-300 group-active:-rotate-12 transition-all" />+ <div className="-mr-1 h-1 w-6 rounded-full bg-gray-300 transition-all group-active:rotate-12" />+ <div className="h-1 w-6 rounded-full bg-gray-300 transition-all group-active:-rotate-12" /></div>{children}</motion.div><motion.divref={desktopModalRef}key="desktop-modal"- className="fixed inset-0 z-40 min-h-screen hidden sm:flex items-center justify-center"+ className="fixed inset-0 z-40 hidden min-h-screen items-center justify-center sm:flex"initial={{ scale: 0.95 }}animate={{ scale: 1 }}exit={{ scale: 0.95 }}diff --git a/components/shared/popover.tsx b/components/shared/popover.tsxindex 64a1eb281f..6237ff520f 100644--- a/components/shared/popover.tsx+++ b/components/shared/popover.tsx@@ -50,7 +50,7 @@ export default function Popover({<motion.divref={mobileTooltipRef}key="mobile-tooltip"- className="group fixed bottom-0 inset-x-0 z-40 w-screen md:hidden cursor-grab active:cursor-grabbing"+ className="group fixed inset-x-0 bottom-0 z-40 w-screen cursor-grab active:cursor-grabbing md:hidden"initial={{ y: "100%" }}animate={{y: openPopover ? 0 : "100%",@@ -65,12 +65,12 @@ export default function Popover({dragConstraints={{ top: 0, bottom: 0 }}><div- className={`h-7 bg-white w-full flex items-center justify-center rounded-t-4xl border-t border-gray-200 -mb-1`}+ className={`rounded-t-4xl -mb-1 flex h-7 w-full items-center justify-center border-t border-gray-200 bg-white`}>- <div className="rounded-full h-1 w-6 -mr-1 bg-gray-300 group-active:rotate-12 transition-all" />- <div className="rounded-full h-1 w-6 bg-gray-300 group-active:-rotate-12 transition-all" />+ <div className="-mr-1 h-1 w-6 rounded-full bg-gray-300 transition-all group-active:rotate-12" />+ <div className="h-1 w-6 rounded-full bg-gray-300 transition-all group-active:-rotate-12" /></div>- <div className="flex items-center justify-center w-full overflow-hidden align-middle bg-white shadow-xl min-h-[150px]">+ <div className="flex min-h-[150px] w-full items-center justify-center overflow-hidden bg-white align-middle shadow-xl">{content}</div></motion.div>@@ -96,7 +96,7 @@ export default function Popover({<PopoverPrimitive.ContentsideOffset={4}align={align}- className="hidden md:block animate-slide-up-fade items-center rounded-md z-20 bg-white border border-gray-200 drop-shadow-lg"+ className="z-20 hidden animate-slide-up-fade items-center rounded-md border border-gray-200 bg-white drop-shadow-lg md:block">{content}</PopoverPrimitive.Content>diff --git a/components/shared/slider.tsx b/components/shared/slider.tsxindex 7286b95f7f..7c0f8083cb 100644--- a/components/shared/slider.tsx+++ b/components/shared/slider.tsx@@ -27,7 +27,7 @@ const Slider = ({<SliderPrimitive.Track className="relative h-1 w-full grow rounded-full bg-gray-200"><SliderPrimitive.Range className="absolute h-full rounded-full bg-gradient-to-r from-blue-600 to-cyan-600" /></SliderPrimitive.Track>- <SliderPrimitive.Thumb className="block h-5 w-5 cursor-grab active:cursor-grabbing rounded-full bg-gradient-to-r from-blue-600 to-cyan-600 focus:outline-none focus-visible:ring focus-visible:ring-blue-500 focus-visible:ring-opacity-75" />+ <SliderPrimitive.Thumb className="block h-5 w-5 cursor-grab rounded-full bg-gradient-to-r from-blue-600 to-cyan-600 focus:outline-none focus-visible:ring focus-visible:ring-blue-500 focus-visible:ring-opacity-75 active:cursor-grabbing" /></SliderPrimitive.Root>);};diff --git a/components/shared/tooltip.tsx b/components/shared/tooltip.tsxindex 0cc8289026..a827d59927 100644--- a/components/shared/tooltip.tsx+++ b/components/shared/tooltip.tsx@@ -49,7 +49,7 @@ export default function Tooltip({<motion.divref={mobileTooltipRef}key="mobile-tooltip"- className="group fixed bottom-0 inset-x-0 z-40 w-screen sm:hidden cursor-grab active:cursor-grabbing"+ className="group fixed inset-x-0 bottom-0 z-40 w-screen cursor-grab active:cursor-grabbing sm:hidden"initial={{ y: "100%" }}animate={{y: openTooltip ? 0 : "100%",@@ -64,14 +64,14 @@ export default function Tooltip({dragConstraints={{ top: 0, bottom: 0 }}><div- className={`h-7 bg-white w-full flex items-center justify-center rounded-t-4xl border-t border-gray-200 -mb-1`}+ className={`rounded-t-4xl -mb-1 flex h-7 w-full items-center justify-center border-t border-gray-200 bg-white`}>- <div className="rounded-full h-1 w-6 -mr-1 bg-gray-300 group-active:rotate-12 transition-all" />- <div className="rounded-full h-1 w-6 bg-gray-300 group-active:-rotate-12 transition-all" />+ <div className="-mr-1 h-1 w-6 rounded-full bg-gray-300 transition-all group-active:rotate-12" />+ <div className="h-1 w-6 rounded-full bg-gray-300 transition-all group-active:-rotate-12" /></div>- <div className="flex items-center justify-center w-full overflow-hidden align-middle bg-white shadow-xl min-h-[150px]">+ <div className="flex min-h-[150px] w-full items-center justify-center overflow-hidden bg-white align-middle shadow-xl">{typeof content === "string" ? (- <span className="block text-sm text-center text-gray-700 max-w-xs">+ <span className="block max-w-xs text-center text-sm text-gray-700">{content}</span>) : (@@ -98,12 +98,12 @@ export default function Tooltip({<TooltipPrimitive.ContentsideOffset={4}side="top"- className="hidden sm:block animate-slide-up-fade items-center rounded-md overflow-hidden z-20 bg-white border border-gray-200 drop-shadow-lg"+ className="z-20 hidden animate-slide-up-fade items-center overflow-hidden rounded-md border border-gray-200 bg-white drop-shadow-lg sm:block"><TooltipPrimitive.Arrow className="fill-current text-white" />{typeof content === "string" ? (<div className="p-5">- <span className="block text-sm text-center text-gray-700 max-w-xs">+ <span className="block max-w-xs text-center text-sm text-gray-700">{content}</span></div>@@ -128,11 +128,11 @@ export function TooltipContent({ctaLink?: string;}) {return (- <div className="max-w-xs flex flex-col text-center items-center space-y-3 p-5">+ <div className="flex max-w-xs flex-col items-center space-y-3 p-5 text-center"><p className="text-sm text-gray-700">{title}</p>{cta && ctaLink && (<Link href={ctaLink}>- <a className="py-1.5 px-3 bg-black hover:bg-white rounded-full border border-black text-sm text-white hover:text-black transition-all mt-4">+ <a className="mt-4 rounded-full border border-black bg-black py-1.5 px-3 text-sm text-white transition-all hover:bg-white hover:text-black">{cta}</a></Link>@@ -143,13 +143,13 @@ export function TooltipContent({export function OGImageProxy() {return (- <div className="max-w-md flex flex-col text-center items-center space-y-5 p-5">+ <div className="flex max-w-md flex-col items-center space-y-5 p-5 text-center"><BlurImagealt="Demo GIF for OG Image Proxy"src="https://res.cloudinary.com/dubdotsh/image/upload/v1664425639/og-image-proxy-demo.gif"width={1200}height={1084}- className="w-full rounded-md overflow-hidden shadow-md"+ className="w-full overflow-hidden rounded-md shadow-md"/><p className="text-sm text-gray-700">Add a custom OG image in front of your target URL. Bots like@@ -167,8 +167,8 @@ export function ProTiers({ usageLimit }: { usageLimit?: number }) {return (<div className="w-full rounded-md">- <div className="max-w-md flex justify-between items-center w-full p-5">- <h3 className="text-2xl text-transparent bg-clip-text bg-gradient-to-r from-blue-600 to-cyan-600">+ <div className="flex w-full max-w-md items-center justify-between p-5">+ <h3 className="bg-gradient-to-r from-blue-600 to-cyan-600 bg-clip-text text-2xl text-transparent">{PRO_TIERS[tier].name}</h3><div className="flex items-center">@@ -178,7 +178,7 @@ export function ProTiers({ usageLimit }: { usageLimit?: number }) {<p className="text-sm text-gray-700">/mo</p></div></div>- <div className="w-full flex flex-col items-center space-y-1 bg-gray-50 text-center p-5 border-t border-gray-200">+ <div className="flex w-full flex-col items-center space-y-1 border-t border-gray-200 bg-gray-50 p-5 text-center"><Slidervalue={tier}setValue={setTier}diff --git a/components/stats/bar-chart/index.tsx b/components/stats/bar-chart/index.tsxindex 22df0fc4f2..ec05868429 100644--- a/components/stats/bar-chart/index.tsx+++ b/components/stats/bar-chart/index.tsx@@ -88,7 +88,7 @@ const BarChart = ({let tooltipTimeout: number | undefined;return (- <figure className="flex my-10" style={{ width: CHART_WIDTH }}>+ <figure className="my-10 flex" style={{ width: CHART_WIDTH }}><svg ref={containerRef} height={CHART_HEIGHT} width={LEFT_AXIS_WIDTH}><AxisLefthideAxisLine@@ -183,7 +183,7 @@ const BarChart = ({className={styles.tooltip}><div className="text-center">- <h3 className="text-black my-1">+ <h3 className="my-1 text-black"><span className="text-2xl font-semibold">{nFormatter(tooltipData.count)}</span>{" "}diff --git a/components/stats/clicks.tsx b/components/stats/clicks.tsxindex 324414f7cf..659a9f325e 100644--- a/components/stats/clicks.tsx+++ b/components/stats/clicks.tsx@@ -11,19 +11,19 @@ export default function Clicks({isValidating: boolean;}) {return (- <div className="max-w-4xl bg-white p-5 sm:p-10 sm:pr-20 sm:shadow-lg sm:rounded-lg border border-gray-200 sm:border-gray-100 ">+ <div className="max-w-4xl border border-gray-200 bg-white p-5 sm:rounded-lg sm:border-gray-100 sm:p-10 sm:pr-20 sm:shadow-lg "><div className="mb-5 text-left">- <div className="flex space-x-1 items-end">+ <div className="flex items-end space-x-1">{isValidating ? (- <div className="h-10 w-12 rounded-md bg-gray-200 animate-pulse" />+ <div className="h-10 w-12 animate-pulse rounded-md bg-gray-200" />) : (- <h1 className="text-3xl sm:text-4xl font-bold">+ <h1 className="text-3xl font-bold sm:text-4xl">{nFormatter(data.totalClicks)}</h1>)}- <Chart className="text-gray-600 w-6 h-6 mb-1" />+ <Chart className="mb-1 h-6 w-6 text-gray-600" /></div>- <p className="uppercase text-gray-600 text-sm font-medium">+ <p className="text-sm font-medium uppercase text-gray-600">Total Clicks</p></div>diff --git a/components/stats/device-icon.tsx b/components/stats/device-icon.tsxindex d387abb342..809c19c216 100644--- a/components/stats/device-icon.tsx+++ b/components/stats/device-icon.tsx@@ -59,11 +59,11 @@ export default function DeviceIcon({alt={display}width={20}height={20}- className="w-4 h-4"+ className="h-4 w-4"/>);} else if (display === "iOS") {- return <Apple className="w-5 h-5 -ml-1" />;+ return <Apple className="-ml-1 h-5 w-5" />;} else {return (<BlurImage@@ -71,7 +71,7 @@ export default function DeviceIcon({alt={display}width={30}height={20}- className="w-5 h-4"+ className="h-4 w-5"/>);}diff --git a/components/stats/devices.tsx b/components/stats/devices.tsxindex 721f993302..d5804dfd15 100644--- a/components/stats/devices.tsx+++ b/components/stats/devices.tsx@@ -32,9 +32,9 @@ export default function Devices({ data: rawData }: { data: StatsProps }) {};return (- <div className="flex flex-col justify-between bg-white pt-5 sm:shadow-lg sm:rounded-lg border border-gray-200 sm:border-gray-100 h-[420px]">+ <div className="flex h-[420px] flex-col justify-between border border-gray-200 bg-white pt-5 sm:rounded-lg sm:border-gray-100 sm:shadow-lg"><div- className="relative h-full overflow-scroll scrollbar-hide px-7"+ className="relative h-full overflow-scroll px-7 scrollbar-hide"onScroll={handleScroll}><div className="mb-5 flex justify-between">@@ -50,23 +50,23 @@ export default function Devices({ data: rawData }: { data: StatsProps }) {className={data.deviceData && data.deviceData.length > 0? "grid gap-4"- : "h-[300px] flex justify-center items-center"+ : "flex h-[300px] items-center justify-center"}>{data.deviceData ? (data.deviceData.length > 0 ? (<>{data.deviceData.map(({ display, count }, idx) => (- <div key={idx} className="flex justify-between items-center">- <div className="relative flex items-center z-10 w-full max-w-[calc(100%-3rem)]">- <span className="flex space-x-2 px-2 items-center z-10">+ <div key={idx} className="flex items-center justify-between">+ <div className="relative z-10 flex w-full max-w-[calc(100%-3rem)] items-center">+ <span className="z-10 flex items-center space-x-2 px-2"><DeviceIcondisplay={display}tab={tab}- className="w-4 h-4"+ className="h-4 w-4"/><p- className={`text-gray-800 text-sm ${+ className={`text-sm text-gray-800 ${display !== "iOS" ? "capitalize" : ""}`}>@@ -77,20 +77,20 @@ export default function Devices({ data: rawData }: { data: StatsProps }) {style={{width: `${(count / data.totalClicks) * 100}%`,}}- className="bg-green-100 absolute h-8 origin-left"+ className="absolute h-8 origin-left bg-green-100"transition={{ ease: "easeOut", duration: 0.3 }}initial={{ transform: "scaleX(0)" }}animate={{ transform: "scaleX(1)" }}/></div>- <p className="text-gray-600 text-sm z-10">+ <p className="z-10 text-sm text-gray-600">{nFormatter(count)}</p></div>))}</>) : (- <p className="text-gray-600 text-sm">No data available</p>+ <p className="text-sm text-gray-600">No data available</p>)) : (<LoadingDots color="#71717A" />@@ -106,7 +106,7 @@ export default function Devices({ data: rawData }: { data: StatsProps }) {transition: { type: "linear", duration: 0.2 },}}exit={{ opacity: 0, y: 50, transition: { duration: 0 } }}- className="absolute w-full h-8 flex justify-center items-center bottom-0 left-0 right-0 bg-gradient-to-b from-white to-gray-100 text-sm text-gray-500"+ className="absolute bottom-0 left-0 right-0 flex h-8 w-full items-center justify-center bg-gradient-to-b from-white to-gray-100 text-sm text-gray-500">Show more</motion.div>@@ -114,7 +114,7 @@ export default function Devices({ data: rawData }: { data: StatsProps }) {</AnimatePresence></div>- <div className="flex justify-start items-center space-x-2 px-7 h-12 flex-shrink-0">+ <div className="flex h-12 flex-shrink-0 items-center justify-start space-x-2 px-7"><inputid="showBots"aria-describedby="showBots-description"@@ -124,7 +124,7 @@ export default function Devices({ data: rawData }: { data: StatsProps }) {onChange={() => setShowBots(!showBots)}className="h-4 w-4 rounded text-black focus:outline-none focus:ring-0"/>- <label htmlFor="showBots" className="text-gray-800 text-sm">+ <label htmlFor="showBots" className="text-sm text-gray-800">Include Bots</label></div>diff --git a/components/stats/feedback.tsx b/components/stats/feedback.tsxindex 1c09c87a73..7db03c6e66 100644--- a/components/stats/feedback.tsx+++ b/components/stats/feedback.tsx@@ -34,18 +34,18 @@ export default function Feedback() {};return (- <div className="relative bg-white px-7 py-5 sm:shadow-lg sm:rounded-lg border border-gray-200 sm:border-gray-100 h-[420px] overflow-scroll scrollbar-hide">+ <div className="relative h-[420px] overflow-scroll border border-gray-200 bg-white px-7 py-5 scrollbar-hide sm:rounded-lg sm:border-gray-100 sm:shadow-lg"><div className="mb-5 flex"><h1 className="text-xl font-semibold">Feedback</h1></div><AnimatePresence>{state === "submitted" ? (<motion.div- className="h-[280px] flex flex-col justify-center items-center space-y-3"+ className="flex h-[280px] flex-col items-center justify-center space-y-3"initial={{ opacity: 0, y: 10 }}animate={{ opacity: 1, y: 0 }}>- <CheckCircleFill className="w-10 h-10 text-green-500" />+ <CheckCircleFill className="h-10 w-10 text-green-500" /><p className="text-gray-500">Thank you for your feedback!</p></motion.div>) : (@@ -58,7 +58,7 @@ export default function Feedback() {<div><labelhtmlFor="email"- className="block text-xs font-medium text-gray-500 mb-2"+ className="mb-2 block text-xs font-medium text-gray-500"></label>@@ -68,13 +68,13 @@ export default function Feedback() {placeholder="[email protected]"autoComplete="email"onChange={(e) => setData({ ...data, email: e.target.value })}- className="border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500 pr-10 block w-full rounded-md focus:outline-none sm:text-sm"+ className="block w-full rounded-md border-gray-300 pr-10 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"/></div><div><labelhtmlFor="feedback"- className="block text-xs font-medium text-gray-500 mb-2"+ className="mb-2 block text-xs font-medium text-gray-500">FEEDBACK</label>@@ -84,7 +84,7 @@ export default function Feedback() {minRows={5}required={true}onKeyDown={handleKeyDown}- className="border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500 pr-10 block w-full rounded-md focus:outline-none sm:text-sm"+ className="block w-full rounded-md border-gray-300 pr-10 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"placeholder="What other data would you like to see?"value={data.feedback}onChange={(e) => setData({ ...data, feedback: e.target.value })}@@ -95,9 +95,9 @@ export default function Feedback() {disabled={state === "submitting"}className={`${state === "submitting"- ? "cursor-not-allowed bg-gray-100 border-gray-200"- : "bg-black hover:bg-white text-white hover:text-black border-black"- } flex justify-center items-center w-full text-sm h-10 rounded-md border transition-all focus:outline-none`}+ ? "cursor-not-allowed border-gray-200 bg-gray-100"+ : "border-black bg-black text-white hover:bg-white hover:text-black"+ } flex h-10 w-full items-center justify-center rounded-md border text-sm transition-all focus:outline-none`}>{state === "submitting" ? (<LoadingDots color="#808080" />diff --git a/components/stats/index.tsx b/components/stats/index.tsxindex 1c5442da04..74ce129581 100644--- a/components/stats/index.tsx+++ b/components/stats/index.tsx@@ -41,9 +41,9 @@ export default function Stats({return (<div className="bg-gray-50 py-10"><Toggle domain={domain} atModalTop={atModalTop} />- <div className="max-w-4xl mx-auto grid gap-5">+ <div className="mx-auto grid max-w-4xl gap-5"><Clicks data={data!} isValidating={isValidating} />- <div className="grid grid-cols-1 sm:grid-cols-2 gap-5">+ <div className="grid grid-cols-1 gap-5 sm:grid-cols-2"><Locations data={data!} /><Devices data={data!} /><Referer data={data!} />diff --git a/components/stats/locations.tsx b/components/stats/locations.tsxindex 9b3dfdf014..fee05835ae 100644--- a/components/stats/locations.tsx+++ b/components/stats/locations.tsx@@ -31,7 +31,7 @@ export default function Locations({ data: rawData }: { data: StatsProps }) {return (<div- className="relative bg-white px-7 py-5 sm:shadow-lg sm:rounded-lg border border-gray-200 sm:border-gray-100 h-[420px] overflow-scroll scrollbar-hide"+ className="relative h-[420px] overflow-scroll border border-gray-200 bg-white px-7 py-5 scrollbar-hide sm:rounded-lg sm:border-gray-100 sm:shadow-lg"onScroll={handleScroll}><div className="mb-5 flex justify-between">@@ -47,38 +47,38 @@ export default function Locations({ data: rawData }: { data: StatsProps }) {className={data.locationData && data.locationData.length > 0? "grid gap-4"- : "h-[300px] flex justify-center items-center"+ : "flex h-[300px] items-center justify-center"}>{data.locationData ? (data.locationData.length > 0 ? (data.locationData.map(({ display, code, count }, idx) => (- <div key={idx} className="flex justify-between items-center">- <div className="relative flex items-center z-10 w-full max-w-[calc(100%-3rem)]">- <span className="flex space-x-2 px-2 items-center z-10">+ <div key={idx} className="flex items-center justify-between">+ <div className="relative z-10 flex w-full max-w-[calc(100%-3rem)] items-center">+ <span className="z-10 flex items-center space-x-2 px-2"><imgsrc={`https://flag.vercel.app/m/${code}.svg`}- className="w-5 h-3"+ className="h-3 w-5"/>- <p className="text-gray-800 text-sm">{display}</p>+ <p className="text-sm text-gray-800">{display}</p></span><motion.divstyle={{width: `${(count / data.totalClicks) * 100}%`,}}- className="bg-orange-100 absolute h-8 origin-left"+ className="absolute h-8 origin-left bg-orange-100"transition={{ ease: "easeOut", duration: 0.3 }}initial={{ transform: "scaleX(0)" }}animate={{ transform: "scaleX(1)" }}/></div>- <p className="text-gray-600 text-sm z-10">+ <p className="z-10 text-sm text-gray-600">{nFormatter(count)}</p></div>))) : (- <p className="text-gray-600 text-sm">No data available</p>+ <p className="text-sm text-gray-600">No data available</p>)) : (<LoadingDots color="#71717A" />@@ -94,7 +94,7 @@ export default function Locations({ data: rawData }: { data: StatsProps }) {transition: { type: "linear", duration: 0.2 },}}exit={{ opacity: 0, y: 50, transition: { duration: 0 } }}- className="absolute w-full h-8 flex justify-center items-center bottom-0 left-0 right-0 bg-gradient-to-b from-white to-gray-100 text-sm text-gray-500"+ className="absolute bottom-0 left-0 right-0 flex h-8 w-full items-center justify-center bg-gradient-to-b from-white to-gray-100 text-sm text-gray-500">Show more</motion.div>diff --git a/components/stats/referer.tsx b/components/stats/referer.tsxindex ddd4d1a474..3aa195cba2 100644--- a/components/stats/referer.tsx+++ b/components/stats/referer.tsx@@ -29,7 +29,7 @@ export default function Referer({ data: rawData }: { data: StatsProps }) {return (<div- className="relative bg-white px-7 py-5 sm:shadow-lg sm:rounded-lg border border-gray-200 sm:border-gray-100 h-[420px] overflow-scroll scrollbar-hide"+ className="relative h-[420px] overflow-scroll border border-gray-200 bg-white px-7 py-5 scrollbar-hide sm:rounded-lg sm:border-gray-100 sm:shadow-lg"onScroll={handleScroll}><div className="mb-5 flex">@@ -39,45 +39,45 @@ export default function Referer({ data: rawData }: { data: StatsProps }) {className={data.refererData && data.refererData.length > 0? "grid gap-4"- : "h-[300px] flex justify-center items-center"+ : "flex h-[300px] items-center justify-center"}>{data.refererData ? (data.refererData.length > 0 ? (data.refererData.map(({ display, count }, idx) => (- <div key={idx} className="flex justify-between items-center">- <div className="relative flex items-center z-10 w-full max-w-[calc(100%-3rem)]">- <span className="flex space-x-2 px-2 items-center z-10">+ <div key={idx} className="flex items-center justify-between">+ <div className="relative z-10 flex w-full max-w-[calc(100%-3rem)] items-center">+ <span className="z-10 flex items-center space-x-2 px-2">{display === "(direct)" ? (- <Link className="w-4 h-4" />+ <Link className="h-4 w-4" />) : (<BlurImagesrc={`https://www.google.com/s2/favicons?sz=64&domain_url=${display}`}alt={display}width={20}height={20}- className="w-4 h-4 rounded-full"+ className="h-4 w-4 rounded-full"/>)}- <p className="text-gray-800 text-sm">{display}</p>+ <p className="text-sm text-gray-800">{display}</p></span><motion.divstyle={{width: `${(count / data.totalClicks) * 100}%`,}}- className="bg-red-100 absolute h-8 origin-left rounded"+ className="absolute h-8 origin-left rounded bg-red-100"transition={{ ease: "easeOut", duration: 0.3 }}initial={{ transform: "scaleX(0)" }}animate={{ transform: "scaleX(1)" }}/></div>- <p className="text-gray-600 text-sm z-10">+ <p className="z-10 text-sm text-gray-600">{nFormatter(count)}</p></div>))) : (- <p className="text-gray-600 text-sm">No data available</p>+ <p className="text-sm text-gray-600">No data available</p>)) : (<LoadingDots color="#71717A" />@@ -93,7 +93,7 @@ export default function Referer({ data: rawData }: { data: StatsProps }) {transition: { type: "linear", duration: 0.2 },}}exit={{ opacity: 0, y: 50, transition: { duration: 0 } }}- className="absolute w-full h-8 flex justify-center items-center bottom-0 left-0 right-0 bg-gradient-to-b from-white to-gray-100 text-sm text-gray-500"+ className="absolute bottom-0 left-0 right-0 flex h-8 w-full items-center justify-center bg-gradient-to-b from-white to-gray-100 text-sm text-gray-500">Show more</motion.div>diff --git a/components/stats/toggle.tsx b/components/stats/toggle.tsxindex df0a4c89d3..3abdc236cd 100644--- a/components/stats/toggle.tsx+++ b/components/stats/toggle.tsx@@ -40,19 +40,19 @@ export default function Toggle({<divclassName={`z-10 mb-5 ${pageType === "stats" ? "top-0" : "top-24"- } sticky py-5 bg-gray-50 ${atTop ? "shadow-md" : ""}`}+ } sticky bg-gray-50 py-5 ${atTop ? "shadow-md" : ""}`}>- <div className="max-w-4xl mx-auto flex justify-between items-center lg:px-0 px-2.5">+ <div className="mx-auto flex max-w-4xl items-center justify-between px-2.5 lg:px-0"><a- className="group flex text-lg sm:text-xl text-gray-800 font-semibold"+ className="group flex text-lg font-semibold text-gray-800 sm:text-xl"href={linkConstructor({ key, domain })}target="_blank"rel="noreferrer">{linkConstructor({ key, domain, pretty: true })}- <ExpandingArrow className="w-5 h-5" />+ <ExpandingArrow className="h-5 w-5" /></a>- <div className="px-3 py-1 rounded-md shadow-md border bg-white border-gray-100">+ <div className="rounded-md border border-gray-100 bg-white px-3 py-1 shadow-md"><BadgeSelectoptions={INTERVALS}selected={currentInterval}diff --git a/package.json b/package.jsonindex 6101943306..76815b9088 100644--- a/package.json+++ b/package.json@@ -70,6 +70,7 @@"autoprefixer": "^10.4.7","postcss": "^8.4.14","prettier": "^2.7.1",+ "prettier-plugin-tailwindcss": "^0.1.13","tailwindcss": "^3.1.2","typescript": "^4.8.4"}diff --git a/pages/_auth/[domain]/[key].tsx b/pages/_auth/[domain]/[key].tsxindex 1d0960d93f..550570fd70 100644--- a/pages/_auth/[domain]/[key].tsx+++ b/pages/_auth/[domain]/[key].tsx@@ -31,19 +31,19 @@ export default function PasswordProtectedLinkPage() {<meta name="twitter:image" content={image} /><link rel="icon" href={`${FAVICON_FOLDER}/favicon-32x32.png`} /></Head>- <main className="w-screen h-screen flex items-center justify-center bg-gray-50">- <div className="w-full max-w-md shadow-xl rounded-2xl border border-gray-100 overflow-hidden">- <div className="flex flex-col justify-center items-center space-y-3 text-center sm:px-16 px-4 pt-8 py-6 border-b border-gray-200 bg-white">+ <main className="flex h-screen w-screen items-center justify-center bg-gray-50">+ <div className="w-full max-w-md overflow-hidden rounded-2xl border border-gray-100 shadow-xl">+ <div className="flex flex-col items-center justify-center space-y-3 border-b border-gray-200 bg-white px-4 py-6 pt-8 text-center sm:px-16"><a href="https://dub.sh" target="_blank" rel="noreferrer"><BlurImagesrc="/_static/logo.png"alt="Dub.sh logo"- className="w-10 h-10 rounded-full"+ className="h-10 w-10 rounded-full"width={20}height={20}/></a>- <h3 className="font-semibold text-xl">{title}</h3>+ <h3 className="text-xl font-semibold">{title}</h3><p className="text-sm text-gray-500">{description}</p></div><form@@ -70,7 +70,7 @@ export default function PasswordProtectedLinkPage() {}});}}- className="flex flex-col space-y-4 bg-gray-50 sm:px-16 px-4 py-8"+ className="flex flex-col space-y-4 bg-gray-50 px-4 py-8 sm:px-16"><div><label htmlFor="password" className="block text-xs text-gray-600">@@ -90,7 +90,7 @@ export default function PasswordProtectedLinkPage() {error? "border-red-300 text-red-500 placeholder-red-300 focus:border-red-500 focus:ring-red-500": "border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500"- } pr-10 block w-full rounded-md focus:outline-none sm:text-sm`}+ } block w-full rounded-md pr-10 focus:outline-none sm:text-sm`}/>{error && (<div className="pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3">@@ -112,9 +112,9 @@ export default function PasswordProtectedLinkPage() {disabled={validating}className={`${validating- ? "cursor-not-allowed bg-gray-100 border-gray-200 text-gray-400"- : "bg-black hover:bg-white hover:text-black border-black text-white"- } flex justify-center items-center w-full text-sm h-10 rounded-md border transition-all focus:outline-none`}+ ? "cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400"+ : "border-black bg-black text-white hover:bg-white hover:text-black"+ } flex h-10 w-full items-center justify-center rounded-md border text-sm transition-all focus:outline-none`}>{validating ? (<LoadingDots color="#808080" />diff --git a/pages/_proxy/[domain]/[key].tsx b/pages/_proxy/[domain]/[key].tsxindex 4184faf58f..1ce1530124 100644--- a/pages/_proxy/[domain]/[key].tsx+++ b/pages/_proxy/[domain]/[key].tsx@@ -31,8 +31,8 @@ export default function LinkPage({)}`}/></Head>- <main className="w-screen h-screen flex items-center justify-center">- <div className="w-full max-w-lg mx-5 sm:mx-0 border border-gray-200 rounded-lg overflow-hidden">+ <main className="flex h-screen w-screen items-center justify-center">+ <div className="mx-5 w-full max-w-lg overflow-hidden rounded-lg border border-gray-200 sm:mx-0"><Imagesrc={image}alt={title}@@ -48,11 +48,11 @@ export default function LinkPage({alt={title}width={300}height={300}- className="w-6 h-6 mt-1"+ className="mt-1 h-6 w-6"/><div className="flex flex-col space-y-3">- <h1 className="text-gray-700 font-bold">{title}</h1>- <p className="text-gray-500 text-sm">{description}</p>+ <h1 className="font-bold text-gray-700">{title}</h1>+ <p className="text-sm text-gray-500">{description}</p></div></div></div>diff --git a/pages/app/[slug]/[key].tsx b/pages/app/[slug]/[key].tsxindex 85485362fa..73291594a6 100644--- a/pages/app/[slug]/[key].tsx+++ b/pages/app/[slug]/[key].tsx@@ -21,14 +21,14 @@ export default function StatsPage() {<AppLayout>{exceededUsage && (<MaxWidthWrapper>- <div className="border border-gray-200 rounded-md bg-white my-10 py-12 flex flex-col justify-center items-center">- <div className="bg-gray-100 rounded-full p-3">- <Lock className="w-6 h-6 text-gray-600" />+ <div className="my-10 flex flex-col items-center justify-center rounded-md border border-gray-200 bg-white py-12">+ <div className="rounded-full bg-gray-100 p-3">+ <Lock className="h-6 w-6 text-gray-600" /></div>- <h1 className="text-xl font-semibold text-gray-700 my-3">+ <h1 className="my-3 text-xl font-semibold text-gray-700">Stats Locked</h1>- <p className="text-gray-600 text-sm max-w-sm text-center z-10">+ <p className="z-10 max-w-sm text-center text-sm text-gray-600">{isOwner? "You have exceeded your usage limits. We're still collecting data on your link, but you need to upgrade to view them.": "The owner of this project has exceeded their usage limits. We're still collecting data on this link, but they need to upgrade to view them."}@@ -42,7 +42,7 @@ export default function StatsPage() {/>{isOwner && (<Link href="/settings">- <a className="text-white hover:text-black bg-black hover:bg-white font-medium text-sm px-10 py-2 border rounded-md border-black transition-all duration-75 z-10">+ <a className="z-10 rounded-md border border-black bg-black px-10 py-2 text-sm font-medium text-white transition-all duration-75 hover:bg-white hover:text-black">Upgrade now</a></Link>diff --git a/pages/app/[slug]/index.tsx b/pages/app/[slug]/index.tsxindex f4b2259062..ef13b16f58 100644--- a/pages/app/[slug]/index.tsx+++ b/pages/app/[slug]/index.tsx@@ -18,9 +18,9 @@ export default function ProjectLinks() {return (<AppLayout>{project && <AddEditLinkModal />}- <div className="h-36 flex items-center bg-white border-b border-gray-200">+ <div className="flex h-36 items-center border-b border-gray-200 bg-white"><MaxWidthWrapper>- <div className="flex justify-between items-center">+ <div className="flex items-center justify-between"><h1 className="text-2xl text-gray-600">Links</h1><AddEditLinkButton /></div>diff --git a/pages/app/[slug]/settings.tsx b/pages/app/[slug]/settings.tsxindex c819cbbf16..a125ae885f 100644--- a/pages/app/[slug]/settings.tsx+++ b/pages/app/[slug]/settings.tsx@@ -16,15 +16,15 @@ export default function ProjectLinks() {return (<AppLayout>- <div className="h-36 flex items-center bg-white border-b border-gray-200">+ <div className="flex h-36 items-center border-b border-gray-200 bg-white"><MaxWidthWrapper>- <div className="flex justify-between items-center">+ <div className="flex items-center justify-between"><h1 className="text-2xl text-gray-600">Settings</h1></div></MaxWidthWrapper></div><MaxWidthWrapper>- <div className="py-10 grid gap-5">+ <div className="grid gap-5 py-10"><CustomDomain /><DefaultPage /><DeleteProject />diff --git a/pages/app/index.tsx b/pages/app/index.tsxindex 463b7b57d8..8f129eea91 100644--- a/pages/app/index.tsx+++ b/pages/app/index.tsx@@ -19,9 +19,9 @@ export default function App() {return (<AppLayout>{data && <AddProjectModal />}- <div className="h-36 flex items-center bg-white border-b border-gray-200">+ <div className="flex h-36 items-center border-b border-gray-200 bg-white"><MaxWidthWrapper>- <div className="flex justify-between items-center">+ <div className="flex items-center justify-between"><h1 className="text-2xl text-gray-600">My Projects</h1>{plan === "Free" && data?.length >= FREE_PLAN_PROJECT_LIMIT ? (<Tooltip@@ -33,14 +33,14 @@ export default function App() {/>}>- <div className="text-gray-300 cursor-not-allowed font-medium text-sm px-5 py-2 border rounded-md border-gray-200 transition-all duration-75">+ <div className="cursor-not-allowed rounded-md border border-gray-200 px-5 py-2 text-sm font-medium text-gray-300 transition-all duration-75">Add</div></Tooltip>) : (<buttononClick={() => setShowAddProjectModal(true)}- className="text-white hover:text-black bg-black hover:bg-white active:scale-95 font-medium text-sm px-5 py-2 border rounded-md border-black transition-all duration-75"+ className="rounded-md border border-black bg-black px-5 py-2 text-sm font-medium text-white transition-all duration-75 hover:bg-white hover:text-black active:scale-95">Add</button>diff --git a/pages/app/links/index.tsx b/pages/app/links/index.tsxindex a4f1d12a19..e03f80cc37 100644--- a/pages/app/links/index.tsx+++ b/pages/app/links/index.tsx@@ -9,9 +9,9 @@ export default function Links() {return (<AppLayout><AddEditLinkModal />- <div className="h-36 flex items-center bg-white border-b border-gray-200">+ <div className="flex h-36 items-center border-b border-gray-200 bg-white"><MaxWidthWrapper>- <div className="flex justify-between items-center">+ <div className="flex items-center justify-between"><h1 className="text-2xl text-gray-600">My Dub.sh Links</h1><AddEditLinkButton /></div>diff --git a/pages/app/login.tsx b/pages/app/login.tsxindex 26b81e4a65..096e0e834a 100644--- a/pages/app/login.tsx+++ b/pages/app/login.tsx@@ -12,20 +12,20 @@ export default function Login() {const [buttonText, setButtonText] = useState("Send magic link");return (- <div className="h-screen w-screen flex justify-center items-center bg-gray-50">+ <div className="flex h-screen w-screen items-center justify-center bg-gray-50"><Meta />- <div className="w-full max-w-md shadow-xl rounded-2xl border border-gray-100 overflow-hidden">- <div className="flex flex-col justify-center items-center space-y-3 text-center sm:px-16 px-4 pt-8 py-6 border-b border-gray-200 bg-white">+ <div className="w-full max-w-md overflow-hidden rounded-2xl border border-gray-100 shadow-xl">+ <div className="flex flex-col items-center justify-center space-y-3 border-b border-gray-200 bg-white px-4 py-6 pt-8 text-center sm:px-16"><a href="https://dub.sh"><BlurImagesrc="/_static/logo.png"alt="Dub.sh logo"- className="w-10 h-10 rounded-full"+ className="h-10 w-10 rounded-full"width={20}height={20}/></a>- <h3 className="font-semibold text-xl">Sign In</h3>+ <h3 className="text-xl font-semibold">Sign In</h3><p className="text-sm text-gray-500">Use your email address to sign in.</p>@@ -58,7 +58,7 @@ export default function Login() {}});}}- className="flex flex-col space-y-4 bg-gray-50 sm:px-16 px-4 py-8"+ className="flex flex-col space-y-4 bg-gray-50 px-4 py-8 sm:px-16"><div><label htmlFor="email" className="block text-xs text-gray-600">@@ -75,16 +75,16 @@ export default function Login() {setNoSuchAccount(false);setEmail(e.target.value);}}- className="mt-1 appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-black focus:border-black sm:text-sm"+ className="mt-1 block w-full appearance-none rounded-md border border-gray-300 px-3 py-2 placeholder-gray-400 shadow-sm focus:border-black focus:outline-none focus:ring-black sm:text-sm"/></div><buttondisabled={signInClicked}className={`${signInClicked- ? "cursor-not-allowed bg-gray-100 border-gray-200"- : "bg-black hover:bg-white text-white hover:text-black border-black"- } flex justify-center items-center w-full text-sm h-10 rounded-md border transition-all focus:outline-none`}+ ? "cursor-not-allowed border-gray-200 bg-gray-100"+ : "border-black bg-black text-white hover:bg-white hover:text-black"+ } flex h-10 w-full items-center justify-center rounded-md border text-sm transition-all focus:outline-none`}>{signInClicked ? (<LoadingDots color="#808080" />@@ -93,18 +93,18 @@ export default function Login() {)}</button>{noSuchAccount ? (- <p className="text-red-500 text-center text-sm">+ <p className="text-center text-sm text-red-500">No such account.{" "}<Link href="/register">- <a className="text-red-600 font-semibold">Sign up</a>+ <a className="font-semibold text-red-600">Sign up</a></Link>{" "}instead?</p>) : (- <p className="text-gray-600 text-center text-sm">+ <p className="text-center text-sm text-gray-600">Don't have an account?{" "}<Link href="/register">- <a className="text-gray-800 font-semibold">Sign up</a>+ <a className="font-semibold text-gray-800">Sign up</a></Link>{" "}for free.</p>diff --git a/pages/app/register.tsx b/pages/app/register.tsxindex 8d9858af7b..69a27ccb7f 100644--- a/pages/app/register.tsx+++ b/pages/app/register.tsx@@ -12,18 +12,18 @@ export default function Login() {const [buttonText, setButtonText] = useState("Send magic link");return (- <div className="h-screen w-screen flex justify-center items-center bg-gray-50">+ <div className="flex h-screen w-screen items-center justify-center bg-gray-50"><Meta />- <div className="w-full max-w-md shadow-xl rounded-2xl border border-gray-100 overflow-hidden">- <div className="flex flex-col justify-center items-center space-y-3 text-center sm:px-16 px-4 pt-8 py-6 border-b border-gray-200 bg-white">+ <div className="w-full max-w-md overflow-hidden rounded-2xl border border-gray-100 shadow-xl">+ <div className="flex flex-col items-center justify-center space-y-3 border-b border-gray-200 bg-white px-4 py-6 pt-8 text-center sm:px-16"><BlurImagesrc="/_static/logo.png"alt="Dub.sh logo"- className="w-10 h-10 rounded-full"+ className="h-10 w-10 rounded-full"width={20}height={20}/>- <h3 className="font-semibold text-xl">Sign Up</h3>+ <h3 className="text-xl font-semibold">Sign Up</h3><p className="text-sm text-gray-500">Get started for free. No credit card required.</p>@@ -56,7 +56,7 @@ export default function Login() {}});}}- className="flex flex-col space-y-4 bg-gray-50 sm:px-16 px-4 py-8"+ className="flex flex-col space-y-4 bg-gray-50 px-4 py-8 sm:px-16"><div><label htmlFor="email" className="block text-xs text-gray-600">@@ -73,16 +73,16 @@ export default function Login() {setAccountExists(false);setEmail(e.target.value);}}- className="mt-1 appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-black focus:border-black sm:text-sm"+ className="mt-1 block w-full appearance-none rounded-md border border-gray-300 px-3 py-2 placeholder-gray-400 shadow-sm focus:border-black focus:outline-none focus:ring-black sm:text-sm"/></div><buttondisabled={signInClicked}className={`${signInClicked- ? "cursor-not-allowed bg-gray-100 border-gray-200"- : "bg-black hover:bg-white text-white hover:text-black border-black"- } flex justify-center items-center w-full text-sm h-10 rounded-md border transition-all focus:outline-none`}+ ? "cursor-not-allowed border-gray-200 bg-gray-100"+ : "border-black bg-black text-white hover:bg-white hover:text-black"+ } flex h-10 w-full items-center justify-center rounded-md border text-sm transition-all focus:outline-none`}>{signInClicked ? (<LoadingDots color="#808080" />@@ -91,18 +91,18 @@ export default function Login() {)}</button>{accountExists ? (- <p className="text-red-500 text-center text-sm">+ <p className="text-center text-sm text-red-500">This email is already registered.{" "}<Link href="/login">- <a className="text-red-600 font-semibold">Log in</a>+ <a className="font-semibold text-red-600">Log in</a></Link>{" "}instead?</p>) : (- <p className="text-gray-600 text-center text-sm">+ <p className="text-center text-sm text-gray-600">Already registered?{" "}<Link href="/login">- <a className="text-gray-800 font-semibold">Sign in</a>+ <a className="font-semibold text-gray-800">Sign in</a></Link>{" "}to your account.</p>diff --git a/pages/app/settings.tsx b/pages/app/settings.tsxindex 41faa2a319..68ba794ba3 100644--- a/pages/app/settings.tsx+++ b/pages/app/settings.tsx@@ -5,15 +5,15 @@ import AppLayout from "components/layout/app";export default function Settings() {return (<AppLayout>- <div className="h-36 flex items-center bg-white border-b border-gray-200">+ <div className="flex h-36 items-center border-b border-gray-200 bg-white"><MaxWidthWrapper>- <div className="flex justify-between items-center">+ <div className="flex items-center justify-between"><h1 className="text-2xl text-gray-600">Settings</h1></div></MaxWidthWrapper></div><MaxWidthWrapper>- <div className="py-10 grid gap-5">+ <div className="grid gap-5 py-10"><PlanUsage /></div></MaxWidthWrapper>diff --git a/prettier.config.js b/prettier.config.jsnew file mode 100644index 0000000000..a9f9a94271--- /dev/null+++ b/prettier.config.js@@ -0,0 +1,20 @@+// prettier.config.js+module.exports = {+ bracketSpacing: true,+ semi: true,+ trailingComma: "all",+ printWidth: 80,+ tabWidth: 2,+ importOrder: [+ "^(next/(.*)$)|^(next$)",+ "^(react/(.*)$)|^(react$)",+ "<THIRD_PARTY_MODULES>",+ "^@/components/(.*)$|^components/(.*)$",+ "^@/lib/(.*)$",+ "^@/styles/(.*)$",+ "^[./]",+ ],+ importOrderSeparation: false,+ importOrderSortSpecifiers: true,+ plugins: [require("prettier-plugin-tailwindcss")],+};diff --git a/yarn.lock b/yarn.lockindex 10438bebd4..f1663af59f 100644--- a/yarn.lock+++ b/yarn.lock@@ -5201,6 +5201,11 @@ prelude-ls@~1.1.2:resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz"integrity sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==+prettier-plugin-tailwindcss@^0.1.13:+ version "0.1.13"+ resolved "https://registry.yarnpkg.com/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.1.13.tgz#ca1071361dc7e2ed5d95a2ee36825ce45f814942"+ integrity sha512-/EKQURUrxLu66CMUg4+1LwGdxnz8of7IDvrSLqEtDqhLH61SAlNNUSr90UTvZaemujgl3OH/VHg+fyGltrNixw==+prettier@^2.7.1:version "2.7.1"resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64"