-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
85 lines (83 loc) · 2.41 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Connect Link</title>
<link rel="icon" href="images/contact.jpg" type="image/jpeg" />
<link rel="stylesheet" href="index.css" />
</head>
<body>
<div class="app">
<header class="header">
<div class="logo">
<img src="images/contact.jpg" alt="Contact Logo" />
</div>
<h1 class="title">Connect Link</h1>
<input
type="text"
id="search"
class="search"
placeholder="Search contacts..."
/>
<button class="add-contact-action" onclick="showAddContactForm()">
Add New Contact
</button>
</header>
<main>
<!-- Contact list will be displayed here -->
<div id="contact-list" class="contact-list"></div>
<!-- Contact details will be displayed here -->
<div
id="contact-details"
class="contact-details"
aria-live="polite"
></div>
<!-- Add contact form will be displayed here -->
<div
id="add-contact-form"
class="add-contact-form"
style="display: none"
>
<label for="name" class="label">Name:</label>
<input
type="text"
id="name"
class="input"
placeholder="Enter name"
/><br />
<label for="phone" class="label">Phone:</label>
<input
type="tel"
id="phone"
class="input"
placeholder="Enter phone number"
/><br />
<label for="email" class="label">Email:</label>
<input
type="email"
id="email"
class="input"
placeholder="Enter email"
/><br />
<label for="address" class="label">Address:</label><br />
<textarea
id="address"
class="input"
placeholder="Enter address"
></textarea
><br />
<button class="save-button" onclick="addContact()">Save</button>
<div
id="error-message"
class="error-message"
style="color: red; display: none"
>
<p id="error-text"></p>
</div>
</div>
</main>
</div>
<script src="index.js"></script>
</body>
</html>