-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsign-up.tsx
More file actions
42 lines (38 loc) · 1.06 KB
/
Copy pathsign-up.tsx
File metadata and controls
42 lines (38 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
"use client";
import { Link } from "nextjs13-progress";
import { signIn } from "next-auth/react";
import { Button, buttonVariants } from "@/components/ui/button";
import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/components/ui/card";
import { Icons } from "./icons";
import type { FC } from "react";
interface SignUpProps {}
const SignUp: FC<SignUpProps> = ({}) => {
return (
<Card className="w-full mx-4 mt-20 sm:w-[400px]">
<CardHeader>
<CardTitle>Login to CPPS</CardTitle>
<CardDescription>
You can create account or login to existing one using Google
</CardDescription>
</CardHeader>
<CardContent>
<Button className="w-full" onClick={() => signIn("google")}>
<Icons.google className="w-4 h-4 mr-1.5" /> Login with Google
</Button>
</CardContent>
<CardFooter>
<Link href="/" className={buttonVariants({ variant: "outline" })}>
Back
</Link>
</CardFooter>
</Card>
);
};
export default SignUp;