Fehlerkorrekturen

This commit is contained in:
titver968
2025-05-12 11:53:47 +02:00
parent 3dd73a98ca
commit 0b4b131dad
8 changed files with 17 additions and 36 deletions

View File

@@ -1,6 +0,0 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
}
}

Binary file not shown.

BIN
src/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

View File

@@ -1,4 +1,5 @@
<script lang="ts">
import '/src/app.css';
import { onMount } from 'svelte';
let anrede = '';
@@ -158,6 +159,16 @@
<style>
.input {
@apply w-full border border-gray-300 rounded-xl p-3 focus:outline-none focus:ring-2 focus:ring-blue-500;
width: 100%;
border: 1px solid #d1d5db; /* border-gray-300 */
border-radius: 0.75rem; /* rounded-xl */
padding: 0.75rem; /* p-3 */
outline: none;
transition: box-shadow 0.2s;
}
.input:focus {
outline: none;
box-shadow: 0 0 0 2px #3b82f6; /* focus:ring-2 focus:ring-blue-500 */
border-color: #3b82f6;
}
</style>

View File

@@ -1,6 +1,7 @@
<script lang="ts">
import { onMount } from 'svelte';
interface Anmeldung {
pdfs: any;
anrede: string;
vorname: string;
nachname: string;
@@ -91,7 +92,3 @@
class="bg-red-600 text-white px-4 py-3 rounded text-center hover:bg-red-700">
Logout
</button>
</div>
<style>
/* Removed unused .input selector */

View File

@@ -1,4 +1,5 @@
<script lang="ts">
import '../../..app.css';
import { onMount } from 'svelte';
let dienststellen: { id: number; name: string; plaetze: number }[] = [];
let neuerName = '';
@@ -10,25 +11,6 @@
const res = await fetch('/api/admin/dienststellen');
dienststellen = await res.json();
}
/*
async function hinzufuegen() {
fehlermeldung = '';
if (!neuerName.trim()) return;
const res = await fetch('/api/admin/dienststellen', {
method: 'POST',
body: JSON.stringify({ name: neuerName, plaetze: neuePlaetze }),
headers: { 'Content-Type': 'application/json' }
});
if (res.ok) {
neuerName = '';
await ladeDienststellen();
} else {
const err = await res.json();
fehlermeldung = err.error || 'Fehler beim Hinzufügen';
}
}
*/
function bearbeiten(d: { id: number; name: string; plaetze: number }) {
neuerName = d.name;
@@ -109,8 +91,4 @@
Logout
</button>
</div>
<style>
.input {
@apply border rounded px-3 py-2;
}

1
static/favicon.ico Symbolic link
View File

@@ -0,0 +1 @@
favicon.png