-
Notifications
You must be signed in to change notification settings - Fork 2
/
text.txt
51 lines (44 loc) · 1.36 KB
/
text.txt
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
46
47
48
49
50
51
import React, { useState } from 'react';
import "./SigninForm.css"
function SignInForm() {
const [fullName, setFullName] = useState('');
const [email, setEmail] = useState('');
const [acceptTerms, setAcceptTerms] = useState(false);
function handleFullNameChange(event) {
setFullName(event.target.value);
}
function handleEmailChange(event) {
setEmail(event.target.value);
}
function handleAcceptTermsChange(event) {
setAcceptTerms(event.target.checked);
}
return (
<form>
<button>
Sign in with Google
</button>
<div className='flex flex-row'>
<hr/>OR<hr/>
</div>
<label>
Full Name<span style={{ color: "red" }}>*</span>
<input type="text" value={fullName} onChange={handleFullNameChange} />
</label>
<label>
Email<span style={{ color: "red" }}>*</span>
<input type="email" value={email} onChange={handleEmailChange} />
</label>
<label>
<input
type="checkbox"
checked={acceptTerms}
onChange={handleAcceptTermsChange}
/>
I agree to the processing of my personal data (name and email) for the purpose of conducting the assessment. Read <a href="">Privacy Policy</a> to know more.
</label>
<input type="submit" value="Sign In" />
</form>
);
}
export default SignInForm