-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmypgrogress.html
193 lines (179 loc) · 8.15 KB
/
mypgrogress.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Your LMS - My Progress</title>
<!-- Include Tailwind CSS -->
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
<style>
/* Override default background color */
body {
background-color: #f7f7f7; /* Light gray background */
font-family: 'sans-serif';
}
/* Update text color for better readability */
.text-dark {
color: #333; /* Dark gray text color */
}
/* Update the color of the header text */
.header-text {
color: #1a202c; /* Darker text color for the header */
}
/* Update the color of the navigation links */
.nav-link {
color: #1a202c; /* Darker text color for navigation links */
}
/* Update the color of the search bar text */
.search-bar::placeholder,
.search-bar {
color: #4a5568; /* Dark gray text color for search bar */
}
/* Update the color of the search button */
.search-button {
background-color: #f7a41d; /* Zig logo color for search button */
color: #fff; /* White text color for search button */
}
/* Update the color of the read more button */
.read-more-button {
background-color: #f7a41d; /* Zig logo color for read more button */
color: #fff; /* White text color for read more button */
}
/* Style the sidebar */
.sidebar {
background-color: transparent; /* Light gray sidebar background */
}
.sidebar-heading {
color: #4a5568; /* Dark gray heading text color */
}
.sidebar-category {
color: #1e40af; /* Blue category text color */
}
.sidebar-category:hover {
color: #1a202c; /* Darker category text color on hover */
}
/* Custom Styles for Responsive Design */
@media (max-width: 767px) {
.lg\:hidden {
display: none !important;
}
}
@media (min-width: 768px) {
.hidden\:lg {
display: none !important;
}
}
</style>
</head>
<body class="font-sans antialiased flex flex-col min-h-screen">
<!-- Header Navigation -->
<nav class="bg-f7a41d text-white p-4">
<div class="container mx-auto flex justify-between items-center">
<div class="text-2xl font-bold header-text">Your LMS</div>
<!-- User Navigation Links -->
<ul class="hidden lg:flex space-x-4">
<li><a href="#" class="nav-link hover:text-gray-300">Dashboard</a></li>
<li><a href="#" class="nav-link hover:text-gray-300">Courses</a></li>
<li><a href="#" class="nav-link hover:text-gray-300">My Progress</a></li>
<li><a href="#" class="nav-link hover:text-gray-300">Profile</a></li>
<li><a href="#" class="nav-link hover:text-gray-300">Logout</a></li>
<!-- Additional navigation links can be added here -->
</ul>
<!-- Hamburger Menu for Mobile -->
<div class="block lg:hidden">
<button id="mobile-menu-button" class="flex items-center px-3 py-2 border rounded text-f7a41d border-white hover:text-white hover:border-white">
<svg class="h-4 w-4 fill-current" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<title>Menu</title>
<path fill-rule="evenodd" d="M20 3H0V1h20v2zm0 6H0V7h20v2zm0 6H0v-2h20v2z" clip-rule="evenodd"></path>
</svg>
</button>
</div>
</div>
</nav>
<!-- Mobile Menu -->
<div class="hidden lg:hidden" id="mobile-menu">
<ul class="flex flex-col items-center mt-4">
<li><a href="#" class="nav-link hover:text-gray-300">Dashboard</a></li>
<li><a href="#" class="nav-link hover:text-gray-300">Courses</a></li>
<li><a href="#" class="nav-link hover:text-gray-300">My Progress</a></li>
<li><a href="#" class="nav-link hover:text-gray-300">Profile</a></li>
<li><a href="#" class="nav-link hover:text-gray-300">Logout</a></li>
<!-- Additional navigation links can be added here -->
</ul>
</div>
<!-- Main Content with Sidebar -->
<div class="flex-grow container mx-auto py-8 flex justify-center">
<!-- Main Content -->
<div class="w-full p-4">
<!-- Updated header text color -->
<h1 class="text-3xl font-bold mb-4 header-text text-center">My Progress - Zig Programming</h1>
<!-- Progress Overview -->
<div class="max-w-3xl mx-auto mb-8">
<h2 class="text-xl font-bold mb-2">Progress Overview</h2>
<p class="text-gray-600">You have completed 2 out of 4 courses.</p>
</div>
<!-- Course Progress -->
<div class="max-w-3xl mx-auto">
<ul class="list-disc space-y-4">
<!-- Course 1: Variables in Zig -->
<li>
<div class="flex items-center justify-between">
<div>
<h2 class="text-xl font-bold">Variables in Zig</h2>
<p class="text-gray-600">Learn how to declare and use variables in Zig programming language.</p>
</div>
<span class="text-f7a41d font-bold">Completed</span>
</div>
</li>
<!-- Course 2: If Statements in Zig -->
<li>
<div class="flex items-center justify-between">
<div>
<h2 class="text-xl font-bold">If Statements in Zig</h2>
<p class="text-gray-600">Understand the usage of if statements for conditional execution in Zig.</p>
</div>
<span class="text-gray-600">Not Completed</span>
</div>
</li>
<!-- Course 3: For Loops in Zig -->
<li>
<div class="flex items-center justify-between">
<div>
<h2 class="text-xl font-bold">For Loops in Zig</h2>
<p class="text-gray-600">Explore the implementation of for loops to iterate over sequences in Zig.</p>
</div>
<span class="text-f7a41d font-bold">Completed</span>
</div>
</li>
<!-- Course 4: Switch Statements in Zig -->
<li>
<div class="flex items-center justify-between">
<div>
<h2 class="text-xl font-bold">Switch Statements in Zig</h2>
<p class="text-gray-600">Learn how to use switch statements for multi-way branching in Zig.</p>
</div>
<span class="text-gray-600">Not Completed</span>
</div>
</li>
<!-- Add more courses as needed -->
</ul>
</div>
</div>
</div>
<!-- Footer -->
<footer class="bg-gray-900 text-white text-center py-4 mt-auto">
<p>© 2024 Your LMS. All rights reserved.</p>
</footer>
<!-- Script to Toggle Mobile Menu -->
<script>
document.getElementById('mobile-menu-button').onclick = function () {
var mobileMenu = document.getElementById('mobile-menu');
if (mobileMenu.style.display === 'block') {
mobileMenu.style.display = 'none';
} else {
mobileMenu.style.display = 'block';
}
};
</script>
</body>
</html>