This repository has been archived by the owner on Jul 6, 2024. It is now read-only.
forked from derynm/address-book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
87 lines (83 loc) · 2.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
<!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="index.css" />
<script src="https://cdn.tailwindcss.com"></script>
<title>Address Book</title>
</head>
<body class="flex justify-center bg-slate-100">
<main class="max-w-3xl w-full p-4">
<h1 class="text-2xl font-semibold text-center">Address Book</h1>
<section>
<form id="search-form" class="flex gap-2 my-3">
<input
type="text"
id="search-value"
class="flex-1 p-2 rounded-md border border-slate-300"
placeholder="Enter Contact Name"
/>
<button
type="submit"
class="bg-slate-500 p-2 rounded-md text-white hover:bg-slate-600"
>
search
</button>
</form>
</section>
<section>
<form id="add-contact-form" class="space-y-2">
<div class="flex flex-col">
<label for="name" class="font-semibold">Name</label>
<input
type="text"
class="p-2 rounded-md border border-slate-300"
id="name"
name="name"
required
/>
</div>
<div class="flex flex-col">
<label for="phone" class="font-semibold">Phone</label>
<input
type="tel"
class="p-2 rounded-md border border-slate-300"
id="phone"
name="phone"
required
/>
</div>
<div class="flex flex-col">
<label for="email" class="font-semibold">Email</label>
<input
type="email"
class="p-2 rounded-md border border-slate-300"
id="email"
name="email"
required
/>
</div>
<div class="flex flex-col">
<label for="address" class="font-semibold">Address</label>
<input
type="text"
class="p-2 rounded-md border border-slate-300"
id="address"
name="address"
required
/>
</div>
<button
type="submit"
class="bg-slate-500 p-2 rounded-md text-white hover:bg-slate-600 w-full"
>
Add Contact
</button>
</form>
</section>
<section id="contact-container" class="space-y-2 mt-5"></section>
<script src="index.js"></script>
</main>
</body>
</html>