signup.jsx
1.09 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
43
44
45
import { Link } from "react-router-dom";
// styles
import "../styles/layout.scss";
function Signup() {
const handleSubmit = (e) => {
e.preventDefault();
console.log("signup form submit called");
};
return (
<div className="container">
<h1>Welcome to Weather-Chatbot/Messanger!</h1>
<h2>Stay connected with weather/friends all the time</h2>
<button>Create account with Google</button>
<button>Create account with GitHub</button>
<br />
<form className="authForm" onSubmit={(e) => handleSubmit(e)}>
<label htmlFor="username">
username: <input type="text" id="username" />
</label>
<label htmlFor="email">
email: <input type="text" id="email" />
</label>
<label htmlFor="password">
password: <input type="text" id="password" />
</label>
<label htmlFor="submit">
<input type="submit" id="submit" />
</label>
</form>
<br />
<p>
Have an account? <Link to="/login">Login</Link>
</p>
</div>
);
}
export default Signup;