The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update auth layout + WIP register page
Tim Wilsonaa9de4314332
diff --git a/apps/web/app/app.dub.co/(auth)/layout.tsx b/apps/web/app/app.dub.co/(auth)/layout.tsxindex e00dd4d58c..aaa605a6f2 100644--- a/apps/web/app/app.dub.co/(auth)/layout.tsx+++ b/apps/web/app/app.dub.co/(auth)/layout.tsx@@ -1,6 +1,6 @@import Toolbar from "@/ui/layout/toolbar/toolbar";-import { NewBackground } from "@/ui/shared/new-background";-import { Wordmark } from "@dub/ui";+import { Grid, Wordmark } from "@dub/ui";+import { cn } from "@dub/utils";import Link from "next/link";import { ReactNode } from "react";@@ -8,9 +8,49 @@ export default function AuthLayout({ children }: { children: ReactNode }) {return (<><Toolbar />- <NewBackground />++ <div className="absolute inset-0 isolate overflow-hidden bg-white">+ {/* Grid */}+ <div+ className={cn(+ "absolute inset-y-0 left-1/2 w-[1200px] -translate-x-1/2",+ "[mask-composite:intersect] [mask-image:linear-gradient(black,transparent_320px),linear-gradient(90deg,transparent,black_5%,black_95%,transparent)]",+ )}+ >+ <Grid+ cellSize={60}+ patternOffset={[0.75, 0]}+ className="text-neutral-200"+ />+ </div>++ {/* Gradient */}+ {[...Array(2)].map((_, idx) => (+ <div+ key={idx}+ className={cn(+ "absolute left-1/2 top-6 size-[80px] -translate-x-1/2 -translate-y-1/2 scale-x-[1.6]",+ idx === 0 ? "mix-blend-overlay" : "opacity-10",+ )}+ >+ {[...Array(idx === 0 ? 2 : 1)].map((_, idx) => (+ <div+ key={idx}+ className={cn(+ "absolute -inset-16 mix-blend-overlay blur-[50px] saturate-[2]",+ "bg-[conic-gradient(from_90deg,#F00_5deg,#EAB308_63deg,#5CFF80_115deg,#1E00FF_170deg,#855AFC_220deg,#3A8BFD_286deg,#F00_360deg)]",+ )}+ />+ ))}+ </div>+ ))}+ </div>+<div className="relative flex min-h-screen w-full justify-center">- <Link href="/" className="absolute left-4 top-3 z-10">+ <Link+ href="/"+ className="absolute left-1/2 top-3 z-10 -translate-x-1/2"+ ><Wordmark className="h-6" /></Link>{children}diff --git a/apps/web/app/app.dub.co/(auth)/register/page-client.tsx b/apps/web/app/app.dub.co/(auth)/register/page-client.tsxindex affde51be9..61ea4dec4f 100644--- a/apps/web/app/app.dub.co/(auth)/register/page-client.tsx+++ b/apps/web/app/app.dub.co/(auth)/register/page-client.tsx@@ -20,11 +20,11 @@ export default function RegisterPageClient() {function SignUp() {return (<>- <div className="w-full max-w-md overflow-hidden border-y border-neutral-200 sm:rounded-2xl sm:border sm:shadow-sm">- <div className="border-b border-neutral-200 bg-white pb-6 pt-8 text-center">- <h3 className="text-lg font-semibold">Get started with Dub</h3>- </div>- <div className="bg-neutral-50 px-4 py-8 sm:px-16">+ <div className="w-full max-w-sm">+ <h3 className="text-center text-xl font-semibold">+ Create your Dub account+ </h3>+ <div className="mt-8"><SignUpForm /></div></div>diff --git a/apps/web/ui/layout/auth-layout.tsx b/apps/web/ui/layout/auth-layout.tsxindex 08b8f5da6e..d03aad8ce4 100644--- a/apps/web/ui/layout/auth-layout.tsx+++ b/apps/web/ui/layout/auth-layout.tsx@@ -1,84 +1,41 @@-import { BlurImage, ClientOnly } from "@dub/ui";+import { ClientOnly } from "@dub/ui";import { Suspense } from "react";-const logos = [- "vercel",- "perplexity",- "prisma",- "tinybird",- "hashnode",- "cal",- "vercel",- "perplexity",- "prisma",- "tinybird",- "hashnode",- "cal",-];-interface AuthLayoutProps {children: React.ReactNode;}export const AuthLayout = ({ children }: AuthLayoutProps) => {return (- <div className="grid w-full grid-cols-1 md:grid-cols-5">- <div className="col-span-1 flex min-h-screen flex-col items-center justify-between border-r border-neutral-200 bg-white/10 shadow-[inset_10px_-50px_94px_0_rgb(199,199,199,0.2)] backdrop-blur sm:col-span-3">- <div className="flex h-full w-full flex-col items-center justify-center">- <ClientOnly className="relative flex w-full flex-col items-center justify-center">- <Suspense>{children}</Suspense>- </ClientOnly>- </div>-- <div className="grid gap-2 pb-8 pt-4">- <p className="text-xs text-neutral-600">- © {new Date().getFullYear()} Dub Technologies, Inc.- </p>- <div className="flex gap-3 text-center text-xs text-neutral-500 underline underline-offset-2">- <a- href="https://dub.co/legal/privacy"- target="_blank"- className="hover:text-neutral-800"- >- Privacy Policy- </a>- <a- href="https://dub.co/legal/terms"- target="_blank"- className="hover:text-neutral-800"- >- Terms of Service- </a>- </div>- </div>+ <div className="flex min-h-screen flex-col items-center justify-between">+ {/* Empty div to help center main content */}+ <div className="grow basis-0">+ <div className="h-20" /></div>- <div className="hidden h-full flex-col justify-center space-y-12 overflow-hidden md:col-span-2 md:flex">- <div className="ml-12 h-1/2 w-[140%] rounded-xl border border-neutral-200 p-2 shadow-xl">- <BlurImage- alt="Dub Analytics"- src="https://assets.dub.co/changelog/new-dashboard.jpg"- width={2400}- height={1260}- className="aspect-[2400/1260] h-full rounded-lg border border-neutral-200 object-cover object-left-top"- />- </div>- <a- href="https://dub.co/customers"- target="_blank"- className="animate-infinite-scroll flex items-center space-x-4"- >- {logos.map((logo, idx) => (- <BlurImage- alt={`${logo} logo`}- key={idx}- src={`https://assets.dub.co/clients/${logo}.svg`}- width={520}- height={182}- className="h-12 grayscale transition-all hover:grayscale-0"- />- ))}- </a>+ <ClientOnly className="relative flex w-full flex-col items-center justify-center px-4">+ <Suspense>{children}</Suspense>+ </ClientOnly>++ <div className="flex grow basis-0 flex-col justify-end">+ <p className="px-20 py-8 text-center text-xs font-medium text-neutral-500 md:px-0">+ By continuing, you agree to Dub’s{" "}+ <a+ href="https://dub.co/legal/terms"+ target="_blank"+ className="font-semibold text-neutral-600 hover:text-neutral-800"+ >+ Terms of Service+ </a>{" "}+ and{" "}+ <a+ href="https://dub.co/legal/privacy"+ target="_blank"+ className="font-semibold text-neutral-600 hover:text-neutral-800"+ >+ Privacy Policy+ </a>+ </p></div></div>);