Spaces:
Running

dashboard / index.html
MDesign28's picture
Add 2 files
547ab30 verified
Raw History Blame Contribute Delete
65.2 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Notes & AI Videos | AI Classroom</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"> <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Inter:wght@400;500&display=swap" rel="stylesheet"> <style> :root { --primary: #A6C8FF; --secondary: #CABDFF; --text: #1E293B; } body { font-family: 'Inter', sans-serif; color: var(--text); background-color: #F8FAFC; } h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; } .sidebar { transition: all 0.3s ease; } .card { transition: transform 0.2s ease, box-shadow 0.2s ease; } .card:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); } .progress-ring__circle { transition: stroke-dashoffset 0.5s ease; transform: rotate(-90deg); transform-origin: 50% 50%; } .tab-content { display: none; } .tab-content.active { display: block; animation: fadeIn 0.3s ease; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .upload-area { border: 2px dashed #CBD5E0; transition: all 0.2s ease; } .upload-area:hover { border-color: #A6C8FF; background-color: #F0F7FF; } .upload-area.dragover { border-color: #4F46E5; background-color: #E0E7FF; } </style> </head> <body class="flex h-screen overflow-hidden"> <!-- Sidebar Navigation --> <div class="sidebar w-64 bg-white border-r border-gray-200 flex flex-col flex-shrink-0"> <div class="flex items-center justify-center h-16 px-4 border-b border-gray-200"> <div class="flex items-center"> <i class="fas fa-brain text-2xl mr-2 text-indigo-500"></i> <span class="text-xl font-bold">AI Classroom</span> </div> </div> <div class="flex-1 overflow-y-auto"> <nav class="px-4 py-6"> <div class="space-y-1"> <a href="#" class="flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700 hover:bg-gray-100"> <i class="fas fa-home mr-3 text-blue-500"></i> Dashboard </a> <a href="#" class="flex items-center px-3 py-2 text-sm font-medium rounded-md bg-blue-50 text-blue-700"> <i class="fas fa-file-alt mr-3 text-purple-500"></i> Notes & AI Videos </a> <a href="#" class="flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700 hover:bg-gray-100"> <i class="fas fa-clipboard-check mr-3 text-teal-500"></i> Exams & AI Exam Mode </a> <a href="#" class="flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700 hover:bg-gray-100"> <i class="fas fa-calendar-alt mr-3 text-indigo-500"></i> Study Planner </a> <a href="#" class="flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700 hover:bg-gray-100"> <i class="fas fa-lightbulb mr-3 text-yellow-500"></i> AI Explanation Generator </a> <a href="#" class="flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700 hover:bg-gray-100"> <i class="fas fa-chart-line mr-3 text-green-500"></i> Performance Tracker </a> <a href="#" class="flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700 hover:bg-gray-100"> <i class="fas fa-trophy mr-3 text-amber-500"></i> Rewards </a> <a href="#" class="flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700 hover:bg-gray-100"> <i class="fas fa-cog mr-3 text-gray-500"></i> Settings </a> </div> </nav> </div> <div class="p-4 border-t border-gray-200"> <div class="flex items-center"> <img class="w-10 h-10 rounded-full" src="https://randomuser.me/api/portraits/women/44.jpg" alt="User profile"> <div class="ml-3"> <p class="text-sm font-medium">Sarah Johnson</p> <p class="text-xs text-gray-500">Premium Plan</p> </div> </div> </div> </div> <!-- Main Content Area --> <div class="flex-1 flex flex-col overflow-hidden"> <!-- Top Navigation --> <header class="bg-white border-b border-gray-200"> <div class="flex items-center justify-between px-6 py-3"> <div class="flex items-center"> <button class="mr-4 text-gray-500 focus:outline-none lg:hidden"> <i class="fas fa-bars"></i> </button> <h1 class="text-xl font-bold">Notes & AI Videos</h1> </div> <div class="flex items-center space-x-4"> <button class="p-2 text-gray-500 rounded-full hover:bg-gray-100"> <i class="fas fa-bell"></i> <span class="sr-only">Notifications</span> </button> <div class="relative"> <button id="user-menu-button" class="flex items-center focus:outline-none"> <span class="sr-only">Open user menu</span> <img class="w-8 h-8 rounded-full" src="https://randomuser.me/api/portraits/women/44.jpg" alt="User menu"> </button> <!-- Dropdown menu --> <div id="user-dropdown" class="hidden absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-10"> <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Your Profile</a> <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Settings</a> <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Sign out</a> </div> </div> </div> </div> </header> <!-- Main Content --> <main class="flex-1 overflow-y-auto p-6 bg-gray-50"> <!-- Tabs Navigation --> <div class="flex border-b border-gray-200 mb-6"> <button onclick="openTab(event, 'text-to-video')" class="tab-button px-4 py-2 text-sm font-medium rounded-t-lg bg-blue-100 text-blue-700"> Text to Video </button> <button onclick="openTab(event, 'pdf-to-video')" class="tab-button px-4 py-2 text-sm font-medium rounded-t-lg text-gray-700 hover:bg-gray-100"> PDF to Video </button> <button onclick="openTab(event, 'my-notes')" class="tab-button px-4 py-2 text-sm font-medium rounded-t-lg text-gray-700 hover:bg-gray-100"> My Notes </button> <button onclick="openTab(event, 'video-library')" class="tab-button px-4 py-2 text-sm font-medium rounded-t-lg text-gray-700 hover:bg-gray-100"> Video Library </button> </div> <!-- Text to Video Tab --> <div id="text-to-video" class="tab-content active"> <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8"> <!-- Input Section --> <div class="card bg-white rounded-xl shadow-sm p-6"> <h2 class="text-xl font-bold mb-4">Create AI Video from Text</h2> <div class="mb-4"> <label for="subject" class="block text-sm font-medium text-gray-700 mb-1">Subject</label> <select id="subject" class="w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500"> <option>Physics</option> <option>Mathematics</option> <option>Chemistry</option> <option>Biology</option> <option>History</option> <option>Literature</option> </select> </div> <div class="mb-4"> <label for="topic" class="block text-sm font-medium text-gray-700 mb-1">Topic</label> <input type="text" id="topic" class="w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500" placeholder="E.g. Quantum Mechanics, Calculus, etc."> </div> <div class="mb-4"> <label for="notes-text" class="block text-sm font-medium text-gray-700 mb-1">Your Notes</label> <textarea id="notes-text" rows="10" class="w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500" placeholder="Paste or type your notes here..."></textarea> </div> <div class="flex justify-between items-center"> <div> <label class="inline-flex items-center"> <input type="checkbox" class="rounded border-gray-300 text-blue-600 shadow-sm focus:border-blue-300 focus:ring focus:ring-offset-0 focus:ring-blue-200 focus:ring-opacity-50"> <span class="ml-2 text-sm text-gray-600">Include quiz questions</span> </label> </div> <button class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2"> Generate Video </button> </div> </div> <!-- Output Preview Section --> <div class="card bg-white rounded-xl shadow-sm p-6"> <h2 class="text-xl font-bold mb-4">Video Preview</h2> <div class="bg-gray-100 rounded-lg aspect-video flex items-center justify-center mb-4"> <div class="text-center"> <i class="fas fa-play-circle text-5xl text-gray-400 mb-2"></i> <p class="text-gray-600">Your generated video will appear here</p> </div> </div> <div class="mb-4"> <label class="block text-sm font-medium text-gray-700 mb-1">Video Summary</label> <div class="bg-gray-50 p-4 rounded-md"> <p class="text-gray-600 italic">No summary available yet. Generate a video to see the AI-generated summary.</p> </div> </div> <div class="flex space-x-3"> <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50" disabled> <i class="fas fa-download mr-1"></i> Download </button> <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50" disabled> <i class="fas fa-save mr-1"></i> Save to Library </button> <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50" disabled> <i class="fas fa-share-alt mr-1"></i> Share </button> </div> </div> </div> <!-- Recent Text-to-Video Conversions --> <div class="card bg-white rounded-xl shadow-sm p-6"> <div class="flex items-center justify-between mb-4"> <h2 class="text-xl font-bold">Recent Text-to-Video Conversions</h2> <button class="text-sm font-medium text-blue-600 hover:text-blue-800">View all</button> </div> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"> <div class="border rounded-lg overflow-hidden hover:shadow-md transition-shadow"> <div class="bg-gray-100 aspect-video flex items-center justify-center"> <i class="fas fa-play-circle text-4xl text-gray-400"></i> </div> <div class="p-3"> <h3 class="font-medium">Quantum Mechanics Basics</h3> <p class="text-sm text-gray-500">Physics • 2 days ago</p> </div> </div> <div class="border rounded-lg overflow-hidden hover:shadow-md transition-shadow"> <div class="bg-gray-100 aspect-video flex items-center justify-center"> <i class="fas fa-play-circle text-4xl text-gray-400"></i> </div> <div class="p-3"> <h3 class="font-medium">Linear Algebra Review</h3> <p class="text-sm text-gray-500">Mathematics • 1 week ago</p> </div> </div> <div class="border rounded-lg overflow-hidden hover:shadow-md transition-shadow"> <div class="bg-gray-100 aspect-video flex items-center justify-center"> <i class="fas fa-play-circle text-4xl text-gray-400"></i> </div> <div class="p-3"> <h3 class="font-medium">Organic Chemistry Reactions</h3> <p class="text-sm text-gray-500">Chemistry • 2 weeks ago</p> </div> </div> </div> </div> </div> <!-- PDF to Video Tab --> <div id="pdf-to-video" class="tab-content"> <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8"> <!-- Upload Section --> <div class="card bg-white rounded-xl shadow-sm p-6"> <h2 class="text-xl font-bold mb-4">Create AI Video from PDF</h2> <div class="mb-4"> <label for="pdf-subject" class="block text-sm font-medium text-gray-700 mb-1">Subject</label> <select id="pdf-subject" class="w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500"> <option>Physics</option> <option>Mathematics</option> <option>Chemistry</option> <option>Biology</option> <option>History</option> <option>Literature</option> </select> </div> <div class="mb-4"> <label for="pdf-topic" class="block text-sm font-medium text-gray-700 mb-1">Topic (Optional)</label> <input type="text" id="pdf-topic" class="w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500" placeholder="Helps with video title and organization"> </div> <div class="mb-4"> <label class="block text-sm font-medium text-gray-700 mb-2">Upload PDF</label> <div id="upload-container" class="upload-area border-2 border-dashed rounded-lg p-8 text-center cursor-pointer"> <i class="fas fa-file-pdf text-4xl text-gray-400 mb-2"></i> <p class="text-gray-600">Drag & drop your PDF here or click to browse</p> <p class="text-xs text-gray-500 mt-2">Max file size: 10MB</p> <input type="file" id="pdf-upload" class="hidden" accept=".pdf"> </div> <div id="file-info" class="hidden mt-2 text-sm text-gray-600"> <i class="fas fa-check-circle text-green-500 mr-1"></i> <span id="file-name">example.pdf</span> <button id="remove-file" class="ml-2 text-red-500 hover:text-red-700"> <i class="fas fa-times"></i> </button> </div> </div> <div class="flex justify-between items-center"> <div> <label class="inline-flex items-center"> <input type="checkbox" class="rounded border-gray-300 text-blue-600 shadow-sm focus:border-blue-300 focus:ring focus:ring-offset-0 focus:ring-blue-200 focus:ring-opacity-50"> <span class="ml-2 text-sm text-gray-600">Generate quiz from content</span> </label> </div> <button id="generate-pdf-video" class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2" disabled> Generate Video </button> </div> </div> <!-- Output Preview Section --> <div class="card bg-white rounded-xl shadow-sm p-6"> <h2 class="text-xl font-bold mb-4">Video Preview</h2> <div class="bg-gray-100 rounded-lg aspect-video flex items-center justify-center mb-4"> <div class="text-center"> <i class="fas fa-play-circle text-5xl text-gray-400 mb-2"></i> <p class="text-gray-600">Your generated video will appear here</p> </div> </div> <div class="mb-4"> <label class="block text-sm font-medium text-gray-700 mb-1">Extracted Text Preview</label> <div class="bg-gray-50 p-4 rounded-md max-h-40 overflow-y-auto"> <p class="text-gray-600 italic">No PDF content extracted yet. Upload a PDF to see the extracted text.</p> </div> </div> <div class="flex space-x-3"> <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50" disabled> <i class="fas fa-download mr-1"></i> Download </button> <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50" disabled> <i class="fas fa-save mr-1"></i> Save to Library </button> <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50" disabled> <i class="fas fa-share-alt mr-1"></i> Share </button> </div> </div> </div> <!-- Recent PDF-to-Video Conversions --> <div class="card bg-white rounded-xl shadow-sm p-6"> <div class="flex items-center justify-between mb-4"> <h2 class="text-xl font-bold">Recent PDF-to-Video Conversions</h2> <button class="text-sm font-medium text-blue-600 hover:text-blue-800">View all</button> </div> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"> <div class="border rounded-lg overflow-hidden hover:shadow-md transition-shadow"> <div class="bg-gray-100 aspect-video flex items-center justify-center"> <i class="fas fa-play-circle text-4xl text-gray-400"></i> </div> <div class="p-3"> <h3 class="font-medium">Electromagnetism Notes</h3> <p class="text-sm text-gray-500">From: physics_notes.pdf</p> <p class="text-xs text-gray-400">3 days ago</p> </div> </div> <div class="border rounded-lg overflow-hidden hover:shadow-md transition-shadow"> <div class="bg-gray-100 aspect-video flex items-center justify-center"> <i class="fas fa-play-circle text-4xl text-gray-400"></i> </div> <div class="p-3"> <h3 class="font-medium">Calculus Derivatives</h3> <p class="text-sm text-gray-500">From: math_lecture_3.pdf</p> <p class="text-xs text-gray-400">1 week ago</p> </div> </div> <div class="border rounded-lg overflow-hidden hover:shadow-md transition-shadow"> <div class="bg-gray-100 aspect-video flex items-center justify-center"> <i class="fas fa-play-circle text-4xl text-gray-400"></i> </div> <div class="p-3"> <h3 class="font-medium">World War II Timeline</h3> <p class="text-sm text-gray-500">From: history_chapter5.pdf</p> <p class="text-xs text-gray-400">2 weeks ago</p> </div> </div> </div> </div> </div> <!-- My Notes Tab --> <div id="my-notes" class="tab-content"> <div class="flex justify-between items-center mb-6"> <h2 class="text-xl font-bold">My Notes</h2> <button class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2"> <i class="fas fa-plus mr-2"></i> Create New Note </button> </div> <!-- Search and Filter --> <div class="card bg-white rounded-xl shadow-sm p-4 mb-6"> <div class="grid grid-cols-1 md:grid-cols-3 gap-4"> <div> <label for="search-notes" class="sr-only">Search notes</label> <div class="relative"> <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> <i class="fas fa-search text-gray-400"></i> </div> <input type="text" id="search-notes" class="block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-md leading-5 bg-white placeholder-gray-500 focus:outline-none focus:placeholder-gray-400 focus:ring-1 focus:ring-blue-500 focus:border-blue-500 sm:text-sm" placeholder="Search notes..."> </div> </div> <div> <label for="filter-subject" class="sr-only">Filter by subject</label> <select id="filter-subject" class="block w-full pl-3 pr-10 py-2 text-base border border-gray-300 focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md"> <option>All Subjects</option> <option>Physics</option> <option>Mathematics</option> <option>Chemistry</option> <option>Biology</option> <option>History</option> <option>Literature</option> </select> </div> <div> <label for="sort-notes" class="sr-only">Sort by</label> <select id="sort-notes" class="block w-full pl-3 pr-10 py-2 text-base border border-gray-300 focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md"> <option>Recently Updated</option> <option>Alphabetical</option> <option>Oldest First</option> <option>Most Viewed</option> </select> </div> </div> </div> <!-- Notes List --> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> <div class="card bg-white rounded-xl shadow-sm overflow-hidden hover:shadow-md transition-shadow"> <div class="p-4 border-b border-gray-200 bg-blue-50"> <div class="flex justify-between items-start"> <h3 class="font-bold text-lg">Quantum Mechanics</h3> <span class="px-2 py-1 text-xs font-semibold bg-blue-100 text-blue-800 rounded-full">Physics</span> </div> <p class="text-sm text-gray-500 mt-1">Last updated: 2 days ago</p> </div> <div class="p-4"> <p class="text-gray-600 text-sm line-clamp-3">Notes on wave-particle duality, Schrödinger's equation, and the uncertainty principle. Includes examples from recent lectures and textbook readings.</p> <div class="mt-4 flex justify-between items-center"> <div class="flex space-x-2"> <span class="px-2 py-1 text-xs bg-gray-100 text-gray-600 rounded-full"> <i class="fas fa-eye mr-1"></i> 12 </span> <span class="px-2 py-1 text-xs bg-gray-100 text-gray-600 rounded-full"> <i class="fas fa-video mr-1"></i> 1 </span> </div> <div class="flex space-x-2"> <button class="p-1 text-gray-500 hover:text-blue-600"> <i class="fas fa-edit"></i> </button> <button class="p-1 text-gray-500 hover:text-red-600"> <i class="fas fa-trash"></i> </button> </div> </div> </div> </div> <div class="card bg-white rounded-xl shadow-sm overflow-hidden hover:shadow-md transition-shadow"> <div class="p-4 border-b border-gray-200 bg-purple-50"> <div class="flex justify-between items-start"> <h3 class="font-bold text-lg">Linear Algebra</h3> <span class="px-2 py-1 text-xs font-semibold bg-purple-100 text-purple-800 rounded-full">Mathematics</span> </div> <p class="text-sm text-gray-500 mt-1">Last updated: 1 week ago</p> </div> <div class="p-4"> <p class="text-gray-600 text-sm line-clamp-3">Matrix operations, vector spaces, eigenvalues and eigenvectors. Summary of key concepts with practice problems and solutions.</p> <div class="mt-4 flex justify-between items-center"> <div class="flex space-x-2"> <span class="px-2 py-1 text-xs bg-gray-100 text-gray-600 rounded-full"> <i class="fas fa-eye mr-1"></i> 8 </span> <span class="px-2 py-1 text-xs bg-gray-100 text-gray-600 rounded-full"> <i class="fas fa-video mr-1"></i> 2 </span> </div> <div class="flex space-x-2"> <button class="p-1 text-gray-500 hover:text-blue-600"> <i class="fas fa-edit"></i> </button> <button class="p-1 text-gray-500 hover:text-red-600"> <i class="fas fa-trash"></i> </button> </div> </div> </div> </div> <div class="card bg-white rounded-xl shadow-sm overflow-hidden hover:shadow-md transition-shadow"> <div class="p-4 border-b border-gray-200 bg-green-50"> <div class="flex justify-between items-start"> <h3 class="font-bold text-lg">Organic Chemistry</h3> <span class="px-2 py-1 text-xs font-semibold bg-green-100 text-green-800 rounded-full">Chemistry</span> </div> <p class="text-sm text-gray-500 mt-1">Last updated: 2 weeks ago</p> </div> <div class="p-4"> <p class="text-gray-600 text-sm line-clamp-3">Reaction mechanisms, functional groups, and stereochemistry. Includes color-coded diagrams of important reactions.</p> <div class="mt-4 flex justify-between items-center"> <div class="flex space-x-2"> <span class="px-2 py-1 text-xs bg-gray-100 text-gray-600 rounded-full"> <i class="fas fa-eye mr-1"></i> 15 </span> <span class="px-2 py-1 text-xs bg-gray-100 text-gray-600 rounded-full"> <i class="fas fa-video mr-1"></i> 1 </span> </div> <div class="flex space-x-2"> <button class="p-1 text-gray-500 hover:text-blue-600"> <i class="fas fa-edit"></i> </button> <button class="p-1 text-gray-500 hover:text-red-600"> <i class="fas fa-trash"></i> </button> </div> </div> </div> </div> <div class="card bg-white rounded-xl shadow-sm overflow-hidden hover:shadow-md transition-shadow"> <div class="p-4 border-b border-gray-200 bg-yellow-50"> <div class="flex justify-between items-start"> <h3 class="font-bold text-lg">Cell Biology</h3> <span class="px-2 py-1 text-xs font-semibold bg-yellow-100 text-yellow-800 rounded-full">Biology</span> </div> <p class="text-sm text-gray-500 mt-1">Last updated: 3 weeks ago</p> </div> <div class="p-4"> <p class="text-gray-600 text-sm line-clamp-3">Structure and function of organelles, cell division, and cellular transport. Includes comparison tables between plant and animal cells.</p> <div class="mt-4 flex justify-between items-center"> <div class="flex space-x-2"> <span class="px-2 py-1 text-xs bg-gray-100 text-gray-600 rounded-full"> <i class="fas fa-eye mr-1"></i> 6 </span> <span class="px-2 py-1 text-xs bg-gray-100 text-gray-600 rounded-full"> <i class="fas fa-video mr-1"></i> 0 </span> </div> <div class="flex space-x-2"> <button class="p-1 text-gray-500 hover:text-blue-600"> <i class="fas fa-edit"></i> </button> <button class="p-1 text-gray-500 hover:text-red-600"> <i class="fas fa-trash"></i> </button> </div> </div> </div> </div> <div class="card bg-white rounded-xl shadow-sm overflow-hidden hover:shadow-md transition-shadow"> <div class="p-4 border-b border-gray-200 bg-red-50"> <div class="flex justify-between items-start"> <h3 class="font-bold text-lg">French Revolution</h3> <span class="px-2 py-1 text-xs font-semibold bg-red-100 text-red-800 rounded-full">History</span> </div> <p class="text-sm text-gray-500 mt-1">Last updated: 1 month ago</p> </div> <div class="p-4"> <p class="text-gray-600 text-sm line-clamp-3">Causes, key events, and consequences of the French Revolution. Timeline of major events and profiles of important figures.</p> <div class="mt-4 flex justify-between items-center"> <div class="flex space-x-2"> <span class="px-2 py-1 text-xs bg-gray-100 text-gray-600 rounded-full"> <i class="fas fa-eye mr-1"></i> 9 </span> <span class="px-2 py-1 text-xs bg-gray-100 text-gray-600 rounded-full"> <i class="fas fa-video mr-1"></i> 1 </span> </div> <div class="flex space-x-2"> <button class="p-1 text-gray-500 hover:text-blue-600"> <i class="fas fa-edit"></i> </button> <button class="p-1 text-gray-500 hover:text-red-600"> <i class="fas fa-trash"></i> </button> </div> </div> </div> </div> <div class="card bg-white rounded-xl shadow-sm overflow-hidden hover:shadow-md transition-shadow"> <div class="p-4 border-b border-gray-200 bg-indigo-50"> <div class="flex justify-between items-start"> <h3 class="font-bold text-lg">Shakespeare's Sonnets</h3> <span class="px-2 py-1 text-xs font-semibold bg-indigo-100 text-indigo-800 rounded-full">Literature</span> </div> <p class="text-sm text-gray-500 mt-1">Last updated: 1 month ago</p> </div> <div class="p-4"> <p class="text-gray-600 text-sm line-clamp-3">Analysis of themes, structure, and literary devices in selected sonnets. Comparison between the "Fair Youth" and "Dark Lady" sequences.</p> <div class="mt-4 flex justify-between items-center"> <div class="flex space-x-2"> <span class="px-2 py-1 text-xs bg-gray-100 text-gray-600 rounded-full"> <i class="fas fa-eye mr-1"></i> 5 </span> <span class="px-2 py-1 text-xs bg-gray-100 text-gray-600 rounded-full"> <i class="fas fa-video mr-1"></i> 0 </span> </div> <div class="flex space-x-2"> <button class="p-1 text-gray-500 hover:text-blue-600"> <i class="fas fa-edit"></i> </button> <button class="p-1 text-gray-500 hover:text-red-600"> <i class="fas fa-trash"></i> </button> </div> </div> </div> </div> </div> <!-- Pagination --> <div class="mt-6 flex items-center justify-between"> <div class="text-sm text-gray-500"> Showing <span class="font-medium">1</span> to <span class="font-medium">6</span> of <span class="font-medium">24</span> notes </div> <div class="flex space-x-2"> <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 bg-white hover:bg-gray-50"> Previous </button> <button class="px-3 py-1 border border-blue-500 rounded-md text-white bg-blue-600 hover:bg-blue-700"> 1 </button> <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 bg-white hover:bg-gray-50"> 2 </button> <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 bg-white hover:bg-gray-50"> 3 </button> <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 bg-white hover:bg-gray-50"> Next </button> </div> </div> </div> <!-- Video Library Tab --> <div id="video-library" class="tab-content"> <div class="flex justify-between items-center mb-6"> <h2 class="text-xl font-bold">My Video Library</h2> <div class="flex space-x-3"> <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 bg-white hover:bg-gray-50"> <i class="fas fa-filter mr-1"></i> Filter </button> <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 bg-white hover:bg-gray-50"> <i class="fas fa-sort mr-1"></i> Sort </button> </div> </div> <!-- Video Categories --> <div class="mb-6"> <div class="flex space-x-2 overflow-x-auto pb-2"> <button class="px-4 py-1 bg-blue-600 text-white rounded-full text-sm font-medium"> All Videos </button> <button class="px-4 py-1 bg-white border border-gray-300 rounded-full text-sm font-medium hover:bg-gray-50"> Physics </button> <button class="px-4 py-1 bg-white border border-gray-300 rounded-full text-sm font-medium hover:bg-gray-50"> Mathematics </button> <button class="px-4 py-1 bg-white border border-gray-300 rounded-full text-sm font-medium hover:bg-gray-50"> Chemistry </button> <button class="px-4 py-1 bg-white border border-gray-300 rounded-full text-sm font-medium hover:bg-gray-50"> Biology </button> <button class="px-4 py-1 bg-white border border-gray-300 rounded-full text-sm font-medium hover:bg-gray-50"> History </button> <button class="px-4 py-1 bg-white border border-gray-300 rounded-full text-sm font-medium hover:bg-gray-50"> Literature </button> </div> </div> <!-- Video Grid --> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> <div class="card bg-white rounded-xl shadow-sm overflow-hidden hover:shadow-md transition-shadow"> <div class="relative"> <div class="bg-gray-100 aspect-video flex items-center justify-center"> <i class="fas fa-play-circle text-5xl text-gray-400"></i> </div> <div class="absolute top-2 right-2"> <span class="px-2 py-1 text-xs font-medium bg-blue-100 text-blue-800 rounded-full">Physics</span> </div> <div class="absolute bottom-2 left-2 flex items-center"> <i class="fas fa-clock text-xs text-gray-500 mr-1"></i> <span class="text-xs text-gray-500">5:24</span> </div> </div> <div class="p-4"> <h3 class="font-bold mb-1">Quantum Mechanics Explained</h3> <p class="text-sm text-gray-500 mb-2">Created: 2 days ago</p> <p class="text-sm text-gray-600 line-clamp-2">An animated explanation of wave-particle duality and the double-slit experiment, generated from your physics notes.</p> <div class="mt-3 flex justify-between items-center"> <div class="flex space-x-2"> <button class="p-1 text-gray-500 hover:text-blue-600"> <i class="fas fa-play"></i> </button> <button class="p-1 text-gray-500 hover:text-green-600"> <i class="fas fa-download"></i> </button> <button class="p-1 text-gray-500 hover:text-purple-600"> <i class="fas fa-share-alt"></i> </button> </div> <button class="p-1 text-gray-500 hover:text-red-600"> <i class="fas fa-trash"></i> </button> </div> </div> </div> <div class="card bg-white rounded-xl shadow-sm overflow-hidden hover:shadow-md transition-shadow"> <div class="relative"> <div class="bg-gray-100 aspect-video flex items-center justify-center"> <i class="fas fa-play-circle text-5xl text-gray-400"></i> </div> <div class="absolute top-2 right-2"> <span class="px-2 py-1 text-xs font-medium bg-purple-100 text-purple-800 rounded-full">Mathematics</span> </div> <div class="absolute bottom-2 left-2 flex items-center"> <i class="fas fa-clock text-xs text-gray-500 mr-1"></i> <span class="text-xs text-gray-500">8:12</span> </div> </div> <div class="p-4"> <h3 class="font-bold mb-1">Linear Algebra Basics</h3> <p class="text-sm text-gray-500 mb-2">Created: 1 week ago</p> <p class="text-sm text-gray-600 line-clamp-2">Visual guide to matrix operations and vector spaces, with animated examples from your lecture notes.</p> <div class="mt-3 flex justify-between items-center"> <div class="flex space-x-2"> <button class="p-1 text-gray-500 hover:text-blue-600"> <i class="fas fa-play"></i> </button> <button class="p-1 text-gray-500 hover:text-green-600"> <i class="fas fa-download"></i> </button> <button class="p-1 text-gray-500 hover:text-purple-600"> <i class="fas fa-share-alt"></i> </button> </div> <button class="p-1 text-gray-500 hover:text-red-600"> <i class="fas fa-trash"></i> </button> </div> </div> </div> <div class="card bg-white rounded-xl shadow-sm overflow-hidden hover:shadow-md transition-shadow"> <div class="relative"> <div class="bg-gray-100 aspect-video flex items-center justify-center"> <i class="fas fa-play-circle text-5xl text-gray-400"></i> </div> <div class="absolute top-2 right-2"> <span class="px-2 py-1 text-xs font-medium bg-green-100 text-green-800 rounded-full">Chemistry</span> </div> <div class="absolute bottom-2 left-2 flex items-center"> <i class="fas fa-clock text-xs text-gray-500 mr-1"></i> <span class="text-xs text-gray-500">6:45</span> </div> </div> <div class="p-4"> <h3 class="font-bold mb-1">Organic Reactions</h3> <p class="text-sm text-gray-500 mb-2">Created: 2 weeks ago</p> <p class="text-sm text-gray-600 line-clamp-2">Mechanisms of nucleophilic substitution and elimination reactions, with 3D molecular animations.</p> <div class="mt-3 flex justify-between items-center"> <div class="flex space-x-2"> <button class="p-1 text-gray-500 hover:text-blue-600"> <i class="fas fa-play"></i> </button> <button class="p-1 text-gray-500 hover:text-green-600"> <i class="fas fa-download"></i> </button> <button class="p-1 text-gray-500 hover:text-purple-600"> <i class="fas fa-share-alt"></i> </button> </div> <button class="p-1 text-gray-500 hover:text-red-600"> <i class="fas fa-trash"></i> </button> </div> </div> </div> <div class="card bg-white rounded-xl shadow-sm overflow-hidden hover:shadow-md transition-shadow"> <div class="relative"> <div class="bg-gray-100 aspect-video flex items-center justify-center"> <i class="fas fa-play-circle text-5xl text-gray-400"></i> </div> <div class="absolute top-2 right-2"> <span class="px-2 py-1 text-xs font-medium bg-yellow-100 text-yellow-800 rounded-full">Biology</span> </div> <div class="absolute bottom-2 left-2 flex items-center"> <i class="fas fa-clock text-xs text-gray-500 mr-1"></i> <span class="text-xs text-gray-500">7:18</span> </div> </div> <div class="p-4"> <h3 class="font-bold mb-1">Cell Division Process</h3> <p class="text-sm text-gray-500 mb-2">Created: 3 weeks ago</p> <p class="text-sm text-gray-600 line-clamp-2">Mitosis and meiosis explained with detailed animations and comparisons between the two processes.</p> <div class="mt-3 flex justify-between items-center"> <div class="flex space-x-2"> <button class="p-1 text-gray-500 hover:text-blue-600"> <i class="fas fa-play"></i> </button> <button class="p-1 text-gray-500 hover:text-green-600"> <i class="fas fa-download"></i> </button> <button class="p-1 text-gray-500 hover:text-purple-600"> <i class="fas fa-share-alt"></i> </button> </div> <button class="p-1 text-gray-500 hover:text-red-600"> <i class="fas fa-trash"></i> </button> </div> </div> </div> <div class="card bg-white rounded-xl shadow-sm overflow-hidden hover:shadow-md transition-shadow"> <div class="relative"> <div class="bg-gray-100 aspect-video flex items-center justify-center"> <i class="fas fa-play-circle text-5xl text-gray-400"></i> </div> <div class="absolute top-2 right-2"> <span class="px-2 py-1 text-xs font-medium bg-red-100 text-red-800 rounded-full">History</span> </div> <div class="absolute bottom-2 left-2 flex items-center"> <i class="fas fa-clock text-xs text-gray-500 mr-1"></i> <span class="text-xs text-gray-500">9:32</span> </div> </div> <div class="p-4"> <h3 class="font-bold mb-1">French Revolution</h3> <p class="text-sm text-gray-500 mb-2">Created: 1 month ago</p> <p class="text-sm text-gray-600 line-clamp-2">Timeline of key events from the Estates-General to the rise of Napoleon, with historical images and maps.</p> <div class="mt-3 flex justify-between items-center"> <div class="flex space-x-2"> <button class="p-1 text-gray-500 hover:text-blue-600"> <i class="fas fa-play"></i> </button> <button class="p-1 text-gray-500 hover:text-green-600"> <i class="fas fa-download"></i> </button> <button class="p-1 text-gray-500 hover:text-purple-600"> <i class="fas fa-share-alt"></i> </button> </div> <button class="p-1 text-gray-500 hover:text-red-600"> <i class="fas fa-trash"></i> </button> </div> </div> </div> <div class="card bg-white rounded-xl shadow-sm overflow-hidden hover:shadow-md transition-shadow"> <div class="relative"> <div class="bg-gray-100 aspect-video flex items-center justify-center"> <i class="fas fa-play-circle text-5xl text-gray-400"></i> </div> <div class="absolute top-2 right-2"> <span class="px-2 py-1 text-xs font-medium bg-indigo-100 text-indigo-800 rounded-full">Literature</span> </div> <div class="absolute bottom-2 left-2 flex items-center"> <i class="fas fa-clock text-xs text-gray-500 mr-1"></i> <span class="text-xs text-gray-500">4:56</span> </div> </div> <div class="p-4"> <h3 class="font-bold mb-1">Shakespeare's Sonnets</h3> <p class="text-sm text-gray-500 mb-2">Created: 1 month ago</p> <p class="text-sm text-gray-600 line-clamp-2">Analysis of Sonnet 18 with visual annotations highlighting poetic devices and thematic elements.</p> <div class="mt-3 flex justify-between items-center"> <div class="flex space-x-2"> <button class="p-1 text-gray-500 hover:text-blue-600"> <i class="fas fa-play"></i> </button> <button class="p-1 text-gray-500 hover:text-green-600"> <i class="fas fa-download"></i> </button> <button class="p-1 text-gray-500 hover:text-purple-600"> <i class="fas fa-share-alt"></i> </button> </div> <button class="p-1 text-gray-500 hover:text-red-600"> <i class="fas fa-trash"></i> </button> </div> </div> </div> </div> <!-- Pagination --> <div class="mt-6 flex items-center justify-between"> <div class="text-sm text-gray-500"> Showing <span class="font-medium">1</span> to <span class="font-medium">6</span> of <span class="font-medium">18</span> videos </div> <div class="flex space-x-2"> <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 bg-white hover:bg-gray-50"> Previous </button> <button class="px-3 py-1 border border-blue-500 rounded-md text-white bg-blue-600 hover:bg-blue-700"> 1 </button> <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 bg-white hover:bg-gray-50"> 2 </button> <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 bg-white hover:bg-gray-50"> 3 </button> <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 bg-white hover:bg-gray-50"> Next </button> </div> </div> </div> </main> </div> <script> // User dropdown toggle const userMenuButton = document.getElementById('user-menu-button'); const userDropdown = document.getElementById('user-dropdown'); userMenuButton.addEventListener('click', () => { userDropdown.classList.toggle('hidden'); }); // Close dropdown when clicking outside document.addEventListener('click', (event) => { if (!userMenuButton.contains(event.target) && !userDropdown.contains(event.target)) { userDropdown.classList.add('hidden'); } }); // Tab functionality function openTab(evt, tabName) { const tabContents = document.getElementsByClassName("tab-content"); for (let i = 0; i < tabContents.length; i++) { tabContents[i].classList.remove("active"); } const tabButtons = document.getElementsByClassName("tab-button"); for (let i = 0; i < tabButtons.length; i++) { tabButtons[i].classList.remove("bg-blue-100", "text-blue-700"); tabButtons[i].classList.add("text-gray-700", "hover:bg-gray-100"); } document.getElementById(tabName).classList.add("active"); evt.currentTarget.classList.remove("text-gray-700", "hover:bg-gray-100"); evt.currentTarget.classList.add("bg-blue-100", "text-blue-700"); } // PDF Upload functionality const uploadContainer = document.getElementById('upload-container'); const pdfUpload = document.getElementById('pdf-upload'); const fileInfo = document.getElementById('file-info'); const fileName = document.getElementById('file-name'); const removeFile = document.getElementById('remove-file'); const generatePdfVideo = document.getElementById('generate-pdf-video'); uploadContainer.addEventListener('click', () => { pdfUpload.click(); }); pdfUpload.addEventListener('change', (e) => { if (e.target.files.length > 0) { const file = e.target.files[0]; fileName.textContent = file.name; fileInfo.classList.remove('hidden'); generatePdfVideo.disabled = false; uploadContainer.classList.add('hidden'); } }); removeFile.addEventListener('click', (e) => { e.stopPropagation(); pdfUpload.value = ''; fileInfo.classList.add('hidden'); generatePdfVideo.disabled = true; uploadContainer.classList.remove('hidden'); }); // Drag and drop for PDF upload uploadContainer.addEventListener('dragover', (e) => { e.preventDefault(); uploadContainer.classList.add('dragover'); }); uploadContainer.addEventListener('dragleave', () => { uploadContainer.classList.remove('dragover'); }); uploadContainer.addEventListener('drop', (e) => { e.preventDefault(); uploadContainer.classList.remove('dragover'); if (e.dataTransfer.files.length > 0) { const file = e.dataTransfer.files[0]; if (file.type === 'application/pdf') { // For demo purposes, we'll just show the file name fileName.textContent = file.name; fileInfo.classList.remove('hidden'); generatePdfVideo.disabled = false; uploadContainer.classList.add('hidden'); } else { alert('Please upload a PDF file.'); } } }); // Mobile sidebar toggle const mobileMenuButton = document.querySelector('.lg\\:hidden'); const sidebar = document.querySelector('.sidebar'); mobileMenuButton.addEventListener('click', () => { sidebar.classList.toggle('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=MDesign28/dashboard" 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>Notes & AI Videos | AI Classroom</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">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Inter:wght@400;500&display=swap" rel="stylesheet">
<style>
:root {
--primary: #A6C8FF;
--secondary: #CABDFF;
--text: #1E293B;
}
body {
font-family: 'Inter', sans-serif;
color: var(--text);
background-color: #F8FAFC;
}
h1, h2, h3, h4 {
font-family: 'Poppins', sans-serif;
}
.sidebar {
transition: all 0.3s ease;
}
.card {
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.progress-ring__circle {
transition: stroke-dashoffset 0.5s ease;
transform: rotate(-90deg);
transform-origin: 50% 50%;
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.upload-area {
border: 2px dashed #CBD5E0;
transition: all 0.2s ease;
}
.upload-area:hover {
border-color: #A6C8FF;
background-color: #F0F7FF;
}
.upload-area.dragover {
border-color: #4F46E5;
background-color: #E0E7FF;
}
</style>
</head>
<body class="flex h-screen overflow-hidden">
<!-- Sidebar Navigation -->
<div class="sidebar w-64 bg-white border-r border-gray-200 flex flex-col flex-shrink-0">
<div class="flex items-center justify-center h-16 px-4 border-b border-gray-200">
<div class="flex items-center">
<i class="fas fa-brain text-2xl mr-2 text-indigo-500"></i>
<span class="text-xl font-bold">AI Classroom</span>
</div>
</div>
<div class="flex-1 overflow-y-auto">
<nav class="px-4 py-6">
<div class="space-y-1">
<a href="#" class="flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700 hover:bg-gray-100">
<i class="fas fa-home mr-3 text-blue-500"></i>
Dashboard
</a>
<a href="#" class="flex items-center px-3 py-2 text-sm font-medium rounded-md bg-blue-50 text-blue-700">
<i class="fas fa-file-alt mr-3 text-purple-500"></i>
Notes & AI Videos
</a>
<a href="#" class="flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700 hover:bg-gray-100">
<i class="fas fa-clipboard-check mr-3 text-teal-500"></i>
Exams & AI Exam Mode
</a>
<a href="#" class="flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700 hover:bg-gray-100">