-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
71 lines (59 loc) · 2.68 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Registration Form</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet">
<style>
input#name:invalid:focus,
input#email:invalid:focus,
input#dob:invalid:focus {
border: 1px solid red;
}
</style>
</head>
<body class="flex flex-col items-center justify-center min-h-screen bg-gray-50">
<div class="container bg-white shadow-xl rounded-sm w-full sm:w-96 py-6 mb-5">
<form id="user-form" class="w-full px-4 sm:px-8">
<h1 class="text-2xl font-bold text-center mb-5">Registration Form</h1>
<div class="flex flex-col space-y-4">
<label for="name">Name</label>
<input type="text" id="name" name="name" placeholder="Enter your name" required class="border p-2 rounded-md">
<label for="email">Email</label>
<input type="email" id="email" name="email" placeholder="Enter email" required class="border p-2 rounded-md">
<label for="password">Password</label>
<input type="password" id="password" name="password" placeholder="Enter password" required class="border p-2 rounded-md">
<label for="dob">Date of Birth</label>
<input type="date" id="dob" name="dob" required class="border p-2 rounded-md">
<div class="flex items-center space-x-2">
<input type="checkbox" id="t&c" name="t&c">
<label for="t&c">Accept Terms & Conditions</label>
</div>
<button type="submit" class="w-full bg-green-500 text-white border-none rounded-md p-2 mt-4">Submit</button>
</div>
</form>
</div>
<div class="entries bg-white shadow-lg rounded-lg w-full sm:w-150 p-6">
<div class="mx-auto">
<h2 class="flex font-bold text-2xl justify-center align-middle">Entries</h2>
<div id="user-entries">
<table>
<thead>
<tr>
<th>Name</th>
<th>Email</th>
<th>Password</th>
<th>Dob</th>
<th>Accepted terms?</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
<script src="./index.js"></script>
</body>
</html>