-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile.html
More file actions
302 lines (267 loc) · 9.11 KB
/
profile.html
File metadata and controls
302 lines (267 loc) · 9.11 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Profile - Flight Scanner</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background-color: #f5f5f5;
}
.navbar {
background-color: #2c3e50;
color: white;
padding: 15px 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-weight: bold;
font-size: 24px;
}
.nav-links {
display: flex;
gap: 20px;
}
.nav-links a {
color: white;
text-decoration: none;
padding: 8px 16px;
border-radius: 4px;
transition: background-color 0.3s;
}
.nav-links a:hover {
background-color: #34495e;
}
.nav-links a.active {
background-color: #3498db;
}
.container {
max-width: 900px;
margin: 30px auto;
background-color: white;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
overflow: hidden;
}
.profile-header {
background-color: #3498db;
color: white;
padding: 30px;
display: flex;
align-items: center;
gap: 20px;
}
.profile-pic {
width: 100px;
height: 100px;
border-radius: 50%;
background-color: #fff;
overflow: hidden;
border: 3px solid white;
}
.profile-pic img {
width: 100%;
height: 100%;
object-fit: cover;
}
.profile-info h1 {
margin-bottom: 5px;
}
.tabs {
display: flex;
border-bottom: 1px solid #ddd;
}
.tab {
padding: 15px 20px;
cursor: pointer;
border-bottom: 3px solid transparent;
}
.tab.active {
border-bottom-color: #3498db;
color: #3498db;
font-weight: bold;
}
.tab-content {
padding: 20px;
display: none;
}
.tab-content.active {
display: block;
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 5px;
font-weight: 600;
}
.form-group input {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 16px;
}
.btn {
background-color: #3498db;
color: white;
border: none;
padding: 10px 20px;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
}
.btn:hover {
background-color: #2980b9;
}
.flight-card {
border: 1px solid #ddd;
border-radius: 8px;
padding: 15px;
margin-bottom: 15px;
}
.flight-card h3 {
margin-bottom: 10px;
color: #3498db;
}
</style>
</head>
<body>
<nav class="navbar">
<div class="logo">Flight Scanner</div>
<div class="nav-links">
<a href="#">Home</a>
<a href="#">Search</a>
<a href="#">Deals</a>
<a href="#" class="active">Profile</a>
</div>
</nav>
<div class="container">
<div class="profile-header">
<div class="profile-pic">
<img src="https://via.placeholder.com/100" alt="Profile Picture">
</div>
<div class="profile-info">
<h1>John Doe</h1>
<p>john.doe@example.com</p>
</div>
</div>
<div class="tabs">
<div class="tab active" data-tab="personal">Personal Info</div>
<div class="tab" data-tab="saved">Saved Flights</div>
<div class="tab" data-tab="preferences">Travel Preferences</div>
<div class="tab" data-tab="security">Security</div>
</div>
<div class="tab-content active" id="personal">
<form>
<div class="form-group">
<label for="name">Full Name</label>
<input type="text" id="name" value="John Doe">
</div>
<div class="form-group">
<label for="email">Email</label>
<input type="email" id="email" value="john.doe@example.com">
</div>
<div class="form-group">
<label for="phone">Phone</label>
<input type="tel" id="phone" value="+1 234 567 8900">
</div>
<div class="form-group">
<label for="address">Address</label>
<input type="text" id="address" value="123 Main St, City, Country">
</div>
<button type="button" class="btn">Save Changes</button>
</form>
</div>
<div class="tab-content" id="saved">
<div class="flight-card">
<h3>New York to London</h3>
<p>Departure: June 15, 2023 - 10:30 AM</p>
<p>Airline: British Airways</p>
<p>Price: $450</p>
</div>
<div class="flight-card">
<h3>Paris to Tokyo</h3>
<p>Departure: July 22, 2023 - 11:45 PM</p>
<p>Airline: Air France</p>
<p>Price: $780</p>
</div>
</div>
<div class="tab-content" id="preferences">
<h2>Travel Preferences</h2>
<div class="form-group">
<label for="seat">Preferred Seat</label>
<select id="seat" class="form-control">
<option>Window</option>
<option>Aisle</option>
<option>Middle</option>
</select>
</div>
<div class="form-group">
<label for="class">Preferred Class</label>
<select id="class" class="form-control">
<option>Economy</option>
<option>Business</option>
<option>First Class</option>
</select>
</div>
<div class="form-group">
<label for="meal">Meal Preference</label>
<select id="meal" class="form-control">
<option>Regular</option>
<option>Vegetarian</option>
<option>Vegan</option>
<option>Kosher</option>
<option>Halal</option>
</select>
</div>
<button type="button" class="btn">Save Preferences</button>
</div>
<div class="tab-content" id="security">
<h2>Security Settings</h2>
<div class="form-group">
<label for="current-password">Current Password</label>
<input type="password" id="current-password">
</div>
<div class="form-group">
<label for="new-password">New Password</label>
<input type="password" id="new-password">
</div>
<div class="form-group">
<label for="confirm-password">Confirm Password</label>
<input type="password" id="confirm-password">
</div>
<button type="button" class="btn">Update Password</button>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
const tabs = document.querySelectorAll('.tab');
tabs.forEach(tab => {
tab.addEventListener('click', function() {
// Remove active class from all tabs
tabs.forEach(t => t.classList.remove('active'));
// Add active class to clicked tab
this.classList.add('active');
// Hide all tab content
document.querySelectorAll('.tab-content').forEach(content => {
content.classList.remove('active');
});
// Show the corresponding tab content
const tabId = this.getAttribute('data-tab');
document.getElementById(tabId).classList.add('active');
});
});
});
</script>
</body>
</html></div></nav>