Spaces:
Running
Running
Download index.html from alinmanache/test-1: direct link, hf CLI and curl.
- Browser
- Download file 25.4 kB
-
https://huggingface.co/spaces/alinmanache/test-1/resolve/main/index.html
- Command line
-
hf download hf://spaces/alinmanache/test-1/index.html
-
curl -L -o index.html https://huggingface.co/spaces/alinmanache/test-1/resolve/main/index.html
25.4 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>EduSync LMS</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| /* Custom CSS for animations and additional styling */ | |
| @keyframes fadeIn { | |
| from { opacity: 0; transform: translateY(10px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| .fade-in { | |
| animation: fadeIn 0.5s ease-out forwards; | |
| } | |
| .course-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); | |
| } | |
| .progress-ring__circle { | |
| transition: stroke-dashoffset 0.5s; | |
| transform: rotate(-90deg); | |
| transform-origin: 50% 50%; | |
| } | |
| .sidebar { | |
| transition: all 0.3s ease; | |
| } | |
| .lesson-video { | |
| aspect-ratio: 16/9; | |
| } | |
| @media (max-width: 768px) { | |
| .sidebar { | |
| position: fixed; | |
| left: -100%; | |
| top: 0; | |
| z-index: 50; | |
| height: 100vh; | |
| } | |
| .sidebar.active { | |
| left: 0; | |
| } | |
| .overlay { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background-color: rgba(0, 0, 0, 0.5); | |
| z-index: 40; | |
| display: none; | |
| } | |
| .overlay.active { | |
| display: block; | |
| } | |
| } | |
| /* Error message styling */ | |
| .error-message { | |
| color: #ef4444; | |
| font-size: 0.875rem; | |
| margin-top: 0.25rem; | |
| display: none; | |
| } | |
| .error-message.show { | |
| display: block; | |
| } | |
| .shake { | |
| animation: shake 0.5s; | |
| } | |
| @keyframes shake { | |
| 0%, 100% { transform: translateX(0); } | |
| 10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); } | |
| 20%, 40%, 60%, 80% { transform: translateX(5px); } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50 font-sans"> | |
| <!-- Overlay for mobile sidebar --> | |
| <div class="overlay"></div> | |
| <!-- Login Screen --> | |
| <div id="login-screen" class="fixed inset-0 flex items-center justify-center bg-gradient-to-br from-blue-500 to-indigo-600 z-50 transition-opacity duration-300"> | |
| <div class="bg-white p-8 rounded-xl shadow-2xl w-full max-w-md fade-in"> | |
| <div class="text-center mb-8"> | |
| <img src="https://via.placeholder.com/80" alt="EduSync Logo" class="mx-auto h-20 w-20"> | |
| <h1 class="text-3xl font-bold text-gray-800 mt-4">Welcome to EduSync</h1> | |
| <p class="text-gray-600 mt-2">Your cloud-powered learning platform</p> | |
| </div> | |
| <form id="login-form" class="space-y-4"> | |
| <div> | |
| <label for="email" class="block text-sm font-medium text-gray-700">Email</label> | |
| <input type="email" id="email" name="email" required class="mt-1 block w-full px-4 py-2 border border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500"> | |
| <div id="email-error" class="error-message">Please enter a valid email</div> | |
| </div> | |
| <div> | |
| <label for="password" class="block text-sm font-medium text-gray-700">Password</label> | |
| <input type="password" id="password" name="password" required class="mt-1 block w-full px-4 py-2 border border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500"> | |
| <div id="password-error" class="error-message">Password must be at least 8 characters</div> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <div class="flex items-center"> | |
| <input id="remember-me" name="remember-me" type="checkbox" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded"> | |
| <label for="remember-me" class="ml-2 block text-sm text-gray-700">Remember me</label> | |
| </div> | |
| <div class="text-sm"> | |
| <a href="#" class="font-medium text-blue-600 hover:text-blue-500">Forgot password?</a> | |
| </div> | |
| </div> | |
| <div id="login-error" class="error-message text-center">Invalid email or password</div> | |
| <div> | |
| <button type="submit" class="w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"> | |
| Sign in | |
| </button> | |
| </div> | |
| </form> | |
| <div class="mt-6"> | |
| <div class="relative"> | |
| <div class="absolute inset-0 flex items-center"> | |
| <div class="w-full border-t border-gray-300"></div> | |
| </div> | |
| <div class="relative flex justify-center text-sm"> | |
| <span class="px-2 bg-white text-gray-500">Demo Accounts</span> | |
| </div> | |
| </div> | |
| <div class="mt-6 space-y-2"> | |
| <button onclick="fillDemoAccount('student@example.com', 'password123')" class="w-full inline-flex justify-center py-2 px-4 border border-gray-300 rounded-md shadow-sm bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"> | |
| <i class="fas fa-user-graduate text-blue-500 mr-2"></i> Student Account | |
| </button> | |
| <button onclick="fillDemoAccount('teacher@example.com', 'password123')" class="w-full inline-flex justify-center py-2 px-4 border border-gray-300 rounded-md shadow-sm bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"> | |
| <i class="fas fa-chalkboard-teacher text-blue-500 mr-2"></i> Instructor Account | |
| </button> | |
| </div> | |
| <p class="mt-6 text-center text-sm text-gray-600"> | |
| Don't have an account? <a href="#" id="show-register" class="font-medium text-blue-600 hover:text-blue-500">Sign up</a> | |
| </p> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Registration Screen (hidden initially) --> | |
| <div id="register-screen" class="fixed inset-0 flex items-center justify-center bg-gradient-to-br from-blue-500 to-indigo-600 z-50 transition-opacity duration-300 hidden"> | |
| <div class="bg-white p-8 rounded-xl shadow-2xl w-full max-w-md fade-in"> | |
| <div class="text-center mb-8"> | |
| <img src="https://via.placeholder.com/80" alt="EduSync Logo" class="mx-auto h-20 w-20"> | |
| <h1 class="text-3xl font-bold text-gray-800 mt-4">Create Your Account</h1> | |
| <p class="text-gray-600 mt-2">Join our learning community</p> | |
| </div> | |
| <form id="register-form" class="space-y-4"> | |
| <div> | |
| <label for="reg-name" class="block text-sm font-medium text-gray-700">Full Name</label> | |
| <input type="text" id="reg-name" name="name" required class="mt-1 block w-full px-4 py-2 border border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500"> | |
| <div id="name-error" class="error-message">Please enter your full name</div> | |
| </div> | |
| <div> | |
| <label for="reg-email" class="block text-sm font-medium text-gray-700">Email</label> | |
| <input type="email" id="reg-email" name="email" required class="mt-1 block w-full px-4 py-2 border border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500"> | |
| <div id="reg-email-error" class="error-message">Please enter a valid email</div> | |
| </div> | |
| <div> | |
| <label for="reg-password" class="block text-sm font-medium text-gray-700">Password</label> | |
| <input type="password" id="reg-password" name="password" required class="mt-1 block w-full px-4 py-2 border border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500"> | |
| <div id="reg-password-error" class="error-message">Password must be at least 8 characters</div> | |
| </div> | |
| <div> | |
| <label for="reg-confirm-password" class="block text-sm font-medium text-gray-700">Confirm Password</label> | |
| <input type="password" id="reg-confirm-password" name="confirm-password" required class="mt-1 block w-full px-4 py-2 border border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500"> | |
| <div id="confirm-password-error" class="error-message">Passwords do not match</div> | |
| </div> | |
| <div class="flex items-center"> | |
| <input id="terms" name="terms" type="checkbox" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded"> | |
| <label for="terms" class="ml-2 block text-sm text-gray-700"> | |
| I agree to the <a href="#" class="text-blue-600 hover:text-blue-500">Terms of Service</a> and <a href="#" class="text-blue-600 hover:text-blue-500">Privacy Policy</a> | |
| </label> | |
| </div> | |
| <div id="terms-error" class="error-message">You must agree to the terms</div> | |
| <div id="register-error" class="error-message text-center"></div> | |
| <div> | |
| <button type="submit" class="w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"> | |
| Create Account | |
| </button> | |
| </div> | |
| </form> | |
| <p class="mt-6 text-center text-sm text-gray-600"> | |
| Already have an account? <a href="#" id="show-login" class="font-medium text-blue-600 hover:text-blue-500">Sign in</a> | |
| </p> | |
| </div> | |
| </div> | |
| <!-- Main App (hidden initially) --> | |
| <div id="app" class="hidden"> | |
| <!-- Mobile Header --> | |
| <div class="md:hidden bg-white shadow-sm"> | |
| <div class="flex items-center justify-between px-4 py-3"> | |
| <button id="mobile-menu-button" class="text-gray-500 focus:outline-none"> | |
| <i class="fas fa-bars text-xl"></i> | |
| </button> | |
| <div class="text-xl font-bold text-blue-600">EduSync</div> | |
| <div class="w-8"></div> <!-- Spacer for balance --> | |
| </div> | |
| </div> | |
| <div class="flex"> | |
| <!-- Sidebar --> | |
| <div class="sidebar bg-white shadow-md w-64 fixed h-full"> | |
| <div class="p-4 border-b border-gray-200"> | |
| <div class="flex items-center"> | |
| <img src="https://via.placeholder.com/40" alt="User" class="h-10 w-10 rounded-full"> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium text-gray-700" id="username-display">John Doe</p> | |
| <p class="text-xs text-gray-500" id="user-role">Student</p> | |
| </div> | |
| </div> | |
| </div> | |
| <nav class="mt-4"> | |
| <div class="px-4 py-2"> | |
| <p class="text-xs font-semibold text-gray-500 uppercase tracking-wider">Navigation</p> | |
| </div> | |
| <a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-gray-900 bg-blue-50 border-l-4 border-blue-600" data-section="dashboard"> | |
| <i class="fas fa-home mr-3 text-blue-600"></i> Dashboard | |
| </a> | |
| <a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-gray-600 hover:bg-gray-50 hover:text-gray-900" data-section="courses"> | |
| <i class="fas fa-book mr-3"></i> My Courses | |
| </a> | |
| <a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-gray-600 hover:bg-gray-50 hover:text-gray-900" data-section="calendar"> | |
| <i class="fas fa-calendar-alt mr-3"></i> Calendar | |
| </a> | |
| <a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-gray-600 hover:bg-gray-50 hover:text-gray-900" data-section="progress"> | |
| <i class="fas fa-chart-bar mr-3"></i> Progress | |
| </a> | |
| <a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-gray-600 hover:bg-gray-50 hover:text-gray-900" data-section="discussions"> | |
| <i class="fas fa-comments mr-3"></i> Discussions | |
| </a> | |
| <div class="px-4 py-2 mt-4"> | |
| <p class="text-xs font-semibold text-gray-500 uppercase tracking-wider">Tools</p> | |
| </div> | |
| <a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-gray-600 hover:bg-gray-50 hover:text-gray-900" data-section="cloud-sync"> | |
| <i class="fas fa-cloud-upload-alt mr-3"></i> Cloud Sync | |
| </a> | |
| <a href="#" class="flex items-center px-4 py-3 text-sm font-medium text-gray-600 hover:bg-gray-50 hover:text-gray-900" data-section="settings"> | |
| <i class="fas fa-cog mr-3"></i> Settings | |
| </a> | |
| <a href="#" id="logout-btn" class="flex items-center px-4 py-3 text-sm font-medium text-gray-600 hover:bg-gray-50 hover:text-gray-900"> | |
| <i class="fas fa-sign-out-alt mr-3"></i> Logout | |
| </a> | |
| </nav> | |
| <div class="absolute bottom-0 w-full p-4 border-t border-gray-200"> | |
| <div class="flex items-center"> | |
| <div class="relative"> | |
| <svg class="h-12 w-12" viewBox="0 0 36 36"> | |
| <circle cx="18" cy="18" r="16" fill="none" stroke="#e6e6e6" stroke-width="2"></circle> | |
| <circle class="progress-ring__circle" cx="18" cy="18" r="16" fill="none" stroke="#3b82f6" stroke-width="2" stroke-dasharray="100" stroke-dashoffset="25"></circle> | |
| </svg> | |
| <div class="absolute inset-0 flex items-center justify-center"> | |
| <span class="text-xs font-bold text-blue-600">75%</span> | |
| </div> | |
| </div> | |
| <div class="ml-3"> | |
| <p class="text-xs text-gray-500">Storage used</p> | |
| <p class="text-xs font-medium text-gray-700">1.5 GB of 2 GB</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="flex-1 md:ml-64"> | |
| <!-- Dashboard Section --> | |
| <div id="dashboard-section" class="section-content"> | |
| <!-- Header --> | |
| <header class="bg-white shadow-sm hidden md:block"> | |
| <div class="max-w-7xl mx-auto py-4 px-4 sm:px-6 lg:px-8 flex justify-between items-center"> | |
| <h1 class="text-xl font-bold text-gray-900">Dashboard</h1> | |
| <div class="flex items-center space-x-4"> | |
| <div class="relative"> | |
| <button id="sync-btn" class="p-2 rounded-full text-gray-500 hover:text-blue-600 hover:bg-gray-100 focus:outline-none"> | |
| <i class="fas fa-sync-alt"></i> | |
| </button> | |
| <span id="sync-status" class="absolute -top-1 -right-1 h-3 w-3 rounded-full bg-green-500"></span> | |
| </div> | |
| <div class="relative"> | |
| <button class="p-2 rounded-full text-gray-500 hover:text-blue-600 hover:bg-gray-100 focus:outline-none"> | |
| <i class="fas fa-bell"></i> | |
| </button> | |
| <span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span> | |
| </div> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Content --> | |
| <main class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8"> | |
| <!-- Welcome Banner --> | |
| <div class="bg-gradient-to-r from-blue-500 to-indigo-600 rounded-xl shadow-md p-6 text-white mb-8"> | |
| <div class="flex flex-col md:flex-row md:items-center md:justify-between"> | |
| <div> | |
| <h2 class="text-2xl font-bold mb-2">Welcome back, <span id="welcome-username">John</span>!</h2> | |
| <p class="opacity-90">You have 3 active courses. Continue your learning journey today.</p> | |
| </div> | |
| <button class="mt-4 md:mt-0 bg-white text-blue-600 px-4 py-2 rounded-md font-medium hover:bg-opacity-90 transition">View Courses</button> | |
| </div> | |
| </div> | |
| <!-- Courses in Progress --> | |
| <div class="mb-8"> | |
| <div class="flex items-center justify-between mb-4"> | |
| <h2 class="text-lg font-semibold text-gray-900">Courses in Progress</h2> | |
| <a href="#" class="text-sm font-medium text-blue-600 hover:text-blue-500">View all</a> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> | |
| <!-- Course Card 1 --> | |
| <div class="course-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300"> | |
| <div class="h-40 bg-gradient-to-r from-purple-500 to-pink-500 flex items-center justify-center"> | |
| <i class="fas fa-laptop-code text-white text-5xl"></i> | |
| </div> | |
| <div class="p-5"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h3 class="font-bold text-lg text-gray-800 mb-1">Introduction to Web Development</h3> | |
| <p class="text-sm text-gray-600 mb-3">Dr. Sarah Johnson</p> | |
| </div> | |
| <span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">Active</span> | |
| </div> | |
| <div class="flex items-center justify-between mt-4"> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-blue-600 h-2 rounded-full" style="width: 65%"></div> | |
| </div> | |
| <span class="ml-3 text-sm font-medium text-gray-700">65%</span> | |
| </div> | |
| <div class="mt-4 flex justify-between"> | |
| <div class="flex items-center text-sm text-gray-500"> | |
| <i class="fas fa-book-open mr-1"></i> | |
| <span>12/18 lessons</span> | |
| </div> | |
| <button class="text-blue-600 text-sm font-medium hover:text-blue-800" data-course="web-dev">Continue</button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Course Card 2 --> | |
| <div class="course-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300"> | |
| <div class="h-40 bg-gradient-to-r from-green-500 to-teal-500 flex items-center justify-center"> | |
| <i class="fas fa-chart-line text-white text-5xl"></i> | |
| </div> | |
| <div class="p-5"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h3 class="font-bold text-lg text-gray-800 mb-1">Data Science Fundamentals</h3> | |
| <p class="text-sm text-gray-600 mb-3">Prof. Michael Chen</p> | |
| </div> | |
| <span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">Active</span> | |
| </div> | |
| <div class="flex items-center justify-between mt-4"> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-blue-600 h-2 rounded-full" style="width: 40%"></div> | |
| </div> | |
| <span class="ml-3 text-sm font-medium text-gray-700">40%</span> | |
| </div> | |
| <div class="mt-4 flex justify-between"> | |
| <div class="flex items-center text-sm text-gray-500"> | |
| <i class="fas fa-book-open mr-1"></i> | |
| <span>8/20 lessons</span> | |
| </div> | |
| <button class="text-blue-600 text-sm font-medium hover:text-blue-800" data-course="data-science">Continue</button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Course Card 3 --> | |
| <div class="course-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300"> | |
| <div class="h-40 bg-gradient-to-r from-orange-500 to-yellow-500 flex items-center justify-center"> | |
| <i class="fas fa-mobile-alt text-white text-5xl"></i> | |
| </div> | |
| <div class="p-5"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h3 class="font-bold text-lg text-gray-800 mb-1">Mobile App Development</h3> | |
| <p class="text-sm text-gray-600 mb-3">Dr. Emily Rodriguez</p> | |
| </div> | |
| <span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">Active</span> | |
| </div> | |
| <div class="flex items-center justify-between mt-4"> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-blue-600 h-2 rounded-full" style="width: 25%"></div | |
| </html> |