Spaces:
Running
Running
File size: 8,661 Bytes
6759add |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 |
<!DOCTYPE html>
<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> |