diff --git a/src/pages/Signup.jsx b/src/pages/Signup.jsx index e5ee4fd..90d81dc 100644 --- a/src/pages/Signup.jsx +++ b/src/pages/Signup.jsx @@ -1,18 +1,18 @@ -import React, { useState } from 'react'; -import { Link, useNavigate } from 'react-router-dom'; -import { UserAuth } from '../context/AuthContext'; +import React, { useState } from "react"; +import { Link, useNavigate } from "react-router-dom"; +import { UserAuth } from "../context/AuthContext"; const Signup = () => { - const [email, setEmail] = useState(''); - const [password, setPassword] = useState(''); + const [email, setEmail] = useState(""); + const [password, setPassword] = useState(""); const { user, signUp } = UserAuth(); - const navigate = useNavigate() + const navigate = useNavigate(); const handleSubmit = async (e) => { e.preventDefault(); try { await signUp(email, password); - navigate('/') + navigate("/"); } catch (error) { console.log(error); } @@ -20,50 +20,50 @@ const Signup = () => { return ( <> -
+
/ -
-
-
-
-

Sign Up

+
+
+
+
+

Sign Up

setEmail(e.target.value)} - className='p-3 my-2 bg-gray-700 rouded' - type='email' - placeholder='Email' - autoComplete='email' + className="p-3 my-2 bg-gray-700 rounded" + type="email" + placeholder="Email" + autoComplete="email" /> setPassword(e.target.value)} - className='p-3 my-2 bg-gray-700 rouded' - type='password' - placeholder='Password' - autoComplete='current-password' + className="p-3 my-2 bg-gray-700 rounded" + type="password" + placeholder="Password" + autoComplete="current-password" /> - -
+

- + Remember me

Need Help?

-

- +

+ Already subscribed to Netflix? - {' '} - Sign In + {" "} + Sign In