-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTask1.html
More file actions
553 lines (482 loc) · 16.1 KB
/
Task1.html
File metadata and controls
553 lines (482 loc) · 16.1 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
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Unacademy landing page Clone</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
body {
background: #f5f5f5;
line-height: 1.6;
}
header {
background: #fff;
padding: 1rem 5%;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
}
.logo {
height: 70px;
display: flex;
align-items: center;
}
.logo img {
height: 100%;
object-fit: contain;
}
.nav-links {
list-style: none;
display: flex;
gap: 1rem;
}
.btn {
display: inline-block;
padding: 0.8rem 1.5rem;
background: #08bd80;
color: white;
text-decoration: none;
border-radius: 8px;
font-weight: 600;
transition: all 0.3s ease;
}
.btn:hover {
background: #06a570;
transform: translateY(-2px);
}
.hero {
margin-top: 70px;
background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('/api/placeholder/1600/900');
background-size: cover;
padding: 4rem 5%;
text-align: center;
}
.hero h1 {
font-size: 2.5rem;
color: #3c4852;
margin-bottom: 1rem;
}
.hero p {
color: #6e7c87;
font-size: 1.2rem;
margin-bottom: 2rem;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 4rem 5%;
}
.container h2 {
color: #3c4852;
margin-bottom: 2rem;
font-size: 2rem;
text-align: center;
}
.courses {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-bottom: 3rem;
}
.course {
background: white;
padding: 2rem;
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
display: flex;
flex-direction: column;
align-items: center;
}
.course:hover {
transform: translateY(-5px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.course h3 {
color: #3c4852;
margin-bottom: 1rem;
}
.course img {
max-width: 100%;
height: auto;
}
.features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin-top: 4rem;
}
.feature {
background: white;
padding: 2rem;
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
text-align: center;
transition: all 0.3s ease;
}
.feature:hover {
transform: translateY(-5px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.feature img {
height: 120px;
width: auto;
margin-bottom: 1rem;
}
.feature h3 {
color: #3c4852;
margin-bottom: 1rem;
}
.feature p {
color: #6e7c87;
}
/* Login Modal Styles */
.modal-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 1001;
align-items: center;
justify-content: center;
}
.modal {
background: white;
padding: 2rem;
border-radius: 12px;
width: 90%;
max-width: 400px;
position: relative;
animation: modalAppear 0.3s ease;
}
@keyframes modalAppear {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.close-modal {
position: absolute;
top: 1rem;
right: 1rem;
font-size: 1.5rem;
cursor: pointer;
color: #6e7c87;
border: none;
background: none;
padding: 0.5rem;
transition: color 0.3s ease;
}
.close-modal:hover {
color: #3c4852;
}
.login-form {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.form-group {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.form-group label {
color: #3c4852;
font-weight: 600;
}
.form-group input {
padding: 0.8rem;
border: 2px solid #e9ecef;
border-radius: 8px;
font-size: 1rem;
transition: border-color 0.3s ease;
}
.form-group input:focus {
outline: none;
border-color: #08bd80;
}
.login-btn {
background: #08bd80;
color: white;
padding: 0.8rem;
border: none;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: background-color 0.3s ease;
}
.login-btn:hover {
background: #06a570;
}
.login-options {
text-align: center;
margin-top: 1rem;
}
.login-options p {
color: #6e7c87;
margin-bottom: 0.5rem;
}
.social-login {
display: flex;
gap: 1rem;
justify-content: center;
margin-top: 1rem;
}
.social-btn {
padding: 0.8rem 1.5rem;
border: 2px solid #e9ecef;
border-radius: 8px;
background: white;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 0.5rem;
}
.social-btn:hover {
border-color: #08bd80;
color: #08bd80;
}
.divider {
display: flex;
align-items: center;
text-align: center;
color: #6e7c87;
margin: 1rem 0;
}
.divider::before,
.divider::after {
content: '';
flex: 1;
border-bottom: 1px solid #e9ecef;
}
.divider span {
padding: 0 10px;
}
.modal-overlay.active {
display: flex;
}
footer {
background: #3c4852;
color: white;
text-align: center;
padding: 1.5rem;
margin-top: 4rem;
}
@media (max-width: 768px) {
.hero h1 {
font-size: 2rem;
}
.container {
padding: 2rem 5%;
}
.courses {
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.social-login {
flex-direction: column;
}
}
</style>
</head>
<body>
<header>
<div class="logo">
<img src="task1_img/Unacademy_Logo.webp" alt="Unacademy Logo">
</div>
<ul class="nav-links">
<li><a href="#" class="btn" id="loginBtn">Login</a></li>
<li><a href="#" class="btn">Join for free</a></li>
</ul>
</header>
<section class="hero">
<h1>Crack Your Goals with the top Educators</h1>
<p>Join Unacademy and start learning from top experts</p>
<img src="task1_img/home-illustration.svg" alt="Learning illustration" style="max-width: 400px; margin: 2rem 0;">
<br>
<a href="#" class="btn">Start Learning</a>
</section>
<div class="container">
<div class="details-section">
<style>
.details-section {
background: white;
padding: 3rem;
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
margin: 2rem auto;
max-width: 800px;
}
.details-form {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 2rem;
}
@media (max-width: 768px) {
.details-form {
grid-template-columns: 1fr;
}
}
.input-group {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.input-group label {
color: #3c4852;
font-weight: 600;
}
.input-group input,
.input-group select {
padding: 0.8rem;
border: 2px solid #e9ecef;
border-radius: 8px;
font-size: 1rem;
transition: all 0.3s ease;
}
.input-group input:focus,
.input-group select:focus {
outline: none;
border-color: #08bd80;
}
.details-submit {
grid-column: 1 / -1;
text-align: center;
}
.details-heading {
text-align: center;
color: #3c4852;
margin-bottom: 2rem;
}
.details-submit .btn {
width: 200px;
}
</style>
<h2 class="details-heading">Enter Your Details</h2>
<form class="details-form">
<div class="input-group">
<label for="fullName">Full Name</label>
<input type="text" id="fullName" required placeholder="Enter your full name">
</div>
<div class="input-group">
<label for="email">Email Address</label>
<input type="email" id="email" required placeholder="Enter your email">
</div>
<div class="input-group">
<label for="phone">Phone Number</label>
<input type="tel" id="phone" required placeholder="Enter your phone number">
</div>
<div class="input-group">
<label for="course">Interested Course</label>
<select id="course" required>
<option value="">Select a course</option>
<option value="upsc">UPSC CSE-GS</option>
<option value="iitjee">IIT-JEE</option>
<option value="bank">Bank Exams</option>
<option value="neet">NEET-UG</option>
<option value="ssc">SSC JE</option>
<option value="cbse">CBSE Class 12</option>
</select>
</div>
<div class="input-group">
<label for="city">City</label>
<input type="text" id="city" required placeholder="Enter your city">
</div>
<div class="input-group">
<label for="state">State</label>
<input type="text" id="state" required placeholder="Enter your state">
</div>
<div class="details-submit">
<button type="submit" class="btn">Submit Details</button>
</div>
</form>
</div>
</div>
<div class="container">
<h2>Explore Popular Courses</h2>
<div class="courses">
<div class="course">
<h3>UPSC CSE- GS</h3>
<img src="task1_img/upsc.svg" alt="UPSC">
</div>
<div class="course">
<h3>IIT-JEE</h3>
<img src="task1_img/iit_jee.svg" alt="IIT JEE">
</div>
<div class="course">
<h3>Bank Exams</h3>
<img src="task1_img/bank.svg" alt="Bank Exams">
</div>
<div class="course">
<h3>NEET-UG</h3>
<img src="task1_img/neet_ug.svg" alt="NEET UG">
</div>
<div class="course">
<h3>SSC JE</h3>
<img src="task1_img/ssc.svg" alt="SSC JE">
</div>
<div class="course">
<h3>CBSE Class 12</h3>
<img src="task1_img/class_12.svg" alt="CBSE">
</div>
</div>
<div style="text-align: center;">
<a href="#" class="btn">See all courses</a>
</div>
<div class="features">
<div class="feature">
<img src="task1_img/dailyliveclasses_0c0023950f_c187155ee3.svg" alt="Live classes">
<h3>Daily live classes</h3>
<p>Chat with educators, ask questions, answer live polls, and get your doubts cleared - all while the class is going on</p>
</div>
<div class="feature">
<img src="task1_img/syllabus_a9da21d824_b20b285483.svg" alt="Practice">
<h3>Practice and revise</h3>
<p>Learning isn't just limited to classes with our practice section, mock tests and lecture notes shared as PDFs for your revision</p>
</div>
<div class="feature">
<img src="task1_img/learnanytimeanywhere_cb19d5de30_b92bc0c6a1.svg" alt="Learn anywhere">
<h3>Learn anytime, anywhere</h3>
<p>One subscription gets you access to all our live and recorded classes to watch from the comfort of any of your devices</p>
</div>
</div>
</div>
<footer>
<p>© 2025 Unacademy Clone. All Rights Reserved.</p>
</footer>
</body>
<script>
// Handle details form submission
document.querySelector('.details-form').addEventListener('submit', function(e) {
e.preventDefault();
// Collect form data
const formData = {
fullName: document.getElementById('fullName').value,
email: document.getElementById('email').value,
phone: document.getElementById('phone').value,
course: document.getElementById('course').value,
city: document.getElementById('city').value,
state: document.getElementById('state').value
};
// For demo purposes, just show the collected data
alert('Details submitted successfully!\n' + JSON.stringify(formData, null, 2));
});
</script>