2026-02-05 15:56:41 +09:00
|
|
|
import Link from "next/link";
|
2026-02-05 16:36:42 +09:00
|
|
|
import { AUTH_ROUTES } from "@/features/auth/constants";
|
2026-02-05 15:56:41 +09:00
|
|
|
import FormMessage from "@/components/form-message";
|
|
|
|
|
import SignupForm from "@/features/auth/components/signup-form";
|
|
|
|
|
import {
|
|
|
|
|
Card,
|
|
|
|
|
CardContent,
|
|
|
|
|
CardDescription,
|
|
|
|
|
CardHeader,
|
|
|
|
|
CardTitle,
|
|
|
|
|
} from "@/components/ui/card";
|
2026-02-11 14:06:06 +09:00
|
|
|
import { UserPlus } from "lucide-react";
|
2026-02-05 15:56:41 +09:00
|
|
|
|
|
|
|
|
export default async function SignupPage({
|
|
|
|
|
searchParams,
|
|
|
|
|
}: {
|
|
|
|
|
searchParams: Promise<{ message: string }>;
|
|
|
|
|
}) {
|
|
|
|
|
const { message } = await searchParams;
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div className="relative z-10 w-full max-w-md animate-in fade-in slide-in-from-bottom-4 duration-700">
|
|
|
|
|
<FormMessage message={message} />
|
|
|
|
|
|
2026-02-11 14:06:06 +09:00
|
|
|
<Card className="border-brand-200/30 bg-white/80 shadow-2xl shadow-brand-500/5 backdrop-blur-xl dark:border-brand-800/30 dark:bg-brand-950/70">
|
2026-02-05 15:56:41 +09:00
|
|
|
<CardHeader className="space-y-3 text-center">
|
2026-02-11 14:06:06 +09:00
|
|
|
<div className="mx-auto mb-2 flex h-16 w-16 items-center justify-center rounded-2xl bg-linear-to-br from-brand-500 to-brand-700 shadow-lg shadow-brand-500/25">
|
|
|
|
|
<UserPlus className="h-7 w-7 text-white" />
|
2026-02-05 15:56:41 +09:00
|
|
|
</div>
|
|
|
|
|
<CardTitle className="text-3xl font-bold tracking-tight">
|
|
|
|
|
회원가입
|
|
|
|
|
</CardTitle>
|
|
|
|
|
<CardDescription className="text-base">
|
|
|
|
|
몇 가지 정보만 입력하면 바로 시작할 수 있습니다.
|
|
|
|
|
</CardDescription>
|
|
|
|
|
</CardHeader>
|
|
|
|
|
|
|
|
|
|
<CardContent className="space-y-6">
|
|
|
|
|
<SignupForm />
|
|
|
|
|
|
2026-02-11 14:06:06 +09:00
|
|
|
<p className="text-center text-sm text-muted-foreground">
|
2026-02-05 15:56:41 +09:00
|
|
|
이미 계정이 있으신가요?{" "}
|
|
|
|
|
<Link
|
2026-02-05 16:36:42 +09:00
|
|
|
href={AUTH_ROUTES.LOGIN}
|
2026-02-11 14:06:06 +09:00
|
|
|
className="font-semibold text-brand-600 transition-colors hover:text-brand-700 dark:text-brand-400 dark:hover:text-brand-300"
|
2026-02-05 15:56:41 +09:00
|
|
|
>
|
|
|
|
|
로그인 하러 가기
|
|
|
|
|
</Link>
|
|
|
|
|
</p>
|
|
|
|
|
</CardContent>
|
|
|
|
|
</Card>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|