Spaces:
Running
Running
Add 2 files
Browse files- README.md +7 -5
- index.html +301 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: edulite
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: purple
|
| 5 |
+
colorTo: green
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,301 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Edulite - Integrated Learning Management System</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
| 9 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 10 |
+
<script src="https://accounts.google.com/gsi/client" async defer></script>
|
| 11 |
+
<style>
|
| 12 |
+
:root {
|
| 13 |
+
--primary: #4F46E5;
|
| 14 |
+
--secondary: #10B981;
|
| 15 |
+
--dark: #1F2937;
|
| 16 |
+
--light: #F9FAFB;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
body {
|
| 20 |
+
font-family: 'Poppins', sans-serif;
|
| 21 |
+
background-color: #F3F4F6;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
.sidebar {
|
| 25 |
+
transition: all 0.3s ease;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
.card-hover:hover {
|
| 29 |
+
transform: translateY(-5px);
|
| 30 |
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
.gradient-bg {
|
| 34 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
.course-card {
|
| 38 |
+
transition: all 0.3s ease;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
.course-card:hover {
|
| 42 |
+
transform: scale(1.03);
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
/* Custom scrollbar */
|
| 46 |
+
::-webkit-scrollbar {
|
| 47 |
+
width: 8px;
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
::-webkit-scrollbar-track {
|
| 51 |
+
background: #f1f1f1;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
::-webkit-scrollbar-thumb {
|
| 55 |
+
background: #888;
|
| 56 |
+
border-radius: 10px;
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
::-webkit-scrollbar-thumb:hover {
|
| 60 |
+
background: #555;
|
| 61 |
+
}
|
| 62 |
+
</style>
|
| 63 |
+
</head>
|
| 64 |
+
<body class="bg-gray-100">
|
| 65 |
+
<!-- Google Sign-In Modal -->
|
| 66 |
+
<div id="authModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
|
| 67 |
+
<div class="bg-white rounded-lg p-8 w-full max-w-md">
|
| 68 |
+
<div class="flex justify-between items-center mb-6">
|
| 69 |
+
<h2 class="text-2xl font-bold text-gray-800">Welcome to Edulite</h2>
|
| 70 |
+
<button onclick="closeAuthModal()" class="text-gray-500 hover:text-gray-700">
|
| 71 |
+
<i class="fas fa-times"></i>
|
| 72 |
+
</button>
|
| 73 |
+
</div>
|
| 74 |
+
<div class="mb-6">
|
| 75 |
+
<div id="g_id_onload"
|
| 76 |
+
data-client_id="YOUR_GOOGLE_CLIENT_ID.apps.googleusercontent.com"
|
| 77 |
+
data-context="signin"
|
| 78 |
+
data-ux_mode="popup"
|
| 79 |
+
data-callback="handleGoogleSignIn"
|
| 80 |
+
data-auto_prompt="false">
|
| 81 |
+
</div>
|
| 82 |
+
<div class="g_id_signin"
|
| 83 |
+
data-type="standard"
|
| 84 |
+
data-shape="rectangular"
|
| 85 |
+
data-theme="outline"
|
| 86 |
+
data-text="signin_with"
|
| 87 |
+
data-size="large"
|
| 88 |
+
data-logo_alignment="left">
|
| 89 |
+
</div>
|
| 90 |
+
</div>
|
| 91 |
+
<div class="text-center text-gray-600">
|
| 92 |
+
<p>By signing in, you agree to our Terms of Service and Privacy Policy</p>
|
| 93 |
+
</div>
|
| 94 |
+
</div>
|
| 95 |
+
</div>
|
| 96 |
+
|
| 97 |
+
<!-- Mobile Menu Button -->
|
| 98 |
+
<div class="md:hidden fixed bottom-6 right-6 z-40">
|
| 99 |
+
<button id="mobileMenuButton" class="bg-indigo-600 text-white p-4 rounded-full shadow-lg">
|
| 100 |
+
<i class="fas fa-bars text-xl"></i>
|
| 101 |
+
</button>
|
| 102 |
+
</div>
|
| 103 |
+
|
| 104 |
+
<!-- Sidebar -->
|
| 105 |
+
<div id="sidebar" class="fixed inset-y-0 left-0 transform -translate-x-full md:translate-x-0 w-64 bg-white shadow-lg z-30 transition duration-300 ease-in-out">
|
| 106 |
+
<div class="flex flex-col h-full">
|
| 107 |
+
<!-- Logo -->
|
| 108 |
+
<div class="p-4 border-b border-gray-200">
|
| 109 |
+
<div class="flex items-center space-x-2">
|
| 110 |
+
<div class="bg-indigo-600 text-white p-2 rounded-lg">
|
| 111 |
+
<i class="fas fa-graduation-cap text-xl"></i>
|
| 112 |
+
</div>
|
| 113 |
+
<h1 class="text-xl font-bold text-gray-800">Edulite</h1>
|
| 114 |
+
</div>
|
| 115 |
+
</div>
|
| 116 |
+
|
| 117 |
+
<!-- User Profile -->
|
| 118 |
+
<div id="userProfile" class="p-4 border-b border-gray-200 hidden">
|
| 119 |
+
<div class="flex items-center space-x-3">
|
| 120 |
+
<img id="userAvatar" src="https://via.placeholder.com/40" alt="User" class="w-10 h-10 rounded-full">
|
| 121 |
+
<div>
|
| 122 |
+
<p id="userName" class="font-medium text-gray-800">John Doe</p>
|
| 123 |
+
<p id="userEmail" class="text-xs text-gray-500">john@example.com</p>
|
| 124 |
+
</div>
|
| 125 |
+
</div>
|
| 126 |
+
</div>
|
| 127 |
+
|
| 128 |
+
<!-- Navigation -->
|
| 129 |
+
<nav class="flex-1 overflow-y-auto">
|
| 130 |
+
<ul class="space-y-1 p-2">
|
| 131 |
+
<li>
|
| 132 |
+
<a href="#" class="flex items-center p-3 text-gray-700 hover:bg-indigo-50 rounded-lg group" onclick="showDashboard()">
|
| 133 |
+
<i class="fas fa-home text-gray-500 group-hover:text-indigo-600 mr-3"></i>
|
| 134 |
+
<span>Dashboard</span>
|
| 135 |
+
</a>
|
| 136 |
+
</li>
|
| 137 |
+
<li>
|
| 138 |
+
<a href="#" class="flex items-center p-3 text-gray-700 hover:bg-indigo-50 rounded-lg group" onclick="showCourses()">
|
| 139 |
+
<i class="fas fa-book-open text-gray-500 group-hover:text-indigo-600 mr-3"></i>
|
| 140 |
+
<span>My Courses</span>
|
| 141 |
+
</a>
|
| 142 |
+
</li>
|
| 143 |
+
<li>
|
| 144 |
+
<a href="#" class="flex items-center p-3 text-gray-700 hover:bg-indigo-50 rounded-lg group" onclick="showAssignments()">
|
| 145 |
+
<i class="fas fa-tasks text-gray-500 group-hover:text-indigo-600 mr-3"></i>
|
| 146 |
+
<span>Assignments</span>
|
| 147 |
+
</a>
|
| 148 |
+
</li>
|
| 149 |
+
<li>
|
| 150 |
+
<a href="#" class="flex items-center p-3 text-gray-700 hover:bg-indigo-50 rounded-lg group" onclick="showFiles()">
|
| 151 |
+
<i class="fas fa-folder text-gray-500 group-hover:text-indigo-600 mr-3"></i>
|
| 152 |
+
<span>File Storage</span>
|
| 153 |
+
</a>
|
| 154 |
+
</li>
|
| 155 |
+
<li>
|
| 156 |
+
<a href="#" class="flex items-center p-3 text-gray-700 hover:bg-indigo-50 rounded-lg group" onclick="showTools()">
|
| 157 |
+
<i class="fas fa-tools text-gray-500 group-hover:text-indigo-600 mr-3"></i>
|
| 158 |
+
<span>Tools</span>
|
| 159 |
+
</a>
|
| 160 |
+
</li>
|
| 161 |
+
<li>
|
| 162 |
+
<a href="#" class="flex items-center p-3 text-gray-700 hover:bg-indigo-50 rounded-lg group" onclick="showSettings()">
|
| 163 |
+
<i class="fas fa-cog text-gray-500 group-hover:text-indigo-600 mr-3"></i>
|
| 164 |
+
<span>Settings</span>
|
| 165 |
+
</a>
|
| 166 |
+
</li>
|
| 167 |
+
</ul>
|
| 168 |
+
</nav>
|
| 169 |
+
|
| 170 |
+
<!-- Sign Out Button -->
|
| 171 |
+
<div class="p-4 border-t border-gray-200 hidden" id="signOutSection">
|
| 172 |
+
<button onclick="signOut()" class="w-full flex items-center justify-center p-2 text-gray-700 hover:bg-red-50 hover:text-red-600 rounded-lg">
|
| 173 |
+
<i class="fas fa-sign-out-alt mr-2"></i>
|
| 174 |
+
<span>Sign Out</span>
|
| 175 |
+
</button>
|
| 176 |
+
</div>
|
| 177 |
+
|
| 178 |
+
<!-- Sign In Button -->
|
| 179 |
+
<div class="p-4 border-t border-gray-200" id="signInSection">
|
| 180 |
+
<button onclick="openAuthModal()" class="w-full flex items-center justify-center p-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700">
|
| 181 |
+
<i class="fas fa-sign-in-alt mr-2"></i>
|
| 182 |
+
<span>Sign In</span>
|
| 183 |
+
</button>
|
| 184 |
+
</div>
|
| 185 |
+
</div>
|
| 186 |
+
</div>
|
| 187 |
+
|
| 188 |
+
<!-- Main Content -->
|
| 189 |
+
<div class="md:ml-64 transition-all duration-300">
|
| 190 |
+
<!-- Top Navigation -->
|
| 191 |
+
<header class="bg-white shadow-sm">
|
| 192 |
+
<div class="max-w-7xl mx-auto px-4 py-4 sm:px-6 lg:px-8 flex justify-between items-center">
|
| 193 |
+
<h1 id="pageTitle" class="text-xl font-semibold text-gray-900">Dashboard</h1>
|
| 194 |
+
<div class="flex items-center space-x-4">
|
| 195 |
+
<div class="relative">
|
| 196 |
+
<button class="p-2 text-gray-500 hover:text-gray-700">
|
| 197 |
+
<i class="fas fa-bell"></i>
|
| 198 |
+
</button>
|
| 199 |
+
<span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span>
|
| 200 |
+
</div>
|
| 201 |
+
<div class="relative hidden md:block">
|
| 202 |
+
<input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
|
| 203 |
+
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
|
| 204 |
+
</div>
|
| 205 |
+
</div>
|
| 206 |
+
</div>
|
| 207 |
+
</header>
|
| 208 |
+
|
| 209 |
+
<!-- Main Content Area -->
|
| 210 |
+
<main class="max-w-7xl mx-auto px-4 py-6 sm:px-6 lg:px-8">
|
| 211 |
+
<!-- Dashboard Content -->
|
| 212 |
+
<div id="dashboardContent">
|
| 213 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
|
| 214 |
+
<!-- Stats Cards -->
|
| 215 |
+
<div class="bg-white rounded-lg shadow p-6 card-hover">
|
| 216 |
+
<div class="flex items-center">
|
| 217 |
+
<div class="p-3 rounded-full bg-indigo-100 text-indigo-600 mr-4">
|
| 218 |
+
<i class="fas fa-book-open text-xl"></i>
|
| 219 |
+
</div>
|
| 220 |
+
<div>
|
| 221 |
+
<p class="text-gray-500">Active Courses</p>
|
| 222 |
+
<h3 class="text-2xl font-bold">5</h3>
|
| 223 |
+
</div>
|
| 224 |
+
</div>
|
| 225 |
+
</div>
|
| 226 |
+
<div class="bg-white rounded-lg shadow p-6 card-hover">
|
| 227 |
+
<div class="flex items-center">
|
| 228 |
+
<div class="p-3 rounded-full bg-green-100 text-green-600 mr-4">
|
| 229 |
+
<i class="fas fa-tasks text-xl"></i>
|
| 230 |
+
</div>
|
| 231 |
+
<div>
|
| 232 |
+
<p class="text-gray-500">Assignments</p>
|
| 233 |
+
<h3 class="text-2xl font-bold">12</h3>
|
| 234 |
+
</div>
|
| 235 |
+
</div>
|
| 236 |
+
</div>
|
| 237 |
+
<div class="bg-white rounded-lg shadow p-6 card-hover">
|
| 238 |
+
<div class="flex items-center">
|
| 239 |
+
<div class="p-3 rounded-full bg-blue-100 text-blue-600 mr-4">
|
| 240 |
+
<i class="fas fa-file-alt text-xl"></i>
|
| 241 |
+
</div>
|
| 242 |
+
<div>
|
| 243 |
+
<p class="text-gray-500">Files Stored</p>
|
| 244 |
+
<h3 class="text-2xl font-bold">47</h3>
|
| 245 |
+
</div>
|
| 246 |
+
</div>
|
| 247 |
+
</div>
|
| 248 |
+
<div class="bg-white rounded-lg shadow p-6 card-hover">
|
| 249 |
+
<div class="flex items-center">
|
| 250 |
+
<div class="p-3 rounded-full bg-purple-100 text-purple-600 mr-4">
|
| 251 |
+
<i class="fas fa-users text-xl"></i>
|
| 252 |
+
</div>
|
| 253 |
+
<div>
|
| 254 |
+
<p class="text-gray-500">Classmates</p>
|
| 255 |
+
<h3 class="text-2xl font-bold">32</h3>
|
| 256 |
+
</div>
|
| 257 |
+
</div>
|
| 258 |
+
</div>
|
| 259 |
+
</div>
|
| 260 |
+
|
| 261 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8">
|
| 262 |
+
<!-- Recent Courses -->
|
| 263 |
+
<div class="lg:col-span-2 bg-white rounded-lg shadow overflow-hidden">
|
| 264 |
+
<div class="p-6 border-b border-gray-200">
|
| 265 |
+
<h2 class="text-lg font-semibold text-gray-800">Recent Courses</h2>
|
| 266 |
+
</div>
|
| 267 |
+
<div class="divide-y divide-gray-200">
|
| 268 |
+
<div class="p-6 hover:bg-gray-50 cursor-pointer flex items-center">
|
| 269 |
+
<div class="flex-shrink-0">
|
| 270 |
+
<div class="h-12 w-12 rounded-md bg-indigo-500 text-white flex items-center justify-center">
|
| 271 |
+
<i class="fas fa-laptop-code text-xl"></i>
|
| 272 |
+
</div>
|
| 273 |
+
</div>
|
| 274 |
+
<div class="ml-4">
|
| 275 |
+
<h3 class="text-md font-medium text-gray-900">Web Development 101</h3>
|
| 276 |
+
<p class="text-sm text-gray-500">Last accessed: 2 hours ago</p>
|
| 277 |
+
</div>
|
| 278 |
+
<div class="ml-auto">
|
| 279 |
+
<span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Active</span>
|
| 280 |
+
</div>
|
| 281 |
+
</div>
|
| 282 |
+
<div class="p-6 hover:bg-gray-50 cursor-pointer flex items-center">
|
| 283 |
+
<div class="flex-shrink-0">
|
| 284 |
+
<div class="h-12 w-12 rounded-md bg-blue-500 text-white flex items-center justify-center">
|
| 285 |
+
<i class="fas fa-database text-xl"></i>
|
| 286 |
+
</div>
|
| 287 |
+
</div>
|
| 288 |
+
<div class="ml-4">
|
| 289 |
+
<h3 class="text-md font-medium text-gray-900">Database Design</h3>
|
| 290 |
+
<p class="text-sm text-gray-500">Last accessed: 1 day ago</p>
|
| 291 |
+
</div>
|
| 292 |
+
<div class="ml-auto">
|
| 293 |
+
<span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Active</span>
|
| 294 |
+
</div>
|
| 295 |
+
</div>
|
| 296 |
+
<div class="p-6 hover:bg-gray-50 cursor-pointer flex items-center">
|
| 297 |
+
<div class="flex-shrink-0">
|
| 298 |
+
<div class="h-12 w-12 rounded-md bg-purple-500 text-white flex items-center justify-center">
|
| 299 |
+
<i class="fas fa-chart-line text-xl"></i>
|
| 300 |
+
|
| 301 |
+
</html>
|