-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
280 lines (202 loc) · 8.47 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Address Book</title>
<!-- ---------- Fonts ---------- -->
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;400;700&display=swap" rel="stylesheet" />
<!-- ---------- Icons ---------- -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
<!-- ---------- Styles ---------- -->
<link rel="stylesheet" href="css/main.css" />
</head>
<body>
<!-- ---------- Topbar ---------- -->
<header id="topbar" class="container ">
<!-- Brand -->
<h1 id="brand">
☎ Contacts
</h1>
</header>
<!-- ---------- Action Bar ---------- -->
<section id="action-bar" class="container">
<!-- New Contact Button-->
<button id="new-contact-button" class="green">
⊹ New
</button>
<!-- Search Bar-->
<input id="search-bar" type="search" placeholder="Search" />
<!-- New contact form -->
<div id="new-contact-form" class="overlay">
<div class="overlay-content">
<!-- Overlay Content header -->
<header class="overlay-content-header">
<button class="material-icons close-button red">
close
</button>
</header>
<!-- Overlay Content body -->
<form class="overlay-content-body">
<input id="new-contact-form-ID" type="text" hidden value="">
<input id="new-contact-form-name" type="text" placeholder="Full name" required />
<input id="new-contact-form-phone" type="tel" placeholder="Phone number" minlength="10"
maxlength="14" />
<input id="new-contact-form-email" type="email" placeholder="Email address" />
<input id="new-contact-form-address" type="text" placeholder="Home address" />
</form>
<!-- Overlay Content footer -->
<footer class="overlay-content-footer">
<button id="new-contact-form-save-button" class="green" for="contact-form" type="submit">
<i class="material-icons">
save
</i>
Save
</button>
</footer>
</div>
</div>
</section>
<!-- ---------- Contacts List ---------- -->
<main id="contacts-list" class="container">
<table>
<!-- columns -->
<!-- <colgroup>
<col class="photos" span="1" />
<col class="names" span="1" />
<col class="emails" span="1" />
<col class="phones" span="1" />
<col class="addresses" span="1" />
</colgroup> -->
<!-- Table Head -->
<thead>
<tr>
<th class="ids">
<i class="material-icons"> tag </i>
ID
</th>
<th class="names">
<i class="material-icons"> person </i>
Name
<div class="sorting">
<i class="material-icons up"> expand_less </i>
<i class="material-icons down"> expand_more </i>
</div>
</th>
<th class="phones">
<i class="material-icons"> phone_enabled </i>
Phone
<div class="sorting">
<i class="material-icons up"> expand_less </i>
<i class="material-icons down"> expand_more </i>
</div>
</th>
<th class="emails">
<i class="material-icons"> email </i>
Email
<div class="sorting">
<i class="material-icons up"> expand_less </i>
<i class="material-icons down"> expand_more </i>
</div>
</th>
<th class="addresses">
<i class="material-icons"> location_on </i>
Address
<div class="sorting">
<i class="material-icons up"> expand_less </i>
<i class="material-icons down"> expand_more </i>
</div>
</th>
</tr>
</thead>
<!-- Table Body -->
<tbody></tbody>
</table>
<!-- ---------- Contact Details---------- -->
<div id="contact-details" class="overlay">
<div class="overlay-content">
<!-- Overlay Content header -->
<header class="overlay-content-header">
<button class="material-icons close-button red">
close
</button>
</header>
<!-- Overlay Content body -->
<section class="overlay-content-body">
<span class="contact-details-ID">
</span>
<h2 class="contact-details-name">
</h2>
<i class="material-icons contact-phone">
phone
</i>
<p class="contact-details-phone">
</p>
<i class="material-icons">
email
</i>
<p class="contact-details-email">
</p>
<i class="material-icons">
place
</i>
<p class="contact-details-address">
</p>
</section>
<!-- Overlay Content footer -->
<footer class="overlay-content-footer">
<button id="contact-details-delete-button" class=" red">
<i class="material-icons">
delete
</i>
delete
</button>
<button id="contact-details-edit-button" class=" green">
<i class="material-icons">
edit
</i>
Edit
</button>
</footer>
</div>
</div>
<!-- ---------- Contact Edit Form ---------- -->
<div id="contact-edit-form" class="overlay">
<div class="overlay-content">
<!-- Overlay Content header -->
<header class="overlay-content-header">
<button class="material-icons close-button red">
close
</button>
</header>
<!-- Overlay Content body -->
<form class="overlay-content-body">
<input id="contact-edit-form-ID" type="text" hidden value="">
<input id="contact-edit-form-name" type="text" />
<input id="contact-edit-form-phone" type="tel" />
<input id="contact-edit-form-email" type="email" />
<input id="contact-edit-form-address" type="text" />
</form>
<!-- Overlay Content footer -->
<footer class="overlay-content-footer">
<button id="contact-edit-form-update-button" class=" green">
<i class="material-icons">
autorenew
</i>
Update
</button>
</footer>
</div>
</div>
</main>
<!-- ---------- Copyrights ---------- -->
<footer id="copyrights" class="container">
<a href="https://mahmoudffarag.github.io/mahmoudffarag/" target="_blank">
Mahmoud Farag
</a>
</footer>
<!-- ---------- Scripts ---------- -->
<script src="js/main.js"></script>
</body>
</html>