From 0ba9c2f029ba7fcb547f6f148ba6427478704555 Mon Sep 17 00:00:00 2001 From: Sean O'Connor Date: Sun, 10 May 2026 02:35:33 -0400 Subject: [PATCH] refactor: simplify register page to single centered card Remove two-column hero layout, matching the signin page style. Compact centered card: logo, heading, name/email/password form, footer. Co-Authored-By: Claude Sonnet 4.6 --- src/app/auth/register/page.tsx | 286 ++++++++++++--------------------- 1 file changed, 102 insertions(+), 184 deletions(-) diff --git a/src/app/auth/register/page.tsx b/src/app/auth/register/page.tsx index 7923777..79f8caf 100644 --- a/src/app/auth/register/page.tsx +++ b/src/app/auth/register/page.tsx @@ -9,7 +9,7 @@ import { Label } from "~/components/ui/label"; import { toast } from "sonner"; import { Logo } from "~/components/branding/logo"; import { LegalModal } from "~/components/ui/legal-modal"; -import { Mail, Lock, ArrowRight, User, Clock, Rocket, Zap } from "lucide-react"; +import { Mail, Lock, ArrowRight, User } from "lucide-react"; function RegisterForm() { const router = useRouter(); @@ -27,12 +27,7 @@ function RegisterForm() { const res = await fetch("/api/auth/register", { method: "POST", headers: { "Content-Type": "application/json" }, - body: JSON.stringify({ - firstName, - lastName, - email, - password, - }), + body: JSON.stringify({ firstName, lastName, email, password }), }); setLoading(false); @@ -47,205 +42,128 @@ function RegisterForm() { } return ( -
- - - {/* Hero Section - Hidden on mobile */} -
-
-
-
- -
-
-

- Start your - invoicing journey -

-

- Join thousands of freelancers and small businesses who trust - beenvoice to manage their invoicing and get paid faster. -

-
-
+
+
+
+
+
-
-
-
- -
-
-

Quick Setup

-

- Get started in minutes with our intuitive setup wizard -

-
-
- -
-
- -
-
-

Fast Payments

-

- Professional invoices that get you paid 3x faster -

-
-
- -
-
- -
-
-

Time Tracking

-

- Track time and convert it to accurate invoices instantly -

-
-
+ + +
+
+ +
+

Create your account

+

Get started today

-
- - {/* Sign Up Form */} -
-
- {/* Mobile Logo */} -
- -
- -
-

Create your account

-

- Supercharge your invoicing today -

-
- -
-
-
- -
- - setFirstName(e.target.value)} - required - autoFocus - className="h-11 pl-10" - placeholder="John" - /> -
-
- -
- -
- - setLastName(e.target.value)} - required - className="h-11 pl-10" - placeholder="Doe" - /> -
-
-
+ +
- +
- + setEmail(e.target.value)} + id="firstName" + type="text" + value={firstName} + onChange={(e) => setFirstName(e.target.value)} required - className="h-11 pl-10" - placeholder="john@example.com" + autoFocus + className="h-10 pl-10" + placeholder="John" />
- +
- + setPassword(e.target.value)} + id="lastName" + type="text" + value={lastName} + onChange={(e) => setLastName(e.target.value)} required - className="h-11 pl-10" - placeholder="Create a strong password" + className="h-10 pl-10" + placeholder="Doe" />
-

- Must be at least 8 characters long -

- - - - -
- Already have an account?{" "} - - Sign in -
-
- By creating an account, you agree to our{" "} - - Terms of Service - - } - />{" "} - and{" "} - - Privacy Policy - - } - /> - . +
+ +
+ + setEmail(e.target.value)} + required + className="h-10 pl-10" + placeholder="you@example.com" + /> +
-
+ +
+ +
+ + setPassword(e.target.value)} + required + minLength={8} + className="h-10 pl-10" + placeholder="••••••••" + /> +
+

At least 8 characters

+
+ + + + +

+ Already have an account?{" "} + + Sign in + +

+ +

+ By creating an account you agree to our{" "} + Terms} + />{" "} + and{" "} + Privacy Policy} + /> + . +