Spaces:
Running
Running
| <html lang="en" class="h-full bg-gray-50"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>EduLoom Navigator | Course Curriculum</title> | |
| <link rel="stylesheet" href="style.css"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script src="components/sidebar.js"></script> | |
| <script src="components/header.js"></script> | |
| <script> | |
| tailwind.config = { | |
| theme: { | |
| extend: { | |
| colors: { | |
| primary: { | |
| 50: '#f0f9ff', | |
| 100: '#e0f2fe', | |
| 200: '#bae6fd', | |
| 300: '#7dd3fc', | |
| 400: '#38bdf8', | |
| 500: '#0ea5e9', | |
| 600: '#0284c7', | |
| 700: '#0369a1', | |
| 800: '#075985', | |
| 900: '#0c4a6e', | |
| }, | |
| secondary: { | |
| 50: '#f5f3ff', | |
| 100: '#ede9fe', | |
| 200: '#ddd6fe', | |
| 300: '#c4b5fd', | |
| 400: '#a78bfa', | |
| 500: '#8b5cf6', | |
| 600: '#7c3aed', | |
| 700: '#6d28d9', | |
| 800: '#5b21b6', | |
| 900: '#4c1d95', | |
| } | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| </head> | |
| <body class="h-full"> | |
| <div class="flex h-full"> | |
| <!-- Sidebar --> | |
| <custom-sidebar></custom-sidebar> | |
| <!-- Main Content --> | |
| <div class="flex-1 flex flex-col overflow-hidden"> | |
| <custom-header></custom-header> | |
| <!-- Main Content Area --> | |
| <main class="flex-1 overflow-y-auto p-6 bg-gray-50"> | |
| <div class="max-w-7xl mx-auto"> | |
| <div class="flex justify-between items-center mb-8"> | |
| <h1 class="text-3xl font-bold text-gray-900">Course Curriculum</h1> | |
| <button id="addModuleBtn" class="bg-primary-600 hover:bg-primary-700 text-white px-4 py-2 rounded-lg flex items-center gap-2"> | |
| <i data-feather="plus"></i> | |
| Add Module | |
| </button> | |
| </div> | |
| <!-- Module Editor View --> | |
| <div id="editorView" class="hidden"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 id="moduleTitle" class="text-2xl font-bold text-gray-800">Module: <span class="editable-title">Untitled Module</span></h2> | |
| <button id="closeEditorBtn" class="text-gray-500 hover:text-gray-700"> | |
| <i data-feather="x"></i> | |
| </button> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-sm border border-gray-200 p-6 mb-6"> | |
| <h3 class="text-lg font-semibold mb-4">Module Details</h3> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-6"> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Title</label> | |
| <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md module-title-input" value="Untitled Module"> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Description</label> | |
| <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md" placeholder="Brief description"> | |
| </div> | |
| </div> | |
| <h3 class="text-lg font-semibold mb-4">Lessons</h3> | |
| <div id="lessonsContainer" class="space-y-4"> | |
| <!-- Lessons will be added here --> | |
| </div> | |
| <div class="mt-6"> | |
| <button id="addLessonBtn" class="bg-primary-600 hover:bg-primary-700 text-white px-4 py-2 rounded-lg flex items-center gap-2"> | |
| <i data-feather="plus"></i> | |
| Add Lesson | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Curriculum Builder View --> | |
| <div id="builderView" class="grid grid-cols-1 md:grid-cols-2 gap-6"> | |
| <!-- Curriculum Builder --> | |
| <div class="bg-white rounded-xl shadow-sm border border-gray-200 p-6"> | |
| <h2 class="text-xl font-semibold mb-4">Build Your Curriculum</h2> | |
| <div class="space-y-4"> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Module Title</label> | |
| <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md" placeholder="Enter module title"> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Add Lesson</label> | |
| <div class="flex gap-2"> | |
| <select class="flex-1 px-3 py-2 border border-gray-300 rounded-md"> | |
| <option>Video Lesson</option> | |
| <option>Reading</option> | |
| <option>Quiz</option> | |
| <option>Assignment</option> | |
| </select> | |
| <button class="bg-primary-600 text-white px-3 py-2 rounded-md"> | |
| <i data-feather="plus"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="border-t pt-4"> | |
| <button class="w-full bg-primary-600 hover:bg-primary-700 text-white py-2 rounded-md flex items-center justify-center gap-2"> | |
| <i data-feather="plus-circle"></i> | |
| Add Module | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Preview Panel --> | |
| <div class="bg-white rounded-xl shadow-sm border border-gray-200 p-6"> | |
| <h2 class="text-xl font-semibold mb-4">Curriculum Preview</h2> | |
| <div id="previewContainer" class="space-y-3"> | |
| <!-- Modules will be added here dynamically --> | |
| </div> | |
| <div class="mt-6"> | |
| <button id="saveCurriculumBtn" class="w-full bg-green-600 hover:bg-green-700 text-white py-2 rounded-md flex items-center justify-center gap-2"> | |
| <i data-feather="save"></i> | |
| Save Curriculum | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| </div> | |
| <script> | |
| feather.replace(); | |
| </script> | |
| <script src="script.js"></script> | |
| <script src="components/support-ticket.js"></script> | |
| <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script> | |
| <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script> | |
| </body> | |
| </html> |