The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fixed mobile styles & z-index issues
Steven Tey93c1f580cbb9
diff --git a/components/app/settings/custom-domain/index.tsx b/components/app/settings/custom-domain/index.tsxindex f70b1d1af0..1ac8092209 100644--- a/components/app/settings/custom-domain/index.tsx+++ b/components/app/settings/custom-domain/index.tsx@@ -34,17 +34,17 @@ export default function CustomDomain() {const { setShowEditDomainModal, EditDomainModal } = useEditDomainModal();return (- <div className="rounded-lg border border-gray-200 bg-white py-10">+ <div className="max-w-full rounded-lg border border-gray-200 bg-white py-5 sm:py-10">{domain && <EditDomainModal />}- <div className="flex flex-col space-y-3 px-10">+ <div className="flex flex-col space-y-3 px-5 sm:px-10"><h2 className="text-xl font-medium">Custom Domain</h2><p className="text-sm text-gray-500">This is the custom domain associated with your project.</p></div>- <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">+ <div className="my-4 border-b border-gray-200 sm:my-8" />+ <div className="flex flex-col space-y-3 px-5 sm:px-10">+ <div className="flex flex-col justify-between space-y-4 sm:flex-row sm:space-x-4">{domain ? (<ahref={`http://${domain}`}diff --git a/components/app/settings/delete-project.tsx b/components/app/settings/delete-project.tsxindex 7a1396ba43..3682aad753 100644--- a/components/app/settings/delete-project.tsx+++ b/components/app/settings/delete-project.tsx@@ -6,7 +6,7 @@ export default function DeleteProject() {return (<div className="rounded-lg border border-gray-200 bg-white"><DeleteProjectModal />- <div className="flex flex-col space-y-3 p-10">+ <div className="flex flex-col space-y-3 p-5 sm:p-10"><h2 className="text-xl font-medium">Delete Project</h2><p className="text-sm text-gray-500">Permanently delete your project, custom domain, and all associated@@ -16,10 +16,10 @@ export default function DeleteProject() {</div><div className="border-b border-gray-200" />- <div className="flex items-center justify-end px-10 py-4">+ <div className="flex items-center justify-end px-5 py-4 sm:px-10"><buttononClick={() => setShowDeleteProjectModal(true)}- className="h-9 w-32 rounded-md border border-red-600 bg-red-600 text-sm text-white transition-all duration-150 ease-in-out hover:bg-white hover:text-red-600 focus:outline-none"+ className="h-9 w-full rounded-md border border-red-600 bg-red-600 text-sm text-white transition-all duration-150 ease-in-out hover:bg-white hover:text-red-600 focus:outline-none sm:w-32">Delete Project</button>diff --git a/components/app/settings/landing-page.tsx b/components/app/settings/landing-page.tsxindex 4caf9cbdc9..d7eb3b0ab9 100644--- a/components/app/settings/landing-page.tsx+++ b/components/app/settings/landing-page.tsx@@ -51,22 +51,22 @@ export default function LandingPage() {}}className="rounded-lg border border-gray-200 bg-white">- <div className="flex flex-col space-y-3 p-10">+ <div className="relative flex flex-col space-y-3 p-5 sm:p-10"><h2 className="text-xl font-medium">Landing Page</h2>- <div className="flex h-7 items-center space-x-1">+ <div className="flex items-center space-x-1"><p className="text-sm text-gray-500">- Configure a page to redirect visitors when they land on+ Configure a page to redirect visitors when they land on{" "}+ <a+ href={`https://${domain}`}+ target="_blank"+ rel="noreferrer"+ className="text-sm font-semibold text-blue-800 transition-all hover:text-black"+ >+ {domain}+ </a></p>- <a- href={`https://${domain}`}- target="_blank"- rel="noreferrer"- className="text-sm font-semibold text-blue-800 transition-all hover:text-black"- >- {domain}- </a>{domainVerified && (- <div className="flex cursor-default items-center space-x-1 rounded-md bg-gray-100 px-2 py-0.5">+ <div className="absolute top-5 right-5 flex cursor-default items-center space-x-1 rounded-md bg-gray-100 px-2 py-0.5 sm:relative sm:inset-auto"><Chart className="h-4 w-4" /><p className="text-sm text-gray-500">{isValidating || !clicks ? (@@ -117,15 +117,15 @@ export default function LandingPage() {<div className="border-b border-gray-200" />- <div className="flex items-center justify-end px-10 py-4">- {domainVerified && plan !== "Free" ? (+ <div className="px-5 py-4 sm:flex sm:items-center sm:justify-end sm:px-10">+ {false ? (<buttondisabled={saving}className={`${saving? "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`}+ } h-9 w-full rounded-md border text-sm text-white transition-all duration-150 ease-in-out focus:outline-none sm:w-32`}>{saving ? <LoadingDots /> : "Save Changes"}</button>@@ -146,8 +146,9 @@ export default function LandingPage() {/>)}+ fullWidth>- <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">+ <div className="flex h-9 w-full cursor-not-allowed items-center justify-center rounded-md border border-gray-200 bg-gray-100 text-sm text-gray-300 sm:w-32">Save Changes</div></Tooltip>diff --git a/components/app/settings/layout.tsx b/components/app/settings/layout.tsxindex b6f4cd411a..55b7c5702b 100644--- a/components/app/settings/layout.tsx+++ b/components/app/settings/layout.tsx@@ -50,8 +50,8 @@ export default function SettingsLayout({ children }: { children: ReactNode }) {</div></MaxWidthWrapper></div>- <MaxWidthWrapper className="grid grid-cols-5 items-start gap-5 py-10">- <div className="col-span-1 grid gap-1">+ <MaxWidthWrapper className="grid items-start gap-5 py-10 md:grid-cols-5">+ <div className="flex gap-1 md:grid">{tabs.map(({ name, href }) => (<Link href={href}><a@@ -64,7 +64,7 @@ export default function SettingsLayout({ children }: { children: ReactNode }) {</Link>))}</div>- <div className="col-span-4 grid gap-5">{children}</div>+ <div className="grid gap-5 md:col-span-4">{children}</div></MaxWidthWrapper></AppLayout>);diff --git a/components/layout/app/index.tsx b/components/layout/app/index.tsxindex 4875d7dc97..5f87a16c12 100644--- a/components/layout/app/index.tsx+++ b/components/layout/app/index.tsx@@ -52,11 +52,11 @@ export default function AppLayout({<Logo className="h-8 w-8 transition-all duration-75 active:scale-95" /></a></Link>- <Divider className="ml-3 h-8 w-8 text-gray-200" />+ <Divider className="h-8 w-8 text-gray-200 sm:ml-3" /><ProjectSelect />{key && slug && (<>- <Divider className="mr-3 h-8 w-8 text-gray-200" />+ <Divider className="h-8 w-8 text-gray-200 sm:mr-3" /><Link href={`/${slug}/${key}`}><a className="text-sm font-medium">{key}</a></Link>diff --git a/components/layout/app/project-select.tsx b/components/layout/app/project-select.tsxindex 1149c400d6..d72f5fabef 100644--- a/components/layout/app/project-select.tsx+++ b/components/layout/app/project-select.tsx@@ -35,13 +35,13 @@ export default function ProjectSelect() {if (!projects || !router.isReady)return (- <div className="flex h-12 w-60 animate-pulse items-center justify-end rounded-lg bg-gray-100 px-2">+ <div className="flex h-12 w-32 animate-pulse items-center justify-end rounded-lg bg-gray-100 px-2 sm:w-60"><ChevronUpDown className="h-4 w-4 text-gray-400" aria-hidden="true" /></div>);return (- <div className="w-60">+ <div className="w-32 sm:w-60"><AddProjectModal /><Popovercontent={@@ -56,7 +56,7 @@ export default function ProjectSelect() {><buttononClick={() => setOpenPopover(!openPopover)}- 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"+ className="relative w-32 cursor-pointer rounded-lg bg-white py-1.5 pl-1 text-left text-sm transition-all duration-75 hover:bg-gray-100 focus:outline-none active:bg-gray-200 sm:w-60 sm:pl-3 sm:pr-10"><div className="flex items-center justify-start space-x-3"><BlurImage@@ -65,7 +65,7 @@ export default function ProjectSelect() {`https://www.google.com/s2/favicons?sz=64&domain_url=${selected.domain}`}alt={selected.slug}- className="h-8 w-8 flex-shrink-0 overflow-hidden rounded-full"+ className="h-6 w-6 flex-shrink-0 overflow-hidden rounded-full sm:h-8 sm:w-8"width={48}height={48}/>@@ -73,7 +73,7 @@ export default function ProjectSelect() {{selected.name}</span></div>- <span className="pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2">+ <span className="pointer-events-none absolute inset-y-0 right-0 flex items-center pr-1 sm:pr-2"><ChevronUpDownclassName="h-4 w-4 text-gray-400"aria-hidden="true"@@ -103,7 +103,7 @@ function ProjectList({const { plan } = useUsage();return (- <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">+ <div className="relative mt-1 max-h-60 w-full overflow-auto rounded-md bg-white p-2 text-base sm:w-32 sm:w-60 sm:text-sm sm:shadow-lg">{projects.map(({ name, slug, domain, logo }) => (<buttonkey={slug}diff --git a/components/layout/app/user-dropdown.tsx b/components/layout/app/user-dropdown.tsxindex 56a9593c9c..9a32b9551f 100644--- a/components/layout/app/user-dropdown.tsx+++ b/components/layout/app/user-dropdown.tsx@@ -25,7 +25,7 @@ export default function UserDropdown() {><buttononClick={() => setOpenPopover(!openPopover)}- 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"+ className="flex h-9 w-9 items-center justify-center overflow-hidden rounded-full border border-gray-300 transition-all duration-75 focus:outline-none active:scale-95 sm:h-10 sm:w-10">{session && (<imgdiff --git a/components/shared/icons/divider.tsx b/components/shared/icons/divider.tsxindex 6c93adef23..eaca223842 100644--- a/components/shared/icons/divider.tsx+++ b/components/shared/icons/divider.tsx@@ -12,7 +12,7 @@ export default function Divider({ className }: { className: string }) {height="14"className={className}>- <path d="M16.88 3.549L7.12 20.451" />{" "}+ <path d="M16.88 3.549L7.12 20.451" /></svg>);}diff --git a/components/shared/tooltip.tsx b/components/shared/tooltip.tsxindex a827d59927..b66c693a48 100644--- a/components/shared/tooltip.tsx+++ b/components/shared/tooltip.tsx@@ -13,9 +13,11 @@ import { nFormatter } from "@/lib/utils";export default function Tooltip({children,content,+ fullWidth,}: {children: ReactNode;content: ReactNode | string;+ fullWidth?: boolean;}) {const [openTooltip, setOpenTooltip] = useState(false);const mobileTooltipRef = useRef(null);@@ -38,7 +40,7 @@ export default function Tooltip({return (<><button- className="inline-flex sm:hidden"+ className={`${fullWidth ? "w-full" : "inline-flex"} sm:hidden`}onClick={() => setOpenTooltip(true)}>{children}diff --git a/components/stats/toggle.tsx b/components/stats/toggle.tsxindex 3abdc236cd..4f895bbb5d 100644--- a/components/stats/toggle.tsx+++ b/components/stats/toggle.tsx@@ -38,11 +38,11 @@ export default function Toggle({return (<div- className={`z-10 mb-5 ${- pageType === "stats" ? "top-0" : "top-24"- } sticky bg-gray-50 py-5 ${atTop ? "shadow-md" : ""}`}+ className={`z-20 mb-5 ${+ pageType === "stats" ? "top-0" : "top-[6.95rem]"+ } sticky bg-gray-50 py-3 sm:py-5 ${atTop ? "shadow-md" : ""}`}>- <div className="mx-auto flex max-w-4xl items-center justify-between px-2.5 lg:px-0">+ <div className="mx-auto flex max-w-4xl flex-col items-center justify-between space-y-3 px-2.5 sm:flex-row sm:space-y-0 lg:px-0"><aclassName="group flex text-lg font-semibold text-gray-800 sm:text-xl"href={linkConstructor({ key, domain })}diff --git a/pages/app/[slug]/settings/people.tsx b/pages/app/[slug]/settings/people.tsxindex 72028cd570..5f07b2b6ce 100644--- a/pages/app/[slug]/settings/people.tsx+++ b/pages/app/[slug]/settings/people.tsx@@ -29,7 +29,7 @@ export default function ProjectSettingsPeople() {<SettingsLayout><InviteTeammateModal /><div className="rounded-lg border border-gray-200 bg-white">- <div className="flex items-center justify-between p-10">+ <div className="flex flex-col items-center justify-between space-y-3 p-5 sm:flex-row sm:space-y-0 sm:p-10"><div className="flex flex-col space-y-3"><h2 className="text-xl font-medium">People</h2><p className="text-sm text-gray-500">@@ -38,12 +38,12 @@ export default function ProjectSettingsPeople() {</div><buttononClick={() => setShowInviteTeammateModal(true)}- className="h-9 rounded-md border border-black bg-black px-6 text-sm text-white transition-all duration-150 ease-in-out hover:bg-white hover:text-black focus:outline-none"+ className="h-9 w-full rounded-md border border-black bg-black px-6 text-sm text-white transition-all duration-150 ease-in-out hover:bg-white hover:text-black focus:outline-none sm:w-auto">Invite</button></div>- <div className="flex space-x-3 border-b border-gray-200 px-7">+ <div className="flex space-x-3 border-b border-gray-200 px-3 sm:px-7">{tabs.map((tab) => (<divclassName={`${@@ -63,7 +63,7 @@ export default function ProjectSettingsPeople() {{users ? (users.length > 0 ? (users.map(({ name, email, joinedAt }) => (- <div className="flex items-center justify-between space-x-3 px-8 py-3">+ <div className="flex items-center justify-between space-x-3 px-4 py-3 sm:px-8"><div className="flex items-center space-x-3"><BlurImagesrc={`https://avatars.dicebear.com/api/micah/${email}.svg`}@@ -109,7 +109,7 @@ export default function ProjectSettingsPeople() {}const UserPlaceholder = () => (- <div className="flex items-center justify-between space-x-3 px-8 py-3">+ <div className="flex items-center justify-between space-x-3 px-4 py-3 sm:px-8"><div className="flex items-center space-x-3"><div className="h-10 w-10 animate-pulse rounded-full bg-gray-200" /><div className="flex flex-col">