forked from dohinaf/basic-icecream-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.html
386 lines (344 loc) · 11.5 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
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Profile</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #8697C4;
margin: 0;
padding: 0;
}
.container {
width: 80%;
margin: 50px auto;
display: flex;
flex-direction: column;
align-items: center;
background-color: rgba(152, 188, 216, 0.9);
background-image: url('ICECREAM.jpg');
background-size: cover;
background-position: center;
background-blend-mode: overlay;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
padding: 20px;
position: relative;
}
h2 {
text-align: center;
color: #333;
}
.profile-pic {
text-align: center;
margin-bottom: 20px;
position: relative;
display: inline-block;
}
.change-pic-container {
display: none;
position: absolute;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
}
.profile-pic:hover .change-pic-container {
display: block;
}
.profile-pic img {
width: 120px;
height: 120px;
border-radius: 50%;
object-fit: cover;
border: 5px solid #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
form {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.form-group {
width: 48%;
margin-bottom: 15px;
}
.form-group input,
.form-group select {
width: 100%;
padding: 10px;
border-radius: 5px;
border: 1px solid #ddd;
font-size: 16px;
}
.form-group label {
display: block;
margin-bottom: 5px;
font-weight: bold;
color: #000000;
}
.buttons {
text-align: center;
margin-top: 20px;
transform: translateX(-20px);
}
.save-btn {
background-color: #28a745;
color: white;
padding: 15px 65px;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
}
.save-btn:hover {
background-color: #218838;
}
.cancel-btn {
background-color: #dc3545;
color: white;
padding: 15px 60px;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
}
.cancel-btn:hover {
background-color: #c82333;
}
.connect {
margin-top: 20px;
}
.connect label {
font-weight: bold;
}
.social-buttons {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin-top: 10px;
}
.social-button {
background-color: #fff;
border-radius: 5px;
padding: 10px;
flex: 1 1 calc(33% - 10px);
margin: 5px;
text-align: center;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 16px;
font-weight: bold;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.social-button img {
width: 24px;
height: 24px;
margin-right: 10px;
}
/* Individual button colors */
.google { background-color: #de675c; }
.facebook { background-color: #3b5998; }
.instagram { background-color: #e4405f; }
/* Button hover effects */
.social-button:hover {
opacity: 0.9;
}
.orders-section {
margin-top: 30px;
background-color: #c8ecfd;
border-radius: 5px;
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
padding: 20px;
}
.previous-orders h3 {
color: #333;
margin-bottom: 10px;
text-align: center;
}
#previous-orders-list {
list-style: none;
padding: 0;
}
.order-item {
margin-bottom: 15px;
padding: 15px;
background-color: #f9f9f9;
border-radius: 5px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
display: flex;
justify-content: space-between;
align-items: center;
transition: transform 0.2s ease;
}
.order-item div {
display: flex;
flex-direction: column;
}
.order-item strong {
font-size: 18px;
color: #333;
margin-bottom: 5px;
}
.order-item span {
font-size: 14px;
color: #555;
}
.order-item button {
background-color: #007bff;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.2s ease;
}
.order-item button:hover {
background-color: #0056b3;
}
.order-item:hover {
transform: translateY(-3px); /* Adds a subtle hover effect */
}
.account-options {
text-align: center;
margin-top: 30px;
}
.logout-btn, .delete-btn {
background-color: #000000;
color: white;
padding: 15px 40px;
border: none;
border-radius: 5px;
margin: 0 10px;
cursor: pointer;
}
.logout-btn:hover {
background-color: #0056b3;
}
.delete-btn {
background-color: #dc3545;
}
.delete-btn:hover {
background-color: #c82333;
}
</style>
</head>
<body>
<div class="container">
<h2>Profile</h2>
<div class="profile-pic">
<img src="profilepic.png" alt="Profile Picture" id="profile-image">
<input type="file" id="upload" accept="image/*" style="display: none;">
<div class="change-pic-container">
<button type="button" class="change-pic-btn" onclick="document.getElementById('upload').click();">Change Picture</button>
</div>
</div>
<form>
<div class="form-group">
<label for="first-name">First Name</label>
<input type="text" id="first-name" placeholder="First Name">
</div>
<div class="form-group">
<label for="last-name">Last Name</label>
<input type="text" id="last-name" placeholder="Last Name">
</div>
<div class="form-group">
<label for="email">Email</label>
<input type="email" id="email" placeholder="[email protected]">
</div>
<div class="form-group">
<label for="phone">Phone Number</label>
<input type="tel" id="phone" placeholder="123-456-7890">
</div>
<div class="form-group">
<label for="address">Billing Address</label>
<input type="text" id="address" placeholder="Home Address">
</div>
<!-- Discount Coupons Dropdown -->
<div class="form-group">
<label for="discount-coupons">Discount Coupons</label>
<select id="discount-coupons">
<option value="coupon1">Coupon #1: 10% off</option>
<option value="coupon2">Coupon #2: 5% off</option>
<option value="coupon3">Coupon #3: Free Delivery</option>
</select>
</div>
<div class="form-group">
<label for="dob">Date of Birth</label>
<input type="date" id="dob">
</div>
<div class="form-group">
<label for="gender">Gender</label>
<select id="gender">
<option value="male">Male</option>
<option value="female">Female</option>
<option value="other">Other</option>
</select>
</div>
<div class="connect">
<label>Connect with:</label><br>
<div class="social-buttons">
<div class="social-button google" onclick="window.open('https://accounts.google.com/signin')">
<img src="google.png" alt="Google"> Sign in with Google
</div>
<div class="social-button facebook" onclick="window.open('https://www.facebook.com/')">
<img src="facebook.png" alt="Facebook"> Sign in with Facebook
</div>
<div class="social-button instagram" onclick="window.open('https://www.instagram.com/accounts/login/')">
<img src="instagram.png" alt="Instagram"> Sign in with Instagram
</div>
</div>
</div>
<div class="buttons">
<button type="submit" class="save-btn">Save</button>
<button type="button" class="cancel-btn">Cancel</button>
</div>
</form>
<div class="orders-section">
<!-- Previous Orders -->
<div class="previous-orders">
<h3>Previous Orders</h3>
<ul id="previous-orders-list">
<!-- Sample Ice Cream Orders -->
<li class="order-item">
<div>
<strong>Order #001: Vanilla Ice Cream</strong>
<span>Quantity: 2</span>
<span>Price: Rs 200</span>
<span>Date: 2024-09-20</span>
</div>
<button>Order Again</button>
</li>
<li class="order-item">
<div>
<strong>Order #002: Chocolate Fudge Sundae</strong>
<span>Quantity: 1</span>
<span>Price: Rs 120</span>
<span>Date: 2024-09-25</span>
</div>
<button>Order Again</button>
</li>
<li class="order-item">
<div>
<strong>Order #003: Strawberry Cheesecake Ice Cream</strong>
<span>Quantity: 3</span>
<span>Price: Rs 200</span>
<span>Date: 2024-10-01</span>
</div>
<button>Order Again</button>
</li>
</ul>
</div>
</div>
<div class="account-options">
<button class="logout-btn">Logout</button>
<button class="delete-btn">Delete Account</button>
</div>
</div>
<script src="profile.js"></script>
</body>
</html>