Spaces:
Running
Running
add a drop-down per course section
Browse files- index.html +95 -30
- style.css +13 -0
index.html
CHANGED
|
@@ -47,13 +47,18 @@
|
|
| 47 |
<h2 class="text-3xl font-bold text-gray-800 mb-8 text-center">Choose Your Learning Path</h2>
|
| 48 |
|
| 49 |
<div class="mb-12">
|
| 50 |
-
<
|
| 51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
<div class="bg-white p-4 rounded-lg shadow hover:shadow-md transition-shadow">
|
| 53 |
<h4 class="font-medium text-green-600">MDB100</h4>
|
| 54 |
<p class="text-gray-600">MongoDB Database and Security</p>
|
| 55 |
</div>
|
| 56 |
-
|
| 57 |
<h4 class="font-medium text-green-600">MDB200</h4>
|
| 58 |
<p class="text-gray-600">MongoDB Optimization and Performance</p>
|
| 59 |
</div>
|
|
@@ -63,13 +68,22 @@
|
|
| 63 |
</div>
|
| 64 |
</div>
|
| 65 |
</div>
|
| 66 |
-
|
| 67 |
<div class="mb-12">
|
| 68 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
|
| 70 |
-
<div
|
| 71 |
-
<
|
| 72 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
<div class="bg-white p-4 rounded-lg shadow hover:shadow-md transition-shadow">
|
| 74 |
<h4 class="font-medium text-blue-600">DEV400</h4>
|
| 75 |
<p class="text-gray-600">MongoDB Developer Extension</p>
|
|
@@ -84,10 +98,13 @@
|
|
| 84 |
</div>
|
| 85 |
</div>
|
| 86 |
</div>
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
|
|
|
|
|
|
|
|
|
| 91 |
<div class="bg-white p-4 rounded-lg shadow hover:shadow-md transition-shadow">
|
| 92 |
<h4 class="font-medium text-purple-600">DA610</h4>
|
| 93 |
<p class="text-gray-600">MongoDB Adv. Queries</p>
|
|
@@ -110,10 +127,13 @@
|
|
| 110 |
</div>
|
| 111 |
</div>
|
| 112 |
</div>
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
|
|
|
|
|
|
|
|
|
| 117 |
<div class="bg-white p-4 rounded-lg shadow hover:shadow-md transition-shadow">
|
| 118 |
<h4 class="font-medium text-indigo-600">DS110</h4>
|
| 119 |
<p class="text-gray-600">MongoDB Atlas Search & Vector Search</p>
|
|
@@ -128,10 +148,13 @@
|
|
| 128 |
</div>
|
| 129 |
</div>
|
| 130 |
</div>
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
|
|
|
|
|
|
|
|
|
| 135 |
<div class="bg-white p-4 rounded-lg shadow hover:shadow-md transition-shadow">
|
| 136 |
<h4 class="font-medium text-red-600">OFA400</h4>
|
| 137 |
<p class="text-gray-600">Atlas Admin</p>
|
|
@@ -154,10 +177,13 @@
|
|
| 154 |
</div>
|
| 155 |
</div>
|
| 156 |
</div>
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
|
|
|
|
|
|
|
|
|
| 161 |
<div class="bg-white p-4 rounded-lg shadow hover:shadow-md transition-shadow">
|
| 162 |
<h4 class="font-medium text-orange-600">OFS400</h4>
|
| 163 |
<p class="text-gray-600">Ops Manager Admin</p>
|
|
@@ -180,10 +206,13 @@
|
|
| 180 |
</div>
|
| 181 |
</div>
|
| 182 |
</div>
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
|
|
|
|
|
|
|
|
|
| 187 |
<div class="bg-white p-4 rounded-lg shadow hover:shadow-md transition-shadow">
|
| 188 |
<h4 class="font-medium text-teal-600">DS130</h4>
|
| 189 |
<p class="text-gray-600">Client-Side Field Level Encryption</p>
|
|
@@ -277,12 +306,48 @@
|
|
| 277 |
</main>
|
| 278 |
|
| 279 |
<custom-footer></custom-footer>
|
| 280 |
-
|
| 281 |
<script>
|
| 282 |
feather.replace();
|
| 283 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 284 |
// Month selector functionality
|
| 285 |
-
|
| 286 |
btn.addEventListener('click', () => {
|
| 287 |
document.querySelectorAll('.month-btn').forEach(b => b.classList.remove('active', 'bg-gray-100'));
|
| 288 |
btn.classList.add('active', 'bg-gray-100');
|
|
|
|
| 47 |
<h2 class="text-3xl font-bold text-gray-800 mb-8 text-center">Choose Your Learning Path</h2>
|
| 48 |
|
| 49 |
<div class="mb-12">
|
| 50 |
+
<div class="flex items-center justify-between mb-4">
|
| 51 |
+
<h3 class="text-xl font-semibold text-gray-800">Foundational Courses</h3>
|
| 52 |
+
<button class="toggle-section-btn" data-section="foundational">
|
| 53 |
+
<i data-feather="chevron-down" class="text-gray-600"></i>
|
| 54 |
+
</button>
|
| 55 |
+
</div>
|
| 56 |
+
<div id="foundational-section" class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-8">
|
| 57 |
<div class="bg-white p-4 rounded-lg shadow hover:shadow-md transition-shadow">
|
| 58 |
<h4 class="font-medium text-green-600">MDB100</h4>
|
| 59 |
<p class="text-gray-600">MongoDB Database and Security</p>
|
| 60 |
</div>
|
| 61 |
+
<div class="bg-white p-4 rounded-lg shadow hover:shadow-md transition-shadow">
|
| 62 |
<h4 class="font-medium text-green-600">MDB200</h4>
|
| 63 |
<p class="text-gray-600">MongoDB Optimization and Performance</p>
|
| 64 |
</div>
|
|
|
|
| 68 |
</div>
|
| 69 |
</div>
|
| 70 |
</div>
|
|
|
|
| 71 |
<div class="mb-12">
|
| 72 |
+
<div class="flex items-center justify-between mb-4">
|
| 73 |
+
<h3 class="text-xl font-semibold text-gray-800">Role-Focused Courses</h3>
|
| 74 |
+
<button class="toggle-section-btn" data-section="role-focused">
|
| 75 |
+
<i data-feather="chevron-down" class="text-gray-600"></i>
|
| 76 |
+
</button>
|
| 77 |
+
</div>
|
| 78 |
|
| 79 |
+
<div id="role-focused-section">
|
| 80 |
+
<div class="flex items-center justify-between mb-2">
|
| 81 |
+
<h4 class="font-medium text-gray-700">Developer and Data Architect</h4>
|
| 82 |
+
<button class="toggle-subsection-btn" data-subsection="developer-data-architect">
|
| 83 |
+
<i data-feather="chevron-down" class="text-gray-600"></i>
|
| 84 |
+
</button>
|
| 85 |
+
</div>
|
| 86 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
| 87 |
<div class="bg-white p-4 rounded-lg shadow hover:shadow-md transition-shadow">
|
| 88 |
<h4 class="font-medium text-blue-600">DEV400</h4>
|
| 89 |
<p class="text-gray-600">MongoDB Developer Extension</p>
|
|
|
|
| 98 |
</div>
|
| 99 |
</div>
|
| 100 |
</div>
|
| 101 |
+
<div class="flex items-center justify-between mb-2">
|
| 102 |
+
<h4 class="font-medium text-gray-700">Developer Advanced</h4>
|
| 103 |
+
<button class="toggle-subsection-btn" data-subsection="developer-advanced">
|
| 104 |
+
<i data-feather="chevron-down" class="text-gray-600"></i>
|
| 105 |
+
</button>
|
| 106 |
+
</div>
|
| 107 |
+
<div class="grid grid-cols-1 md:grid-cols-3 lg:grid-cols-5 gap-4">
|
| 108 |
<div class="bg-white p-4 rounded-lg shadow hover:shadow-md transition-shadow">
|
| 109 |
<h4 class="font-medium text-purple-600">DA610</h4>
|
| 110 |
<p class="text-gray-600">MongoDB Adv. Queries</p>
|
|
|
|
| 127 |
</div>
|
| 128 |
</div>
|
| 129 |
</div>
|
| 130 |
+
<div class="flex items-center justify-between mb-2">
|
| 131 |
+
<h4 class="font-medium text-gray-700">AI Developer</h4>
|
| 132 |
+
<button class="toggle-subsection-btn" data-subsection="ai-developer">
|
| 133 |
+
<i data-feather="chevron-down" class="text-gray-600"></i>
|
| 134 |
+
</button>
|
| 135 |
+
</div>
|
| 136 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
| 137 |
<div class="bg-white p-4 rounded-lg shadow hover:shadow-md transition-shadow">
|
| 138 |
<h4 class="font-medium text-indigo-600">DS110</h4>
|
| 139 |
<p class="text-gray-600">MongoDB Atlas Search & Vector Search</p>
|
|
|
|
| 148 |
</div>
|
| 149 |
</div>
|
| 150 |
</div>
|
| 151 |
+
<div class="flex items-center justify-between mb-2">
|
| 152 |
+
<h4 class="font-medium text-gray-700">Atlas Admin / DevOps</h4>
|
| 153 |
+
<button class="toggle-subsection-btn" data-subsection="atlas-admin">
|
| 154 |
+
<i data-feather="chevron-down" class="text-gray-600"></i>
|
| 155 |
+
</button>
|
| 156 |
+
</div>
|
| 157 |
+
<div class="grid grid-cols-1 md:grid-cols-3 lg:grid-cols-5 gap-4">
|
| 158 |
<div class="bg-white p-4 rounded-lg shadow hover:shadow-md transition-shadow">
|
| 159 |
<h4 class="font-medium text-red-600">OFA400</h4>
|
| 160 |
<p class="text-gray-600">Atlas Admin</p>
|
|
|
|
| 177 |
</div>
|
| 178 |
</div>
|
| 179 |
</div>
|
| 180 |
+
<div class="flex items-center justify-between mb-2">
|
| 181 |
+
<h4 class="font-medium text-gray-700">Database Admin / DevOps</h4>
|
| 182 |
+
<button class="toggle-subsection-btn" data-subsection="db-admin">
|
| 183 |
+
<i data-feather="chevron-down" class="text-gray-600"></i>
|
| 184 |
+
</button>
|
| 185 |
+
</div>
|
| 186 |
+
<div class="grid grid-cols-1 md:grid-cols-3 lg:grid-cols-5 gap-4">
|
| 187 |
<div class="bg-white p-4 rounded-lg shadow hover:shadow-md transition-shadow">
|
| 188 |
<h4 class="font-medium text-orange-600">OFS400</h4>
|
| 189 |
<p class="text-gray-600">Ops Manager Admin</p>
|
|
|
|
| 206 |
</div>
|
| 207 |
</div>
|
| 208 |
</div>
|
| 209 |
+
<div class="flex items-center justify-between mb-2">
|
| 210 |
+
<h4 class="font-medium text-gray-700">Security - CSFLE</h4>
|
| 211 |
+
<button class="toggle-subsection-btn" data-subsection="security">
|
| 212 |
+
<i data-feather="chevron-down" class="text-gray-600"></i>
|
| 213 |
+
</button>
|
| 214 |
+
</div>
|
| 215 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
| 216 |
<div class="bg-white p-4 rounded-lg shadow hover:shadow-md transition-shadow">
|
| 217 |
<h4 class="font-medium text-teal-600">DS130</h4>
|
| 218 |
<p class="text-gray-600">Client-Side Field Level Encryption</p>
|
|
|
|
| 306 |
</main>
|
| 307 |
|
| 308 |
<custom-footer></custom-footer>
|
|
|
|
| 309 |
<script>
|
| 310 |
feather.replace();
|
| 311 |
|
| 312 |
+
// Toggle section functionality
|
| 313 |
+
document.querySelectorAll('.toggle-section-btn').forEach(btn => {
|
| 314 |
+
btn.addEventListener('click', () => {
|
| 315 |
+
const sectionId = btn.getAttribute('data-section');
|
| 316 |
+
const section = document.getElementById(`${sectionId}-section`);
|
| 317 |
+
const icon = btn.querySelector('i');
|
| 318 |
+
|
| 319 |
+
if (section.classList.contains('hidden')) {
|
| 320 |
+
section.classList.remove('hidden');
|
| 321 |
+
icon.setAttribute('data-feather', 'chevron-up');
|
| 322 |
+
} else {
|
| 323 |
+
section.classList.add('hidden');
|
| 324 |
+
icon.setAttribute('data-feather', 'chevron-down');
|
| 325 |
+
}
|
| 326 |
+
feather.replace();
|
| 327 |
+
});
|
| 328 |
+
});
|
| 329 |
+
|
| 330 |
+
// Toggle subsection functionality
|
| 331 |
+
document.querySelectorAll('.toggle-subsection-btn').forEach(btn => {
|
| 332 |
+
btn.addEventListener('click', (e) => {
|
| 333 |
+
e.stopPropagation();
|
| 334 |
+
const subsection = btn.getAttribute('data-subsection');
|
| 335 |
+
const content = btn.closest('div').nextElementSibling;
|
| 336 |
+
const icon = btn.querySelector('i');
|
| 337 |
+
|
| 338 |
+
if (content.classList.contains('hidden')) {
|
| 339 |
+
content.classList.remove('hidden');
|
| 340 |
+
icon.setAttribute('data-feather', 'chevron-up');
|
| 341 |
+
} else {
|
| 342 |
+
content.classList.add('hidden');
|
| 343 |
+
icon.setAttribute('data-feather', 'chevron-down');
|
| 344 |
+
}
|
| 345 |
+
feather.replace();
|
| 346 |
+
});
|
| 347 |
+
});
|
| 348 |
+
|
| 349 |
// Month selector functionality
|
| 350 |
+
document.querySelectorAll('.month-btn').forEach(btn => {
|
| 351 |
btn.addEventListener('click', () => {
|
| 352 |
document.querySelectorAll('.month-btn').forEach(b => b.classList.remove('active', 'bg-gray-100'));
|
| 353 |
btn.classList.add('active', 'bg-gray-100');
|
style.css
CHANGED
|
@@ -32,6 +32,19 @@ body {
|
|
| 32 |
#upcoming-dates-list::-webkit-scrollbar-thumb:hover {
|
| 33 |
background: #a0aec0;
|
| 34 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
/* Animation for course cards */
|
| 36 |
@keyframes fadeIn {
|
| 37 |
from { opacity: 0; transform: translateY(20px); }
|
|
|
|
| 32 |
#upcoming-dates-list::-webkit-scrollbar-thumb:hover {
|
| 33 |
background: #a0aec0;
|
| 34 |
}
|
| 35 |
+
/* Dropdown section styles */
|
| 36 |
+
.toggle-section-btn, .toggle-subsection-btn {
|
| 37 |
+
background: none;
|
| 38 |
+
border: none;
|
| 39 |
+
cursor: pointer;
|
| 40 |
+
padding: 0.25rem;
|
| 41 |
+
transition: transform 0.2s;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
.toggle-section-btn:hover, .toggle-subsection-btn:hover {
|
| 45 |
+
transform: scale(1.1);
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
/* Animation for course cards */
|
| 49 |
@keyframes fadeIn {
|
| 50 |
from { opacity: 0; transform: translateY(20px); }
|