study-master / index.html
huzaifajee's picture
i want a software that stores my study notes and gives me the summary along with conceptual notes for my learning. moreover, the software should be downloadable for PC and android both and it should also give me MCQs and questions as a part of study notes and examination both - Initial Deployment
a8264ea verified
Raw History Blame Contribute Delete
37.7 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>StudyMaster - Smart Note Taking & Learning App</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>
.gradient-bg {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.note-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.sidebar {
transition: all 0.3s ease;
}
.sidebar-collapsed {
transform: translateX(-100%);
}
.sidebar-expanded {
transform: translateX(0);
}
.editor-toolbar {
scrollbar-width: none;
-ms-overflow-style: none;
}
.editor-toolbar::-webkit-scrollbar {
display: none;
}
.markdown-preview h1 {
font-size: 1.5rem;
font-weight: bold;
margin: 1rem 0;
}
.markdown-preview h2 {
font-size: 1.25rem;
font-weight: bold;
margin: 0.75rem 0;
}
.markdown-preview ul {
list-style-type: disc;
padding-left: 1.5rem;
}
.markdown-preview ol {
list-style-type: decimal;
padding-left: 1.5rem;
}
.markdown-preview pre {
background-color: #f3f4f6;
padding: 1rem;
border-radius: 0.5rem;
overflow-x: auto;
}
.markdown-preview code {
font-family: monospace;
background-color: #f3f4f6;
padding: 0.2rem 0.4rem;
border-radius: 0.25rem;
}
.floating-btn {
animation: float 3s ease-in-out infinite;
}
@keyframes float {
0% { transform: translateY(0px); }
50% { transform: translateY(-10px); }
100% { transform: translateY(0px); }
}
</style>
</head>
<body class="bg-gray-50 min-h-screen">
<!-- Mobile Sidebar Toggle -->
<button id="sidebarToggle" class="md:hidden fixed top-4 left-4 z-50 bg-white p-2 rounded-full shadow-lg">
<i class="fas fa-bars text-indigo-600"></i>
</button>
<!-- Sidebar -->
<div id="sidebar" class="sidebar fixed inset-y-0 left-0 z-40 w-64 bg-white shadow-lg md:translate-x-0 transform transition-transform duration-300 ease-in-out sidebar-collapsed md:sidebar-expanded">
<div class="flex items-center justify-center h-16 px-4 gradient-bg">
<div class="flex items-center">
<i class="fas fa-book-open text-white mr-2 text-xl"></i>
<span class="text-white font-bold text-xl">StudyMaster</span>
</div>
</div>
<div class="px-4 py-6">
<div class="relative">
<input type="text" placeholder="Search notes..." class="w-full pl-10 pr-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-indigo-500">
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
</div>
</div>
<nav class="px-4">
<div class="space-y-1">
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium rounded-lg bg-indigo-50 text-indigo-700">
<i class="fas fa-home mr-3 text-indigo-600"></i>
Dashboard
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium rounded-lg text-gray-700 hover:bg-gray-100">
<i class="fas fa-book mr-3 text-gray-500"></i>
My Notes
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium rounded-lg text-gray-700 hover:bg-gray-100">
<i class="fas fa-lightbulb mr-3 text-gray-500"></i>
Conceptual Notes
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium rounded-lg text-gray-700 hover:bg-gray-100">
<i class="fas fa-question-circle mr-3 text-gray-500"></i>
MCQs & Questions
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium rounded-lg text-gray-700 hover:bg-gray-100">
<i class="fas fa-chart-line mr-3 text-gray-500"></i>
Progress Tracking
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium rounded-lg text-gray-700 hover:bg-gray-100">
<i class="fas fa-download mr-3 text-gray-500"></i>
Download App
</a>
<a href="#" class="flex items-center px-4 py-3 text-sm font-medium rounded-lg text-gray-700 hover:bg-gray-100">
<i class="fas fa-cog mr-3 text-gray-500"></i>
Settings
</a>
</div>
</nav>
<div class="absolute bottom-0 w-full px-4 py-6">
<div class="bg-indigo-50 rounded-lg p-4">
<p class="text-sm text-indigo-700 mb-2">Upgrade to Pro for advanced features</p>
<button class="w-full bg-indigo-600 text-white py-2 px-4 rounded-lg text-sm font-medium hover:bg-indigo-700 transition duration-200">
Upgrade Now
</button>
</div>
</div>
</div>
<!-- Main Content -->
<div class="md:ml-64 flex flex-col min-h-screen">
<!-- Header -->
<header class="bg-white shadow-sm">
<div class="flex justify-between items-center px-6 py-4">
<h1 class="text-2xl font-bold text-gray-800">My Study Notes</h1>
<div class="flex items-center space-x-4">
<div class="relative">
<button class="p-2 rounded-full hover:bg-gray-100">
<i class="fas fa-bell text-gray-600"></i>
<span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span>
</button>
</div>
<div class="relative">
<button class="flex items-center space-x-2">
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="User" class="h-8 w-8 rounded-full">
<span class="hidden md:inline text-gray-700">Sarah Johnson</span>
</button>
</div>
</div>
</div>
</header>
<!-- Main Content Area -->
<main class="flex-1 p-6">
<!-- Quick Actions -->
<div class="grid grid-cols-1 md:grid-cols-4 gap-4 mb-6">
<div class="bg-white p-4 rounded-lg shadow-sm border border-gray-200 hover:border-indigo-300 transition duration-200">
<div class="flex items-center">
<div class="p-3 rounded-full bg-indigo-100 text-indigo-600 mr-4">
<i class="fas fa-plus"></i>
</div>
<div>
<h3 class="font-medium text-gray-800">New Note</h3>
<p class="text-sm text-gray-500">Start a fresh note</p>
</div>
</div>
</div>
<div class="bg-white p-4 rounded-lg shadow-sm border border-gray-200 hover:border-indigo-300 transition duration-200">
<div class="flex items-center">
<div class="p-3 rounded-full bg-green-100 text-green-600 mr-4">
<i class="fas fa-file-import"></i>
</div>
<div>
<h3 class="font-medium text-gray-800">Import Notes</h3>
<p class="text-sm text-gray-500">From PDF or text</p>
</div>
</div>
</div>
<div class="bg-white p-4 rounded-lg shadow-sm border border-gray-200 hover:border-indigo-300 transition duration-200">
<div class="flex items-center">
<div class="p-3 rounded-full bg-blue-100 text-blue-600 mr-4">
<i class="fas fa-brain"></i>
</div>
<div>
<h3 class="font-medium text-gray-800">Generate Summary</h3>
<p class="text-sm text-gray-500">AI-powered notes</p>
</div>
</div>
</div>
<div class="bg-white p-4 rounded-lg shadow-sm border border-gray-200 hover:border-indigo-300 transition duration-200">
<div class="flex items-center">
<div class="p-3 rounded-full bg-purple-100 text-purple-600 mr-4">
<i class="fas fa-question"></i>
</div>
<div>
<h3 class="font-medium text-gray-800">Practice MCQs</h3>
<p class="text-sm text-gray-500">Test your knowledge</p>
</div>
</div>
</div>
</div>
<!-- Recent Notes & Summary Section -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
<!-- Recent Notes -->
<div class="lg:col-span-2">
<div class="bg-white rounded-lg shadow-sm overflow-hidden">
<div class="px-6 py-4 border-b border-gray-200">
<h2 class="text-lg font-semibold text-gray-800">Recent Notes</h2>
</div>
<div class="divide-y divide-gray-200">
<!-- Note Item -->
<div class="p-6 hover:bg-gray-50 transition duration-150 cursor-pointer">
<div class="flex justify-between items-start">
<div>
<h3 class="font-medium text-gray-800">Biology - Cell Structure</h3>
<p class="text-sm text-gray-500 mt-1">Last updated: 2 hours ago</p>
</div>
<div class="flex space-x-2">
<button class="p-1 text-gray-400 hover:text-indigo-600">
<i class="fas fa-ellipsis-v"></i>
</button>
</div>
</div>
<p class="text-gray-600 mt-2 line-clamp-2">The cell is the basic structural and functional unit of all living organisms. Cells consist of cytoplasm enclosed within a membrane, which contains many biomolecules such as proteins and nucleic acids.</p>
<div class="flex mt-4 space-x-2">
<span class="px-2 py-1 text-xs rounded-full bg-indigo-100 text-indigo-800">Biology</span>
<span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Important</span>
</div>
</div>
<!-- Note Item -->
<div class="p-6 hover:bg-gray-50 transition duration-150 cursor-pointer">
<div class="flex justify-between items-start">
<div>
<h3 class="font-medium text-gray-800">Physics - Newton's Laws</h3>
<p class="text-sm text-gray-500 mt-1">Last updated: 1 day ago</p>
</div>
<div class="flex space-x-2">
<button class="p-1 text-gray-400 hover:text-indigo-600">
<i class="fas fa-ellipsis-v"></i>
</button>
</div>
</div>
<p class="text-gray-600 mt-2 line-clamp-2">Newton's three laws of motion describe the relationship between a body and the forces acting upon it, and its motion in response to those forces. These laws formed the basis for classical mechanics.</p>
<div class="flex mt-4 space-x-2">
<span class="px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800">Physics</span>
<span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">Formulas</span>
</div>
</div>
<!-- Note Item -->
<div class="p-6 hover:bg-gray-50 transition duration-150 cursor-pointer">
<div class="flex justify-between items-start">
<div>
<h3 class="font-medium text-gray-800">History - World War II</h3>
<p class="text-sm text-gray-500 mt-1">Last updated: 3 days ago</p>
</div>
<div class="flex space-x-2">
<button class="p-1 text-gray-400 hover:text-indigo-600">
<i class="fas fa-ellipsis-v"></i>
</button>
</div>
</div>
<p class="text-gray-600 mt-2 line-clamp-2">World War II was a global war that lasted from 1939 to 1945. The vast majority of the world's countries—including all the great powers—eventually formed two opposing military alliances: the Allies and the Axis.</p>
<div class="flex mt-4 space-x-2">
<span class="px-2 py-1 text-xs rounded-full bg-red-100 text-red-800">History</span>
<span class="px-2 py-1 text-xs rounded-full bg-purple-100 text-purple-800">Timeline</span>
</div>
</div>
</div>
<div class="px-6 py-4 border-t border-gray-200 text-center">
<button class="text-indigo-600 font-medium hover:text-indigo-800">
View all notes <i class="fas fa-arrow-right ml-1"></i>
</button>
</div>
</div>
</div>
<!-- AI Summary & MCQs -->
<div class="space-y-6">
<!-- AI Summary -->
<div class="bg-white rounded-lg shadow-sm overflow-hidden">
<div class="px-6 py-4 border-b border-gray-200 flex justify-between items-center">
<h2 class="text-lg font-semibold text-gray-800">AI Summary</h2>
<button class="text-indigo-600 hover:text-indigo-800">
<i class="fas fa-sync-alt"></i>
</button>
</div>
<div class="p-6">
<div class="bg-indigo-50 rounded-lg p-4 mb-4">
<h3 class="font-medium text-indigo-800 mb-2">Biology - Cell Structure</h3>
<p class="text-sm text-gray-700">Cells are the fundamental units of life, containing specialized structures called organelles that perform specific functions. The nucleus controls cellular activities, mitochondria produce energy, and ribosomes synthesize proteins.</p>
</div>
<div class="bg-blue-50 rounded-lg p-4">
<h3 class="font-medium text-blue-800 mb-2">Physics - Newton's Laws</h3>
<p class="text-sm text-gray-700">Newton's First Law (Inertia): Objects remain in their state of motion unless acted upon. Second Law (F=ma): Force equals mass times acceleration. Third Law: For every action there's an equal and opposite reaction.</p>
</div>
<button class="w-full mt-4 bg-indigo-600 text-white py-2 px-4 rounded-lg text-sm font-medium hover:bg-indigo-700 transition duration-200">
Generate New Summary
</button>
</div>
</div>
<!-- Practice MCQs -->
<div class="bg-white rounded-lg shadow-sm overflow-hidden">
<div class="px-6 py-4 border-b border-gray-200">
<h2 class="text-lg font-semibold text-gray-800">Practice MCQs</h2>
</div>
<div class="p-6">
<div class="mb-6">
<p class="font-medium text-gray-800 mb-3">1. Which organelle is known as the powerhouse of the cell?</p>
<div class="space-y-2">
<div class="flex items-center">
<input type="radio" id="q1a" name="q1" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500">
<label for="q1a" class="ml-3 text-sm text-gray-700">Nucleus</label>
</div>
<div class="flex items-center">
<input type="radio" id="q1b" name="q1" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500">
<label for="q1b" class="ml-3 text-sm text-gray-700">Mitochondria</label>
</div>
<div class="flex items-center">
<input type="radio" id="q1c" name="q1" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500">
<label for="q1c" class="ml-3 text-sm text-gray-700">Ribosome</label>
</div>
<div class="flex items-center">
<input type="radio" id="q1d" name="q1" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500">
<label for="q1d" class="ml-3 text-sm text-gray-700">Golgi Apparatus</label>
</div>
</div>
</div>
<div class="mb-6">
<p class="font-medium text-gray-800 mb-3">2. According to Newton's Second Law of Motion:</p>
<div class="space-y-2">
<div class="flex items-center">
<input type="radio" id="q2a" name="q2" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500">
<label for="q2a" class="ml-3 text-sm text-gray-700">F = mv</label>
</div>
<div class="flex items-center">
<input type="radio" id="q2b" name="q2" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500">
<label for="q2b" class="ml-3 text-sm text-gray-700">F = ma</label>
</div>
<div class="flex items-center">
<input type="radio" id="q2c" name="q2" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500">
<label for="q2c" class="ml-3 text-sm text-gray-700">F = m/a</label>
</div>
<div class="flex items-center">
<input type="radio" id="q2d" name="q2" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500">
<label for="q2d" class="ml-3 text-sm text-gray-700">F = m²a</label>
</div>
</div>
</div>
<button class="w-full bg-indigo-600 text-white py-2 px-4 rounded-lg text-sm font-medium hover:bg-indigo-700 transition duration-200">
Check Answers
</button>
</div>
</div>
</div>
</div>
<!-- Note Editor Modal (Hidden by default) -->
<div id="editorModal" class="fixed inset-0 z-50 hidden overflow-y-auto">
<div class="flex items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
<div class="fixed inset-0 transition-opacity" aria-hidden="true">
<div class="absolute inset-0 bg-gray-500 opacity-75"></div>
</div>
<span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">&#8203;</span>
<div class="inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-4xl sm:w-full">
<div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
<div class="sm:flex sm:items-start">
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg leading-6 font-medium text-gray-900" id="modal-title">
New Note
</h3>
<button id="closeEditor" class="text-gray-400 hover:text-gray-500">
<i class="fas fa-times"></i>
</button>
</div>
<div class="mt-2 w-full">
<input type="text" placeholder="Note Title" class="w-full px-4 py-2 border border-gray-300 rounded-lg mb-4 focus:outline-none focus:ring-2 focus:ring-indigo-500">
<!-- Editor Toolbar -->
<div class="editor-toolbar flex overflow-x-auto space-x-1 mb-2 pb-2">
<button class="p-2 rounded hover:bg-gray-100">
<i class="fas fa-bold"></i>
</button>
<button class="p-2 rounded hover:bg-gray-100">
<i class="fas fa-italic"></i>
</button>
<button class="p-2 rounded hover:bg-gray-100">
<i class="fas fa-underline"></i>
</button>
<button class="p-2 rounded hover:bg-gray-100">
<i class="fas fa-list-ul"></i>
</button>
<button class="p-2 rounded hover:bg-gray-100">
<i class="fas fa-list-ol"></i>
</button>
<button class="p-2 rounded hover:bg-gray-100">
<i class="fas fa-link"></i>
</button>
<button class="p-2 rounded hover:bg-gray-100">
<i class="fas fa-image"></i>
</button>
<button class="p-2 rounded hover:bg-gray-100">
<i class="fas fa-code"></i>
</button>
<button class="p-2 rounded hover:bg-gray-100">
<i class="fas fa-table"></i>
</button>
<button class="p-2 rounded hover:bg-gray-100">
<i class="fas fa-quote-right"></i>
</button>
</div>
<!-- Editor Content -->
<div class="border border-gray-300 rounded-lg p-4 h-64 focus:outline-none focus:ring-2 focus:ring-indigo-500" contenteditable="true">
Start typing your notes here...
</div>
<!-- Tags -->
<div class="mt-4">
<label class="block text-sm font-medium text-gray-700 mb-1">Tags</label>
<div class="flex flex-wrap gap-2">
<input type="text" placeholder="Add tags..." class="flex-1 min-w-0 px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<div class="flex flex-wrap gap-2 mt-2">
<span class="px-2 py-1 text-xs rounded-full bg-indigo-100 text-indigo-800 flex items-center">
Biology <button class="ml-1 text-indigo-400 hover:text-indigo-600"><i class="fas fa-times text-xs"></i></button>
</span>
<span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800 flex items-center">
Important <button class="ml-1 text-green-400 hover:text-green-600"><i class="fas fa-times text-xs"></i></button>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse">
<button type="button" class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-indigo-600 text-base font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:ml-3 sm:w-auto sm:text-sm">
Save Note
</button>
<button id="cancelEditor" type="button" class="mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm">
Cancel
</button>
<button type="button" class="mt-3 w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-green-600 text-base font-medium text-white hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm">
Generate Summary
</button>
</div>
</div>
</div>
</div>
</main>
<!-- Floating Action Button -->
<button id="newNoteBtn" class="floating-btn fixed bottom-8 right-8 bg-indigo-600 text-white p-4 rounded-full shadow-lg hover:bg-indigo-700 transition duration-200">
<i class="fas fa-plus text-xl"></i>
</button>
</div>
<!-- Download App Modal -->
<div id="downloadModal" class="fixed inset-0 z-50 hidden overflow-y-auto">
<div class="flex items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
<div class="fixed inset-0 transition-opacity" aria-hidden="true">
<div class="absolute inset-0 bg-gray-500 opacity-75"></div>
</div>
<span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">&#8203;</span>
<div class="inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full">
<div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
<div class="sm:flex sm:items-start">
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg leading-6 font-medium text-gray-900">
Download StudyMaster App
</h3>
<button id="closeDownload" class="text-gray-400 hover:text-gray-500">
<i class="fas fa-times"></i>
</button>
</div>
<div class="mt-2">
<p class="text-sm text-gray-500 mb-6">
Get the StudyMaster app on your device for a better learning experience. Available for Windows, macOS, and Android.
</p>
<div class="space-y-4">
<div class="flex items-center p-4 border border-gray-200 rounded-lg hover:bg-gray-50 cursor-pointer">
<div class="p-3 rounded-full bg-blue-100 text-blue-600 mr-4">
<i class="fab fa-android text-xl"></i>
</div>
<div>
<h3 class="font-medium text-gray-800">Android App</h3>
<p class="text-sm text-gray-500">Download APK or get from Play Store</p>
</div>
</div>
<div class="flex items-center p-4 border border-gray-200 rounded-lg hover:bg-gray-50 cursor-pointer">
<div class="p-3 rounded-full bg-gray-100 text-gray-600 mr-4">
<i class="fab fa-windows text-xl"></i>
</div>
<div>
<h3 class="font-medium text-gray-800">Windows App</h3>
<p class="text-sm text-gray-500">Download installer for Windows 10/11</p>
</div>
</div>
<div class="flex items-center p-4 border border-gray-200 rounded-lg hover:bg-gray-50 cursor-pointer">
<div class="p-3 rounded-full bg-gray-100 text-gray-600 mr-4">
<i class="fab fa-apple text-xl"></i>
</div>
<div>
<h3 class="font-medium text-gray-800">macOS App</h3>
<p class="text-sm text-gray-500">Download for Mac computers</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse">
<button type="button" class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-indigo-600 text-base font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:ml-3 sm:w-auto sm:text-sm">
Send Download Links
</button>
<button type="button" class="mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm">
Close
</button>
</div>
</div>
</div>
</div>
<script>
// Toggle sidebar on mobile
const sidebarToggle = document.getElementById('sidebarToggle');
const sidebar = document.getElementById('sidebar');
sidebarToggle.addEventListener('click', () => {
sidebar.classList.toggle('sidebar-collapsed');
sidebar.classList.toggle('sidebar-expanded');
});
// Note editor modal
const newNoteBtn = document.getElementById('newNoteBtn');
const editorModal = document.getElementById('editorModal');
const closeEditor = document.getElementById('closeEditor');
const cancelEditor = document.getElementById('cancelEditor');
newNoteBtn.addEventListener('click', () => {
editorModal.classList.remove('hidden');
});
closeEditor.addEventListener('click', () => {
editorModal.classList.add('hidden');
});
cancelEditor.addEventListener('click', () => {
editorModal.classList.add('hidden');
});
// Download modal
const downloadModal = document.getElementById('downloadModal');
const closeDownload = document.getElementById('closeDownload');
// This would be triggered from the download link in sidebar
document.querySelector('a[href="#"]:nth-child(5)').addEventListener('click', (e) => {
e.preventDefault();
downloadModal.classList.remove('hidden');
});
closeDownload.addEventListener('click', () => {
downloadModal.classList.add('hidden');
});
// Close modals when clicking outside
window.addEventListener('click', (e) => {
if (e.target === editorModal) {
editorModal.classList.add('hidden');
}
if (e.target === downloadModal) {
downloadModal.classList.add('hidden');
}
});
// Sample functionality for MCQ checking
document.querySelector('button:contains("Check Answers")').addEventListener('click', () => {
// In a real app, this would check answers against correct ones
alert('Answers checked! Correct: 1/2');
});
</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=huzaifajee/study-master" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>