File size: 19,453 Bytes
b279ee6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Web Development Fundamentals - LearnHub LMS</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
    <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/animejs/lib/anime.min.js"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
        
        body {
            font-family: 'Inter', sans-serif;
        }
        
        .lesson-item:hover {
            background-color: #f9fafb;
        }
        
        .lesson-item.active {
            background-color: #eff6ff;
            border-left: 4px solid #3b82f6;
        }
        
        .progress-ring {
            transform: rotate(-90deg);
        }
        
        .video-container {
            position: relative;
            padding-bottom: 56.25%;
            height: 0;
            overflow: hidden;
        }
        
        .video-container iframe,
        .video-container video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Navigation -->
    <nav class="bg-white shadow-sm border-b border-gray-200 fixed top-0 left-0 right-0 z-30">
        <div class="px-4 sm:px-6 lg:px-8">
            <div class="flex justify-between h-16">
                <div class="flex items-center">
                    <div class="flex-shrink-0 flex items-center">
                        <span class="text-indigo-600 font-bold text-xl">LearnHub</span>
                    </div>
                </div>
                <div class="flex items-center">
                    <div class="flex-shrink-0">
                        <div class="relative inline-block text-left mr-4">
                            <button type="button" class="bg-white p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 relative">
                                <i data-feather="bell" class="h-6 w-6"></i>
                            </button>
                        </div>
                    </div>
                    <div class="hidden md:ml-4 md:flex-shrink-0 md:flex md:items-center">
                        <div class="ml-3 relative">
                            <div>
                                <button type="button" class="bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500" id="user-menu-button" aria-expanded="false" aria-haspopup="true">
                                    <span class="sr-only">Open user menu</span>
                                    <img class="h-8 w-8 rounded-full" src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="">
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </nav>

    <!-- Main Content -->
    <div class="pt-16 flex">
        <!-- Sidebar -->
        <div class="w-80 bg-white shadow-sm border-r border-gray-200 fixed h-full overflow-y-auto">
            <div class="p-4">
                <div class="flex items-center justify-between mb-4">
                    <h2 class="text-lg font-semibold text-gray-800">Course Content</h2>
                    <div class="flex-shrink-0">
                        <div class="relative" data-tooltip="Course progress: 75%">
                            <svg class="w-12 h-12 progress-ring" viewBox="0 0 36 36">
                                <circle cx="18" cy="18" r="16" fill="none" stroke="#e6e6e6" stroke-width="2"></circle>
                                <circle cx="18" cy="18" r="16" fill="none" stroke="#3b82f6" stroke-width="2" stroke-dasharray="100" stroke-dashoffset="25"></circle>
                            </svg>
                            <span class="absolute inset-0 flex items-center justify-center text-xs font-medium text-gray-700">75%</span>
                        </div>
                    </div>
                </div>
                
                <div class="mb-6">
                    <h3 class="text-xs font-semibold text-gray-500 uppercase tracking-wider mb-2">Introduction</h3>
                    <div class="space-y-1">
                        <a href="#" class="lesson-item active flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-900">
                            <i data-feather="play-circle" class="text-gray-500 mr-3 h-5 w-5"></i>
                            Course Overview
                        </a>
                        <a href="#" class="lesson-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700">
                            <i data-feather="file-text" class="text-gray-500 mr-3 h-5 w-5"></i>
                            Syllabus & Resources
                        </a>
                    </div>
                </div>
                
                <div class="mb-6">
                    <h3 class="text-xs font-semibold text-gray-500 uppercase tracking-wider mb-2">HTML Fundamentals</h3>
                    <div class="space-y-1">
                        <a href="#" class="lesson-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700">
                            <i data-feather="check-circle" class="text-green-500 mr-3 h-5 w-5"></i>
                            Introduction to HTML
                        </a>
                        <a href="#" class="lesson-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700">
                            <i data-feather="check-circle" class="text-green-500 mr-3 h-5 w-5"></i>
                            HTML Document Structure
                        </a>
                        <a href="#" class="lesson-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700">
                            <i data-feather="check-circle" class="text-green-500 mr-3 h-5 w-5"></i>
                            Text Formatting & Links
                        </a>
                        <a href="#" class="lesson-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700">
                            <i data-feather="check-circle" class="text-green-500 mr-3 h-5 w-5"></i>
                            Images & Multimedia
                        </a>
                        <a href="#" class="lesson-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700">
                            <i data-feather="check-circle" class="text-green-500 mr-3 h-5 w-5"></i>
                            HTML Forms
                        </a>
                    </div>
                </div>
                
                <div class="mb-6">
                    <h3 class="text-xs font-semibold text-gray-500 uppercase tracking-wider mb-2">CSS Styling</h3>
                    <div class="space-y-1">
                        <a href="#" class="lesson-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700">
                            <i data-feather="check-circle" class="text-green-500 mr-3 h-5 w-5"></i>
                            Introduction to CSS
                        </a>
                        <a href="#" class="lesson-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700">
                            <i data-feather="check-circle" class="text-green-500 mr-3 h-5 w-5"></i>
                            CSS Selectors & Properties
                        </a>
                        <a href="#" class="lesson-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700">
                            <i data-feather="play-circle" class="text-gray-500 mr-3 h-5 w-5"></i>
                            Box Model & Layout
                        </a>
                        <a href="#" class="lesson-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700">
                            <i data-feather="lock" class="text-gray-400 mr-3 h-5 w-5"></i>
                            Responsive Design
                        </a>
                        <a href="#" class="lesson-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700">
                            <i data-feather="lock" class="text-gray-400 mr-3 h-5 w-5"></i>
                            CSS Flexbox & Grid
                        </a>
                    </div>
                </div>
                
                <div class="mb-6">
                    <h3 class="text-xs font-semibold text-gray-500 uppercase tracking-wider mb-2">JavaScript Basics</h3>
                    <div class="space-y-1">
                        <a href="#" class="lesson-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700">
                            <i data-feather="lock" class="text-gray-400 mr-3 h-5 w-5"></i>
                            Introduction to JavaScript
                        </a>
                        <a href="#" class="lesson-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700">
                            <i data-feather="lock" class="text-gray-400 mr-3 h-5 w-5"></i>
                            DOM Manipulation
                        </a>
                        <a href="#" class="lesson-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700">
                            <i data-feather="lock" class="text-gray-400 mr-3 h-5 w-5"></i>
                            Event Handling
                        </a>
                    </div>
                </div>
                
                <div class="mb-6">
                    <h3 class="text-xs font-semibold text-gray-500 uppercase tracking-wider mb-2">Assessments</h3>
                    <div class="space-y-1">
                        <a href="#" class="lesson-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700">
                            <i data-feather="check-circle" class="text-green-500 mr-3 h-5 w-5"></i>
                            HTML Quiz
                        </a>
                        <a href="#" class="lesson-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700">
                            <i data-feather="lock" class="text-gray-400 mr-3 h-5 w-5"></i>
                            CSS Quiz
                        </a>
                        <a href="#" class="lesson-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700">
                            <i data-feather="lock" class="text-gray-400 mr-3 h-5 w-5"></i>
                            Final Project
                        </a>
                    </div>
                </div>
            </div>
        </div>

        <!-- Main content area -->
        <div class="ml-80 flex-1 pb-16">
            <div class="max-w-4xl mx-auto px-4 sm:px-6 md:px-8 py-6">
                <!-- Lesson header -->
                <div class="mb-6">
                    <nav class="flex mb-4" aria-label="Breadcrumb">
                        <ol class="flex items-center space-x-4">
                            <li>
                                <div>
                                    <a href="#" class="text-gray-400 hover:text-gray-500">
                                        <i data-feather="home" class="flex-shrink-0 h-5 w-5"></i>
                                        <span class="sr-only">Home</span>
                                    </a>
                                </div>
                            </li>
                            <li>
                                <div class="flex items-center">
                                    <i data-feather="chevron-right" class="flex-shrink-0 h-4 w-4 text-gray-400"></i>
                                    <a href="#" class="ml-4 text-sm font-medium text-gray-500 hover:text-gray-700">My Courses</a>
                                </div>
                            </li>
                            <li>
                                <div class="flex items-center">
                                    <i data-feather="chevron-right" class="flex-shrink-0 h-4 w-4 text-gray-400"></i>
                                    <a href="#" class="ml-4 text-sm font-medium text-gray-500 hover:text-gray-700">Web Development Fundamentals</a>
                                </div>
                            </li>
                            <li>
                                <div class="flex items-center">
                                    <i data-feather="chevron-right" class="flex-shrink-0 h-4 w-4 text-gray-400"></i>
                                    <span class="ml-4 text-sm font-medium text-gray-500">Course Overview</span>
                                </div>
                            </li>
                        </ol>
                    </nav>
                    
                    <div class="md:flex md:items-center md:justify-between">
                        <div class="flex-1 min-w-0">
                            <h1 class="text-2xl font-bold leading-7 text-gray-900 sm:text-3xl sm:truncate">Course Overview</h1>
                            <p class="mt-1 text-sm text-gray-500">Introduction to Web Development Fundamentals</p>
                        </div>
                        <div class="mt-4 flex md:mt-0 md:ml-4 space-x-3">
                            <button type="button" class="inline-flex items-center px-4 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
                                <i data-feather="download" class="-ml-1 mr-2 h-5 w-5 text-gray-500"></i>
                                Download Materials
                            </button>
                            <button type="button" class="inline-flex items-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
                                <i data-feather="check-circle" class="-ml-1 mr-2 h-5 w-5"></i>
                                Mark as Complete
                            </button>
                        </div>
                    </div>
                </div>

                <!-- Lesson content -->
                <div class="bg-white shadow overflow-hidden sm:rounded-lg mb-6">
                    <div class="video-container">
                        <iframe src="https://www.youtube.com/embed/UB1O30fR-EE" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
                    </div>
                </div>

                <div class="bg-white shadow overflow-hidden sm:rounded-lg mb-6">
                    <div class="px-4 py-5 sm:px-6">
                        <h3 class="text-lg leading-6 font-medium text-gray-900">About This Course</h3>
                    </div>
                    <div class="border-t border-gray-200 px-4 py-5 sm:p-6">
                        <p class="text-gray-700 mb-4">Welcome to Web Development Fundamentals! This course is designed to take you from zero to capable in building modern websites using HTML, CSS, and JavaScript.</p>
                        
                        <h4 class="font-medium text-gray-900 mt-6 mb-2">What You'll Learn</h4>
                        <ul class="list-disc pl-5 text-gray-700 space-y-2">
                            <li>Structure web content with semantic HTML</li>
                            <li>Style websites with modern CSS techniques</li>
                            <li>Make websites interactive with JavaScript</li>
                            <li>Build responsive layouts that work on all devices</li>
                            <li>Best practices for web accessibility and performance</li>
                        </ul>
                        
                        <h4 class="font-medium text-gray-900 mt-6 mb-2">Prerequisites</h4>
                        <p class="text-gray-700">No prior programming experience is required. Basic computer skills and familiarity with using a web browser are all you need to get started.</p>
                        
                        <h4 class="font-medium text-gray-900 mt-6 mb-2">Course Structure</h4>
                        <p class="text-gray-700">This course contains 16 lessons organized into 5 modules, with quizzes to test your knowledge and a final project to apply what you've learned.</p>
                    </div>
                </div>

                <!-- Navigation -->
                <div class="bg-white shadow overflow-hidden sm:rounded-lg">
                    <div class="px-4 py-5 sm:p-6 flex justify-between">
                        <button type="button" class="inline-flex items-center px-4 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500" disabled>
                            <i data-feather="arrow-left" class="mr-2 h-5 w-5"></i>
                            Previous Lesson
                        </button>
                        <button type="button" class="inline-flex items-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
                            Next Lesson
                            <i data-feather="arrow-right" class="ml-2 h-5 w-5"></i>
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        // Initialize AOS
        AOS.init({
            duration: 800,
            easing: 'ease-in-out',
            once: true
        });

        // Initialize Feather Icons
        feather.replace();
    </script>
</body>
</html>


## Important Notes

This implementation provides the frontend UI for the LMS system. For a complete LAMP/cPanel deployable solution, you would need to:

1. Create the PHP backend with proper authentication and session management
2. Implement the MySQL database with all required tables
3. Add server-side validation and security measures
4. Implement file upload handling for lessons and certificates
5. Add PHPMailer integration for notifications
6. Implement the certificate generation and verification system

The frontend provided here follows best practices for responsive design and includes all the necessary UI components for the different user roles and features specified in the requirements.