-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup.html
88 lines (82 loc) · 4.85 KB
/
signup.html
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="icon" href="./files/logo.png">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Paytone+One&family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">
<link rel="stylesheet"
href="https://unpkg.com/boxicons@latest/css/boxicons.min.css">
<title>Sign Up | foodZone</title>
</head>
<body class="signup">
<div class="container-fluid d-flex justify-content-center align-items-center min-vh-100">
<div class="row rounded-5 bg-white shadow box-area ">
<div class="col-md-6 w-50 left-box"></div>
<div class="col-md-6 p-4 w-50 right-box">
<div class="row align-items-center">
<div class="header-text mb-3">
<h2>Sign Up</h2>
<p>Bring smile on the faces of people!</p>
</div>
<form action="/signup" method="post" onsubmit="validate()">
<div class="input-group mb-2">
Register as:
<div class="form-check">
<input class="form-check-input m-1" type="radio" name="donor" id="donor" checked>
<label for="donor" class="form-check-label">Donor</label>
</div>
<div class="form-check">
<input class="form-check-input m-1" type="radio" name="donor" id="receiver">
<label for="receiver" class="form-check-label">Receiver(NGO)</label>
</div>
</div>
<div class="input-group mb-3">
<input type="text" name="username" id="username" required placeholder="Enter Username" class="form-control form-control-lg bg-light-subtle fs-6">
</div>
<div class="input-group mb-3">
<input type="email" name="email" id="email" required placeholder="Enter Email" class="form-control form-control-lg bg-light-subtle fs-6">
</div>
<div class="input-group mb-3">
<input type="password" name="password" id="password" required placeholder="Enter Password" class="form-control form-control-lg bg-light-subtle fs-6">
</div>
<div class="input-group mb-2">
<input type="password" name="cnfpassword" id="cnfpassword" required placeholder="Confirm Password" class="form-control form-control-lg bg-light-subtle fs-6">
</div>
<div class="input-group mb-4 d-flex">
<div class="form-check">
<input type="checkbox" name="" required class="form-check-input" id="formCheck" checked>
<label for="formCheck" class="form-check-label text-secondary"><small>I agree to the Terms & Conditions</small></label>
</div>
</div>
<div class="input-group mb-3">
<button class="btn btn-lg btn-primary w-100 fs-5">Sign Up</button>
</div>
</form>
<div class="row">
<small class="fs-6">Already a member? <a href="./login.html">Login</a> </small>
</div>
<div class="row">
<small class="fs-6">Go back <a href="./index.html">Home</a> </small>
</div>
</div>
</div>
</div>
</div>
<script>
const p=document.getElementById('password');
const cnf=document.getElementById('cnfpassword');
function validate(){
if(p.value!=cnf.value){
alert("Password does not match!");
return false;
}
return true;
}
</script>
</body>
</html>