Skip to content

Commit 668b74d

Browse files
style: login card alignments
1 parent 7fadbd9 commit 668b74d

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

src/app/(auth)/login/login-form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function LoginForm() {
1616
const [sent, setSent] = useState(false)
1717

1818
return (
19-
<div className="flex flex-col gap-6 py-2 px-2">
19+
<div className="flex flex-col gap-6">
2020
{!sent ? (
2121
<EmailCard email={email} onChange={(v) => setEmail(v)} onSend={() => setSent(true)} />
2222
) : (

src/app/(auth)/login/page.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { redirect } from "next/navigation"
2-
import { Card } from "@/components/ui/card"
2+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"
33
import { getServerSession } from "@/server/auth"
44
import LoginForm from "./login-form"
55

@@ -10,9 +10,15 @@ export default async function Page() {
1010
return (
1111
<main className="w-full flex flex-col flex-1 items-center justify-center max-w-3xl">
1212
<Card className="flex w-full bg-background flex-col items-center p-6">
13-
<h1 className="text-2xl font-bold mb-2 py-1">Login</h1>
14-
<p className="text-lg md:text-sm text-muted-foreground mb-6">Login with Email OTP or Passkey</p>
15-
<LoginForm />
13+
<CardHeader className="w-full">
14+
<CardTitle className="text-2xl font-bold py-1">Login</CardTitle>
15+
<CardDescription className="text-lg md:text-sm text-muted-foreground">
16+
Login with Email OTP or Passkey
17+
</CardDescription>
18+
</CardHeader>
19+
<CardContent className="py-6">
20+
<LoginForm />
21+
</CardContent>
1622
</Card>
1723
</main>
1824
)

0 commit comments

Comments
 (0)