Spaces:
Running
Running
Commit History
-
undefined - Follow Up Deployment
Verified signaturecfb6ab5 -
undefined - Follow Up Deployment
Verified signature9c66fdc -
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>eduXR - Immersive Learning Platform</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> :root { --primary: #4f46e5; --primary-dark: #4338ca; --secondary: #8b5cf6; --success: #10b981; --warning: #f59e0b; --info: #3b82f6; --dark: #1e293b; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } } .gradient-bg { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); } .content-card { transition: all 0.3s ease; } .content-card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); } .progress-ring__circle { transition: stroke-dashoffset 0.35s; transform: rotate(-90deg); transform-origin: 50% 50%; } .sidebar { transition: all 0.3s ease; } .fade-in { animation: fadeIn 0.5s ease forwards; } .pulse-animation { animation: pulse 2s infinite; } .role-badge { position: absolute; top: 8px; right: 8px; font-size: 0.6rem; padding: 2px 6px; border-radius: 12px; background: var(--primary); color: white; } .download-progress { height: 4px; border-radius: 2px; background: #e2e8f0; overflow: hidden; } .download-progress-bar { height: 100%; background: var(--primary); transition: width 0.3s ease; } @media (max-width: 768px) { .sidebar { transform: translateX(-100%); position: fixed; z-index: 50; height: 100vh; } .sidebar.open { transform: translateX(0); } .dashboard-grid { grid-template-columns: 1fr; } .main-content-grid { grid-template-columns: 1fr; } } .device-compatibility { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; margin-right: 6px; margin-bottom: 6px; } .notification-badge { position: absolute; top: -3px; right: -3px; width: 18px; height: 18px; border-radius: 50%; background: #ef4444; color: white; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: bold; } .analytics-card { border-left: 4px solid var(--primary); } .assignment-card { border-left: 4px solid var(--warning); } .lesson-card { border-left: 4px solid var(--success); } .download-card { border-left: 4px solid var(--info); } .content-badge { position: absolute; top: 8px; right: 8px; font-size: 0.7rem; padding: 3px 8px; border-radius: 12px; color: white; } </style> </head> <body class="bg-gray-50 font-sans"> <!-- Mobile Menu Button --> <button id="mobileMenuButton" class="md:hidden fixed top-4 left-4 z-50 bg-white p-2 rounded-full shadow-lg"> <i class="fas fa-bars text-indigo-600"></i> </button> <!-- Sidebar Navigation --> <div id="sidebar" class="sidebar bg-white w-64 fixed h-full shadow-lg"> <div class="p-4 flex items-center justify-between border-b"> <div class="flex items-center space-x-2"> <i class="fas fa-vr-cardboard text-indigo-600 text-2xl"></i> <span class="text-xl font-bold text-indigo-600">eduXR</span> </div> <button id="closeSidebar" class="md:hidden text-gray-500 hover:text-gray-700"> <i class="fas fa-times"></i> </button> </div> <div class="p-4"> <div class="flex items-center space-x-3 mb-6 relative"> <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User" class="w-10 h-10 rounded-full border-2 border-indigo-200"> <div> <p class="font-medium">John Doe</p> <p class="text-xs text-gray-500">Student (SS2)</p> </div> <span class="role-badge">Student</span> </div> <nav> <ul class="space-y-2"> <li> <a href="#" class="flex items-center space-x-3 p-2 rounded-lg bg-indigo-50 text-indigo-600"> <i class="fas fa-home w-5 text-center"></i> <span>Dashboard</span> </a> </li> <li> <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100 text-gray-700"> <i class="fas fa-book w-5 text-center"></i> <span>My Subjects</span> </a> </li> <li> <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100 text-gray-700"> <i class="fas fa-vr-cardboard w-5 text-center"></i> <span>XR Lessons</span> </a> </li> <li> <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100 text-gray-700"> <i class="fas fa-tasks w-5 text-center"></i> <span>Assignments</span> </a> </li> <li> <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100 text-gray-700"> <i class="fas fa-chart-line w-5 text-center"></i> <span>Progress & Analytics</span> </a> </li> <li> <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100 text-gray-700"> <i class="fas fa-download w-5 text-center"></i> <span>Downloads</span> </a> </li> <li> <a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100 text-gray-700"> <i class="fas fa-cog w-5 text-center"></i> <span>Settings</span> </a> </li> </ul> </nav> <!-- User Type Navigation --> <div class="mt-6 pt-4 border-t border-gray-200"> <h4 class="text-xs font-semibold text-gray-500 uppercase tracking-wider px-2 mb-2">Switch User Type</h4> <ul class="space-y-1"> <li> <a href="teacher-dashboard.html" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100 text-gray-700"> <i class="fas fa-chalkboard-teacher w-5 text-center"></i> <span>Teacher View</span> </a> </li> <li> <a href="parent-dashboard.html" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100 text-gray-700"> <i class="fas fa-user-friends w-5 text-center"></i> <span>Parent View</span> </a> </li> <li> <a href="admin-dashboard.html" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100 text-gray-700"> <i class="fas fa-user-shield w-5 text-center"></i> <span>Admin View</span> </a> </li> <li> <a href="guest-dashboard.html" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100 text-gray-700"> <i class="fas fa-user w-5 text-center"></i> <span>Guest View</span> </a> </li> </ul> </div> </div> <div class="absolute bottom-0 w-full p-4 border-t"> <button class="w-full flex items-center justify-center space-x-2 bg-indigo-600 text-white py-2 px-4 rounded-lg hover:bg-indigo-700 transition"> <i class="fas fa-sign-out-alt"></i> <span>Logout</span> </button> </div> </div> <!-- Main Content --> <div class="md:ml-64 min-h-screen"> <!-- Top Navigation --> <header class="bg-white shadow-sm"> <div class="flex items-center justify-between p-4"> <div class="flex items-center space-x-4"> <h1 class="text-xl font-bold text-gray-800">Dashboard</h1> <div class="relative hidden md:block"> <input type="text" placeholder="Search lessons, assignments..." class="pl-10 pr-4 py-2 border rounded-full text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 w-64"> <i class="fas fa-search absolute left-3 top-2.5 text-gray-400"></i> </div> </div> <div class="flex items-center space-x-4"> <div class="relative"> <button class="p-2 rounded-full hover:bg-gray-100 relative" id="notificationButton"> <i class="fas fa-bell text-gray-600"></i> <span class="notification-badge">3</span> </button> <div id="notificationDropdown" class="hidden absolute right-0 mt-2 w-80 bg-white rounded-md shadow-lg py-1 z-50 border border-gray-200"> <div class="px-4 py-3 border-b"> <h3 class="text-sm font-medium text-gray-900">Notifications</h3> </div> <div class="max-h-60 overflow-y-auto"> <a href="#" class="block px-4 py-3 border-b hover:bg-gray-50"> <div class="flex items-start"> <div class="flex-shrink-0 pt-1"> <div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center text-blue-600"> <i class="fas fa-book"></i> </div> </div> <div class="ml-3 flex-1"> <p class="text-sm font-medium text-gray-900">New Assignment</p> <p class="text-xs text-gray-500">Mathematics: Calculus Problems</p> <p class="text-xs text-gray-400 mt-1">2 hours ago</p> </div> </div> </a> <a href="#" class="block px-4 py-3 border-b hover:bg-gray-50"> <div class="flex items-start"> <div class="flex-shrink-0 pt-1"> <div class="w-8 h-8 rounded-full bg-green-100 flex items-center justify-center text-green-600"> <i class="fas fa-vr-cardboard"></i> </div> </div> <div class="ml-3 flex-1"> <p class="text-sm font-medium text-gray-900">New XR Lesson</p> <p class="text-xs text-gray-500">Biology: Human Respiratory System</p> <p class="text-xs text-gray-400 mt-1">Yesterday, 4:30 PM</p> </div> </div> </a> <a href="#" class="block px-4 py-3 hover:bg-gray-50"> <div class="flex items-start"> <div class="flex-shrink-0 pt-1"> <div class="w-8 h-8 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-600"> <i class="fas fa-tasks"></i> </div> </div> <div class="ml-3 flex-1"> <p class="text-sm font-medium text-gray-900">Assignment Reminder</p> <p class="text-xs text-gray-500">Physics: Newton's Laws - Due Tomorrow</p> <p class="text-xs text-gray-400 mt-1">2 days ago</p> </div> </div> </a> </div> <div class="border-t px-4 py-2 bg-gray-50"> <a href="#" class="text-xs font-medium text-indigo-600 hover:text-indigo-800">View all notifications</a> </div> </div> </div> <button class="p-2 rounded-full hover:bg-gray-100"> <i class="fas fa-question-circle text-gray-600"></i> </button> <div class="relative"> <button id="userMenuButton" class="flex items-center space-x-2 focus:outline-none"> <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User" class="w-8 h-8 rounded-full"> <span class="hidden md:inline text-sm font-medium">John Doe</span> <i class="fas fa-chevron-down text-xs text-gray-500"></i> </button> <div id="userMenu" class="hidden absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-50"> <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"> <i class="fas fa-user mr-2"></i> Profile </a> <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"> <i class="fas fa-cog mr-2"></i> Settings </a> <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"> <i class="fas fa-question-circle mr-2"></i> Help </a> <div class="border-t border-gray-200"></div> <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"> <i class="fas fa-sign-out-alt mr-2"></i> Logout </a> </div> </div> </div> </div> </header> <!-- Main Dashboard Content --> <main class="p-4 md:p-6"> <!-- Welcome Banner --> <div class="gradient-bg text-white rounded-xl p-6 mb-6 shadow-lg fade-in"> <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, John!</h2> <p class="opacity-90 max-w-2xl">You have 3 new assignments and 2 XR lessons to explore. Continue your learning journey with immersive experiences.</p> </div> <button class="mt-4 md:mt-0 bg-white text-indigo-600 font-medium py-2 px-6 rounded-lg hover:bg-opacity-90 transition flex items-center"> <i class="fas fa-rocket mr-2"></i> Explore Lessons </button> </div> </div> <!-- Dashboard Grid --> <div class="dashboard-grid grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6"> <!-- Left Column --> <div class="lg:col-span-2 space-y-6"> <!-- Quick Stats --> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4"> <div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100 fade-in"> <div class="flex items-center justify-between"> <div> <p class="text-sm text-gray-500">Active Subjects</p> <p class="text-2xl font-bold mt-1">5</p> </div> <div class="p-3 rounded-full bg-indigo-50 text-indigo-600"> <i class="fas fa-book"></i> </div> </div> </div> <div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100 fade-in"> <div class="flex items-center justify-between"> <div> <p class="text-sm text-gray-500">XR Lessons</p> <p class="text-2xl font-bold mt-1">12</p> </div> <div class="p-3 rounded-full bg-green-50 text-green-600"> <i class="fas fa-vr-cardboard"></i> </div> </div> </div> <div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100 fade-in"> <div class="flex items-center justify-between"> <div> <p class="text-sm text-gray-500">Pending Assignments</p> - Initial Deployment
Verified signaturedd708f3 -
initial commit
Verified signaturedb70dbb