forked from ColinMitchellGit/ContactHub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcover.html
252 lines (222 loc) · 13.9 KB
/
cover.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
<meta name="generator" content="Hugo 0.88.1">
<title>ContactHub</title>
<link rel="shortcut icon" type="image/jpg" href="./images/Totoro_Git.png"/>
<link rel="stylesheet" type="text/css" href="./css/landing.css">
<!-- Linking the javascript-->
<script type="text/javascript" src="./landing.js"></script>
<script type="text/javascript" src="main.js"></script>
<link rel="canonical" href="https://getbootstrap.com/docs/5.1/examples/album/">
<!-- Custom styles for this template -->
<!-- <link href="cover.css" rel="stylesheet">-->
<!-- Bootstrap core CSS -->
<link href="./css/bootstrap.min.css" rel="stylesheet">
<style>
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
</style>
</head>
<body onload="doReadContacts(); doWelcome();">
<header>
<div class="collapse bg-light" id="navbarHeader">
<div class="container">
<div class="row">
<div class="col-sm-8 col-md-7 py-4">
<h4 class="text-white">About</h4>
<p class="text-muted">Add some information about the album below, the author, or any other background context. Make it a few sentences long so folks can pick up some informative tidbits. Then, link them off to some social networking sites or contact information.</p>
</div>
<div class="col-sm-4 offset-md-1 py-4">
<h4 class="text-white">Contact</h4>
<ul class="list-unstyled">
<li><a href="#" class="text-white">Follow on Twitter</a></li>
<li><a href="#" class="text-white">Like on Facebook</a></li>
<li><a href="#" class="text-white">Email me</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="navbar navbar-light bg-light shadow-sm">
<div class="container">
<a href="#" class="navbar-brand d-flex align-items-center">
<!-- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" aria-hidden="true" class="me-2" viewBox="0 0 24 24"><path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"/><circle cx="12" cy="13" r="4"/></svg>-->
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-phone" viewBox="0 0 16 16">
<path d="M11 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h6zM5 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H5z"/>
<path d="M8 14a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"/>
</svg>
<light onclick="location.href='cover.html'"> ContactHub </light>
</a>
<a href="#" class="btn btn-secondary my-2" style="color: black; background-color: #91b0cb; border-color: #91b0cb; border-radius: 10px;"onclick="doLogout();">Logout
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" style="padding-bottom: 3px;" fill="currentColor" class="bi bi-box-arrow-right" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M10 12.5a.5.5 0 0 1-.5.5h-8a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h8a.5.5 0 0 1 .5.5v2a.5.5 0 0 0 1 0v-2A1.5 1.5 0 0 0 9.5 2h-8A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h8a1.5 1.5 0 0 0 1.5-1.5v-2a.5.5 0 0 0-1 0v2z"/>
<path fill-rule="evenodd" d="M15.854 8.354a.5.5 0 0 0 0-.708l-3-3a.5.5 0 0 0-.708.708L14.293 7.5H5.5a.5.5 0 0 0 0 1h8.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3z"/>
</svg>
</a>
</div>
</div>
</header>
<main>
<section class="py-1 text-center container" >
<div class="row py-sm-5">
<div class="col-lg-6 col-md-8 mx-auto">
<h1 class="fw-light" id="welcome"></h1>
<p class="lead text-muted">All your contacts, down below, in one place! Feel free to edit, delete, or add contacts as you please.</p>
<p>
<!-- <a href="#" class="btn btn-primary my-2">Add Contact</a> -->
<button type="button" class="btn btn-primary my-2" data-bs-toggle="modal" data-bs-target="#myModal" style="color: black; background-color: #91b0cb; border-color: #91b0cb; border-radius: 10px;">Add Contact
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" style="padding-bottom: 3px;" class="bi bi-plus-circle" viewBox="0 0 16 16">
<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>
<path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"/>
</svg>
</button>
<div class="modal" id="myModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">New Contact</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body">
<form>
<div class="mb-3">
<label id="addFirstLabel" class="form-label required">First Name</label>
<input id="addFirst" type="text" placeholder="John" class="form-control">
</div>
<div class="mb-3">
<label id="addLastLabel" class="form-label required">Last Name</label>
<input id="addLast" type="text" placeholder="Smith" class="form-control">
<!-- <input type="email" class="form-control">-->
</div>
<div class="mb-3">
<label id="addPhoneLabel" class="form-label required">Phone Number</label>
<input id="addPhone" type="text" placeholder="1234567890" class="form-control">
</div>
<div class="mb-3">
<label id="addEmailLabel" class="form-label required">Email</label>
<input id="addEmail" type="text" placeholder="[email protected]" class="form-control">
</div>
</form>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary" onclick="doAddContact();">Submit</button>
<button onclick="location.href = 'cover.html';" class="btn btn-danger">Cancel</button>
</div>
</div>
</div>
</div>
<div class="modal" id="myModal2">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Edit Contact</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body">
<form>
<div class="mb-3">
<label id="newFirstLabel" class="form-label required">First Name</label>
<input id="newFirst" type="text" placeholder="John" class="form-control">
</div>
<div class="mb-3">
<label id="newLastLabel" class="form-label required">Last Name</label>
<input id="newLast" type="text" placeholder="Smith" class="form-control">
<!-- <input type="email" class="form-control">-->
</div>
<div class="mb-3">
<label id="newPhoneLabel" class="form-label required">Phone Number</label>
<input id="newPhone" type="text" placeholder="1234567890" class="form-control">
</div>
<div class="mb-3">
<label id="newEmailLabel" class="form-label required">Email</label>
<input id="newEmail" type="text" placeholder="[email protected]" class="form-control">
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" data-bs-dismiss="modal" class="btn btn-primary" onclick="doEditContact();">Submit</button>
<button onclick="location.href = 'cover.html';" class="btn btn-danger">Cancel</button>
</div>
</div>
</div>
</div>
<div class="modal" id="myModal3">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Contact Details</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body">
<form>
<div class="mb-3">
<label class="form-label required">First Name</label>
<input id="contactFirst" type="text" placeholder="John" class="form-control" readonly>
</div>
<div class="mb-3">
<label class="form-label required">Last Name</label>
<input id="contactLast" type="text" placeholder="Smith" class="form-control" readonly>
<!-- <input type="email" class="form-control">-->
</div>
<div class="mb-3">
<label class="form-label required">Phone Number</label>
<input id="contactPhone" type="text" placeholder="1234567890" class="form-control" readonly>
</div>
<div class="mb-3">
<label class="form-label required">Email</label>
<input id="contactEmail" type="text" placeholder="[email protected]" class="form-control" readonly>
</div>
</form>
</div>
<div class="modal-footer">
<button onclick="location.href = 'cover.html';" class="btn btn-danger">Cancel</button>
</div>
</div>
</div>
</div>
<!-- <a href="#" class="btn btn-secondary my-2" onclick="doLogout();">Logout</a>-->
</div>
</div>
</section>
<div class="album py-5 ">
<div class="container">
<!-- TEST SEARCH BAR -->
<input type="text" id="searchBar" onkeyup="doReadContacts();" placeholder="Search for names.." >
<table id="myTable">
<tr class="header">
<th style="width:30%; border-top-left-radius: 10px ">Name</th>
<th style="width:30%; border-radius: 0px ">Email</th>
<th style="width:20%; border-radius: 0px ">Phone #</th>
<th style="width:20%; border-top-right-radius: 10px">Options</th>
</tr>
</table>
</div>
</div>
</main>
<footer class="text-muted py-1">
<div class="container">
<p class="mb-1" style="color: #cadeef"> .</p>
<p class="mb-1" style="color: #cadeef"> .</p>
<p class="mb-1" style="color: #cadeef"> .</p>
<p class="mb-1" >Made by Group 15 for Small Project in COP4331</p>
<p class="mb-1">Enjoy(:</p>
</div>
</footer>
<script src="./js/bootstrap.bundle.min.js"></script>
</body>
</html>