diff --git a/frontend/app/(guest-only)/login/page.tsx b/frontend/app/(guest-only)/login/page.tsx index 3d9c4ad9..b550ba56 100644 --- a/frontend/app/(guest-only)/login/page.tsx +++ b/frontend/app/(guest-only)/login/page.tsx @@ -1,12 +1,5 @@ import LoginForm from "@/app/ui/auth/login-form"; export default function LoginPage() { - return ( - <> - - - login with 42 - - > - ); + return ; } diff --git a/frontend/app/(guest-only)/signup/page.tsx b/frontend/app/(guest-only)/signup/page.tsx index 3d6e7a7a..61170964 100644 --- a/frontend/app/(guest-only)/signup/page.tsx +++ b/frontend/app/(guest-only)/signup/page.tsx @@ -2,12 +2,5 @@ import SignUpForm from "@/app/ui/auth/signup-form"; export default function SignUp() { - return ( - <> - - - sign up with 42 - - > - ); + return ; } diff --git a/frontend/app/ui/auth/login-form.tsx b/frontend/app/ui/auth/login-form.tsx index 261fd9ab..9afaf4c2 100644 --- a/frontend/app/ui/auth/login-form.tsx +++ b/frontend/app/ui/auth/login-form.tsx @@ -3,22 +3,43 @@ import { authenticate } from "@/app/lib/actions"; import { useAuthContext } from "@/app/lib/client-auth"; import { Button } from "@/components/ui/button"; -import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; +import { + Card, + CardContent, + CardFooter, + CardHeader, + CardTitle, +} from "@/components/ui/card"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { useFormState, useFormStatus } from "react-dom"; import { useRouter } from "next/navigation"; import { useEffect } from "react"; +import { Separator } from "@/components/ui/separator"; export default function LoginForm() { return ( <> - + - Pong + Log in - + + + + + OR + + + + + Login with 42 + + + > @@ -59,15 +80,13 @@ function Form() { - - {code === "CredentialSignin" && ( - <> - - Invalid credentials - - > - )} - + {code === "CredentialSignin" && ( + + + Invalid credentials + + + )} > ); diff --git a/frontend/app/ui/auth/signup-form.tsx b/frontend/app/ui/auth/signup-form.tsx index 8da18715..a4ec40ab 100644 --- a/frontend/app/ui/auth/signup-form.tsx +++ b/frontend/app/ui/auth/signup-form.tsx @@ -1,5 +1,7 @@ import Form from "@/app/ui/user/create-form"; +import { Button } from "@/components/ui/button"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; +import { Separator } from "@/components/ui/separator"; export default function SignUpForm() { return ( @@ -8,7 +10,19 @@ export default function SignUpForm() { Create Account - + + + + + OR + + + + + Sign up with 42 + + + );
- Invalid credentials -
+ Invalid credentials +