-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
112 lines (107 loc) · 3.58 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<html>
<script src="https://cdn.tailwindcss.com"></script>
<title>Form Validation</title>
<style>
tbody,
td {
border: 2px solid rgba(128, 128, 128, 0.29);
}
table {
width: 50vw;
padding-left: 10;
margin-left: 15px;
margin-right: 15px;
}
thead {
font-size: larger;
}
body {
background-color: #1a202c;
}
</style>
<body>
<div class="flex justify-center">
<div id="res"></div>
<form
id="user-form"
onsubmit="submitListener(event)"
class="p-5 rounded-lg bg-gray-800 shadow-2xl mt-20 font-bold text-white border-2 border-white"
>
<label for="name" class="text-xl mr-20">Name</label>
<input
type="text"
id="name"
name="name"
placeholder="Enter your name"
class="border border-gray-500 bg-gray-500 bg-opacity-40 focus:border-blue-500 focus:bg-gray-900 focus:ring-2 focus:ring-blue-900 text-base outline-none rounded-lg py-1 px-3 m-5 shadow-md"
required
/><br />
<label for="email" class="text-xl mr-20">Email</label>
<input
type="email"
id="email"
name="email"
placeholder="Enter your email"
class="border border-gray-500 bg-gray-500 bg-opacity-40 focus:border-blue-500 focus:bg-gray-900 focus:ring-2 focus:ring-blue-900 text-base outline-none rounded-lg m-5 py-1 px-3 shadow-md"
required
/><br />
<label for="password" class="text-xl mr-12">Password</label>
<input
type="password"
id="password"
name="password"
placeholder="Enter your password"
class="border border-gray-500 bg-gray-500 bg-opacity-40 focus:border-blue-500 focus:bg-gray-900 focus:ring-2 focus:ring-blue-900 text-base outline-none rounded-lg m-5 py-1 px-3 shadow-md"
required
/><br />
<label for="dob" class="text-xl mr-4">Date of Birth</label>
<input
type="date"
id="dob"
min="1968-02-09"
max="2005-02-09"
class="border border-gray-500 bg-gray-500 bg-opacity-40 focus:border-blue-500 focus:bg-gray-900 focus:ring-2 focus:ring-blue-900 text-base outline-none rounded-lg m-5 py-1 px-3 shadow-md"
required
/>
<br />
<input
type="checkbox"
id="acceptTerms"
name="acceptTerms"
class="my-3 mx-3 mb-6 shadow-md"
required
/>
<label for="acceptTerms">Accept Terms & Conditions</label><br />
<button
type="submit"
class="bg-blue-500 hover:bg-blue-500 text-white font-bold py-2 px-4 rounded-full"
>
Submit
</button>
</form>
</div>
<div
class="flex flex-col absolute place-items-center border-2 bg-gray-800 text-white rounded-lg border-gray-100 mt-20 shadow-2xl"
style="margin-left: 25%"
>
<div class="">
<p class="text-3xl font-bold mt-10 mb-10">Entries</p>
</div>
<div class="flex flex-col">
<table class="table-auto relative text-white">
<thead>
<tr>
<th>Name</th>
<th>Email</th>
<th>Password</th>
<th>Dob</th>
<th>Accepted terms?</th>
</tr>
</thead>
<tbody id="showData"></tbody>
</table>
</div>
</div>
</body>
<script type="text/javascript" src="./index.js"></script>
</html>