forked from ankit071105/Ticket-Booking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.html
328 lines (288 loc) · 8.98 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
<!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('bg.png');
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;
}
h2 {
text-align: center;
color: #333;
}
.profile-pic {
text-align: center;
margin-bottom: 20px;
position: relative;
}
.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: #000;
}
.buttons {
text-align: center;
margin-top: 20px;
}
button {
background-color: #28a745;
color: white;
padding: 15px 65px;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
}
button:hover {
background-color: #218838;
}
.cancel-btn {
background-color: #dc3545;
}
.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; }
.social-button:hover {
opacity: 0.9;
}
.bookings-section {
margin-top: 30px;
background-color: #c8ecfd;
border-radius: 5px;
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
padding: 20px;
}
.bookings-section h3 {
color: #333;
margin-bottom: 10px;
}
ul {
list-style: none;
padding: 0;
}
.booking-item {
margin-bottom: 15px;
padding: 10px;
background-color: #fdfdfd;
border-radius: 5px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
display: flex;
justify-content: space-between;
align-items: center;
}
.booking-item div {
display: flex;
flex-direction: column;
}
.booking-item button {
background-color: #007bff;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
}
.booking-item button:hover {
background-color: #0056b3;
}
.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;
}
/* Responsive Design */
@media (max-width: 768px) {
.form-group {
width: 100%;
}
.buttons button {
width: 100%;
padding: 15px 0;
}
.social-button {
flex: 1 1 100%;
}
}
</style>
</head>
<body>
<div class="container">
<h2>Profile</h2>
<div class="profile-pic">
<img src="profilepic.png" alt="User's Profile Picture" id="profile-image">
<input type="file" id="upload" accept="image/*" style="display: none;" aria-label="Upload Profile Picture">
<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 <span>*</span></label>
<input type="text" id="first-name" placeholder="John" required aria-label="First Name">
</div>
<div class="form-group">
<label for="last-name">Last Name</label>
<input type="text" id="last-name" placeholder="Doe" aria-label="Last Name">
</div>
<div class="form-group">
<label for="email">Email <span>*</span></label>
<input type="email" id="email" placeholder="[email protected]" required aria-label="Email">
</div>
<div class="form-group">
<label for="phone">Phone Number <span>*</span></label>
<input type="tel" id="phone" placeholder="123-456-7890" required pattern="\d{3}-\d{3}-\d{4}" aria-label="Phone Number">
</div>
<div class="form-group">
<label for="address">Billing Address</label>
<input type="text" id="address" placeholder="1234 Main St" aria-label="Billing Address">
</div>
<div class="buttons">
<button type="submit">Save Profile</button>
<button type="button" class="cancel-btn">Cancel</button>
</div>
</form>
<div class="connect">
<label>Connect with:</label>
<div class="social-buttons">
<div class="social-button google">
<img src="google.png" alt="Google Icon"> Google
</div>
<div class="social-button facebook">
<img src="facebook.png" alt="Facebook Icon"> Facebook
</div>
<div class="social-button instagram">
<img src="instagram.png" alt="Instagram Icon"> Instagram
</div>
</div>
</div>
<div class="bookings-section">
<h3>Upcoming Bookings</h3>
<ul id="upcoming-list"></ul>
</div>
<div class="account-options">
<button class="logout-btn" aria-label="Log Out">Log Out</button>
<button class="delete-btn" aria-label="Delete Account">Delete Account</button>
</div>
</div>
<div class="gtranslate_wrapper"></div>
<script>
window.gtranslateSettings = {
"default_language": "en",
"detect_browser_language": true,
"wrapper_selector": ".gtranslate_wrapper"
};
</script>
<script src="https://cdn.gtranslate.net/widgets/latest/float.js" defer></script>
<script src="profile.js"></script>
</body>
</html>