-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.txt
42 lines (41 loc) · 1.2 KB
/
test.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
<div>
<h1>Register</h1>
<input
placeholder="username"
onChange={(e) =>setRegisterUsername(e.target.value)}
/>
<input
placeholder="password"
onChange={(e) =>setRegisterPassword(e.target.value)}
/>
<button onClick={register}>Submit</button>
</div>
<div>
<h1>Login</h1>
<input
placeholder="username"
onChange={e =>setLoginUsername(e.target.value)}
/>
<input
placeholder="password"
onChange={e =>setLoginPassword(e.target.value)}
/>
<button onClick={login}>Submit</button>
</div>
<div>
<h1>Logout</h1>
<button onClick={logoutPage}></button>
{
logout ? "Succesfully logout":null
}
</div>
<div>Get User</div>
<button onClick={getUser}>Submit</button>
{
data ? <h1>Welcome Back {data.username}</h1>: null
}
<div className="overlay-panel overlay-left">
<h1>Welcome Back!</h1>
<p>To keep connected with us please login with your personal info</p>
<button className="ghost" id="signIn">Sign In</button>
</div>