-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.html
288 lines (281 loc) · 16.2 KB
/
profile.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
281
282
283
284
285
286
287
288
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Profile</title>
<link rel="stylesheet" href="./css/bootstrap.min.css">
<link rel="stylesheet" href="./fontawesome-free-5.13.0-web/css/all.css">
<link rel="stylesheet" href="./css/profile.css">
</head>
<body>
<div class="container">
<div class="row my-2">
<div class="col-lg-8 order-lg-2">
<ul class="nav nav-tabs">
<li class="nav-item">
<a href="" data-target="#profile" data-toggle="tab" class="nav-link active">Profile</a>
</li>
<li class="nav-item">
<a href="" data-target="#orders" data-toggle="tab" class="nav-link">Orders</a>
</li>
<li class="nav-item">
<a href="" data-target="#edit" data-toggle="tab" class="nav-link">Edit</a>
</li>
</ul>
<div class="tab-content py-4">
<div class="tab-pane active" id="profile" style="margin-bottom: 350px;">
<h5 class="mb-3"><i class="fas fa-user"></i> User Profile</h5>
<div class="row">
<div class="col-md-6 mb-4">
<div class="row">
<div class="col-md-3">
<b>Name:</b>
</div>
<div class="col-md-7">
<span id="name">John Smith</span>
</div>
</div>
<div class="row">
<div class="col-md-3">
<b>Email:</b>
</div>
<div class="col-md-7">
<span id="username">email@gmail.com</span>
</div>
</div>
<div class="row">
<div class="col-md-3">
<b>Country:</b>
</div>
<div class="col-md-7">
<span id="country">United Kingdom</span>
</div>
</div>
<div class="row">
<div class="col-md-3">
<b>City:</b>
</div>
<div class="col-md-7">
<span id="city">London</span>
</div>
</div>
<div class="row">
<div class="col-md-3">
<b>Address:</b>
</div>
<div class="col-md-7">
<span id="address">221B Baker St, Marylebone</span>
</div>
</div>
</div>
<div class="col-md-12">
<h5 class="mt-2"><i class="far fa-clock"></i> Recent Activity</h5>
<table class="table table-sm table-hover table-striped">
<tbody>
<tr>
<td>
<strong>You</strong> ordered a product from category <strong>`Gaming
Computers`</strong>
</td>
</tr>
<tr>
<td>
<strong>You</strong> ordered a product from category <strong>`Video
Cards`</strong>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!--/row-->
</div>
<div class="tab-pane" id="orders">
<div class="container px-1 px-md-4 pb-4 border-bottom mx-auto">
<div class="card col-12">
<div class="row d-flex justify-content-between px-3 top">
<div class="d-flex">
<h5>ORDER <span class="text-primary font-weight-bold">#Y34XDHR</span></h5>
</div>
<div class="d-flex flex-column text-sm-right">
<p class="mb-0">Expected Arrival <span>30/06/20</span></p>
<p>USPS <span class="font-weight-bold">234094567242423422898</span></p>
</div>
</div> <!-- Add class 'active' to progress -->
<div class="row d-flex justify-content-center">
<div class="col-12">
<ul id="progressbar" class="text-center">
<li class="active step0"></li>
<li class="active step0"></li>
<li class="active step0"></li>
<li class="step0"></li>
</ul>
</div>
</div>
<div class="row flex-nowrap justify-content-between icons">
<div class="row d-flex icon-content"> <img class="icon"
src="https://i.imgur.com/9nnc9Et.png">
<div class="d-flex flex-column">
<p class="font-weight-bold">Order<br>Processed</p>
</div>
</div>
<div class="row d-flex icon-content"> <img class="icon"
src="https://i.imgur.com/u1AzR7w.png">
<div class="d-flex flex-column">
<p class="font-weight-bold">Order<br>Shipped</p>
</div>
</div>
<div class="row d-flex icon-content"> <img class="icon"
src="https://i.imgur.com/TkPm63y.png">
<div class="d-flex flex-column">
<p class="font-weight-bold">Order<br>on Route</p>
</div>
</div>
<div class="row d-flex icon-content"> <img class="icon"
src="https://i.imgur.com/HdsziHP.png">
<div class="d-flex flex-column">
<p class="font-weight-bold">Order<br>Arrived</p>
</div>
</div>
</div>
</div>
</div>
<div class="container px-1 px-md-4 py-4 border-bottom mx-auto">
<div class="card">
<div class="row d-flex justify-content-between px-3 top">
<div class="d-flex">
<h5>ORDER <span class="text-primary font-weight-bold">#MF42XB4</span></h5>
</div>
<div class="d-flex flex-column text-sm-right">
<p class="mb-0">Expected Arrival <span>01/12/19</span></p>
<p>USPS <span class="font-weight-bold">589108842972621391235</span></p>
</div>
</div> <!-- Add class 'active' to progress -->
<div class="row d-flex justify-content-center">
<div class="col-12">
<ul id="progressbar" class="text-center">
<li class="active step0"></li>
<li class="active step0"></li>
<li class="active step0"></li>
<li class="active step0"></li>
</ul>
</div>
</div>
<div class="row flex-nowrap justify-content-between icons">
<div class="row d-flex icon-content"> <img class="icon"
src="https://i.imgur.com/9nnc9Et.png">
<div class="d-flex flex-column">
<p class="font-weight-bold">Order<br>Processed</p>
</div>
</div>
<div class="row d-flex icon-content"> <img class="icon"
src="https://i.imgur.com/u1AzR7w.png">
<div class="d-flex flex-column">
<p class="font-weight-bold">Order<br>Shipped</p>
</div>
</div>
<div class="row d-flex icon-content"> <img class="icon"
src="https://i.imgur.com/TkPm63y.png">
<div class="d-flex flex-column">
<p class="font-weight-bold">Order<br>on Route</p>
</div>
</div>
<div class="row d-flex icon-content"> <img class="icon"
src="https://i.imgur.com/HdsziHP.png">
<div class="d-flex flex-column">
<p class="font-weight-bold">Order<br>Arrived</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tab-pane" id="edit">
<form role="form">
<div id="err">
</div>
<div class="form-group row">
<label class="col-lg-3 col-form-label form-control-label">First name</label>
<div class="col-lg-9">
<input class="form-control" type="text" placeholder="John" id="efname">
</div>
</div>
<div class="form-group row">
<label class="col-lg-3 col-form-label form-control-label">Last name</label>
<div class="col-lg-9">
<input class="form-control" type="text" placeholder="Smith" id="elname">
</div>
</div>
<div class="form-group row">
<label class="col-lg-3 col-form-label form-control-label">Address</label>
<div class="col-lg-4">
<input class="form-control" type="text" value="" placeholder="Country" id="ecountry">
</div>
<div class="col-lg-5">
<input class="form-control" type="text" value="" placeholder="City" id="ecity">
</div>
</div>
<div class="form-group row">
<label class="col-lg-3 col-form-label form-control-label"></label>
<div class="col-lg-9">
<input class="form-control" type="text" value="" placeholder="Street" id="estreet">
</div>
</div>
<div class="form-group row">
<label class="col-lg-3 col-form-label form-control-label">Password</label>
<div class="col-lg-9">
<input class="form-control" type="password" value="" id="epassword">
</div>
</div>
<div class="form-group row">
<label class="col-lg-3 col-form-label form-control-label">Confirm password</label>
<div class="col-lg-9">
<input class="form-control" type="password" value="" id="epassword2">
</div>
</div>
<div class="form-group row">
<label class="col-lg-3 col-form-label form-control-label"></label>
<div class="col-lg-9">
<input type="reset" class="btn btn-secondary" value="Cancel">
<input id="save" type="button" class="btn btn-dark" value="Save Changes">
</div>
</div>
<div style="height: 260px;"></div>
</form>
</div>
</div>
</div>
<div class="col-lg-4 order-lg-1 text-center">
<img src="./images/blank-profile.png" class="mx-auto img-fluid rounded d-block w-75" alt="avatar">
<h6 class="mt-2">Upload a different photo</h6>
<label class="btn btn-outline-dark w-50 mt-1">
Choose file<input type="file" hidden>
</label>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.0.0-beta.3/js/bootstrap.bundle.min.js"></script>
<script>
// prevent navigation
document.addEventListener("DOMContentLoaded", function () {
var links = document.getElementsByTagName("A");
for (var i = 0; i < links.length; i++) {
links[i].addEventListener("click", function (e) {
var href = this.getAttribute("href")
if (!href) {
return
}
if (href === '#') {
// hash only ('#')
e.preventDefault()
}
})
}
}, null);
</script>
</body>
<script src="client/header.js"></script>
<script src="client/footer.js"></script>
<script src="client/profile.js"></script>
</html>