-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
65 lines (60 loc) · 2.5 KB
/
index.php
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
// session_start();
require_once 'includes/signup_func.inc.php'; // i can pass only the view functions
require_once 'includes/login_func.inc.php'; // i can pass only the view functions
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css"> -->
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/login_style.css">
<title>Task Manager | Authentfication</title>
</head>
<body>
<div class="container" id="container">
<div class="form-container sign-up">
<form action="includes/signup.inc.php" method="post">
<h1>Create Account</h1>
<input type="text" name="username" placeholder="Username" required>
<input type="password" name="pwd" placeholder="Password" required>
<input type="email" name="email" placeholder="Email" required>
<button>Sign Up</button>
</form>
<?php
check_signup_errors();
?>
</div>
<div class="form-container sign-in">
<form action="includes/login.inc.php" method="post">
<h1>Sign In</h1>
<input type="text" name="username" placeholder="Username" required>
<input type="password" name="pwd" placeholder="Password" required>
<!-- TODO: add function for forgeted password -->
<a href="">Forget your password?</a>
<button>Login</button>
</form>
<?php
check_login_errors();
?>
</div>
<div class="toggle-container">
<div class="toggle">
<div class="toggle-panel toggle-left">
<h1>Welcome Back!</h1>
<p>Enter your personnel details to use all of site features</p>
<button class='hidden' id="login">Sign In</button>
</div>
<div class="toggle-panel toggle-right">
<h1>Hello, Friend!</h1>
<p>Register with your personnel details to use all of site features</p>
<button class='hidden' id="register">Sign Up</button>
</div>
</div>
</div>
</div>
<script src="js/script.js"></script>
</body>
</html>