-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathregistration.html
77 lines (72 loc) · 3.99 KB
/
registration.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF=8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://cdn.tailwindcss.com"></script>
<title>Registration Form</title>
<style>
input#name:invalid:focus{
border: 1px solid red;
}
input#email:invalid:focus{
border: 1px solid red;
}
input#password:invalid:focus{
border: 1px solid red;
}
</style>
</head>
<body>
<div
class="relative flex min-h-screen flex-col justify-center overflow-hidden py-6 bg-gray-50">
<div class="relative bg-white px-6 pt-5 pb-5 shadow-xl ring-1 ring-gray-900/5 sm:mx-auto sm:max-w-lg sm:rounded-lg sm:px-10">
<div class="mx-auto max-w-md">
<h2 class="text-3xl text-center font-bold leading-tight">
Registration Form
</h2>
<div class="divide-y divide-gray-300/50">
<div class="space-y-6 py-8 text-base leading-7 text-gray-600">
<form id="user-form">
<label for="name" class="text-md w-40 inline-block font-medium leading-5 text-gray-700">
Name
</label>
<input required type="text" id="name" name="name" class="bg-gray-100 inline-block rounded-lg shadow-md px-4 py-3 mb-5 text-base leading-6 placeholder-gray-500" placeholder="Enter full name"> </br>
<label for="email" class="text-md w-40 inline-block font-medium leading-5 text-gray-700">
Email
</label>
<input required type="email" id="email" name="email" class="bg-gray-100 inline-block rounded-lg shadow-md px-4 py-3 mb-5 text-base leading-6 placeholder-gray-500" placeholder="Enter email"> </br>
<label for="password" class="text-md w-40 inline-block font-medium leading-5 text-gray-700">
Password
</label>
<input required type="password" id="password" name="password" class="bg-gray-100 inline-block rounded-lg shadow-md px-4 py-3 mb-5 text-base leading-6 placeholder-gray-500" placeholder="Enter password"> </br>
<label for="dob" class="text-md w-40 inline-block font-medium leading-5 text-gray-700">
Date of Birth
</label>
<input required type="date" id="dob" name="dob" class="bg-gray-100 inline-block rounded-lg shadow-md px-4 py-3 mb-5 text-base leading-5 placeholder-gray-500"> </br>
<label for="acceptTerms" class="text-md w-40 inline-block font-medium leading-5 text-gray-700">
Accept Terms & Conditions
</label>
<input type="checkbox" id="acceptTerms" name="acceptTerms" class="bg-gray-100 inline-block rounded-lg shadow-md px-4 py-3 mb-5 text-base leading-6 placeholder-gray-500"> </br>
<button type="submit" id="submit" class="w-fit rounded-lg shadow-lg px-8 py-4 bg-green-500 text-white hover:bg-green-400 focus:outline-none">
Submit
</button>
<button type="button" id="reset" class="w-fit rounded-lg shadow-lg px-8 py-4 ml-20 bg-red-500 text-white hover:bg-red-400 focus:outline-none" onclick="clearAll()">
Reset
</button>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="relative bg-white px-6 mt-5 pt-10 pb-8 shadow-xl ring-1 ring-gray-900/5 sm:mx-auto sm:rounded-lg sm:px-10">
<div class="mx-auto">
<h2 class="text-3xl text-center font-bold leading-tight">Entries</h2>
<div class="divide-y divide-gray-300/50" id="user-entries"></div>
</div>
</div>
<script src="index.js"></script>
</body>
</html>