The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
add link back to dub.sh from register page
Steven Teyba21b1769f17
diff --git a/pages/app/login.tsx b/pages/app/login.tsxindex b182548471..0a11baf548 100644--- a/pages/app/login.tsx+++ b/pages/app/login.tsx@@ -22,7 +22,13 @@ export default function Login() {<Background /><div className="z-10 mt-[calc(30vh)] h-fit w-full max-w-md overflow-hidden border border-gray-100 sm:rounded-2xl sm: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">+ <a+ href={+ process.env.NEXT_PUBLIC_VERCEL_ENV === "production"+ ? "https://dub.sh"+ : "http://localhost:3000"+ }+ ><BlurImagesrc="/_static/logo.png"alt="Dub.sh logo"diff --git a/pages/app/register.tsx b/pages/app/register.tsxindex 3ea3a986af..daa261f723 100644--- a/pages/app/register.tsx+++ b/pages/app/register.tsx@@ -5,7 +5,7 @@ import BlurImage from "#/ui/blur-image";import Background from "@/components/shared/background";import { Google } from "@/components/shared/icons";import Button from "#/ui/button";-import { SSOWaitlist, TooltipContent } from "#/ui/tooltip";+import { SSOWaitlist } from "#/ui/tooltip";import Link from "next/link";export default function Register() {@@ -17,13 +17,21 @@ export default function Register() {<Background /><div className="z-10 mt-[calc(30vh)] h-fit w-full max-w-md overflow-hidden border border-gray-100 sm:rounded-2xl sm: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">- <BlurImage- src="/_static/logo.png"- alt="Dub.sh logo"- className="h-10 w-10 rounded-full"- width={20}- height={20}- />+ <a+ href={+ process.env.NEXT_PUBLIC_VERCEL_ENV === "production"+ ? "https://dub.sh"+ : "http://localhost:3000"+ }+ >+ <BlurImage+ src="/_static/logo.png"+ alt="Dub.sh logo"+ className="h-10 w-10 rounded-full"+ width={20}+ height={20}+ />+ </a><h3 className="text-xl font-semibold">Create your Dub account</h3><p className="text-sm text-gray-500">Get started for free. No credit card required.