Spaces:
Running
Running
File size: 20,291 Bytes
74a299f bd891ba | 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 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Logistics Learning Lab</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: '#0056b3',
secondary: '#4caf50',
}
}
}
}
</script>
<style>
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
.floating {
animation: float 3s ease-in-out infinite;
}
.progress-ring__circle {
transition: stroke-dashoffset 0.5s;
transform: rotate(-90deg);
transform-origin: 50% 50%;
}
.hotspot:hover .hotspot-tooltip {
opacity: 1;
transform: translateY(0);
}
.sidebar {
transition: all 0.3s ease;
}
</style>
</head>
<body class="bg-gray-50 font-sans">
<!-- Navigation -->
<nav class="bg-white shadow-sm fixed w-full z-10">
<div class="max-w-7xl mx-auto 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">
<div class="floating">
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M20 40C31.0457 40 40 31.0457 40 20C40 8.9543 31.0457 0 20 0C8.9543 0 0 8.9543 0 20C0 31.0457 8.9543 40 20 40Z" fill="#0056b3"/>
<path d="M26 16L20 10L14 16" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M20 30V10" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M10 20L20 30L30 20" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
<span class="ml-3 text-xl font-bold text-primary">Logistics Learning Lab</span>
</div>
</div>
<div class="hidden md:ml-6 md:flex md:items-center">
<button id="menu-btn" class="p-1 rounded-full text-primary hover:text-primary-dark focus:outline-none">
<i data-feather="menu"></i>
</button>
</div>
</div>
</div>
</nav>
<!-- Mobile Menu -->
<div id="mobile-menu" class="hidden md:hidden fixed inset-0 z-20 bg-white">
<div class="px-2 pt-2 pb-3 space-y-1 sm:px-3">
<a href="#" class="block px-3 py-2 rounded-md text-base font-medium text-primary bg-primary-light">Home</a>
<a href="#" class="block px-3 py-2 rounded-md text-base font-medium text-gray-600 hover:text-primary hover:bg-primary-light">Modules</a>
<a href="#" class="block px-3 py-2 rounded-md text-base font-medium text-gray-600 hover:text-primary hover:bg-primary-light">Progress</a>
<a href="#" class="block px-3 py-2 rounded-md text-base font-medium text-gray-600 hover:text-primary hover:bg-primary-light">Achievements</a>
</div>
</div>
<!-- Main Content -->
<div class="pt-16 flex">
<!-- Sidebar -->
<div id="sidebar" class="hidden md:block w-64 bg-white shadow-md fixed h-full overflow-auto sidebar">
<div class="p-4">
<h3 class="text-lg font-semibold text-gray-800">Course Modules</h3>
<div class="mt-4 space-y-2">
<div class="module-item p-2 rounded hover:bg-primary-light cursor-pointer">
<div class="flex items-center">
<div class="w-8 h-8 rounded-full bg-primary text-white flex items-center justify-center">1</div>
<span class="ml-3 text-gray-700">Introduction to Logistics</span>
</div>
</div>
<div class="module-item p-2 rounded hover:bg-primary-light cursor-pointer">
<div class="flex items-center">
<div class="w-8 h-8 rounded-full bg-gray-300 text-gray-600 flex items-center justify-center">2</div>
<span class="ml-3 text-gray-500">Supply Chain Basics</span>
</div>
</div>
<div class="module-item p-2 rounded hover:bg-primary-light cursor-pointer">
<div class="flex items-center">
<div class="w-8 h-8 rounded-full bg-gray-300 text-gray-600 flex items-center justify-center">3</div>
<span class="ml-3 text-gray-500">Transportation Modes</span>
</div>
</div>
<div class="module-item p-2 rounded hover:bg-primary-light cursor-pointer">
<div class="flex items-center">
<div class="w-8 h-8 rounded-full bg-gray-300 text-gray-600 flex items-center justify-center">4</div>
<span class="ml-3 text-gray-500">Warehouse Management</span>
</div>
</div>
<div class="module-item p-2 rounded hover:bg-primary-light cursor-pointer">
<div class="flex items-center">
<div class="w-8 h-8 rounded-full bg-gray-300 text-gray-600 flex items-center justify-center">5</div>
<span class="ml-3 text-gray-500">Inventory Control</span>
</div>
</div>
</div>
</div>
<div class="p-4 border-t">
<h3 class="text-lg font-semibold text-gray-800">Your Progress</h3>
<div class="mt-4 flex items-center">
<div class="relative w-16 h-16">
<svg class="w-16 h-16" viewBox="0 0 36 36">
<path class="text-gray-200" d="M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831" fill="none" stroke-width="2" stroke-dasharray="100, 100"/>
<path class="progress-ring__circle text-primary" stroke-dasharray="25, 100" d="M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831" fill="none" stroke-width="2" stroke-linecap="round"/>
<text x="18" y="20.5" text-anchor="middle" font-size="8" fill="#0056b3" font-weight="bold">25%</text>
</svg>
</div>
<div class="ml-4">
<p class="text-sm text-gray-600">Completed 1 of 5 modules</p>
<div class="w-full bg-gray-200 rounded-full h-2 mt-1">
<div class="bg-primary h-2 rounded-full" style="width: 25%"></div>
</div>
</div>
</div>
</div>
</div>
<!-- Content Area -->
<div class="flex-1 md:ml-64 p-5">
<!-- Hero Section -->
<div class="bg-gradient-to-r from-primary to-primary-dark rounded-xl p-8 text-white">
<h1 class="text-4xl font-bold mb-4">Master Logistics Like a Pro</h1>
<p class="text-xl mb-6">Interactive learning platform designed to take you from beginner to logistics expert</p>
<button class="bg-secondary hover:bg-secondary-dark text-white font-bold py-3 px-6 rounded-lg shadow-md transition duration-300">
Start Learning Now
</button>
</div>
<!-- Current Module -->
<div class="mt-8 bg-white rounded-xl shadow-md overflow-hidden">
<div class="p-6">
<div class="flex items-center">
<div class="w-10 h-10 rounded-full bg-primary text-white flex items-center justify-center">1</div>
<h2 class="ml-4 text-2xl font-bold text-gray-800">Introduction to Logistics</h2>
</div>
<div class="mt-6 grid md:grid-cols-3 gap-6">
<!-- Lesson Content -->
<div class="md:col-span-2">
<h3 class="text-xl font-semibold text-gray-800 mb-4">What is Logistics?</h3>
<p class="text-gray-600 mb-4">Logistics is the detailed coordination of complex operations involving people, facilities, or supplies. It's the management of the flow of things between the point of origin and the point of consumption to meet requirements of customers or corporations.</p>
<div class="bg-gray-50 p-4 rounded-lg my-4">
<div class="flex">
<div class="flex-shrink-0">
<i data-feather="info" class="text-primary"></i>
</div>
<div class="ml-3">
<p class="text-sm text-gray-600">Did you know? The term logistics comes from the Greek word "logistikos" meaning "skilled in calculating."</p>
</div>
</div>
</div>
<div class="relative mt-6 rounded-lg overflow-hidden">
<img src="http://static.photos/technology/1024x576/1" alt="Logistics Network" class="w-full h-auto">
<div class="absolute inset-0 flex items-center justify-center">
<button class="bg-white bg-opacity-90 rounded-full p-4 shadow-lg transform hover:scale-110 transition">
<i data-feather="play" class="text-primary"></i>
</button>
</div>
</div>
</div>
<!-- Interactive Elements -->
<div class="space-y-6">
<!-- Quiz Card -->
<div class="bg-white border border-gray-200 rounded-lg shadow-sm p-4">
<h4 class="font-medium text-gray-800 mb-3">Quick Check</h4>
<p class="text-sm text-gray-600 mb-3">Which of these is NOT part of logistics?</p>
<div class="space-y-3">
<div class="quiz-option p-3 border border-gray-200 rounded-lg cursor-pointer hover:bg-primary-light">
<span class="text-gray-700">Transportation</span>
</div>
<div class="quiz-option p-3 border border-gray-200 rounded-lg cursor-pointer hover:bg-primary-light">
<span class="text-gray-700">Warehousing</span>
</div>
<div class="quiz-option p-3 border border-gray-200 rounded-lg cursor-pointer hover:bg-primary-light correct-option">
<span class="text-gray-700">Product Design</span>
</div>
<div class="quiz-option p-3 border border-gray-200 rounded-lg cursor-pointer hover:bg-primary-light">
<span class="text-gray-700">Inventory Management</span>
</div>
</div>
<div id="quiz-feedback" class="hidden mt-3 p-2 rounded text-sm"></div>
</div>
<!-- Hotspot Image -->
<div class="bg-white border border-gray-200 rounded-lg shadow-sm p-4">
<h4 class="font-medium text-gray-800 mb-3">Click on the truck</h4>
<div class="relative">
<img src="http://static.photos/transportation/320x240/1" alt="Logistics Vehicle" class="w-full rounded">
<div class="hotspot absolute top-1/3 left-1/2 w-6 h-6 bg-white rounded-full border-2 border-primary flex items-center justify-center cursor-pointer">
<div class="w-2 h-2 bg-primary rounded-full"></div>
<div class="hotspot-tooltip absolute -top-8 left-1/2 transform -translate-x-1/2 -translate-y-full bg-white shadow-md p-2 rounded text-xs text-gray-700 opacity-0 transition-all duration-200">
Delivery Truck
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Navigation -->
<div class="mt-8 flex justify-between">
<button class="flex items-center text-primary hover:text-primary-dark font-medium">
<i data-feather="chevron-left" class="mr-1"></i>
Previous
</button>
<button class="flex items-center bg-primary hover:bg-primary-dark text-white font-medium py-2 px-4 rounded-lg">
Next Lesson
<i data-feather="chevron-right" class="ml-1"></i>
</button>
</div>
</div>
</div>
<!-- Achievements -->
<div class="mt-8">
<h2 class="text-2xl font-bold text-gray-800 mb-4">Your Achievements</h2>
<div class="grid grid-cols-2 md:grid-cols-4 gap-4">
<div class="bg-white p-4 rounded-lg shadow-sm text-center">
<div class="w-16 h-16 mx-auto bg-primary-light rounded-full flex items-center justify-center">
<i data-feather="award" class="text-primary"></i>
</div>
<h4 class="mt-2 text-sm font-medium text-gray-800">First Steps</h4>
<p class="text-xs text-gray-500">Completed first lesson</p>
</div>
<div class="bg-white p-4 rounded-lg shadow-sm text-center opacity-50">
<div class="w-16 h-16 mx-auto bg-gray-100 rounded-full flex items-center justify-center">
<i data-feather="check-circle" class="text-gray-400"></i>
</div>
<h4 class="mt-2 text-sm font-medium text-gray-400">Module Master</h4>
<p class="text-xs text-gray-400">Complete a module</p>
</div>
<div class="bg-white p-4 rounded-lg shadow-sm text-center opacity-50">
<div class="w-16 h-16 mx-auto bg-gray-100 rounded-full flex items-center justify-center">
<i data-feather="star" class="text-gray-400"></i>
</div>
<h4 class="mt-2 text-sm font-medium text-gray-400">Quick Learner</h4>
<p class="text-xs text-gray-400">Finish in top 25%</p>
</div>
<div class="bg-white p-4 rounded-lg shadow-sm text-center opacity-50">
<div class="w-16 h-16 mx-auto bg-gray-100 rounded-full flex items-center justify-center">
<i data-feather="zap" class="text-gray-400"></i>
</div>
<h4 class="mt-2 text-sm font-medium text-gray-400">Speed Demon</h4>
<p class="text-xs text-gray-400">Fast completion</p>
</div>
</div>
</div>
</div>
</div>
<script>
// Course data
const courseData = {
modules: [
{
id: 1,
title: "Introduction to Logistics",
completed: true,
lessons: [
{
title: "What is Logistics?",
content: "Logistics is the detailed coordination of complex operations involving people, facilities, or supplies...",
completed: true
},
{
title: "History of Logistics",
content: "Logistics has been a key element of military strategy since ancient times...",
completed: false
}
]
},
{
id: 2,
title: "Supply Chain Basics",
completed: false,
lessons: [
{
title: "Supply Chain Components",
content: "A supply chain is a network between a company and its suppliers...",
completed: false
}
]
}
],
achievements: [
{ id: 1, name: "First Steps", description: "Completed first lesson", earned: true },
{ id: 2, name: "Module Master", description: "Complete a module", earned: false }
]
};
// Initialize UI elements
document.addEventListener('DOMContentLoaded', function() {
feather.replace();
// Toggle mobile menu
document.getElementById('menu-btn').addEventListener('click', function() {
const menu = document.getElementById('mobile-menu');
menu.classList.toggle('hidden');
});
// Quiz interaction
document.querySelectorAll('.quiz-option').forEach(option => {
option.addEventListener('click', function() {
const feedback = document.getElementById('quiz-feedback');
if (this.classList.contains('correct-option')) {
feedback.textContent = 'Correct! Product design is not part of logistics.';
feedback.classList.remove('bg-red-100', 'text-red-700');
feedback.classList.add('bg-green-100', 'text-green-700');
} else {
feedback.textContent = 'Incorrect. Try again!';
feedback.classList.remove('bg-green-100', 'text-green-700');
feedback.classList.add('bg-red-100', 'text-red-700');
}
feedback.classList.remove('hidden');
});
});
// Save progress to localStorage
if (!localStorage.getItem('logisticsProgress')) {
localStorage.setItem('logisticsProgress', JSON.stringify(courseData));
}
});
</script>
</body>
</html>
|