Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.
TypeScript ai-agentai-resume-analyzerapplication-trackerapplication-tracking-systematscareerjob-applicationjob-automationjob-huntingjob-searchjob-seeker-toolsjob-trackerjob-trackingjobsearchjobseekersmcpollamaresumeresume-reviewself-hosted
Improve signin/signup page UI
Khuram Niaz171b59875dc5
diff --git a/src/app/(auth)/layout.tsx b/src/app/(auth)/layout.tsxindex 4f80e73..f047251 100644--- a/src/app/(auth)/layout.tsx+++ b/src/app/(auth)/layout.tsx@@ -1,14 +1,11 @@-import Header from "@/components/Header";--export default function DashboardLayout({+export default function AuthLayout({children,}: Readonly<{children: React.ReactNode;}>) {return (- <>- <Header />- <main className="flex items-center h-screen">{children}</main>- </>+ <main className="flex min-h-screen items-center justify-center bg-muted/40">+ {children}+ </main>);}diff --git a/src/app/(auth)/signin/page.tsx b/src/app/(auth)/signin/page.tsxindex eb47e15..e6a37cb 100644--- a/src/app/(auth)/signin/page.tsx+++ b/src/app/(auth)/signin/page.tsx@@ -1,37 +1,10 @@-import Link from "next/link";--import {- Card,- CardContent,- CardDescription,- CardHeader,- CardTitle,-} from "@/components/ui/card";import { Metadata } from "next";-import SigninForm from "@/components/auth/SigninForm";+import AuthCard from "@/components/auth/AuthCard";export const metadata: Metadata = {- title: "Signin",+ title: "Sign In",};export default function Signin() {- return (- <Card className="mx-auto max-w-sm">- <CardHeader>- <CardTitle className="text-2xl">Login</CardTitle>- <CardDescription>- Enter your email below to login to your account- </CardDescription>- </CardHeader>- <CardContent>- <SigninForm />- <div className="mt-4 text-center text-sm">- Don't have an account?{" "}- <Link href="/signup" className="underline">- Sign up- </Link>- </div>- </CardContent>- </Card>- );+ return <AuthCard mode="signin" />;}diff --git a/src/app/(auth)/signup/page.tsx b/src/app/(auth)/signup/page.tsxindex 317529c..3bfba6d 100644--- a/src/app/(auth)/signup/page.tsx+++ b/src/app/(auth)/signup/page.tsx@@ -1,37 +1,10 @@-import Link from "next/link";--import {- Card,- CardContent,- CardDescription,- CardHeader,- CardTitle,-} from "@/components/ui/card";import { Metadata } from "next";-import SignupForm from "@/components/auth/SignupForm";+import AuthCard from "@/components/auth/AuthCard";export const metadata: Metadata = {- title: "Signup",+ title: "Sign Up",};export default function Signup() {- return (- <Card className="mx-auto max-w-sm">- <CardHeader>- <CardTitle className="text-xl">Sign Up</CardTitle>- <CardDescription>- Enter your information to create an account- </CardDescription>- </CardHeader>- <CardContent>- <SignupForm />- <div className="mt-4 text-center text-sm">- Already have an account?{" "}- <Link href="/signin" className="underline">- Sign in- </Link>- </div>- </CardContent>- </Card>- );+ return <AuthCard mode="signup" />;}diff --git a/src/components/auth/AuthCard.tsx b/src/components/auth/AuthCard.tsxnew file mode 100644index 0000000..8d51d77--- /dev/null+++ b/src/components/auth/AuthCard.tsx@@ -0,0 +1,76 @@+"use client";++import { useRouter } from "next/navigation";+import SigninForm from "./SigninForm";+import SignupForm from "./SignupForm";++type AuthMode = "signin" | "signup";++interface AuthCardProps {+ mode: AuthMode;+}++export default function AuthCard({ mode }: AuthCardProps) {+ const router = useRouter();++ return (+ <div className="mx-auto w-full max-w-md px-4">+ {/* App branding */}+ <div className="mb-8 text-center">+ <h1 className="text-3xl font-bold tracking-tight">JobSync</h1>+ <p className="mt-1 text-sm text-muted-foreground">+ Track your job search, powered by AI+ </p>+ </div>++ {/* Tab toggle */}+ <div className="mb-6 flex rounded-xl border bg-muted p-1">+ <button+ onClick={() => router.push("/signin")}+ className={`flex-1 rounded-lg py-2.5 text-sm font-semibold transition-all duration-200 ${+ mode === "signin"+ ? "bg-background text-foreground shadow-sm"+ : "text-muted-foreground hover:text-foreground"+ }`}+ >+ Sign In+ </button>+ <button+ onClick={() => router.push("/signup")}+ className={`flex-1 rounded-lg py-2.5 text-sm font-semibold transition-all duration-200 ${+ mode === "signup"+ ? "bg-background text-foreground shadow-sm"+ : "text-muted-foreground hover:text-foreground"+ }`}+ >+ Create Account+ </button>+ </div>++ {/* Form card */}+ <div className="rounded-xl border bg-card p-6 shadow-sm">+ {mode === "signin" ? (+ <>+ <div className="mb-5">+ <h2 className="text-xl font-semibold">Welcome back</h2>+ <p className="mt-1 text-sm text-muted-foreground">+ Enter your credentials to access your account+ </p>+ </div>+ <SigninForm />+ </>+ ) : (+ <>+ <div className="mb-5">+ <h2 className="text-xl font-semibold">Get started</h2>+ <p className="mt-1 text-sm text-muted-foreground">+ Create a free account to start tracking your applications+ </p>+ </div>+ <SignupForm />+ </>+ )}+ </div>+ </div>+ );+}diff --git a/src/components/auth/SigninForm.tsx b/src/components/auth/SigninForm.tsxindex 7fd7859..e1473a5 100644--- a/src/components/auth/SigninForm.tsx+++ b/src/components/auth/SigninForm.tsx@@ -89,13 +89,6 @@ function SigninForm() {</FormItem>)}/>- {/* <div className="flex items-center"> */}- {/* <Label htmlFor="password">Password</Label> */}- {/* <Link href="#" className="ml-auto inline-block text-sm underline">- Forgot your password?- </Link> */}- {/* </div> */}- {/* <Input id="password" type="password" required /> */}</div><Button type="submit" disabled={isPending} className="w-full">{isPending ? <Loading /> : "Login"}