Skip to content

Commit e04128f

Browse files
Header of signup page fixed
1 parent 4d3c6b6 commit e04128f

2 files changed

Lines changed: 29 additions & 37 deletions

File tree

frontend/app/signup/page.tsx

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -182,31 +182,24 @@ function SignUpPageFallback() {
182182
export default function SignUpPage() {
183183
return (
184184
<div className="flex min-h-screen flex-col bg-background text-foreground">
185-
<Header
186-
trailing={
187-
<Link
188-
href="/"
189-
className="text-sm font-semibold text-muted-foreground transition-colors hover:text-foreground"
190-
>
191-
Back to home
192-
</Link>
193-
}
194-
/>
195-
<main className="flex flex-1 flex-col items-center justify-center px-6 pb-12 pt-6 sm:px-10 lg:px-12">
196-
<div className="w-full max-w-[400px] space-y-8">
197-
<Suspense fallback={<SignUpPageFallback />}>
198-
<AuthForm />
199-
</Suspense>
200-
201-
{/* Footer */}
202-
{/* <footer className="flex justify-center gap-4 text-center text-sm text-muted-foreground">
203-
<Link href="#" className="hover:text-foreground">
204-
Terms
205-
</Link>
206-
<Link href="#" className="hover:text-foreground">
207-
Privacy Policy
185+
{/* Same shell as landing (`app/page.tsx`): padded `main` so the header gets `py-8` top space */}
186+
<main className="mx-auto flex w-full max-w-6xl flex-1 flex-col px-6 py-8 sm:px-10 lg:px-12">
187+
<Header
188+
trailing={
189+
<Link
190+
href="/"
191+
className="text-sm font-semibold text-muted-foreground transition-colors hover:text-foreground"
192+
>
193+
Back to home
208194
</Link>
209-
</footer> */}
195+
}
196+
/>
197+
<div className="flex min-h-0 flex-1 flex-col items-center justify-center pb-12 pt-4">
198+
<div className="w-full max-w-[400px] space-y-8">
199+
<Suspense fallback={<SignUpPageFallback />}>
200+
<AuthForm />
201+
</Suspense>
202+
</div>
210203
</div>
211204
</main>
212205
</div>

frontend/components/Header.tsx

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,21 @@ type HeaderProps = {
66
trailing?: ReactNode;
77
};
88

9+
/** Same row layout as `HomeHeader`; wrap in a `main` with `px-6 py-8 sm:px-10 lg:px-12` like the landing page. */
910
export function Header({ trailing }: HeaderProps) {
1011
return (
11-
<header className="w-full border-b border-border pb-6">
12-
<div className="mx-auto flex w-full max-w-6xl items-center justify-between px-6 sm:px-10 lg:px-12">
13-
<Link href="/" className="text-2xl font-semibold tracking-tight text-foreground">
14-
What to read AI
12+
<header className="flex w-full items-center justify-between border-b border-border pb-6">
13+
<Link href="/" className="text-2xl font-semibold tracking-tight text-foreground">
14+
What to read AI
15+
</Link>
16+
{trailing ?? (
17+
<Link
18+
href="/signup"
19+
className="rounded-full border border-foreground px-5 py-2 text-sm font-semibold text-foreground transition-colors hover:bg-foreground hover:text-background"
20+
>
21+
Sign Up
1522
</Link>
16-
{trailing ?? (
17-
<Link
18-
href="/signup"
19-
className="rounded-full border border-foreground px-5 py-2 text-sm font-semibold text-foreground transition-colors hover:bg-foreground hover:text-background"
20-
>
21-
Sign Up
22-
</Link>
23-
)}
24-
</div>
23+
)}
2524
</header>
2625
);
2726
}

0 commit comments

Comments
 (0)