Dashboard Fach hinzufügen funktioniert in swe-b1-a-dev

This commit is contained in:
Kelvi Yawo Jules Agbessi Awuklu
2024-12-21 20:08:59 +01:00
committed by Matthias Grief
parent b2cff02086
commit 6f73884baf
119 changed files with 5374 additions and 0 deletions

View File

@@ -0,0 +1,116 @@
<?php
// Temporarily remove validation
// session_start();
// require_once("../classes/User.php");
?>
<!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>
<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>
<script type="module" src="js/main.js"></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>
</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="openTopicModal()"
class="px-4 py-2 bg-[var(--primary-color)] text-white rounded-lg hover:bg-[var(--secondary-color)]">
Neues Thema
</button>
</div>
<!-- Topic Editor Card -->
<div class="bg-white p-6 rounded-xl shadow-lg border border-gray-100">
<h3 class="text-lg font-semibold mb-4">Thema bearbeiten</h3>
<p class="text-gray-600 mb-4">Bearbeiten Sie existierende Themen.</p>
<button onclick="openModal('topicEditorModal')"
class="px-4 py-2 bg-[var(--primary-color)] text-white rounded-lg hover:bg-[var(--secondary-color)]">
Thema bearbeiten
</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>
<!-- Scripts -->
<script type="module" src="js/main.js"></script>
<input type="hidden" name="icon" id="selectedIcon"> <!-- removed required attribute -->
</body>
</html>