-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresource.html
More file actions
305 lines (258 loc) · 11.4 KB
/
resource.html
File metadata and controls
305 lines (258 loc) · 11.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Course Videos</title>
<link rel="stylesheet" href="next.css" />
<style>
.course-section {
padding: 20px;
margin-top: 120px; /* space for fixed navbar */
}
.course-section h1 {
text-align: center;
color: #333;
margin-bottom: 30px;
}
.course-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 30px;
max-width: 1200px;
margin: auto;
}
.course-card {
background: #fff;
border-radius: 12px;
padding: 20px;
width: 300px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
text-align: center;
transition: transform 0.3s;
}
.course-card:hover {
transform: scale(1.05);
}
.course-card iframe {
width: 100%;
height: 180px;
border-radius: 8px;
border: none;
}
.course-title {
font-size: 18px;
font-weight: bold;
color: #333;
margin-top: 10px;
}
.course-description {
font-size: 14px;
color: #666;
margin: 10px 0;
}
.course-card a {
display: inline-block;
margin-top: 10px;
padding: 10px 15px;
background-color: #009688;
color: white;
text-decoration: none;
border-radius: 6px;
}
.course-card a:hover {
background-color: #00796b;
}
.profile-box {
text-align: center;
font-weight: bold;
font-size: 1.3rem;
color: #fff;
background-color: #C599B6;
padding: 15px;
}
</style>
</head>
<body>
<div id="welcome-user" style="text-align: center; margin: 10px 0 0; padding: 20px; font-weight: bold; font-size: 1.3rem; color: #ffb6c1; background-color: #C599B6;">
Welcome, <span id="welcome-name">User</span> 👏
</div>
<!-- ✅ Navbar Section -->
<nav class="navbar">
<div class="nav-right">
<div class="logo">
<img src="image/int.png" alt="Logo" />NextStep</div>
<!--Menu Card-->
<div class="menu">
<a href="home.html">Home</a>
<a href="user-dashboard.html">Dashboard</a>
<a href="T&C.html">Terms & Condition</a>
<a href="Contact.html">Contact</a>
<a href="about.html">About</a>
</div>
<a href="logout.html" class="login-btn">LogOut →</a>
</div>
</nav>
<div style="margin-top: 100px;"></div>
<!-- ✅ Course Section -->
<section class="course-section">
<h1>Courses</h1>
<div class="course-container">
<!-- Sample course (repeatable card) -->
<div class="course-card">
<iframe src="https://www.youtube.com/embed/GoXwIVyNvX0" allowfullscreen></iframe>
<div class="course-title">Java for Beginners</div>
<div class="course-description">Learn Java programming with this beginner-friendly course.</div>
<a href="https://www.youtube.com/watch?v=GoXwIVyNvX0" target="_blank">Watch Full Course</a>
</div>
<div class="course-card">
<iframe src="https://www.youtube.com/embed/rfscVS0vtbw" allowfullscreen></iframe>
<div class="course-title">Python for Beginners</div>
<div class="course-description">Learn Python programming from scratch in this free course.</div>
<a href="https://www.youtube.com/watch?v=rfscVS0vtbw" target="_blank">Watch Full Course</a>
</div>
<div class="course-card">
<iframe src="https://www.youtube.com/embed/HXV3zeQKqGY" allowfullscreen></iframe>
<div class="course-title">SQL for Beginners</div>
<div class="course-description">Learn SQL, one of the most popular database languages.</div>
<a href="https://www.youtube.com/watch?v=HXV3zeQKqGY" target="_blank">Watch Full Course</a>
</div>
<!-- SQL Course -->
<div class="course-card">
<iframe src="https://www.youtube.com/embed/HXV3zeQKqGY" allowfullscreen></iframe>
<div class="course-title">SQL for Beginners</div>
<div class="course-description">Learn SQL, one of the most popular databases languages,
with this beginner course.</div>
<a href="https://www.youtube.com/watch?v=HXV3zeQKqGY" target="_blank">Watch Full Course</a>
</div>
<!-- Python Course -->
<div class="course-card">
<iframe src="https://www.youtube.com/embed/_uQrJ0TkZlc" allowfullscreen></iframe>
<div class="course-title">Python for Beginners</div>
<div class="course-description">Master Python programming with this comprehensive beginner
course, ideal for placements.</div>
<a href="https://www.youtube.com/watch?v=_uQrJ0TkZlc" target="_blank">Watch Full Course</a>
</div>
<!-- Data Structures and Algorithms Course -->
<div class="course-card">
<iframe src="https://www.youtube.com/embed/8hly31xKli0&t=2359s" allowfullscreen></iframe>
<div class="course-title">Data Structures and Algorithms</div>
<div class="course-description">Learn the essential data structures and algorithms that
form the backbone of coding interviews and placements.</div>
<a href="https://www.youtube.com/watch?v=8hly31xKli0&t=2359s" target="_blank">Watch Full Course</a>
</div>
<!-- JavaScript Course -->
<div class="course-card">
<iframe src="https://www.youtube.com/embed/hdI2bqOjy3c" allowfullscreen></iframe>
<div class="course-title">JavaScript for Beginners</div>
<div class="course-description">Learn the basics of JavaScript, a key programming language
for web development and programming placements.</div>
<a href="https://www.youtube.com/watch?v=hdI2bqOjy3c" target="_blank">Watch Full Course</a>
</div>
<!-- C++ Course -->
<div class="course-card">
<iframe src="https://www.youtube.com/embed/vLnPwxZdW4Y" allowfullscreen></iframe>
<div class="course-title">C++ Programming for Beginners</div>
<div class="course-description">Get started with C++ programming with this detailed course
designed to cover all the basics.</div>
<a href="https://www.youtube.com/watch?v=vLnPwxZdW4Y" target="_blank">Watch Full Course</a>
</div>
<!-- Java Course -->
<div class="course-card">
<iframe src="https://www.youtube.com/embed/GoXwIVyNvX0" allowfullscreen></iframe>
<div class="course-title">Java for Beginners</div>
<div class="course-description">Learn Java, one of the most popular languages used in
placements and interviews.</div>
<a href="https://www.youtube.com/watch?v=GoXwIVyNvX0" target="_blank">Watch Full Course</a>
</div>
<!-- Git and GitHub Course -->
<div class="course-card">
<iframe src="https://www.youtube.com/embed/RGOj5yH7evk" allowfullscreen></iframe>
<div class="course-title">Git and GitHub for Beginners</div>
<div class="course-description">Learn version control with Git and GitHub, essential tools
for modern developers.</div>
<a href="https://www.youtube.com/watch?v=RGOj5yH7evk" target="_blank">Watch Full Course</a>
</div>
<!-- Operating System Concepts Course -->
<div class="course-card">
<iframe src="https://www.youtube.com/embed/8XBtAjKwCm4" allowfullscreen></iframe>
<div class="course-title">Operating System Concepts</div>
<div class="course-description">Learn fundamental OS concepts that are often discussed in
coding interviews and placements.</div>
<a href="https://www.youtube.com/watch?v=8XBtAjKwCm4" target="_blank">Watch Full Course</a>
</div>
<!-- Algorithms Course -->
<div class="course-card">
<iframe src="https://www.youtube.com/embed/8hly31xKli0" allowfullscreen></iframe>
<div class="course-title">Algorithms for Beginners</div>
<div class="course-description">A detailed course on algorithms, an essential part of
programming placements and interviews.</div>
<a href="https://www.youtube.com/watch?v=8hly31xKli0" target="_blank">Watch Full Course</a>
</div>
</div>
</section>
<!-- Footer Section -->
<footer class="footer">
<div class="footer-container">
<div>
<h2>VIRTUAL INTERNSHIPS</h2>
<p class="featured">As featured on:</p>
<div class="featured">
<img src="image/BBC News.jpeg" alt="BBC">
<img src="image/download.jpeg" alt="Forbes">
<img src="image/Nestle.jpeg" alt="TechCrunch">
<img src="image/Newspapers.jpeg" alt="The Times">
</div>
</div>
<div class="footer-links">
<div>
<a href="#">Companies</a>
<a href="#">Educators</a>
<a href="#">Interns</a>
</div>
<div>
<a href="#">Our Mission</a>
<a href="#">Our Team</a>
<a href="#">Join Us</a>
<a href="#">Press</a>
<a href="#">Blog</a>
</div>
</div>
<div class="social-links">
<a href="#"><h1>Contact Us</h1></a>
<a href="#"><img src="image/Instagram.jpeg" alt="Instagram"> Instagram</a>
<a href="#"><img src="image/X Corp_.jpeg" alt="Twitter"> Twitter</a>
<a href="https://in.linkedin.com/"><img src="image/LinkedIn.jpeg" alt="LinkedIn"> LinkedIn</a>
<a href="https://www.youtube.com/"><img src="image/Youtube.jpeg" alt="YouTube"> YouTube</a>
</div>
</div>
<div class="footer-bottom">
© 2025 Virtual Internships. All rights reserved.
<a href="#">Privacy Policy</a> |
<a href="#">Terms of Service</a>
</div>
</footer>
<!-- ✅ Profile JS -->
<script>
async function loadUserData() {
try {
const res = await fetch('/api/user/profile', {
method: 'GET',
credentials: 'include'
});
const data = await res.json();
if (res.ok) {
document.getElementById('welcome-name').textContent = data.username;
} else {
window.location.href = '/login.html';
}
} catch (err) {
console.error('❌ Error loading user profile:', err);
window.location.href = '/login.html';
}
}
window.onload = loadUserData;
</script>
</body>
</html>