Spaces:
Running
Running
Todo-tool in Deutsch
Browse files- README.md +8 -5
- index.html +236 -19
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: AufgabenMeister 📝
|
| 3 |
+
colorFrom: gray
|
| 4 |
+
colorTo: yellow
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://huggingface.co/deepsite).
|
index.html
CHANGED
|
@@ -1,19 +1,236 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<meta name="description" content="Dein ultimativer Todo-Tool zur Verwaltung deiner Aufgaben">
|
| 7 |
+
<title>AufgabenMeister - Dein Todo-Tool</title>
|
| 8 |
+
<link rel="icon" type="image/x-icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>📝</text></svg>">
|
| 9 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 10 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 11 |
+
<script defer src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js"></script>
|
| 12 |
+
<link rel="stylesheet" href="style.css">
|
| 13 |
+
</head>
|
| 14 |
+
<body class="min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 dark:from-gray-900 dark:to-gray-800 transition-colors duration-300">
|
| 15 |
+
|
| 16 |
+
<custom-navbar></custom-navbar>
|
| 17 |
+
|
| 18 |
+
<main class="container mx-auto px-4 py-8 max-w-4xl" x-data="todoApp()">
|
| 19 |
+
<header class="text-center mb-12">
|
| 20 |
+
<h1 class="text-4xl md:text-6xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-indigo-600 to-violet-600 dark:from-indigo-400 dark:to-violet-400 mb-4">
|
| 21 |
+
AufgabenMeister
|
| 22 |
+
</h1>
|
| 23 |
+
<p class="text-slate-600 dark:text-slate-300 text-lg max-w-2xl mx-auto leading-relaxed">
|
| 24 |
+
Verwalte deine Aufgaben effizient und bleibe organisiert. Einfach, elegant und leistungsstark.
|
| 25 |
+
</p>
|
| 26 |
+
</header>
|
| 27 |
+
|
| 28 |
+
<!-- Eingabebereich -->
|
| 29 |
+
<section class="mb-8 transform transition-all duration-300 hover:scale-105">
|
| 30 |
+
<div class="glass-card rounded-2xl shadow-2xl p-6">
|
| 31 |
+
<form @submit.prevent="addTodo()" class="flex flex-col md:flex-row gap-4">
|
| 32 |
+
<input
|
| 33 |
+
type="text"
|
| 34 |
+
x-model="newTodo"
|
| 35 |
+
placeholder="Was möchtest du erledigen?"
|
| 36 |
+
class="flex-1 px-4 py-3 rounded-lg bg-white dark:bg-gray-800 border-2 border-slate-200 dark:border-gray-700 text-slate-800 dark:text-slate-200 focus:outline-none focus:border-indigo-500 dark:focus:border-indigo-400 transition-colors duration-200"
|
| 37 |
+
aria-label="Neue Aufgabe eingeben"
|
| 38 |
+
>
|
| 39 |
+
<button
|
| 40 |
+
type="submit"
|
| 41 |
+
class="flex items-center justify-center gap-2 px-6 py-3 bg-gradient-to-r from-indigo-600 to-violet-600 hover:from-indigo-700 hover:to-violet-700 text-white font-semibold rounded-lg transition-all duration-200 transform hover:scale-105 active:scale-95 shadow-lg"
|
| 42 |
+
>
|
| 43 |
+
<i data-feather="plus-circle" class="w-5 h-5"></i>
|
| 44 |
+
Hinzufügen
|
| 45 |
+
</button>
|
| 46 |
+
</form>
|
| 47 |
+
</div>
|
| 48 |
+
</section>
|
| 49 |
+
|
| 50 |
+
<!-- Filter und Statistiken -->
|
| 51 |
+
<section class="mb-8">
|
| 52 |
+
<div class="glass-card rounded-xl shadow-lg p-4">
|
| 53 |
+
<div class="flex flex-col md:flex-row justify-between items-center gap-4">
|
| 54 |
+
<!-- Statistiken -->
|
| 55 |
+
<div class="flex gap-6 text-sm">
|
| 56 |
+
<div class="flex items-center gap-2">
|
| 57 |
+
<i data-feather="check-circle" class="w-4 h-4 text-emerald-500"></i>
|
| 58 |
+
<span class="text-slate-600 dark:text-slate-300">
|
| 59 |
+
<span x-text="completedCount" class="font-bold"></span> erledigt
|
| 60 |
+
</span>
|
| 61 |
+
</div>
|
| 62 |
+
<div class="flex items-center gap-2">
|
| 63 |
+
<i data-feather="circle" class="w-4 h-4 text-amber-500"></i>
|
| 64 |
+
<span class="text-slate-600 dark:text-slate-300">
|
| 65 |
+
<span x-text="activeCount" class="font-bold"></span> offen
|
| 66 |
+
</span>
|
| 67 |
+
</div>
|
| 68 |
+
<div class="flex items-center gap-2">
|
| 69 |
+
<i data-feather="list" class="w-4 h-4 text-indigo-500"></i>
|
| 70 |
+
<span class="text-slate-600 dark:text-slate-300">
|
| 71 |
+
<span x-text="totalCount" class="font-bold"></span> gesamt
|
| 72 |
+
</span>
|
| 73 |
+
</div>
|
| 74 |
+
</div>
|
| 75 |
+
|
| 76 |
+
<!-- Filter -->
|
| 77 |
+
<div class="flex gap-2">
|
| 78 |
+
<button
|
| 79 |
+
@click="filter = 'all'"
|
| 80 |
+
:class="filter === 'all' ? 'bg-indigo-600 text-white' : 'bg-slate-200 dark:bg-gray-700 text-slate-700 dark:text-slate-300'"
|
| 81 |
+
class="px-4 py-2 rounded-lg text-sm font-medium transition-all duration-200 transform hover:scale-105"
|
| 82 |
+
>
|
| 83 |
+
Alle
|
| 84 |
+
</button>
|
| 85 |
+
<button
|
| 86 |
+
@click="filter = 'active'"
|
| 87 |
+
:class="filter === 'active' ? 'bg-amber-500 text-white' : 'bg-slate-200 dark:bg-gray-700 text-slate-700 dark:text-slate-300'"
|
| 88 |
+
class="px-4 py-2 rounded-lg text-sm font-medium transition-all duration-200 transform hover:scale-105"
|
| 89 |
+
>
|
| 90 |
+
Offen
|
| 91 |
+
</button>
|
| 92 |
+
<button
|
| 93 |
+
@click="filter = 'completed'"
|
| 94 |
+
:class="filter === 'completed' ? 'bg-emerald-500 text-white' : 'bg-slate-200 dark:bg-gray-700 text-slate-700 dark:text-slate-300'"
|
| 95 |
+
class="px-4 py-2 rounded-lg text-sm font-medium transition-all duration-200 transform hover:scale-105"
|
| 96 |
+
>
|
| 97 |
+
Erledigt
|
| 98 |
+
</button>
|
| 99 |
+
<button
|
| 100 |
+
@click="clearCompleted()"
|
| 101 |
+
x-show="completedCount > 0"
|
| 102 |
+
class="px-4 py-2 bg-red-500 hover:bg-red-600 text-white rounded-lg text-sm font-medium transition-all duration-200 transform hover:scale-105"
|
| 103 |
+
>
|
| 104 |
+
Erledigte löschen
|
| 105 |
+
</button>
|
| 106 |
+
</div>
|
| 107 |
+
</div>
|
| 108 |
+
</div>
|
| 109 |
+
</section>
|
| 110 |
+
|
| 111 |
+
<!-- Todo-Liste -->
|
| 112 |
+
<section>
|
| 113 |
+
<div class="space-y-4" x-show="filteredTodos.length > 0">
|
| 114 |
+
<template x-for="(todo, index) in filteredTodos" :key="todo.id">
|
| 115 |
+
<div
|
| 116 |
+
class="glass-card rounded-xl shadow-lg p-6 transform transition-all duration-300 hover:scale-102"
|
| 117 |
+
:class="{
|
| 118 |
+
'opacity-60 line-through': todo.completed,
|
| 119 |
+
'border-l-4 border-indigo-500': !todo.completed,
|
| 120 |
+
'border-l-4 border-emerald-500': todo.completed
|
| 121 |
+
}"
|
| 122 |
+
>
|
| 123 |
+
<div class="flex flex-col md:flex-row gap-4 items-start md:items-center">
|
| 124 |
+
<!-- Checkbox -->
|
| 125 |
+
<button
|
| 126 |
+
@click="toggleTodo(todo.id)"
|
| 127 |
+
class="flex-shrink-0 w-6 h-6 rounded-full border-2 flex items-center justify-center transition-all duration-200"
|
| 128 |
+
:class="{
|
| 129 |
+
'border-indigo-500 bg-indigo-500': todo.completed,
|
| 130 |
+
'border-slate-300 dark:border-gray-600 hover:border-indigo-400': !todo.completed
|
| 131 |
+
}"
|
| 132 |
+
:aria-label="todo.completed ? 'Aufgabe als unerledigt markieren' : 'Aufgabe als erledigt markieren'"
|
| 133 |
+
>
|
| 134 |
+
<i data-feather="check" class="w-4 h-4 text-white" x-show="todo.completed"></i>
|
| 135 |
+
</button>
|
| 136 |
+
|
| 137 |
+
<!-- Todo Text -->
|
| 138 |
+
<div class="flex-1" :class="{'cursor-pointer': !editingId}" @click="!editingId && toggleTodo(todo.id)">
|
| 139 |
+
<h3
|
| 140 |
+
class="text-lg font-semibold text-slate-800 dark:text-slate-200 transition-colors duration-200"
|
| 141 |
+
x-text="todo.text"
|
| 142 |
+
x-show="editingId !== todo.id"
|
| 143 |
+
></h3>
|
| 144 |
+
<input
|
| 145 |
+
type="text"
|
| 146 |
+
x-show="editingId === todo.id"
|
| 147 |
+
x-model="editingText"
|
| 148 |
+
@keyup.enter="saveEdit()"
|
| 149 |
+
@keyup.escape="cancelEdit()"
|
| 150 |
+
class="w-full px-3 py-2 rounded-lg bg-white dark:bg-gray-800 border-2 border-indigo-500 text-slate-800 dark:text-slate-200 focus:outline-none"
|
| 151 |
+
>
|
| 152 |
+
<p class="text-xs text-slate-500 dark:text-slate-400 mt-1" x-text="'Erstellt: ' + formatDate(todo.createdAt)"></p>
|
| 153 |
+
</div>
|
| 154 |
+
|
| 155 |
+
<!-- Aktionen -->
|
| 156 |
+
<div class="flex gap-2" x-show="editingId !== todo.id">
|
| 157 |
+
<button
|
| 158 |
+
@click="startEdit(todo.id, todo.text)"
|
| 159 |
+
class="p-2 text-slate-600 dark:text-slate-300 hover:text-indigo-600 dark:hover:text-indigo-400 transition-colors duration-200 transform hover:scale-110"
|
| 160 |
+
aria-label="Aufgabe bearbeiten"
|
| 161 |
+
>
|
| 162 |
+
<i data-feather="edit-2" class="w-5 h-5"></i>
|
| 163 |
+
</button>
|
| 164 |
+
<button
|
| 165 |
+
@click="deleteTodo(todo.id)"
|
| 166 |
+
class="p-2 text-slate-600 dark:text-slate-300 hover:text-red-500 dark:hover:text-red-400 transition-colors duration-200 transform hover:scale-110"
|
| 167 |
+
aria-label="Aufgabe löschen"
|
| 168 |
+
>
|
| 169 |
+
<i data-feather="trash-2" class="w-5 h-5"></i>
|
| 170 |
+
</button>
|
| 171 |
+
</div>
|
| 172 |
+
|
| 173 |
+
<!-- Speichern/Abbrechen -->
|
| 174 |
+
<div class="flex gap-2" x-show="editingId === todo.id">
|
| 175 |
+
<button
|
| 176 |
+
@click="saveEdit()"
|
| 177 |
+
class="p-2 text-emerald-500 hover:text-emerald-600 transition-colors duration-200 transform hover:scale-110"
|
| 178 |
+
aria-label="Änderungen speichern"
|
| 179 |
+
>
|
| 180 |
+
<i data-feather="check-circle" class="w-5 h-5"></i>
|
| 181 |
+
</button>
|
| 182 |
+
<button
|
| 183 |
+
@click="cancelEdit()"
|
| 184 |
+
class="p-2 text-red-500 hover:text-red-600 transition-colors duration-200 transform hover:scale-110"
|
| 185 |
+
aria-label="Bearbeitung abbrechen"
|
| 186 |
+
>
|
| 187 |
+
<i data-feather="x-circle" class="w-5 h-5"></i>
|
| 188 |
+
</button>
|
| 189 |
+
</div>
|
| 190 |
+
</div>
|
| 191 |
+
</div>
|
| 192 |
+
</template>
|
| 193 |
+
</div>
|
| 194 |
+
|
| 195 |
+
<!-- Leerer Zustand -->
|
| 196 |
+
<div x-show="filteredTodos.length === 0" class="text-center py-16">
|
| 197 |
+
<div class="mb-6">
|
| 198 |
+
<i data-feather="inbox" class="w-24 h-24 text-slate-300 dark:text-gray-600 mx-auto"></i>
|
| 199 |
+
</div>
|
| 200 |
+
<h3 class="text-2xl font-semibold text-slate-600 dark:text-slate-400 mb-2">
|
| 201 |
+
<span x-text="filter === 'all' ? 'Keine Aufgaben vorhanden' : filter === 'active' ? 'Keine offenen Aufgaben' : 'Keine erledigten Aufgaben'"></span>
|
| 202 |
+
</h3>
|
| 203 |
+
<p class="text-slate-500 dark:text-slate-500">
|
| 204 |
+
<span x-text="filter === 'all' ? 'Füge deine erste Aufgabe hinzu, um loszulegen!' : 'Super Arbeit! Du bist auf dem richtigen Weg.'"></span>
|
| 205 |
+
</p>
|
| 206 |
+
</div>
|
| 207 |
+
</section>
|
| 208 |
+
|
| 209 |
+
<!-- Toast-Benachrichtung -->
|
| 210 |
+
<div
|
| 211 |
+
x-show="showToast"
|
| 212 |
+
x-transition
|
| 213 |
+
class="fixed bottom-8 right-8 glass-card rounded-lg shadow-2xl p-4 bg-emerald-500 text-white transform transition-all"
|
| 214 |
+
:class="toastType === 'success' ? 'bg-emerald-500' : toastType === 'error' ? 'bg-red-500' : 'bg-indigo-500'"
|
| 215 |
+
>
|
| 216 |
+
<div class="flex items-center gap-3">
|
| 217 |
+
<i data-feather="check" class="w-5 h-5" x-show="toastType === 'success'"></i>
|
| 218 |
+
<i data-feather="alert-circle" class="w-5 h-5" x-show="toastType === 'error'"></i>
|
| 219 |
+
<i data-feather="info" class="w-5 h-5" x-show="toastType === 'info'"></i>
|
| 220 |
+
<span x-text="toastMessage" class="font-medium"></span>
|
| 221 |
+
</div>
|
| 222 |
+
</div>
|
| 223 |
+
</main>
|
| 224 |
+
|
| 225 |
+
<custom-footer></custom-footer>
|
| 226 |
+
|
| 227 |
+
<script src="components/navbar.js"></script>
|
| 228 |
+
<script src="components/footer.js"></script>
|
| 229 |
+
<script src="script.js"></script>
|
| 230 |
+
<script>
|
| 231 |
+
// Feather Icons initialisieren
|
| 232 |
+
feather.replace();
|
| 233 |
+
</script>
|
| 234 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 235 |
+
</body>
|
| 236 |
+
</html>
|