forked from Nusrath-480/TechRoute
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCareerPaths.html
More file actions
388 lines (341 loc) Β· 11.7 KB
/
Copy pathCareerPaths.html
File metadata and controls
388 lines (341 loc) Β· 11.7 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
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
387
388
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TechRoute - Career Paths</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<style>
/* CSS Reset and Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Poppins', sans-serif;
background-color: #f8fafc;
color: #333;
line-height: 1.6;
}
/* Navbar - Updated to match landing page */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 5%;
background: linear-gradient(135deg, #1e3a8a, #3b82f6);
color: white;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.nav-logo {
display: flex;
align-items: center;
gap: 12px;
}
.logo {
width: 40px;
height: 40px;
background-color: white;
border-radius: 20%;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
overflow: hidden;
}
.logo img {
width: 200%;
height: 75%;
object-fit: cover;
}
.logo-text {
font-size: 20px;
font-weight: 700;
}
.nav-profile {
display: flex;
align-items: center;
gap: 15px;
}
.profile-btn {
background: rgba(255, 255, 255, 0.2);
border: none;
color: white;
padding: 8px 16px;
border-radius: 20px;
cursor: pointer;
font-weight: 500;
transition: all 0.3s ease;
}
.profile-btn:hover {
background: rgba(255, 255, 255, 0.3);
}
/* Main Content */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 40px 20px;
}
.page-title {
text-align: center;
margin-bottom: 40px;
color: #1e3a8a;
font-size: 2.5rem;
font-weight: 700;
}
/* Search Bar */
.search-container {
max-width: 600px;
margin: 0 auto 40px;
position: relative;
}
.search-bar {
width: 100%;
padding: 15px 20px;
border: 2px solid #e2e8f0;
border-radius: 50px;
font-size: 16px;
font-family: 'Poppins', sans-serif;
transition: all 0.3s ease;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.search-bar:focus {
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
outline: none;
}
.search-icon {
position: absolute;
right: 20px;
top: 50%;
transform: translateY(-50%);
color: #64748b;
}
/* Career Path Cards */
.career-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
margin-bottom: 60px;
}
.career-card {
background: linear-gradient(135deg, #1e3a8a, #3b82f6);
color: white;
border-radius: 16px;
padding: 30px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
cursor: pointer;
opacity: 0;
transform: translateY(20px);
animation: fadeUp 0.6s forwards;
}
.career-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}
.card-emoji {
font-size: 3rem;
margin-bottom: 15px;
}
.card-title {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 10px;
}
.card-description {
font-size: 1rem;
opacity: 0.9;
}
/* Footer */
footer {
text-align: center;
padding: 30px 20px;
background: #1e3a8a;
color: white;
margin-top: 40px;
}
/* Animations */
@keyframes fadeUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Responsive Design */
@media (max-width: 992px) {
.career-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 576px) {
.career-grid {
grid-template-columns: 1fr;
}
.page-title {
font-size: 2rem;
}
.navbar {
padding: 15px 5%;
}
.logo-text {
font-size: 22px;
}
.logo {
width: 35px;
height: 35px;
}
}
/* Filter Animation */
.career-card.hidden {
display: none;
}
</style>
</head>
<body>
<!-- Navbar - Updated to match landing page -->
<nav class="navbar">
<div class="nav-logo">
<div class="logo">
<img src="images/techroute.png" alt="TechRoute Logo">
</div>
<div class="logo-text">TechRoute</div>
</div>
<div class="nav-profile">
<button class="profile-btn">Logout</button>
</div>
</nav>
<!-- Main Content -->
<div class="container">
<h1 class="page-title">Choose Your Career Path π</h1>
<!-- Search Bar -->
<div class="search-container">
<input type="text" class="search-bar" id="searchInput" placeholder="Search career paths...">
<div class="search-icon">π</div>
</div>
<!-- Career Path Cards -->
<div class="career-grid" id="careerGrid">
<!-- Cards will be populated by JavaScript -->
</div>
</div>
<!-- Footer -->
<footer>
<p>Β© 2025 TechRoute | Designed for Future Engineers π</p>
</footer>
<script>
// Career paths data - Added Software Engineer
const careerPaths = [
{
id: 'softwareengineer',
emoji: 'π»',
title: 'Software Engineer',
description: 'Build scalable software systems and applications.',
url: 'softwareengineer.html'
},
{
id: 'fullstack',
emoji: 'π¨βπ»',
title: 'Full Stack Developer',
description: 'Master both front-end and back-end development.',
url: 'fullstack.html'
},
{
id: 'datascientist',
emoji: 'π€',
title: 'Data Scientist',
description: 'Extract insights from data using statistics and ML.',
url: 'datascientist.html'
},
{
id: 'aiengineer',
emoji: 'π‘',
title: 'AI/ML Engineer',
description: 'Build intelligent systems and machine learning models.',
url: 'aiengineer.html'
},
{
id: 'cybersecurity',
emoji: 'π',
title: 'Cybersecurity Expert',
description: 'Protect systems and networks from digital attacks.',
url: 'cybersecurity.html'
},
{
id: 'clouddevops',
emoji: 'βοΈ',
title: 'Cloud / DevOps Engineer',
description: 'Manage infrastructure and deployment pipelines.',
url: 'clouddevops.html'
},
{
id: 'appdeveloper',
emoji: 'π±',
title: 'App Developer',
description: 'Create mobile applications for iOS and Android.',
url: 'appdeveloper.html'
},
{
id: 'productmanager',
emoji: 'π§ ',
title: 'Product Manager',
description: 'Lead product strategy and development lifecycle.',
url: 'productmanager.html'
}
];
// Initialize the page
document.addEventListener('DOMContentLoaded', function() {
const careerGrid = document.getElementById('careerGrid');
const searchInput = document.getElementById('searchInput');
// Render career cards
function renderCareerCards(paths) {
careerGrid.innerHTML = '';
paths.forEach((path, index) => {
const card = document.createElement('div');
card.className = 'career-card';
card.style.animationDelay = `${index * 0.1}s`;
card.innerHTML = `
<div class="card-emoji">${path.emoji}</div>
<h3 class="card-title">${path.title}</h3>
<p class="card-description">${path.description}</p>
`;
// Add click event to redirect
card.addEventListener('click', function() {
window.location.href = path.url;
});
careerGrid.appendChild(card);
});
}
// Filter career paths based on search input
function filterCareerPaths() {
const searchTerm = searchInput.value.toLowerCase();
if (searchTerm === '') {
renderCareerCards(careerPaths);
return;
}
const filteredPaths = careerPaths.filter(path => {
return path.title.toLowerCase().includes(searchTerm) ||
path.description.toLowerCase().includes(searchTerm);
});
renderCareerCards(filteredPaths);
}
// Initial render
renderCareerCards(careerPaths);
// Add event listener for search input
searchInput.addEventListener('input', filterCareerPaths);
// Logout button functionality
document.querySelector('.profile-btn').addEventListener('click', function() {
if (confirm('Are you sure you want to logout?')) {
// In a real app, this would redirect to logout endpoint
alert('Logged out successfully!');
window.location.href = 'index.html';
}
});
});
</script>
</body>
</html>