-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathwebdev.html
More file actions
419 lines (390 loc) · 19 KB
/
webdev.html
File metadata and controls
419 lines (390 loc) · 19 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
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Web Development - EduBridge</title>
<!-- CSS Dependencies -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"/>
<link rel="stylesheet" href="https://unpkg.com/aos@2.3.4/dist/aos.css"/>
<link rel="stylesheet" href="Styles/main.css">
<link rel="stylesheet" href="Styles/chat.css">
<script src="scripts/auth.js"></script>
<script src="scripts/main.js"></script>
</head>
<body>
<!-- Header -->
<header>
<nav class="navbar">
<a href="index.html" class="logo">EduBridge</a>
<ul class="nav-links">
<li><a href="index.html">Home</a></li>
<li><a href="webdev.html">Web Development</a></li>
<li><a href="ai.html">AI & ML</a></li>
<li><a href="career.html">Career</a></li>
<li>
<div class="theme-selector" id="themeSelector">
<button class="theme-selector-btn" id="themeButton">
<i class="fas fa-palette"></i>
Theme
</button>
<div class="theme-selector-dropdown">
<div class="theme-option" data-theme="light">
<i class="fas fa-sun"></i>
Light Mode
</div>
<div class="theme-option" data-theme="dark">
<i class="fas fa-moon"></i>
Dark Mode
</div>
</div>
</div>
</li>
<li class="auth-buttons" id="authButtons">
<a href="login.html" class="btn btn-outline">Login</a>
<a href="register.html" class="btn">Register</a>
</li>
</ul>
</nav>
</header>
<!-- Main Content -->
<main>
<!-- Hero Section -->
<section class="hero">
<h1>Web Development</h1>
<p>Master the art of building modern, responsive websites and web applications. Learn everything from HTML and CSS to advanced JavaScript frameworks.</p>
</section>
<!-- Course Overview -->
<section class="section">
<h2>What You'll Learn</h2>
<div class="course-cards">
<div class="card">
<div class="card-content">
<h3><i class="fas fa-code"></i> Frontend Development</h3>
<ul>
<li>HTML & CSS Basics</li>
<li>JavaScript Programming</li>
<li>Responsive Web Design</li>
<li>Modern Frameworks</li>
</ul>
</div>
</div>
<div class="card">
<div class="card-content">
<h3><i class="fas fa-server"></i> Backend Development</h3>
<ul>
<li>Server Programming</li>
<li>Database Management</li>
<li>API Development</li>
<li>Security Basics</li>
</ul>
</div>
</div>
<div class="card">
<div class="card-content">
<h3><i class="fas fa-layer-group"></i> Full Stack Development</h3>
<ul>
<li>Complete Web Apps</li>
<li>Version Control</li>
<li>Deployment</li>
<li>Testing</li>
</ul>
</div>
</div>
</div>
</section>
<section class="section">
<h2>Admin Curated Learning</h2>
<p class="section-intro">Updated learning items from the Project Admin to keep your path current.</p>
<div class="course-cards content-grid" data-content-category="webdev"></div>
<p class="content-empty" data-content-empty>No curated content yet. Check back soon.</p>
</section>
<!-- Resources Section -->
<section class="section">
<h2>Learning Resources</h2>
<div class="resource-grid">
<div class="resource-card">
<div class="card-content">
<h3><i class="fas fa-book-open"></i> Documentation & Guides</h3>
<div class="notes-content">
<h4>MDN Web Docs</h4>
<p>Comprehensive web development documentation covering HTML, CSS, and JavaScript. Includes tutorials, references, and examples for all skill levels.</p>
<h4>W3Schools</h4>
<p>Interactive tutorials and examples for web development. Great for beginners to learn HTML, CSS, JavaScript, and other web technologies.</p>
<h4>freeCodeCamp</h4>
<p>Free coding challenges and projects to practice web development skills. Includes certifications and a supportive community.</p>
</div>
</div>
</div>
<div class="resource-card">
<div class="card-content">
<h3><i class="fas fa-tasks"></i> Practice Projects</h3>
<div class="notes-content">
<h4>Portfolio Website</h4>
<p>Create a personal portfolio website to showcase your skills and projects. Focus on responsive design and modern web technologies.</p>
<h4>E-commerce Site</h4>
<p>Build a full-featured online store with product listings, shopping cart, and payment integration. Practice both frontend and backend development.</p>
<h4>Social Media App</h4>
<p>Develop a real-time messaging platform with user authentication, posts, and comments. Learn about real-time updates and database management.</p>
</div>
</div>
</div>
<div class="resource-card">
<div class="card-content">
<h3><i class="fas fa-users"></i> Community & Support</h3>
<div class="notes-content">
<h4>Stack Overflow</h4>
<p>Get help from the developer community. Find solutions to common problems and learn from experienced developers.</p>
<h4>GitHub</h4>
<p>Collaborate and share your code. Contribute to open-source projects and build your developer portfolio.</p>
<h4>DEV Community</h4>
<p>Connect with fellow developers. Share knowledge, ask questions, and stay updated with the latest web development trends.</p>
</div>
</div>
</div>
</div>
</section>
<!-- Videos Section -->
<section class="section">
<h2>Web Development Videos</h2>
<div class="course-cards">
<div class="card">
<div class="card-content">
<h3><i class="fas fa-code"></i> Frontend Development</h3>
<div class="video-list">
<div class="video-item" onclick="openVideo('qz0aGYrrlhU')">
<a href="#" class="video-link">
<i class="fas fa-play-circle"></i>
HTML & CSS Crash Course
</a>
</div>
<div class="video-item" onclick="openVideo('PkZNo7MFNFg')">
<a href="#" class="video-link">
<i class="fas fa-play-circle"></i>
JavaScript Fundamentals
</a>
</div>
<div class="video-item" onclick="openVideo('w7ejDZ8SWv8')">
<a href="#" class="video-link">
<i class="fas fa-play-circle"></i>
Responsive Design
</a>
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-content">
<h3><i class="fas fa-server"></i> Backend Development</h3>
<div class="video-list">
<div class="video-item" onclick="openVideo('Oe421EPjeBE')">
<a href="#" class="video-link">
<i class="fas fa-play-circle"></i>
Node.js Basics
</a>
</div>
<div class="video-item" onclick="openVideo('HXV3zeQKqGY')">
<a href="#" class="video-link">
<i class="fas fa-play-circle"></i>
SQL Tutorial
</a>
</div>
<div class="video-item" onclick="openVideo('SLpUKAGnm-g')">
<a href="#" class="video-link">
<i class="fas fa-play-circle"></i>
REST API Development
</a>
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-content">
<h3><i class="fas fa-layer-group"></i> Full Stack Projects</h3>
<div class="video-list">
<div class="video-item" onclick="openVideo('3dHNOWTI7H8')">
<a href="#" class="video-link">
<i class="fas fa-play-circle"></i>
E-commerce Website
</a>
</div>
<div class="video-item" onclick="openVideo('ngc9gnGgUdA')">
<a href="#" class="video-link">
<i class="fas fa-play-circle"></i>
Social Media App
</a>
</div>
<div class="video-item" onclick="openVideo('ZbX4Ok9YX94')">
<a href="#" class="video-link">
<i class="fas fa-play-circle"></i>
Task Management System
</a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Video Modal -->
<div id="videoModal" class="modal">
<div class="modal-content">
<span class="close-modal" onclick="closeVideo()">×</span>
<div class="video-container">
<iframe id="videoFrame" width="100%" height="100%" frameborder="0" allowfullscreen></iframe>
</div>
</div>
</div>
<!-- Quiz Section -->
<section class="section">
<h2>Test Your Knowledge</h2>
<div class="quiz-card">
<div class="card-content">
<h3><i class="fas fa-question-circle"></i> Web Development Quiz</h3>
<p>Take this comprehensive quiz to test your understanding of web development concepts and best practices.</p>
<div class="quiz-stats">
<div class="stat">
<i class="fas fa-clock"></i>
<span>30 minutes</span>
<p>Duration</p>
</div>
<div class="stat">
<i class="fas fa-question"></i>
<span>20 questions</span>
<p>Total Questions</p>
</div>
<div class="stat">
<i class="fas fa-trophy"></i>
<span>80% to pass</span>
<p>Passing Score</p>
</div>
</div>
<a href="quiz.html" class="btn">Start Quiz</a>
</div>
</div>
</section>
</main>
<!-- Footer -->
<footer>
<div class="footer-content">
<div class="footer-section">
<h3>Quick Links</h3>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="webdev.html">Web Development</a></li>
<li><a href="ai.html">AI & ML</a></li>
<li><a href="career.html">Career</a></li>
</ul>
</div>
<div class="footer-section">
<h3>Follow Us</h3>
<a href="https://x.com/shivam98997467" target="_blank" class="social-button" title="Follow us on Twitter">
<i class="fab fa-twitter"></i>
</a>
</div>
</div>
</footer>
<!-- Chatbot Template -->
<div id="chatbotTemplate"></div>
<!-- JavaScript Dependencies -->
<script src="https://unpkg.com/aos@2.3.4/dist/aos.js"></script>
<script src="scripts/chatbot.js"></script>
<script src="scripts/auth.js"></script>
<script src="scripts/content-data.js"></script>
<script src="scripts/content.js"></script>
<script>
// Initialize AOS
AOS.init();
// Theme Selection
const themeSelector = document.getElementById('themeSelector');
const themeButton = document.getElementById('themeButton');
const themeOptions = document.querySelectorAll('.theme-option');
const currentTheme = localStorage.getItem('theme') || 'light';
// Set initial theme
document.documentElement.setAttribute('data-theme', currentTheme);
updateActiveThemeOption(currentTheme);
// Toggle dropdown on button click
themeButton.addEventListener('click', (e) => {
e.stopPropagation();
themeSelector.classList.toggle('active');
});
// Close dropdown when clicking outside
document.addEventListener('click', (e) => {
if (!themeSelector.contains(e.target)) {
themeSelector.classList.remove('active');
}
});
// Handle theme selection
themeOptions.forEach(option => {
option.addEventListener('click', () => {
const theme = option.getAttribute('data-theme');
document.documentElement.setAttribute('data-theme', theme);
localStorage.setItem('theme', theme);
updateActiveThemeOption(theme);
themeSelector.classList.remove('active');
});
});
function updateActiveThemeOption(theme) {
themeOptions.forEach(option => {
if (option.getAttribute('data-theme') === theme) {
option.classList.add('active');
} else {
option.classList.remove('active');
}
});
}
// Handle user authentication state
document.addEventListener('DOMContentLoaded', () => {
const auth = new Auth();
const currentUser = auth.getCurrentUser();
const authButtons = document.getElementById('authButtons');
if (currentUser) {
// User is logged in
authButtons.style.display = 'none';
} else {
// User is not logged in
authButtons.style.display = 'block';
}
});
// Load and initialize chatbot
function loadChatbot() {
fetch('templates/chatbot.html')
.then(response => response.text())
.then(html => {
document.getElementById('chatbotTemplate').innerHTML = html;
// Initialize chatbot after template is loaded
if (typeof initializeChatbot === 'function') {
initializeChatbot();
} else {
console.error('Chatbot initialization function not found');
}
})
.catch(error => {
console.error('Error loading chatbot template:', error);
});
}
// Load chatbot when the page is ready
document.addEventListener('DOMContentLoaded', loadChatbot);
function openVideo(videoId) {
const modal = document.getElementById('videoModal');
const videoFrame = document.getElementById('videoFrame');
videoFrame.src = `https://www.youtube.com/embed/${videoId}`;
modal.style.display = 'block';
document.body.style.overflow = 'hidden'; // Prevent scrolling when modal is open
}
function closeVideo() {
const modal = document.getElementById('videoModal');
const videoFrame = document.getElementById('videoFrame');
modal.style.display = 'none';
videoFrame.src = ''; // Stop video playback
document.body.style.overflow = 'auto'; // Restore scrolling
}
// Close modal when clicking outside
window.onclick = function(event) {
const modal = document.getElementById('videoModal');
if (event.target == modal) {
closeVideo();
}
}
</script>
</body>
</html>