-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
79 lines (60 loc) · 1.93 KB
/
index.html
File metadata and controls
79 lines (60 loc) · 1.93 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>E-Learning Platform</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- Navbar -->
<nav class="navbar">
<h2 class="logo">E-Learning</h2>
<ul class="nav-links">
<li>Home</li>
<li>Courses</li>
<li>Students</li>
</ul>
</nav>
<section style="padding:20px;">
<h2>Student Login</h2>
<input type="email" id="loginEmail" placeholder="Email"><br><br>
<input type="password" id="loginPassword" placeholder="Password"><br><br>
<button onclick="loginStudent()">Login</button>
<p id="loginMsg"></p>
</section>
<!-- Courses Section -->
<section class="courses">
<h2>Available Courses</h2>
<div class="course-container">
<div class="course-card">
<h3>Java Full Stack</h3>
<p>Learn Java, Spring Boot & MySQL</p>
<button>Enroll</button>
</div>
<div class="course-card">
<h3>Web Development</h3>
<p>HTML, CSS, JavaScript from scratch</p>
<button>Enroll</button>
</div>
<div class="course-card">
<h3>Data Structures</h3>
<p>DSA for Interviews</p>
<button>Enroll</button>
</div>
</div>
</section>
<section style="padding:20px;">
<h2>Add Student</h2>
<input type="text" id="name" placeholder="Name"><br><br>
<input type="email" id="email" placeholder="Email"><br><br>
<input type="password" id="password" placeholder="Password"><br><br>
<button onclick="addStudent()">Add Student</button>
</section>
<!-- Students From Backend -->
<section style="padding:20px;">
<h2>Students List (From Backend)</h2>
<ul id="studentList"></ul>
</section>
<script src="script.js"></script>
</body>
</html>