-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcourse.html
More file actions
148 lines (134 loc) · 5.99 KB
/
course.html
File metadata and controls
148 lines (134 loc) · 5.99 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Course - CodeLearn</title>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/course.css">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
</head>
<body>
<!-- Navigation -->
<nav class="navbar">
<div class="nav-container">
<div class="nav-brand">
<a href="index.html" class="anchor">
<i class="fas fa-code brand-icon"></i>
<span class="brand-text">CodeLearn</span>
</a>
</div>
<div class="nav-menu" id="navMenu">
<a href="index.html" class="nav-link">Home</a>
<a href="#" class="nav-link active">Course</a>
<a href="#" class="nav-link">Challenges</a>
<a href="#" class="nav-link">Projects</a>
<a href="#" class="nav-link">Community</a>
</div>
<div class="nav-actions">
<div class="search-container">
<input type="text" placeholder="Search in course..." class="search-input" id="searchInput">
<i class="fas fa-search search-icon"></i>
<div class="search-results" id="searchResults"></div>
</div>
<div class="user-info" id="userInfo" style="display: none;">
<span id="userName"></span>
<button class="logout-btn" onclick="logout()">
<i class="fas fa-sign-out-alt"></i>
Logout
</button>
</div>
<button class="login-btn" id="loginBtn" onclick="showLoginModal()">
<i class="fas fa-user"></i>
Login
</button>
</div>
<div class="mobile-toggle" id="mobileToggle">
<span></span>
<span></span>
<span></span>
</div>
</div>
</nav>
<!-- Login Modal -->
<div id="loginModal" class="modal">
<div class="modal-content">
<span class="close" onclick="hideLoginModal()">×</span>
<h2>Login to CodeLearn</h2>
<form id="loginForm" onsubmit="handleLogin(event)">
<div class="form-group">
<input type="text" id="username" placeholder="Username" required>
</div>
<div class="form-group">
<input type="password" id="password" placeholder="Password" required>
</div>
<button type="submit" class="submit-btn">Login</button>
<p class="demo-text">Demo credentials: <strong>admin</strong> / <strong>password</strong></p>
</form>
</div>
</div>
<!-- Course Layout -->
<div class="course-layout">
<!-- Sidebar -->
<div class="sidebar" id="sidebar">
<div class="sidebar-header">
<h2 id="courseTitle">HTML5 Tutorial</h2>
<div class="progress-info">
<div class="progress-circle">
<svg class="progress-ring" width="60" height="60">
<circle class="progress-ring-bg" cx="30" cy="30" r="25"></circle>
<circle class="progress-ring-fill" cx="30" cy="30" r="25" id="progressCircle"></circle>
<defs>
<linearGradient id="progressGradient" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" stop-color="#667eea" />
<stop offset="100%" stop-color="#764ba2" />
</linearGradient>
</defs>
</svg>
<span class="progress-text" id="progressText">0%</span>
</div>
</div>
</div>
<nav class="sidebar-content" id="sidebarContent">
<!-- Course sections will be dynamically loaded here -->
</nav>
</div>
<!-- Main Content -->
<div class="main-content">
<div class="content-header">
<button class="sidebar-toggle" id="sidebarToggle">
<i class="fas fa-bars"></i>
</button>
<div class="breadcrumb" id="breadcrumb">
<a href="index.html">Home</a>
<span>/</span>
<span id="courseBreadcrumb">Course</span>
<span>/</span>
<span id="lessonBreadcrumb">Lesson</span>
</div>
</div>
<div class="lesson-content" id="lessonContent">
<h1>Welcome to the Course</h1>
<p>Select a lesson from the sidebar to begin learning.</p>
</div>
<div class="lesson-navigation">
<button class="nav-btn prev-btn" id="prevBtn" onclick="navigateLesson('prev')">
<i class="fas fa-chevron-left"></i>
Previous
</button>
<button class="nav-btn next-btn" id="nextBtn" onclick="navigateLesson('next')">
Next
<i class="fas fa-chevron-right"></i>
</button>
</div>
</div>
</div>
<!-- Notification Container -->
<div id="notificationContainer" class="notification-container"></div>
<script src="JS/courseData.js"></script>
<script src="JS/lessonContent.js"></script>
<script src="JS/script.js"></script>
<script src="JS/course.js"></script>
</body>
</html>