Spaces:
z
Running

z / index.html
lllerl's picture
Add 3 files
d94c51b verified
Raw History Blame Contribute Delete
64.2 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>zid t9ra - Moroccan Educational 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> /* Custom CSS for elements that can't be done with Tailwind */ .video-card:hover .video-overlay { opacity: 1; } .video-overlay { transition: opacity 0.3s ease; } .sidebar { transition: transform 0.3s ease; } .plan-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); } .teacher-badge { position: absolute; top: -10px; right: -10px; } .language-selector:hover .language-dropdown { display: block; } </style> </head> <body class="bg-gray-50 font-sans"> <!-- Login/Signup Screen --> <div id="login-screen" class="fixed inset-0 bg-white z-50 flex flex-col items-center justify-center p-4"> <div class="w-full max-w-md"> <div class="text-center mb-8"> <img src="https://via.placeholder.com/150x50?text=zid+t9ra" alt="zid t9ra logo" class="mx-auto mb-4"> <h1 class="text-3xl font-bold text-indigo-700">zid t9ra</h1> <p class="text-gray-600 mt-2">The Moroccan educational platform for students</p> </div> <div class="bg-white rounded-lg shadow-lg p-6"> <div class="flex justify-center space-x-4 mb-6"> <button id="login-tab" class="px-4 py-2 font-medium border-b-2 border-indigo-500 text-indigo-600">Login</button> <button id="signup-tab" class="px-4 py-2 font-medium text-gray-500">Sign Up</button> </div> <!-- Login Form --> <div id="login-form"> <button class="w-full flex items-center justify-center gap-2 bg-red-100 text-red-700 py-2 px-4 rounded-lg mb-4"> <i class="fab fa-google"></i> Continue with Google </button> <div class="flex items-center my-4"> <div class="flex-grow border-t border-gray-300"></div> <span class="mx-4 text-gray-500">OR</span> <div class="flex-grow border-t border-gray-300"></div> </div> <div class="mb-4"> <label class="block text-gray-700 mb-2" for="login-email">Email</label> <input type="email" id="login-email" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500"> </div> <div class="mb-6"> <label class="block text-gray-700 mb-2" for="login-password">Password</label> <input type="password" id="login-password" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500"> </div> <button class="w-full bg-indigo-600 text-white py-2 px-4 rounded-lg hover:bg-indigo-700 transition">Login</button> <p class="text-center text-gray-500 mt-4">Forgot password? <a href="#" class="text-indigo-600">Reset</a></p> </div> <!-- Signup Form (hidden by default) --> <div id="signup-form" class="hidden"> <div class="mb-4"> <label class="block text-gray-700 mb-2" for="full-name">Full Name</label> <input type="text" id="full-name" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500"> </div> <div class="mb-4"> <label class="block text-gray-700 mb-2" for="email">Email</label> <input type="email" id="email" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500"> </div> <div class="mb-4"> <label class="block text-gray-700 mb-2" for="education-level">Education Level</label> <select id="education-level" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500"> <option value="">Select your level</option> <option value="primary">Primary (Grades 1-6)</option> <option value="middle">Middle (Grades 1-3)</option> <option value="secondary">Secondary (Grades 1-3)</option> </select> </div> <div class="mb-4"> <label class="block text-gray-700 mb-2" for="phone">Phone Number (Optional)</label> <input type="tel" id="phone" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500"> </div> <div class="mb-6"> <label class="block text-gray-700 mb-2" for="password">Password</label> <input type="password" id="password" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500"> </div> <button class="w-full bg-indigo-600 text-white py-2 px-4 rounded-lg hover:bg-indigo-700 transition">Create Account</button> <p class="text-center text-gray-500 mt-4">Already have an account? <a href="#" class="text-indigo-600 login-link">Login</a></p> </div> </div> </div> </div> <!-- Main App Interface (hidden by default) --> <div id="app-interface" class="hidden"> <!-- Header --> <header class="bg-white shadow-sm sticky top-0 z-40"> <div class="container mx-auto px-4 py-3 flex items-center justify-between"> <div class="flex items-center space-x-4"> <button id="menu-toggle" class="text-gray-600 focus:outline-none"> <i class="fas fa-bars text-xl"></i> </button> <img src="https://via.placeholder.com/150x40?text=zid+t9ra" alt="zid t9ra logo" class="h-8"> </div> <div class="flex items-center space-x-4"> <div class="relative language-selector"> <button class="flex items-center space-x-1 text-gray-700"> <i class="fas fa-globe"></i> <span>English</span> <i class="fas fa-chevron-down text-xs"></i> </button> <div class="language-dropdown absolute right-0 mt-2 w-40 bg-white rounded-md shadow-lg py-1 hidden z-50"> <a href="#" class="block px-4 py-2 text-gray-800 hover:bg-indigo-50">العربية</a> <a href="#" class="block px-4 py-2 text-gray-800 hover:bg-indigo-50">Français</a> <a href="#" class="block px-4 py-2 text-gray-800 hover:bg-indigo-50">English</a> </div> </div> <div class="relative"> <button id="notification-btn" class="text-gray-600 relative"> <i class="fas fa-bell text-xl"></i> <span class="absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">3</span> </button> </div> <div class="relative"> <button id="profile-btn" class="w-8 h-8 rounded-full bg-indigo-100 text-indigo-700 flex items-center justify-center"> <i class="fas fa-user"></i> </button> </div> </div> </div> </header> <!-- Sidebar --> <div id="sidebar" class="sidebar fixed top-0 left-0 h-full w-64 bg-white shadow-lg z-30 transform -translate-x-full md:translate-x-0 transition-transform"> <div class="p-4 border-b"> <div class="flex items-center space-x-3"> <div class="w-10 h-10 rounded-full bg-indigo-100 flex items-center justify-center"> <i class="fas fa-user text-indigo-600"></i> </div> <div> <p class="font-medium">Omar Benjelloun</p> <p class="text-xs text-gray-500">Student</p> </div> </div> </div> <nav class="p-4"> <div class="mb-6"> <p class="text-xs uppercase text-gray-500 font-medium mb-2">Account</p> <div class="flex items-center space-x-2 mb-3"> <div class="w-6 text-center"> <i class="fas fa-user-graduate text-gray-500"></i> </div> <button class="text-gray-700 hover:text-indigo-600">Student Mode</button> </div> <div class="flex items-center space-x-2 mb-3"> <div class="w-6 text-center"> <i class="fas fa-chalkboard-teacher text-gray-500"></i> </div> <button class="text-gray-700 hover:text-indigo-600">Teacher Mode</button> </div> </div> <div class="mb-6"> <p class="text-xs uppercase text-gray-500 font-medium mb-2">Menu</p> <div class="flex items-center space-x-2 mb-3"> <div class="w-6 text-center"> <i class="fas fa-home text-gray-500"></i> </div> <button class="text-gray-700 hover:text-indigo-600">Home</button> </div> <div class="flex items-center space-x-2 mb-3"> <div class="w-6 text-center"> <i class="fas fa-book text-gray-500"></i> </div> <button class="text-gray-700 hover:text-indigo-600">My Courses</button> </div> <div class="flex items-center space-x-2 mb-3"> <div class="w-6 text-center"> <i class="fas fa-heart text-gray-500"></i> </div> <button class="text-gray-700 hover:text-indigo-600">Saved Videos</button> </div> <div class="flex items-center space-x-2 mb-3"> <div class="w-6 text-center"> <i class="fas fa-users text-gray-500"></i> </div> <button class="text-gray-700 hover:text-indigo-600">Teachers</button> </div> </div> <div class="mb-6"> <p class="text-xs uppercase text-gray-500 font-medium mb-2">Settings</p> <div class="flex items-center space-x-2 mb-3"> <div class="w-6 text-center"> <i class="fas fa-cog text-gray-500"></i> </div> <button class="text-gray-700 hover:text-indigo-600">Settings</button> </div> <div class="flex items-center space-x-2 mb-3"> <div class="w-6 text-center"> <i class="fas fa-bell text-gray-500"></i> </div> <button class="text-gray-700 hover:text-indigo-600">Notifications</button> </div> <div class="flex items-center space-x-2 mb-3"> <div class="w-6 text-center"> <i class="fas fa-moon text-gray-500"></i> </div> <button class="text-gray-700 hover:text-indigo-600">Dark Mode</button> </div> </div> <div class="mt-8 pt-4 border-t"> <button class="flex items-center space-x-2 text-red-500"> <div class="w-6 text-center"> <i class="fas fa-sign-out-alt"></i> </div> <span>Logout</span> </button> </div> </nav> </div> <!-- Overlay for sidebar on mobile --> <div id="sidebar-overlay" class="fixed inset-0 bg-black bg-opacity-50 z-20 hidden"></div> <!-- Main Content --> <main class="ml-0 md:ml-64 min-h-screen bg-gray-50"> <div class="container mx-auto px-4 py-6"> <!-- Education Level Tabs --> <div class="flex overflow-x-auto pb-2 mb-6 scrollbar-hide"> <button class="education-tab px-4 py-2 mr-2 rounded-lg font-medium bg-indigo-600 text-white" data-level="all">All Levels</button> <button class="education-tab px-4 py-2 mr-2 rounded-lg font-medium bg-white text-gray-700 border" data-level="primary">Primary</button> <button class="education-tab px-4 py-2 mr-2 rounded-lg font-medium bg-white text-gray-700 border" data-level="middle">Middle</button> <button class="education-tab px-4 py-2 rounded-lg font-medium bg-white text-gray-700 border" data-level="secondary">Secondary</button> </div> <!-- Featured Section --> <div class="mb-8"> <h2 class="text-xl font-bold mb-4">Featured Lessons</h2> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> <!-- Featured Video 1 --> <div class="bg-white rounded-lg overflow-hidden shadow-md video-card"> <div class="relative"> <img src="https://via.placeholder.com/400x225?text=Math+Lesson" alt="Math Lesson" class="w-full h-48 object-cover"> <div class="absolute inset-0 bg-black bg-opacity-30 flex items-center justify-center video-overlay opacity-0"> <button class="bg-white bg-opacity-90 rounded-full w-12 h-12 flex items-center justify-center"> <i class="fas fa-play text-indigo-600 text-xl"></i> </button> </div> <div class="absolute bottom-2 left-2 bg-black bg-opacity-70 text-white text-xs px-2 py-1 rounded"> 15:24 </div> </div> <div class="p-4"> <div class="flex items-start"> <div class="flex-shrink-0 mr-3"> <img src="https://via.placeholder.com/40x40?text=T" alt="Teacher" class="w-10 h-10 rounded-full"> </div> <div> <h3 class="font-medium text-gray-900 mb-1">Mathematics for Grade 5</h3> <p class="text-sm text-gray-600">Mr. Ahmed El Fassi</p> <div class="flex items-center mt-2 text-xs text-gray-500"> <span class="mr-3"><i class="fas fa-eye mr-1"></i> 1.2K</span> <span><i class="fas fa-calendar-alt mr-1"></i> 2 days ago</span> </div> </div> </div> </div> </div> <!-- Featured Video 2 --> <div class="bg-white rounded-lg overflow-hidden shadow-md video-card"> <div class="relative"> <img src="https://via.placeholder.com/400x225?text=Physics+Lesson" alt="Physics Lesson" class="w-full h-48 object-cover"> <div class="absolute inset-0 bg-black bg-opacity-30 flex items-center justify-center video-overlay opacity-0"> <button class="bg-white bg-opacity-90 rounded-full w-12 h-12 flex items-center justify-center"> <i class="fas fa-play text-indigo-600 text-xl"></i> </button> </div> <div class="absolute bottom-2 left-2 bg-black bg-opacity-70 text-white text-xs px-2 py-1 rounded"> 22:45 </div> </div> <div class="p-4"> <div class="flex items-start"> <div class="flex-shrink-0 mr-3"> <img src="https://via.placeholder.com/40x40?text=T" alt="Teacher" class="w-10 h-10 rounded-full"> </div> <div> <h3 class="font-medium text-gray-900 mb-1">Physics: Newton's Laws</h3> <p class="text-sm text-gray-600">Ms. Fatima Zahra</p> <div class="flex items-center mt-2 text-xs text-gray-500"> <span class="mr-3"><i class="fas fa-eye mr-1"></i> 2.4K</span> <span><i class="fas fa-calendar-alt mr-1"></i> 1 week ago</span> </div> </div> </div> </div> </div> <!-- Featured Video 3 --> <div class="bg-white rounded-lg overflow-hidden shadow-md video-card"> <div class="relative"> <img src="https://via.placeholder.com/400x225?text=Arabic+Lesson" alt="Arabic Lesson" class="w-full h-48 object-cover"> <div class="absolute inset-0 bg-black bg-opacity-30 flex items-center justify-center video-overlay opacity-0"> <button class="bg-white bg-opacity-90 rounded-full w-12 h-12 flex items-center justify-center"> <i class="fas fa-play text-indigo-600 text-xl"></i> </button> </div> <div class="absolute bottom-2 left-2 bg-black bg-opacity-70 text-white text-xs px-2 py-1 rounded"> 18:30 </div> <div class="absolute top-2 right-2 bg-indigo-600 text-white text-xs px-2 py-1 rounded-full"> LIVE </div> </div> <div class="p-4"> <div class="flex items-start"> <div class="flex-shrink-0 mr-3"> <img src="https://via.placeholder.com/40x40?text=T" alt="Teacher" class="w-10 h-10 rounded-full"> </div> <div> <h3 class="font-medium text-gray-900 mb-1">Arabic Grammar Basics</h3> <p class="text-sm text-gray-600">Mr. Karim Alami</p> <div class="flex items-center mt-2 text-xs text-gray-500"> <span class="mr-3"><i class="fas fa-eye mr-1"></i> 856</span> <span><i class="fas fa-calendar-alt mr-1"></i> Live Now</span> </div> </div> </div> </div> </div> </div> </div> <!-- Recommended Teachers --> <div class="mb-8"> <h2 class="text-xl font-bold mb-4">Recommended Teachers</h2> <div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4"> <!-- Teacher 1 --> <div class="bg-white rounded-lg p-4 shadow-sm text-center relative"> <div class="relative mx-auto w-16 h-16 mb-3"> <img src="https://via.placeholder.com/64x64?text=T1" alt="Teacher" class="w-full h-full rounded-full object-cover"> <div class="teacher-badge bg-indigo-100 text-indigo-600 rounded-full w-6 h-6 flex items-center justify-center"> <i class="fas fa-check text-xs"></i> </div> </div> <h3 class="font-medium text-gray-900 mb-1">Mr. Ahmed</h3> <p class="text-xs text-gray-600 mb-2">Mathematics</p> <div class="flex justify-center items-center text-yellow-400 text-xs mb-2"> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star-half-alt"></i> <span class="text-gray-600 ml-1">4.7</span> </div> <button class="w-full bg-indigo-50 text-indigo-600 py-1 px-3 rounded-full text-xs font-medium hover:bg-indigo-100 transition">Follow</button> </div> <!-- Teacher 2 --> <div class="bg-white rounded-lg p-4 shadow-sm text-center relative"> <div class="relative mx-auto w-16 h-16 mb-3"> <img src="https://via.placeholder.com/64x64?text=T2" alt="Teacher" class="w-full h-full rounded-full object-cover"> </div> <h3 class="font-medium text-gray-900 mb-1">Ms. Fatima</h3> <p class="text-xs text-gray-600 mb-2">Physics</p> <div class="flex justify-center items-center text-yellow-400 text-xs mb-2"> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <span class="text-gray-600 ml-1">5.0</span> </div> <button class="w-full bg-indigo-50 text-indigo-600 py-1 px-3 rounded-full text-xs font-medium hover:bg-indigo-100 transition">Follow</button> </div> <!-- Teacher 3 --> <div class="bg-white rounded-lg p-4 shadow-sm text-center relative"> <div class="relative mx-auto w-16 h-16 mb-3"> <img src="https://via.placeholder.com/64x64?text=T3" alt="Teacher" class="w-full h-full rounded-full object-cover"> <div class="teacher-badge bg-indigo-100 text-indigo-600 rounded-full w-6 h-6 flex items-center justify-center"> <i class="fas fa-check text-xs"></i> </div> </div> <h3 class="font-medium text-gray-900 mb-1">Mr. Karim</h3> <p class="text-xs text-gray-600 mb-2">Arabic</p> <div class="flex justify-center items-center text-yellow-400 text-xs mb-2"> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <span class="text-gray-600 ml-1">4.9</span> </div> <button class="w-full bg-indigo-50 text-indigo-600 py-1 px-3 rounded-full text-xs font-medium hover:bg-indigo-100 transition">Follow</button> </div> <!-- Teacher 4 --> <div class="bg-white rounded-lg p-4 shadow-sm text-center relative"> <div class="relative mx-auto w-16 h-16 mb-3"> <img src="https://via.placeholder.com/64x64?text=T4" alt="Teacher" class="w-full h-full rounded-full object-cover"> </div> <h3 class="font-medium text-gray-900 mb-1">Ms. Amina</h3> <p class="text-xs text-gray-600 mb-2">French</p> <div class="flex justify-center items-center text-yellow-400 text-xs mb-2"> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <span class="text-gray-600 ml-1">4.8</span> </div> <button class="w-full bg-indigo-50 text-indigo-600 py-1 px-3 rounded-full text-xs font-medium hover:bg-indigo-100 transition">Follow</button> </div> <!-- Teacher 5 --> <div class="bg-white rounded-lg p-4 shadow-sm text-center relative"> <div class="relative mx-auto w-16 h-16 mb-3"> <img src="https://via.placeholder.com/64x64?text=T5" alt="Teacher" class="w-full h-full rounded-full object-cover"> <div class="teacher-badge bg-indigo-100 text-indigo-600 rounded-full w-6 h-6 flex items-center justify-center"> <i class="fas fa-check text-xs"></i> </div> </div> <h3 class="font-medium text-gray-900 mb-1">Mr. Youssef</h3> <p class="text-xs text-gray-600 mb-2">History</p> <div class="flex justify-center items-center text-yellow-400 text-xs mb-2"> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star-half-alt"></i> <span class="text-gray-600 ml-1">4.6</span> </div> <button class="w-full bg-indigo-50 text-indigo-600 py-1 px-3 rounded-full text-xs font-medium hover:bg-indigo-100 transition">Follow</button> </div> </div> </div> <!-- Recent Videos --> <div class="mb-8"> <h2 class="text-xl font-bold mb-4">Recent Videos</h2> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4"> <!-- Video 1 --> <div class="bg-white rounded-lg overflow-hidden shadow-sm"> <div class="relative"> <img src="https://via.placeholder.com/300x169?text=Math" alt="Math" class="w-full h-40 object-cover"> <div class="absolute bottom-2 left-2 bg-black bg-opacity-70 text-white text-xs px-2 py-1 rounded"> 12:34 </div> </div> <div class="p-3"> <h3 class="font-medium text-gray-900 text-sm mb-1">Algebra Basics</h3> <p class="text-xs text-gray-600 mb-2">Mr. Ahmed El Fassi</p> <div class="flex items-center text-xs text-gray-500"> <span class="mr-3"><i class="fas fa-eye mr-1"></i> 1.1K</span> <span><i class="fas fa-calendar-alt mr-1"></i> 3 days ago</span> </div> </div> </div> <!-- Video 2 --> <div class="bg-white rounded-lg overflow-hidden shadow-sm"> <div class="relative"> <img src="https://via.placeholder.com/300x169?text=Physics" alt="Physics" class="w-full h-40 object-cover"> <div class="absolute bottom-2 left-2 bg-black bg-opacity-70 text-white text-xs px-2 py-1 rounded"> 18:45 </div> </div> <div class="p-3"> <h3 class="font-medium text-gray-900 text-sm mb-1">Thermodynamics</h3> <p class="text-xs text-gray-600 mb-2">Ms. Fatima Zahra</p> <div class="flex items-center text-xs text-gray-500"> <span class="mr-3"><i class="fas fa-eye mr-1"></i> 890</span> <span><i class="fas fa-calendar-alt mr-1"></i> 5 days ago</span> </div> </div> </div> <!-- Video 3 --> <div class="bg-white rounded-lg overflow-hidden shadow-sm"> <div class="relative"> <img src="https://via.placeholder.com/300x169?text=Arabic" alt="Arabic" class="w-full h-40 object-cover"> <div class="absolute bottom-2 left-2 bg-black bg-opacity-70 text-white text-xs px-2 py-1 rounded"> 22:15 </div> </div> <div class="p-3"> <h3 class="font-medium text-gray-900 text-sm mb-1">Poetry Analysis</h3> <p class="text-xs text-gray-600 mb-2">Mr. Karim Alami</p> <div class="flex items-center text-xs text-gray-500"> <span class="mr-3"><i class="fas fa-eye mr-1"></i> 1.5K</span> <span><i class="fas fa-calendar-alt mr-1"></i> 1 week ago</span> </div> </div> </div> <!-- Video 4 --> <div class="bg-white rounded-lg overflow-hidden shadow-sm"> <div class="relative"> <img src="https://via.placeholder.com/300x169?text=French" alt="French" class="w-full h-40 object-cover"> <div class="absolute bottom-2 left-2 bg-black bg-opacity-70 text-white text-xs px-2 py-1 rounded"> 14:30 </div> </div> <div class="p-3"> <h3 class="font-medium text-gray-900 text-sm mb-1">French Grammar</h3> <p class="text-xs text-gray-600 mb-2">Ms. Amina</p> <div class="flex items-center text-xs text-gray-500"> <span class="mr-3"><i class="fas fa-eye mr-1"></i> 720</span> <span><i class="fas fa-calendar-alt mr-1"></i> 2 weeks ago</span> </div> </div> </div> </div> </div> </div> </main> <!-- Teacher Mode Modal (hidden by default) --> <div id="teacher-modal" class="fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center hidden"> <div class="bg-white rounded-lg shadow-xl w-full max-w-2xl max-h-screen overflow-y-auto"> <div class="p-6"> <div class="flex justify-between items-center mb-4"> <h2 class="text-xl font-bold">Become a Teacher</h2> <button id="close-teacher-modal" class="text-gray-500 hover:text-gray-700"> <i class="fas fa-times"></i> </button> </div> <form> <div class="mb-4"> <label class="block text-gray-700 mb-2" for="teacher-name">Full Name</label> <input type="text" id="teacher-name" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500"> </div> <div class="mb-4"> <label class="block text-gray-700 mb-2" for="teacher-field">Field of Teaching</label> <select id="teacher-field" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500"> <option value="">Select your field</option> <option value="math">Mathematics</option> <option value="physics">Physics</option> <option value="chemistry">Chemistry</option> <option value="biology">Biology</option> <option value="arabic">Arabic</option> <option value="french">French</option> <option value="english">English</option> <option value="history">History</option> <option value="geography">Geography</option> <option value="philosophy">Philosophy</option> </select> </div> <div class="mb-4"> <label class="block text-gray-700 mb-2" for="teacher-level">Teaching Level</label> <select id="teacher-level" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500"> <option value="">Select level</option> <option value="primary">Primary (Grades 1-6)</option> <option value="middle">Middle (Grades 1-3)</option> <option value="secondary">Secondary (Grades 1-3)</option> </select> </div> <div class="mb-4"> <label class="block text-gray-700 mb-2">Profile Image</label> <div class="border-2 border-dashed border-gray-300 rounded-lg p-4 text-center"> <div class="flex flex-col items-center justify-center"> <i class="fas fa-cloud-upload-alt text-3xl text-gray-400 mb-2"></i> <p class="text-sm text-gray-500">Drag & drop your image here or click to browse</p> <input type="file" class="hidden"> </div> </div> </div> <div class="mb-4"> <label class="block text-gray-700 mb-2">Teaching Certificate (Optional)</label> <div class="border-2 border-dashed border-gray-300 rounded-lg p-4 text-center"> <div class="flex flex-col items-center justify-center"> <i class="fas fa-file-alt text-3xl text-gray-400 mb-2"></i> <p class="text-sm text-gray-500">Upload your teaching certificate if available</p> <input type="file" class="hidden"> </div> </div> </div> <div class="mb-6"> <label class="block text-gray-700 mb-2" for="bank-details">Bank Details for Payments</label> <input type="text" id="bank-details" placeholder="Bank account number" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 mb-2"> <input type="text" placeholder="Bank name" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500"> </div> <div class="flex justify-end space-x-3"> <button type="button" id="cancel-teacher" class="px-4 py-2 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50">Cancel</button> <button type="submit" class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700">Submit Application</button> </div> </form> </div> </div> </div> <!-- Subscription Plans Modal (hidden by default) --> <div id="subscription-modal" class="fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center hidden"> <div class="bg-white rounded-lg shadow-xl w-full max-w-4xl max-h-screen overflow-y-auto"> <div class="p-6"> <div class="flex justify-between items-center mb-6"> <h2 class="text-2xl font-bold">Choose Your Subscription Plan</h2> <button id="close-subscription-modal" class="text-gray-500 hover:text-gray-700"> <i class="fas fa-times"></i> </button> </div> <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6"> <!-- Plan C --> <div class="plan-card bg-white border border-gray-200 rounded-lg p-6 transition duration-300"> <div class="text-center mb-4"> <span class="inline-block px-3 py-1 bg-indigo-100 text-indigo-600 rounded-full text-xs font-semibold">BASIC</span> </div> <h3 class="text-center text-2xl font-bold mb-2">Plan C</h3> <p class="text-center text-gray-600 mb-4">Perfect for beginners</p> <div class="text-center mb-6"> <span class="text-4xl font-bold">99 DH</span> <span class="text-gray-500">/month</span> </div> <ul class="space-y-3 mb-6"> <li class="flex items-center"> <i class="fas fa-check text-green-500 mr-2"></i> <span>Full video access</span> </li> <li class="flex items-center"> <i class="fas fa-check text-green-500 mr-2"></i> <span>Live sessions</span> </li> <li class="flex items-center"> <i class="fas fa-check text-green-500 mr-2"></i> <span>Comment every 30 seconds</span> </li> <li class="flex items-center text-gray-400"> <i class="fas fa-times text-gray-300 mr-2"></i> <span>Highlighted comments</span> </li> <li class="flex items-center text-gray-400"> <i class="fas fa-times text-gray-300 mr-2"></i> <span>Direct teacher communication</span> </li> </ul> <button class="w-full bg-indigo-600 text-white py-2 px-4 rounded-lg hover:bg-indigo-700 transition">Choose Plan</button> </div> <!-- Plan B --> <div class="plan-card bg-white border-2 border-indigo-500 rounded-lg p-6 transition duration-300 transform scale-105 relative"> <div class="absolute top-0 right-0 bg-indigo-600 text-white text-xs font-bold px-2 py-1 rounded-bl rounded-tr">POPULAR</div> <div class="text-center mb-4"> <span class="inline-block px-3 py-1 bg-indigo-100 text-indigo-600 rounded-full text-xs font-semibold">PLUS</span> </div> <h3 class="text-center text-2xl font-bold mb-2">Plan B</h3> <p class="text-center text-gray-600 mb-4">For serious learners</p> <div class="text-center mb-6"> <span class="text-4xl font-bold">199 DH</span> <span class="text-gray-500">/month</span> </div> <ul class="space-y-3 mb-6"> <li class="flex items-center"> <i class="fas fa-check text-green-500 mr-2"></i> <span>All Plan C features</span> </li> <li class="flex items-center"> <i class="fas fa-check text-green-500 mr-2"></i> <span>Highlighted comments</span> </li> <li class="flex items-center"> <i class="fas fa-check text-green-500 mr-2"></i> <span>Direct communication with teacher</span> </li> <li class="flex items-center"> <i class="fas fa-check text-green-500 mr-2"></i> <span>Comment every 15 seconds</span> </li> <li class="flex items-center text-gray-400"> <i class="fas fa-times text-gray-300 mr-2"></i> <span>Premium tools (coming soon)</span> </li> </ul> <button class="w-full bg-indigo-600 text-white py-2 px-4 rounded-lg hover:bg-indigo-700 transition">Choose Plan</button> </div> <!-- Plan A --> <div class="plan-card bg-white border border-gray-200 rounded-lg p-6 transition duration-300 opacity-75 relative"> <div class="text-center mb-4"> <span class="inline-block px-3 py-1 bg-gray-200 text-gray-600 rounded-full text-xs font-semibold">COMING SOON</span> </div> <h3 class="text-center text-2xl font-bold mb-2">Plan A</h3> <p class="text-center text-gray-600 mb-4">Premium experience</p> <div class="text-center mb-6"> <span class="text-4xl font-bold">299 DH</span> <span class="text-gray-500">/month</span> </div> <ul class="space-y-3 mb-6"> <li class="flex items-center"> <i class="fas fa-check text-green-500 mr-2"></i> <span>All Plan B features</span> </li> <li class="flex items-center"> <i class="fas fa-check text-green-500 mr-2"></i> <span>Premium access</span> </li> <li class="flex items-center"> <i class="fas fa-check text-green-500 mr-2"></i> <span>Exclusive tools</span> </li> <li class="flex items-center"> <i class="fas fa-check text-green-500 mr-2"></i> <span>Priority support</span> </li> <li class="flex items-center"> <i class="fas fa-check text-green-500 mr-2"></i> <span>Special badges</span> </li> </ul> <button class="w-full bg-gray-300 text-gray-600 py-2 px-4 rounded-lg cursor-not-allowed">Coming Soon</button> </div> </div> <div class="bg-blue-50 border-l-4 border-blue-500 p-4 mb-6"> <div class="flex"> <div class="flex-shrink-0"> <i class="fas fa-info-circle text-blue-500"></i> </div> <div class="ml-3"> <p class="text-sm text-blue-700"> All plans automatically renew after one month. You can cancel anytime before the renewal date. </p> </div> </div> </div> </div> </div> </div> <!-- Video Player Modal (hidden by default) --> <div id="video-modal" class="fixed inset-0 bg-black z-50 flex items-center justify-center hidden"> <div class="relative w-full max-w-6xl"> <button id="close-video-modal" class="absolute top-4 right-4 z-50 text-white bg-black bg-opacity-50 rounded-full p-2 hover:bg-opacity-70"> <i class="fas fa-times"></i> </button> <div class="aspect-w-16 aspect-h-9 bg-black"> <div class="w-full h-full flex items-center justify-center"> <i class="fas fa-play text-white text-5xl"></i> </div> </div> <div class="bg-white p-4"> <div class="flex items-start mb-4"> <div class="flex-shrink-0 mr-3"> <img src="https://via.placeholder.com/48x48?text=T" alt="Teacher" class="w-12 h-12 rounded-full"> </div> <div class="flex-grow"> <h3 class="text-lg font-bold">Mathematics for Grade 5: Algebra Basics</h3> <p class="text-sm text-gray-600">Mr. Ahmed El Fassi • 12K subscribers</p> <div class="flex items-center mt-2 space-x-4"> <button class="flex items-center space-x-1 text-gray-700"> <i class="far fa-thumbs-up"></i> <span>1.2K</span> </button> <button class="flex items-center space-x-1 text-gray-700"> <i class="far fa-thumbs-down"></i> <span>15</span> </button> <button class="flex items-center space-x-1 text-gray-700"> <i class="fas fa-share"></i> <span>Share</span> </button> <button class="flex items-center space-x-1 text-gray-700"> <i class="far fa-bookmark"></i> <span>Save</span> </button> </div> </div> <div> <button class="bg-red-600 text-white px-4 py-1 rounded-full text-sm font-medium flex items-center"> <i class="fas fa-plus mr-1"></i> <span>Subscribe</span> </button> </div> </div> <div class="bg-gray-100 rounded-lg p-4 mb-4"> <div class="flex justify-between items-center mb-2"> <div> <span class="font-medium">12,345 views</span> <span class="text-gray-500 mx-2">•</span> <span class="text-gray-500">3 days ago</span> </div> <button class="text-sm text-indigo-600 font-medium">Show more</button> </div> <p class="text-sm text-gray-800"> In this lesson, we cover the basics of algebra including variables, expressions, and simple equations. This is perfect for grade 5 students who are just starting with algebra concepts. </p> </div> <div class="mb-4"> <div class="flex items-center justify-between mb-3"> <h4 class="font-medium">Comments (24)</h4> <button class="text-sm text-gray-500 flex items-center"> <i class="fas fa-sort mr-1"></i> <span>Sort by</span> </button> </div> <div class="flex mb-4"> <div class="flex-shrink-0 mr-3"> <img src="https://via.placeholder.com/32x32?text=U" alt="User" class="w-8 h-8 rounded-full"> </div> <div class="flex-grow"> <input type="text" placeholder="Add a comment..." class="w-full px-3 py-2 border-b border-gray-300 focus:outline-none focus:border-indigo-500"> </div> </div> <div class="space-y-4"> <!-- Comment 1 --> <div class="flex"> <div class="flex-shrink-0 mr-3"> <img src="https://via.placeholder.com/32x32?text=U1" alt="User" class="w-8 h-8 rounded-full"> </div> <div> <div class="bg-gray-100 rounded-lg p-3"> <p class="font-medium text-sm">Youssef M.</p> <p class="text-sm">Thanks teacher! This was very helpful for my exam preparation.</p> </div> <div class="flex items-center mt-1 space-x-4 text-xs text-gray-500"> <button>Like (12)</button> <button>Reply</button> <span>2 days ago</span> </div> </div> </div> <!-- Comment 2 --> <div class="flex"> <div class="flex-shrink-0 mr-3"> <img src="https://via.placeholder.com/32x32?text=U2" alt="User" class="w-8 h-8 rounded-full"> </div> <div> <div class="bg-gray-100 rounded-lg p-3"> <p class="font-medium text-sm">Amina K.</p> <p class="text-sm">Can you make a video about solving word problems next?</p> </div> <div class="flex items-center mt-1 space-x-4 text-xs text-gray-500"> <button>Like (5)</button> <button>Reply</button> <span>1 day ago</span> </div> <!-- Reply --> <div class="flex mt-3 ml-4"> <div class="flex-shrink-0 mr-3"> <img src="https://via.placeholder.com/32x32?text=T" alt="Teacher" class="w-8 h-8 rounded-full"> </div> <div> <div class="bg-indigo-50 rounded-lg p-3"> <p class="font-medium text-sm">Mr. Ahmed El Fassi</p> <p class="text-sm">Sure Amina! I'll cover that in the next video.</p> </div> <div class="flex items-center mt-1 space-x-4 text-xs text-gray-500"> <button>Like (8)</button> <button>Reply</button> <span>20 hours ago</span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <script> // DOM Elements const loginScreen = document.getElementById('login-screen'); const appInterface = document.getElementById('app-interface'); const loginTab = document.getElementById('login-tab'); const signupTab = document.getElementById('signup-tab'); const loginForm = document.getElementById('login-form'); const signupForm = document.getElementById('signup-form'); const loginLinks = document.querySelectorAll('.login-link'); const menuToggle = document.getElementById('menu-toggle'); const sidebar = document.getElementById('sidebar'); const sidebarOverlay = document.getElementById('sidebar-overlay'); const teacherModal = document.getElementById('teacher-modal'); const closeTeacherModal = document.getElementById('close-teacher-modal'); const cancelTeacher = document.getElementById('cancel-teacher'); const subscriptionModal = document.getElementById('subscription-modal'); const closeSubscriptionModal = document.getElementById('close-subscription-modal'); const videoModal = document.getElementById('video-modal'); const closeVideoModal = document.getElementById('close-video-modal'); const educationTabs = document.querySelectorAll('.education-tab'); const videoCards = document.querySelectorAll('.video-card'); const planCards = document.querySelectorAll('.plan-card'); // Simulate login (for demo purposes) document.querySelector('#login-form button[type="button"]').addEventListener('click', function() { loginScreen.classList.add('hidden'); appInterface.classList.remove('hidden'); }); // Tab switching between login and signup loginTab.addEventListener('click', function() { loginTab.classList.add('border-indigo-500', 'text-indigo-600'); loginTab.classList.remove('text-gray-500'); signupTab.classList.remove('border-indigo-500', 'text-indigo-600'); signupTab.classList.add('text-gray-500'); loginForm.classList.remove('hidden'); signupForm.classList.add('hidden'); }); signupTab.addEventListener('click', function() { signupTab.classList.add('border-indigo-500', 'text-indigo-600'); signupTab.classList.remove('text-gray-500'); loginTab.classList.remove('border-indigo-500', 'text-indigo-600'); loginTab.classList.add('text-gray-500'); signupForm.classList.remove('hidden'); loginForm.classList.add('hidden'); }); // Login link in signup form loginLinks.forEach(link => { link.addEventListener('click', function(e) { e.preventDefault(); loginTab.click(); }); }); // Sidebar toggle menuToggle.addEventListener('click', function() { sidebar.classList.remove('-translate-x-full'); sidebarOverlay.classList.remove('hidden'); }); sidebarOverlay.addEventListener('click', function() { sidebar.classList.add('-translate-x-full'); sidebarOverlay.classList.add('hidden'); }); // Teacher modal document.querySelector('nav .fa-chalkboard-teacher').parentElement.addEventListener('click', function() { teacherModal.classList.remove('hidden'); }); closeTeacherModal.addEventListener('click', function() { teacherModal.classList.add('hidden'); }); cancelTeacher.addEventListener('click', function() { teacherModal.classList.add('hidden'); }); // Subscription modal document.querySelector('.fa-users').parentElement.addEventListener('click', function() { subscriptionModal.classList.remove('hidden'); }); closeSubscriptionModal.addEventListener('click', function() { subscriptionModal.classList.add('hidden'); }); // Video modal videoCards.forEach(card => { card.addEventListener('click', function() { videoModal.classList.remove('hidden'); }); }); closeVideoModal.addEventListener('click', function() { videoModal.classList.add('hidden'); }); // Education level tabs educationTabs.forEach(tab => { tab.addEventListener('click', function() { // Remove active class from all tabs educationTabs.forEach(t => { t.classList.remove('bg-indigo-600', 'text-white'); t.classList.add('bg-white', 'text-gray-700', 'border'); }); // Add active class to clicked tab this.classList.add('bg-indigo-600', 'text-white'); this.classList.remove('bg-white', 'text-gray-700', 'border'); // Here you would filter videos based on the selected level // For demo, we're just logging the selected level console.log('Selected level:', this.dataset.level); }); }); // Plan cards hover effect planCards.forEach(card => { card.addEventListener('mouseenter', function() { if (!this.classList.contains('opacity-75')) { this.classList.add('shadow-lg'); } }); card.addEventListener('mouseleave', function() { this.classList.remove('shadow-lg'); }); }); // Language selector dropdown const languageSelector = document.querySelector('.language-selector'); const languageDropdown = document.querySelector('.language-dropdown'); languageSelector.addEventListener('click', function(e) { e.stopPropagation(); languageDropdown.classList.toggle('hidden'); }); document.addEventListener('click', function() { languageDropdown.classList.add('hidden'); }); </script> <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=lllerl/z" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> </html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>zid t9ra - Moroccan Educational 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>
/* Custom CSS for elements that can't be done with Tailwind */
.video-card:hover .video-overlay {
opacity: 1;
}
.video-overlay {
transition: opacity 0.3s ease;
}
.sidebar {
transition: transform 0.3s ease;
}
.plan-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.teacher-badge {
position: absolute;
top: -10px;
right: -10px;
}
.language-selector:hover .language-dropdown {
display: block;
}
</style>
</head>
<body class="bg-gray-50 font-sans">
<!-- Login/Signup Screen -->
<div id="login-screen" class="fixed inset-0 bg-white z-50 flex flex-col items-center justify-center p-4">
<div class="w-full max-w-md">
<div class="text-center mb-8">
<img src="https://via.placeholder.com/150x50?text=zid+t9ra" alt="zid t9ra logo" class="mx-auto mb-4">
<h1 class="text-3xl font-bold text-indigo-700">zid t9ra</h1>
<p class="text-gray-600 mt-2">The Moroccan educational platform for students</p>
</div>
<div class="bg-white rounded-lg shadow-lg p-6">
<div class="flex justify-center space-x-4 mb-6">
<button id="login-tab" class="px-4 py-2 font-medium border-b-2 border-indigo-500 text-indigo-600">Login</button>
<button id="signup-tab" class="px-4 py-2 font-medium text-gray-500">Sign Up</button>
</div>
<!-- Login Form -->
<div id="login-form">
<button class="w-full flex items-center justify-center gap-2 bg-red-100 text-red-700 py-2 px-4 rounded-lg mb-4">
<i class="fab fa-google"></i> Continue with Google
</button>
<div class="flex items-center my-4">
<div class="flex-grow border-t border-gray-300"></div>
<span class="mx-4 text-gray-500">OR</span>
<div class="flex-grow border-t border-gray-300"></div>
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2" for="login-email">Email</label>
<input type="email" id="login-email" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<div class="mb-6">
<label class="block text-gray-700 mb-2" for="login-password">Password</label>
<input type="password" id="login-password" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<button class="w-full bg-indigo-600 text-white py-2 px-4 rounded-lg hover:bg-indigo-700 transition">Login</button>
<p class="text-center text-gray-500 mt-4">Forgot password? <a href="#" class="text-indigo-600">Reset</a></p>
</div>
<!-- Signup Form (hidden by default) -->
<div id="signup-form" class="hidden">
<div class="mb-4">
<label class="block text-gray-700 mb-2" for="full-name">Full Name</label>
<input type="text" id="full-name" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2" for="email">Email</label>
<input type="email" id="email" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2" for="education-level">Education Level</label>
<select id="education-level" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
<option value="">Select your level</option>
<option value="primary">Primary (Grades 1-6)</option>
<option value="middle">Middle (Grades 1-3)</option>
<option value="secondary">Secondary (Grades 1-3)</option>
</select>
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2" for="phone">Phone Number (Optional)</label>
<input type="tel" id="phone" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<div class="mb-6">
<label class="block text-gray-700 mb-2" for="password">Password</label>
<input type="password" id="password" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<button class="w-full bg-indigo-600 text-white py-2 px-4 rounded-lg hover:bg-indigo-700 transition">Create Account</button>
<p class="text-center text-gray-500 mt-4">Already have an account? <a href="#" class="text-indigo-600 login-link">Login</a></p>