Update 13 files
- /TeacherDashboard/index.html - /TeacherDashboard/TeacherDashboard.code-workspace - /TeacherDashboard/components/resourceModal.html - /TeacherDashboard/components/subjectModal.html - /TeacherDashboard/components/topicModal.html - /TeacherDashboard/js/main.js - /TeacherDashboard/js/subjects/colors.js - /TeacherDashboard/js/subjects/subjectManager.js - /TeacherDashboard/js/subjects/SubjectModel.js - /TeacherDashboard/js/subjects/SubjectStorage.js - /TeacherDashboard/js/topics/TopicModel.js - /TeacherDashboard/js/topics/topicManager.js - /TeacherDashboard/styles/main.css
This commit is contained in:
committed by
Matthias Grief
parent
3977f48367
commit
2369f7158d
152
TeacherDashboard/index.html
Normal file
152
TeacherDashboard/index.html
Normal file
@@ -0,0 +1,152 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Lehrer Dashboard</title>
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
|
||||
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
|
||||
<link rel="stylesheet" href="styles/main.css">
|
||||
<link href="https://cdn.quilljs.com/1.3.6/quill.snow.css" rel="stylesheet">
|
||||
<script src="https://cdn.quilljs.com/1.3.6/quill.min.js"></script>
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css" rel="stylesheet" />
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-python.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-java.min.js"></script>
|
||||
<script>
|
||||
tailwind.config = {
|
||||
theme: {
|
||||
extend: {
|
||||
typography: {
|
||||
DEFAULT: {
|
||||
css: {
|
||||
maxWidth: 'none',
|
||||
color: '#333',
|
||||
h1: {
|
||||
color: '#111',
|
||||
fontWeight: '700',
|
||||
fontSize: '2em'
|
||||
},
|
||||
h2: {
|
||||
color: '#222',
|
||||
fontWeight: '600',
|
||||
fontSize: '1.5em'
|
||||
},
|
||||
'code::before': { content: 'none' },
|
||||
'code::after': { content: 'none' }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
plugins: [require('@tailwindcss/typography')]
|
||||
}
|
||||
</script>
|
||||
<!-- Add Tailwind Typography Plugin -->
|
||||
<script src="https://cdn.tailwindcss.com?plugins=typography"></script>
|
||||
</head>
|
||||
<body class="min-h-screen bg-gray-50">
|
||||
<!-- Left Sidebar -->
|
||||
<nav class="sidebar fixed w-[280px] h-full bg-[var(--primary-color)] p-8">
|
||||
<!-- Logo and Brand -->
|
||||
<div class="mb-8">
|
||||
<h2 class="text-2xl font-bold text-white">TeacherDash</h2>
|
||||
</div>
|
||||
|
||||
<!-- User Profile -->
|
||||
<div class="flex items-center gap-4 mb-8 p-3 rounded-xl bg-white/10">
|
||||
<div class="w-12 h-12 rounded-full bg-white/20 flex items-center justify-center">
|
||||
<i class="fas fa-user text-white"></i>
|
||||
</div>
|
||||
<div>
|
||||
<h3 class="text-white font-medium">Max Mustermann</h3>
|
||||
<p class="text-white/70 text-sm">Mathematiklehrer</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Navigation Links -->
|
||||
<nav class="space-y-2">
|
||||
<a href="#" class="flex items-center gap-3 text-white/90 hover:bg-white/10 p-3 rounded-xl transition-all">
|
||||
<i class="fas fa-home w-6"></i>
|
||||
<span>Dashboard</span>
|
||||
</a>
|
||||
<a href="#" class="flex items-center gap-3 text-white/90 hover:bg-white/10 p-3 rounded-xl transition-all">
|
||||
<i class="fas fa-book w-6"></i>
|
||||
<span>Fächer</span>
|
||||
</a>
|
||||
<a href="#" class="flex items-center gap-3 text-white/90 hover:bg-white/10 p-3 rounded-xl transition-all">
|
||||
<i class="fas fa-tasks w-6"></i>
|
||||
<span>Aufgaben</span>
|
||||
</a>
|
||||
<a href="#" class="flex items-center gap-3 text-white/90 hover:bg-white/10 p-3 rounded-xl transition-all">
|
||||
<i class="fas fa-calendar w-6"></i>
|
||||
<span>Kalender</span>
|
||||
</a>
|
||||
</nav>
|
||||
|
||||
<!-- Bottom Section -->
|
||||
<div class="absolute bottom-8 left-8 right-8">
|
||||
<a href="#" class="flex items-center gap-3 text-white/90 hover:bg-white/10 p-3 rounded-xl transition-all">
|
||||
<i class="fas fa-cog w-6"></i>
|
||||
<span>Einstellungen</span>
|
||||
</a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<!-- Main Content -->
|
||||
<main class="ml-[280px] p-8">
|
||||
<h1 class="text-2xl font-bold mb-6">Dashboard</h1>
|
||||
|
||||
<!-- Action Cards -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-8">
|
||||
<!-- Subject Card -->
|
||||
<div class="bg-white p-6 rounded-xl shadow-lg border border-gray-100">
|
||||
<h3 class="text-lg font-semibold mb-4">Fach erstellen</h3>
|
||||
<p class="text-gray-600 mb-4">Erstellen Sie ein neues Fach für Ihren Unterricht.</p>
|
||||
<button onclick="openSubjectModal()"
|
||||
class="px-4 py-2 bg-[var(--primary-color)] text-white rounded-lg hover:bg-[var(--secondary-color)]">
|
||||
Neues Fach
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Topic Card -->
|
||||
<div class="bg-white p-6 rounded-xl shadow-lg border border-gray-100">
|
||||
<h3 class="text-lg font-semibold mb-4">Thema hinzufügen</h3>
|
||||
<p class="text-gray-600 mb-4">Fügen Sie ein neues Thema zu einem Fach hinzu.</p>
|
||||
<button onclick="openModal('topicModal')"
|
||||
class="px-4 py-2 bg-[var(--primary-color)] text-white rounded-lg hover:bg-[var(--secondary-color)]">
|
||||
Neues Thema
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Resource Card -->
|
||||
<div class="bg-white p-6 rounded-xl shadow-lg border border-gray-100">
|
||||
<h3 class="text-lg font-semibold mb-4">Materialien hochladen</h3>
|
||||
<p class="text-gray-600 mb-4">Laden Sie Unterrichtsmaterialien hoch.</p>
|
||||
<button onclick="openModal('resourceModal')"
|
||||
class="px-4 py-2 bg-[var(--primary-color)] text-white rounded-lg hover:bg-[var(--secondary-color)]">
|
||||
Materialien hochladen
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Recent Activity Section -->
|
||||
<div class="bg-white p-6 rounded-xl shadow-lg border border-gray-100">
|
||||
<h2 class="text-xl font-semibold mb-4">Letzte Aktivitäten</h2>
|
||||
<div id="recentActivity" class="space-y-4">
|
||||
<!-- Activity items will be loaded dynamically -->
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<!-- Include modal components -->
|
||||
<div id="modalContainer"></div>
|
||||
|
||||
<!-- Update script import to use type="module" -->
|
||||
<script type="module" src="js/main.js"></script>
|
||||
|
||||
<!-- Remove the inline script since it's now handled in main.js -->
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user